@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-normal-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 500 650;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/fraunces-italic-latin.woff2") format("woff2");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --paper: #faf3e6;
  --paper-deep: #f1e6cf;
  --paper-soft: #fff9ed;
  --pine-950: #0e271c;
  --pine-900: #153828;
  --pine: #1d4a36;
  --pine-soft: #dfe7d8;
  --ink: #17251d;
  --ink-soft: #536257;
  --coral: #dd7250;
  --coral-deep: #b34d2c;
  --coral-ink: #8f3300;
  --coral-soft: #fae3d7;
  --sun: #edaa3a;
  --line: rgba(29, 74, 54, 0.18);
  --line-strong: rgba(29, 74, 54, 0.34);
  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-serif: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 14% 8%, rgba(221, 114, 80, 0.07) 0 2px, transparent 3px),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--pine-950);
  color: var(--paper-soft);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 243, 230, 0.96);
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 32px;
}

.brand {
  width: 198px;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.primary-nav a,
.footer-nav a {
  color: var(--pine-900);
  font-size: 0.92rem;
  font-weight: 750;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"],
.footer-nav a:hover {
  color: var(--coral-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.header-action {
  justify-self: end;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--coral-deep);
  border-radius: 4px;
  background: var(--coral-deep);
  color: #fffaf1;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.header-action:hover {
  background: var(--pine-950);
  border-color: var(--pine-950);
}

.resource-hero {
  position: relative;
  overflow: clip;
  border-bottom: 1px solid var(--line);
}

.resource-hero::before,
.resource-hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  border: 1px dashed rgba(29, 74, 54, 0.24);
  border-radius: 50%;
  pointer-events: none;
}

.resource-hero::before {
  width: 760px;
  height: 280px;
  top: 54px;
  left: -250px;
  transform: rotate(8deg);
}

.resource-hero::after {
  width: 620px;
  height: 220px;
  right: -240px;
  bottom: -90px;
  transform: rotate(-7deg);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(480px, 1.05fr);
  align-items: center;
  gap: clamp(44px, 7vw, 104px);
  padding-block: 72px;
}

.hero-copy h1,
.article-header h1 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 6.8vw, 6.7rem);
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: 0;
}

.hero-copy h1 em,
.article-header h1 em {
  color: var(--coral-deep);
  font-weight: 500;
}

.hero-copy > p {
  max-width: 590px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.55;
}

.hero-art {
  position: relative;
  margin: 0;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: -14px 18px 18px -14px;
  border: 1px solid var(--line-strong);
  pointer-events: none;
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-art figcaption {
  position: absolute;
  z-index: 2;
  right: -1px;
  bottom: -1px;
  max-width: 300px;
  padding: 13px 16px;
  background: var(--paper-soft);
  color: var(--pine-900);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.35;
}

.section {
  padding-block: clamp(72px, 9vw, 126px);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 4.7rem);
  font-weight: 600;
  line-height: 0.98;
}

.section-heading p {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.65;
}

.featured-guide {
  display: grid;
  grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.14fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.featured-guide figure {
  min-height: 430px;
  margin: 0;
  overflow: hidden;
}

.featured-guide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 80px);
}

.topic {
  display: block;
  margin-bottom: 16px;
  color: var(--coral-ink);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.featured-copy h2,
.guide-row h2,
.related-item h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.05;
}

.featured-copy h2 {
  max-width: 13ch;
  font-size: clamp(2.4rem, 4.4vw, 4.4rem);
}

.featured-copy p {
  max-width: 630px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: 1.08rem;
  line-height: 1.62;
}

.read-link {
  align-self: flex-start;
  margin-top: 30px;
  color: var(--coral-ink);
  font-weight: 850;
  text-underline-offset: 5px;
}

.guide-list {
  border-top: 1px solid var(--line-strong);
}

.guide-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(190px, 0.5fr) 118px;
  align-items: center;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.guide-row:hover h2 {
  color: var(--coral-ink);
}

.guide-row h2 {
  font-size: clamp(1.75rem, 2.5vw, 2.6rem);
}

.guide-row p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.read-time {
  justify-self: end;
  color: var(--pine);
  font-size: 0.86rem;
  font-weight: 750;
}

.resource-cta {
  background: var(--pine-950);
  color: var(--paper-soft);
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 60px;
}

.cta-grid h2 {
  max-width: 12ch;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 5.3vw, 5.7rem);
  font-weight: 600;
  line-height: 0.96;
}

.cta-copy p {
  margin: 0 0 24px;
  color: rgba(255, 249, 237, 0.76);
  font-size: 1.05rem;
  line-height: 1.6;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--coral);
  border-radius: 4px;
  background: var(--coral);
  color: var(--pine-950);
  font-weight: 850;
  text-decoration: none;
}

.cta-link:hover {
  background: var(--paper-soft);
  border-color: var(--paper-soft);
}

.article-header {
  padding: clamp(68px, 9vw, 126px) 0 62px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.breadcrumbs a {
  text-underline-offset: 4px;
}

.breadcrumbs span[aria-hidden="true"] {
  color: var(--coral-deep);
}

.article-header h1 {
  max-width: 14ch;
  font-size: clamp(3.25rem, 7vw, 7rem);
}

.article-deck {
  max-width: 790px;
  margin: 28px 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.16rem, 2vw, 1.45rem);
  line-height: 1.58;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  color: var(--pine);
  font-size: 0.88rem;
  font-weight: 750;
}

