:root {
  --bg: #f6f5f2;
  --surface: #fbfaf7;
  --surface-soft: #f1efea;
  --surface-strong: #ebe8e1;
  --panel: #f9f7f2;
  --ink: #22211f;
  --muted: #62605b;
  --line: rgba(34, 33, 31, 0.12);
  --accent: #2f7a62;
  --accent-strong: #215c49;
  --footer: #ece9e2;
  --shadow-soft: 0 18px 50px rgba(34, 33, 31, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.hero {
  padding: 2rem 1.75rem 2.75rem;
}

.topbar,
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.topbar {
  margin-bottom: 4rem;
}

.brand {
  margin-right: auto;
  font-family: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--ink);
  font-weight: 520;
  text-decoration: none;
}

.hero-copy {
  max-width: 1040px;
  margin: 0 auto;
  padding: 1rem 0 0;
  text-align: center;
}

.eyebrow,
.section-label,
.feature-date {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
  font-weight: 700;
  line-height: 1.02;
}

h1 {
  margin: 0 auto;
  font-size: clamp(2.45rem, 4.6vw, 4.1rem);
}

h2 {
  margin-top: 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2.45rem);
}

.hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.05rem);
}

.hero-subtitle {
  margin: 1.45rem 0 0;
  color: #3c3c3c;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-style: italic;
  line-height: 1.45;
}

.hero-subtitle span {
  display: block;
}

.lede {
  max-width: 62ch;
  margin: 1.85rem auto 0;
  color: #34322f;
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  line-height: 1.72;
  text-align: left;
}

.hero-copy .lede {
  text-align: center;
}

.hero-actions,
.feature-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.button,
.feature-links a,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    transform 160ms ease,
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.feature-links a:hover,
.text-link:hover {
  transform: translateY(-1px);
}

.button {
  padding: 0.95rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #f8f8f4;
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.secondary,
.feature-links a {
  background: rgba(255, 255, 255, 0.55);
}

main {
  margin-top: 0;
}

.band {
  margin-top: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.band-blog {
  background: var(--surface);
}

.band-inner {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.25rem;
}

.card {
  padding: 0;
}

.card .section-label {
  font-size: 0.95rem;
}

.timeline {
  margin: 1.2rem 0 0;
  padding-left: 1.35rem;
  color: #2f2d2a;
  font-size: 1.18rem;
  line-height: 1.65;
}

.timeline li {
  padding: 0.28rem 0;
}

.supporting-link {
  margin: 2.2rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  text-align: left;
}

.supporting-link a,
.post-body a,
.text-link {
  color: var(--accent);
}

.feature {
  padding: 0;
}

.feature-copy {
  max-width: 960px;
}

.feature-copy p:not(.section-label):not(.feature-date) {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.45fr);
  gap: 3rem;
  align-items: start;
}

.feature-main,
.feature-side {
  min-width: 0;
}

.feature-main > p:not(.section-label):not(.feature-date) {
  max-width: 41rem;
}

.feature-copy .blog-archive-callout {
  max-width: 17rem;
}

.feature-copy h2 {
  max-width: 18ch;
  font-size: clamp(1.95rem, 2.7vw, 2.8rem);
  line-height: 1.08;
}

.feature-links {
  justify-content: flex-start;
  margin-top: 1.35rem;
}

.feature-links a {
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.blog-archive-callout {
  margin-top: 0;
  padding: 0;
  border-top: 0;
  max-width: 17rem;
}

.blog-archive-callout p {
  margin: 0 0 1.1rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

.blog-archive-callout .button {
  min-width: 11rem;
}

.site-header {
  padding: 1.65rem 1.75rem 0.35rem;
}

.archive-layout,
.post-layout {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.archive-hero,
.post-card,
.sidebar-card {
  background: transparent;
}

.archive-hero,
.post-card {
  padding: 2rem 0;
}

.archive-list {
  display: grid;
}

.archive-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.archive-item h2 {
  margin-top: 0.4rem;
  font-size: clamp(1.35rem, 2.25vw, 1.9rem);
  line-height: 1.15;
}

.archive-item h2 a,
.text-link {
  text-decoration: none;
}

.archive-item p:last-of-type,
.post-meta,
.post-body {
  color: var(--muted);
}

.post-layout {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  max-width: 960px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1rem 0 1.5rem;
  font-size: 0.98rem;
}

.post-body > *:first-child {
  margin-top: 0;
}

.post-body p,
.post-body li,
.post-body blockquote {
  font-size: 1.08rem;
  line-height: 1.78;
}

.post-body figure {
  margin: 2rem 0;
}

.post-body img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
}

.post-body blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.45);
}

.post-footer {
  margin-top: 2rem;
}

.site-footer-home {
  margin-top: 2.4rem;
  background: var(--footer);
  color: var(--ink);
  border-top: 1px solid var(--line);
}

.footer-inner {
  width: min(960px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.75rem 0 3.25rem;
  text-align: center;
}

.footer-name {
  margin: 0 0 1rem;
  font-family: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 700;
}

.site-footer-home a {
  color: var(--accent);
}

@media (max-width: 820px) {
  .topbar,
  .site-nav,
  .content-grid,
  .post-layout {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar {
    margin-bottom: 3rem;
  }

  h1 {
    max-width: none;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .feature-copy h2 {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero,
  .site-header {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .band-inner,
  .archive-layout,
  .post-layout,
  .footer-inner {
    width: min(100% - 1rem, 960px);
  }

  .nav-links {
    gap: 0.9rem;
  }

  .button,
  .feature-links a {
    width: 100%;
  }
}
