@font-face { font-family: 'Fraunces'; src: url('/fonts/Fraunces.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('/fonts/FiraSans-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('/fonts/FiraSans-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f2eee3;
  --paper-light: #fbf8f1;
  --ink: #211f1a;
  --muted: #6e6758;
  --line: #d8d0bf;
  --pine: #1f5141;
  --pine-dark: #163b30;
  --pine-wash: #e3ece5;
  --display: 'Fraunces', Georgia, serif;
  --sans: 'Fira Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; text-rendering: optimizeLegibility; }
a { color: inherit; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 9px 13px; color: #fff; background: var(--pine-dark); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.topbar { position: sticky; z-index: 30; top: 0; border-bottom: 1px solid rgba(33, 31, 26, .12); background: rgba(242, 238, 227, .92); backdrop-filter: blur(16px); }
.topbar__inner { min-height: 68px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 600 1.35rem var(--display); text-decoration: none; }
.brand__mark { width: 34px; height: 34px; display: grid; place-items: center; color: var(--paper-light); background: var(--pine); border-radius: 9px; }
.brand__mark svg { width: 21px; }
.topbar__nav { display: flex; gap: 25px; margin-left: 18px; }
.topbar__nav a, .login { color: #4d4a40; font-size: .9rem; font-weight: 600; text-decoration: none; }
.topbar__nav a:hover, .topbar__nav a[aria-current='page'], .login:hover { color: var(--pine); }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 17px; }

.button { display: inline-flex; align-items: center; justify-content: center; padding: 13px 21px; border: 1px solid var(--pine); border-radius: 9px; color: #fff; background: var(--pine); font-weight: 600; line-height: 1; text-decoration: none; transition: .18s ease; }
.button:hover { color: #fff; background: var(--pine-dark); border-color: var(--pine-dark); transform: translateY(-1px); }
.button--small { padding: 10px 16px; font-size: .88rem; }
.button--ghost { color: var(--ink); background: transparent; border-color: #bcb39f; }
.button--ghost:hover { color: var(--ink); background: rgba(255, 255, 255, .38); border-color: var(--ink); }

.hero { padding: 38px 0 clamp(70px, 9vw, 110px); overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 82% 18%, rgba(31, 81, 65, .17), transparent 25rem), linear-gradient(180deg, rgba(251, 248, 241, .62), transparent); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(42px, 7vw, 76px); color: var(--muted); font-size: .82rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--pine); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(310px, .65fr); gap: clamp(40px, 7vw, 90px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--pine); font-size: .75rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; }
h1 { max-width: 850px; margin: 19px 0 22px; font-size: clamp(2.7rem, 6.8vw, 5.25rem); }
.hero__lead { max-width: 690px; margin: 0; color: var(--muted); font-size: clamp(1.06rem, 2vw, 1.3rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.summary { padding: clamp(25px, 4vw, 38px); border: 1px solid #bfcbbf; border-radius: 22px; background: rgba(251, 248, 241, .82); box-shadow: 0 22px 60px rgba(29, 55, 44, .1); }
.summary__label { display: block; margin-bottom: 18px; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.summary ul, .check-list { margin: 0; padding: 0; list-style: none; }
.summary li { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-weight: 600; }
.summary i, .check-list i { color: var(--pine); font-style: normal; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(50px, 8vw, 100px); padding-block: clamp(72px, 10vw, 125px); }
.article section { scroll-margin-top: 100px; padding-bottom: clamp(52px, 7vw, 78px); }
.article section + section { padding-top: clamp(52px, 7vw, 78px); border-top: 1px solid var(--line); }
.section-number { color: #769080; font-size: .75rem; font-weight: 600; letter-spacing: .15em; }
.article h2 { max-width: 720px; margin: 13px 0 23px; font-size: clamp(2rem, 4.5vw, 3.25rem); }
.article p { max-width: 760px; margin: 0 0 18px; color: #514d42; font-size: 1.04rem; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-top: 28px; }
.check-list li { display: flex; gap: 10px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .36); font-weight: 600; }
.side { align-self: start; }
.toc { position: sticky; top: 94px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: rgba(251, 248, 241, .58); }
.toc strong { display: block; margin-bottom: 12px; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.toc a { display: block; padding: 8px 0; color: var(--muted); font-size: .9rem; text-decoration: none; }
.toc a:hover { color: var(--pine); }
.side-cta { margin-top: 20px; padding: 25px; color: #eef4ef; background: var(--pine); border-radius: 16px; }
.side-cta strong { font: 600 1.25rem var(--display); }
.side-cta p { margin: 10px 0 19px; color: #cbd9d1; font-size: .9rem; }
.side-cta .button { width: 100%; color: var(--pine-dark); background: var(--paper-light); border-color: var(--paper-light); }

.faq-section { padding-block: clamp(72px, 10vw, 115px); color: #f3efe5; background: var(--pine-dark); }
.faq-grid { display: grid; grid-template-columns: minmax(260px, .7fr) minmax(0, 1fr); gap: clamp(45px, 8vw, 100px); }
.faq-section .eyebrow { color: #a8c7b5; }
.faq-section h2 { max-width: 520px; margin: 17px 0 0; color: #f3efe5; font-size: clamp(2.2rem, 4.8vw, 3.7rem); }
.faq { border-top: 1px solid rgba(243, 239, 229, .24); }
.faq details { border-bottom: 1px solid rgba(243, 239, 229, .24); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; cursor: pointer; font: 600 1.13rem var(--display); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { color: #a8c7b5; font: 400 1.3rem var(--sans); }
.faq details[open] summary span { transform: rotate(45deg); }
.faq p { margin: -5px 0 24px; color: #cbd9d1; }

.related { padding-block: clamp(72px, 10vw, 115px); }
.related__head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 38px; }
.related__head h2 { margin: 14px 0 0; font-size: clamp(2rem, 4vw, 3rem); }
.related__head > a { color: var(--pine); font-weight: 600; }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card { display: flex; flex-direction: column; min-height: 310px; padding: 27px; border: 1px solid var(--line); border-radius: 16px; background: rgba(251, 248, 241, .58); text-decoration: none; transition: .18s ease; }
.related-card:hover { border-color: #91a898; transform: translateY(-3px); box-shadow: 0 18px 44px rgba(35, 56, 47, .08); }
.related-card > span { color: var(--pine); font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.related-card h3 { margin: 17px 0 13px; font-size: 1.55rem; }
.related-card p { margin: 0 0 22px; color: var(--muted); font-size: .92rem; }
.related-card strong { margin-top: auto; color: var(--pine); }

.not-found { min-height: 65vh; padding-block: 110px; }
.not-found h1 { max-width: 800px; }
.not-found p { margin-bottom: 30px; color: var(--muted); font-size: 1.1rem; }
.footer { padding: 64px 0 28px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 42px; }
.footer__grid p { max-width: 350px; color: var(--muted); font-size: .9rem; }
.footer__grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 10px; }
.footer__grid strong { margin-bottom: 4px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.footer__grid > div:not(:first-child) a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.footer__grid a:hover { color: var(--pine); }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 23px; border-top: 1px solid var(--line); color: #8a8272; font-size: .78rem; }

@media (max-width: 920px) {
  .topbar__nav { display: none; }
  .hero__grid, .content-grid, .faq-grid { grid-template-columns: 1fr; }
  .summary { max-width: 620px; }
  .side { display: none; }
  .related__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 30px, 1180px); }
  .topbar__inner { min-height: 62px; }
  .topbar__actions .login { display: none; }
  .button--small { padding: 9px 12px; font-size: .78rem; }
  .breadcrumbs { margin-bottom: 40px; }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .check-list, .related__grid, .footer__grid { grid-template-columns: 1fr; }
  .related__head { align-items: start; flex-direction: column; }
  .related-card { min-height: 250px; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