.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px) minmax(190px, 1fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: start;
  padding-block: clamp(60px, 8vw, 104px);
}

.article-toc {
  position: sticky;
  top: 28px;
  padding-top: 12px;
  border-top: 3px solid var(--coral);
}

.article-toc strong {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-toc a {
  display: block;
  padding: 8px 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--coral-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.prose {
  min-width: 0;
  font-size: 1.09rem;
  line-height: 1.74;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  scroll-margin-top: 30px;
  margin: 70px 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(2.15rem, 4vw, 3.35rem);
  font-weight: 600;
  line-height: 1.05;
}

.prose h3 {
  margin: 36px 0 14px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.2;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 24px;
}

.prose li + li {
  margin-top: 12px;
}

.prose a {
  color: var(--coral-ink);
  font-weight: 700;
  text-underline-offset: 4px;
}

.answer-first {
  margin: 0 0 50px;
  padding: 28px 30px;
  border-left: 5px solid var(--coral);
  background: var(--paper-soft);
}

.answer-first strong {
  display: block;
  margin-bottom: 10px;
  color: var(--coral-ink);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-first p {
  margin: 0;
  color: var(--pine-900);
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  line-height: 1.4;
}

.article-figure {
  margin: 42px 0;
}

.article-figure img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-figure figcaption {
  padding-top: 10px;
  color: var(--ink-soft);
  font-size: 0.84rem;
  line-height: 1.45;
}

.checklist {
  margin: 32px 0 42px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.checklist li {
  position: relative;
  margin: 0;
  padding: 18px 0 18px 38px;
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 23px;
  left: 3px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--coral-deep);
}

.note {
  margin: 38px 0;
  padding: 24px;
  border: 1px solid var(--line-strong);
  background: rgba(223, 231, 216, 0.38);
}

.note strong {
  color: var(--pine-900);
}

.article-aside {
  padding: 22px 0 0;
  border-top: 1px solid var(--line-strong);
}

.article-aside strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.article-aside p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.55;
}

.article-aside a {
  display: inline-block;
  margin-top: 18px;
  color: var(--coral-ink);
  font-weight: 800;
  text-underline-offset: 4px;
}

.source-list {
  font-size: 0.96rem;
}

.related {
  border-top: 1px solid var(--line-strong);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.related-item {
  display: block;
  min-height: 240px;
  padding: 34px;
  border-right: 1px solid var(--line);
  text-decoration: none;
}

.related-item:last-child {
  border-right: 0;
}

.related-item h2 {
  max-width: 15ch;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.related-item p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.related-item:hover h2 {
  color: var(--coral-ink);
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(255, 249, 237, 0.16);
  background: var(--pine-950);
  color: var(--paper-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(0, 1.2fr);
  gap: 50px;
  align-items: start;
}

.footer-brand {
  width: 210px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px 28px;
}

.footer-nav a {
  color: rgba(255, 249, 237, 0.8);
}

.footer-boundary {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 249, 237, 0.14);
  color: rgba(255, 249, 237, 0.68);
  font-size: 0.88rem;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-bottom: 18px;
    overflow-x: auto;
  }

  .hero-grid {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 54px;
    padding-block: 62px 76px;
  }

  .hero-copy h1 {
    max-width: 11ch;
  }

  .hero-art {
    width: min(100%, 760px);
  }

  .guide-row {
    grid-template-columns: 120px minmax(0, 1fr) 100px;
  }

  .guide-row p {
    grid-column: 2 / -1;
  }

  .article-layout {
    grid-template-columns: minmax(0, 760px) minmax(180px, 0.45fr);
  }

  .article-toc {
    display: none;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(100% - 32px, 1320px);
  }

  .header-inner {
    min-height: 72px;
    gap: 12px;
  }

  .brand {
    width: 164px;
  }

  .header-action {
    min-height: 42px;
    padding-inline: 13px;
    font-size: 0.82rem;
  }

  .primary-nav {
    gap: 22px;
  }

  .hero-grid {
    padding-top: 48px;
  }

  .article-header {
    padding: 46px 0 40px;
  }

  .article-layout {
    padding-block: 44px 68px;
  }

  .hero-copy h1,
  .article-header h1 {
    font-size: clamp(3rem, 14.5vw, 4.75rem);
  }

  .hero-art::before {
    inset: -8px 8px 10px -8px;
  }

  .featured-guide {
    grid-template-columns: 1fr;
  }

  .featured-guide figure {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .featured-copy {
    padding: 34px 0;
  }

  .guide-row {
    grid-template-columns: 1fr auto;
    gap: 12px 18px;
  }

  .guide-row .topic {
    grid-column: 1;
    margin: 0;
  }

  .guide-row h2,
  .guide-row p {
    grid-column: 1 / -1;
  }

  .guide-row .read-time {
    grid-column: 2;
    grid-row: 1;
  }

  .cta-grid,
  .article-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-layout {
    gap: 46px;
  }

  .article-aside {
    max-width: 420px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-item {
    min-height: 0;
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

@media (max-width: 440px) {
  .header-action {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr;
  }

  .primary-nav {
    grid-column: 1;
  }

  .hero-art figcaption {
    position: static;
    max-width: none;
  }

  .article-meta {
    display: grid;
  }

  .answer-first {
    padding: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 14px 0 0;
  color: rgba(255, 249, 237, 0.62);
  font-size: 0.82rem;
  line-height: 1.5;
}
.footer-legal a {
  color: rgba(255, 249, 237, 0.88);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
