:root {
  color-scheme: light;
  --bg: #f6f2ea;
  --ink: #151515;
  --muted: #5c5a55;
  --line: #d8d0c2;
  --panel: #fffaf0;
  --panel-strong: #efe3cf;
  --accent: #1f4f46;
  --accent-2: #6f2d1f;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 96px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(31, 79, 70, 0.16), transparent 34rem),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 42%, #eee4d3 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.22em;
}

.site-footer,
main {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px max(16px, calc((100vw - var(--max)) / 2));
  gap: 20px;
  background: rgba(251, 247, 239, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: padding 180ms ease, border-color 180ms ease;
}

.site-header::after {
  content: none;
}

.site-header.is-scrolled {
  border-color: rgba(216, 208, 194, 0.78);
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  font-size: 1.05rem;
  flex: 0 0 auto;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 180ms ease;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  text-decoration: none;
  font-weight: 500;
}

.nav a:hover {
  color: var(--ink);
}

.nav a.is-active {
  color: var(--ink);
  font-weight: 800;
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  align-items: center;
  gap: 48px;
  padding: 56px 0 72px;
}

.hero-copy {
  min-width: 0;
}

.hero .hero-card {
  align-self: center;
}

.not-found-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(31, 79, 70, 0.16), transparent 34rem),
    linear-gradient(180deg, #fbf7ef 0%, var(--bg) 100%);
}

.not-found-page .not-found-hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
  align-items: center;
  gap: 48px;
  padding: 56px 0 72px;
}

.not-found-page h1 {
  max-width: 760px;
  font-size: clamp(3.4rem, 5.2vw, 5.8rem);
}

.not-found-page .dek {
  max-width: 720px;
}

.eyebrow {
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
}

h1,
h2,
h3 {
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 0;
}

h1 {
  font-size: clamp(3.4rem, 6.4vw, 7.25rem);
}

.hero-title {
  white-space: nowrap;
}

h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.dek {
  color: var(--muted);
  font-size: clamp(1.18rem, 2vw, 1.55rem);
  max-width: 700px;
  margin: 28px 0 0;
}

.hero-card,
.panel,
.fact-card,
.faq-item {
  background: rgba(255, 250, 240, 0.76);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(41, 33, 22, 0.08);
}

.hero-card {
  padding: 28px;
  border-radius: 30px;
}

.hero-card dl {
  margin: 0;
  display: grid;
  gap: 18px;
}

.hero-card dt {
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-card dd {
  margin: 4px 0 0;
  font-size: 1.05rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf0;
  text-decoration: none;
  font-weight: 750;
}

.button.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.resource-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 1rem;
}

.resource-links span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-links a {
  color: var(--ink);
  font-weight: 700;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  text-decoration: none;
  background: rgba(255, 250, 240, 0.5);
  white-space: nowrap;
}

.download-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.download-pills::-webkit-scrollbar {
  display: none;
}

.section {
  padding: clamp(52px, 6vw, 84px) 0;
}

.section-split {
  display: grid;
  grid-template-columns: minmax(180px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.section-label h2 {
  max-width: none;
}

.section-body {
  display: grid;
  gap: 24px;
}

.section-intro {
  color: var(--muted);
  font-size: clamp(1.06rem, 1.35vw, 1.22rem);
  margin: 0;
  max-width: 760px;
}

.section-body .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(280px, 0.38fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.07rem;
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel,
.fact-card,
.faq-item {
  border-radius: 24px;
  padding: 24px;
}

.panel p,
.fact-card p,
.faq-item p {
  color: var(--muted);
  margin: 12px 0 0;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.project-card p {
  margin: 0;
}

.nowrap-title {
  font-size: clamp(1.08rem, 1.7vw, 1.65rem);
  white-space: nowrap;
}

.text-link {
  color: var(--accent);
  font-weight: 750;
  margin-top: auto;
}

.tag-list,
.plain-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted);
  background: rgba(255, 250, 240, 0.52);
}

.plain-list {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.plain-list li {
  padding-left: 18px;
  position: relative;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px 0;
}

.timeline-item strong {
  color: var(--accent);
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
}

.download-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--ink);
  color: #fffaf0;
  border-radius: 30px;
  padding: 30px;
}

.download-strip p {
  color: rgba(255, 250, 240, 0.76);
  margin: 8px 0 0;
}

.download-strip .button {
  background: #fffaf0;
  color: var(--ink);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 36px 0 48px;
  color: var(--muted);
}

.reference-list {
  display: grid;
  gap: 18px;
}

.reference-item {
  display: grid;
  grid-template-columns: minmax(240px, 0.36fr) minmax(0, 0.64fr);
  gap: 24px;
  align-items: start;
  padding: 10px 0;
}

.reference-item h3 {
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  letter-spacing: -0.04em;
}

.reference-item p {
  color: var(--muted);
  margin: 0;
}

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

@media (max-width: 860px) {
  .site-header {
    transition: border-color 180ms ease;
  }

  .site-header::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 34px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(251, 247, 239, 0), rgba(251, 247, 239, 0.96));
  }

  .site-header,
  .download-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .section-split,
  .section-head,
  .grid,
  .two,
  .download-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
  }

  .site-header .brand {
    display: none;
  }

  .site-header .nav {
    width: 100%;
  }

  .not-found-page main {
    display: block;
  }

  .not-found-page .not-found-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0 44px;
  }

  .not-found-page h1 {
    max-width: 100%;
    font-size: clamp(2.7rem, 10.5vw, 4.2rem);
  }

  .not-found-page .dek {
    font-size: clamp(1.05rem, 4.4vw, 1.22rem);
    margin-top: 22px;
  }

  .not-found-page .hero-card {
    align-self: start;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .reference-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }

  .reference-item h3 {
    font-size: 1.15rem;
  }

  .section-label h2 {
    max-width: none;
  }

  .section-body .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .hero-title {
    font-size: clamp(3rem, 15vw, 5.4rem);
  }

  .nowrap-title {
    font-size: clamp(1rem, 5vw, 1.35rem);
  }

  .nav {
    flex-wrap: nowrap;
    gap: 18px;
    width: 100%;
  }

  .site-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.92rem;
    padding: 28px 0 36px;
  }

  .site-footer span {
    white-space: nowrap;
  }

  .not-found-page .not-found-hero {
    gap: 28px;
    padding-top: 34px;
  }

  .not-found-page h1 {
    font-size: clamp(2.55rem, 10.5vw, 3.45rem);
  }

  .not-found-page .nav {
    gap: 10px 14px;
    font-size: 0.92rem;
  }

  .resource-links {
    display: grid;
    justify-items: start;
    gap: 10px;
  }

  .download-pills {
    gap: 10px;
  }

  .not-found-page .hero-card {
    padding: 18px;
  }

  .not-found-page .hero-card dl {
    gap: 14px;
  }

  .section {
    padding: 44px 0;
  }

  h2 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .hero-card,
  .panel,
  .fact-card,
  .faq-item,
  .download-strip {
    border-radius: 20px;
    padding: 20px;
  }
}

@media (max-width: 380px) {
  .site-footer {
    font-size: 0.86rem;
  }
}
