:root {
  --ink: #172522;
  --muted: #5e6b67;
  --paper: #f7f4ed;
  --card: #fffdf8;
  --line: #dcd8ce;
  --accent: #246a5b;
  --accent-dark: #174a3f;
  --sun: #e9b96e;
  --soft: #dfece7;
  --shadow: 0 22px 60px rgba(29, 50, 44, .11);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 8% 0%, rgba(233,185,110,.2), transparent 28rem), var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.72;
}
button { font: inherit; cursor: pointer; }
a { color: var(--accent-dark); }
.wrap { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247,244,237,.9); border-bottom: 1px solid rgba(220,216,206,.7); backdrop-filter: blur(14px); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { width: 36px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 11px; color: white; background: var(--accent); font: 20px Georgia, serif; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: .91rem; font-weight: 700; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-cta { padding: 9px 15px; border: 1px solid var(--ink); border-radius: 999px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-size: 1.25rem; }

.breadcrumbs { padding: 26px 0 0; color: var(--muted); font-size: .82rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs span { margin: 0 8px; }
.article-hero { padding: 70px 0 55px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: .76rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.03em; }
h1 { max-width: 860px; margin: 0 0 22px; font: 500 clamp(2.9rem, 7vw, 5.4rem)/1.04 Georgia, serif; }
.dek { max-width: 760px; margin: 0 0 24px; color: var(--muted); font-size: 1.12rem; }
.byline { color: var(--muted); font-size: .82rem; }

.article-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: 70px; align-items: start; padding-bottom: 100px; }
.toc { position: sticky; top: 108px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.5); }
.toc strong { display: block; margin-bottom: 10px; font-size: .79rem; letter-spacing: .08em; text-transform: uppercase; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: .84rem; }
.toc a:hover { color: var(--accent); }
.article { min-width: 0; }
.article h2 { margin: 52px 0 16px; font: 500 clamp(2rem, 4vw, 3rem)/1.14 Georgia, serif; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 31px 0 10px; font-size: 1.22rem; }
.article p { margin: 0 0 18px; color: #3f4d49; }
.article ul, .article ol { margin: 0 0 22px; padding-left: 24px; color: #3f4d49; }
.article li { margin-bottom: 9px; }
.note { margin: 28px 0; padding: 20px 22px; border-left: 3px solid var(--sun); background: rgba(255,255,255,.58); color: var(--muted); }
.name-table { width: 100%; margin: 24px 0 30px; border-collapse: collapse; border: 1px solid var(--line); background: var(--card); }
.name-table th, .name-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.name-table th { color: var(--accent-dark); background: var(--soft); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; }
.name-table td:first-child { font-family: Georgia, serif; font-size: 1.08rem; }
.checklist { padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.related { margin-top: 60px; padding-top: 35px; border-top: 1px solid var(--line); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.related a { padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); text-decoration: none; font-weight: 750; }
.related a:hover { border-color: var(--accent); }

.simple-main { padding: 75px 0 100px; }
.simple-main h1 { font-size: clamp(2.8rem, 7vw, 5rem); }
.simple-content { max-width: 760px; }
.simple-content h2 { margin: 44px 0 14px; font: 500 2rem/1.2 Georgia, serif; }
.simple-content h3 { margin: 28px 0 10px; }
.simple-content p, .simple-content li { color: #3f4d49; }
.contact-card { margin-top: 32px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }

footer { padding: 48px 0; border-top: 1px solid var(--line); }
.footer-links { display: flex; flex-wrap: wrap; gap: 13px 22px; margin-bottom: 24px; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: .82rem; font-weight: 700; }
.footer-links a:hover { color: var(--accent); }
.footer-row { display: flex; justify-content: space-between; gap: 30px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.footer-row p { margin: 0; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links { display: none; position: absolute; top: 72px; right: 20px; left: 20px; align-items: stretch; gap: 5px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 11px 12px; border-radius: 10px; }
  .nav-cta { border-radius: 10px; text-align: center; }
  .article-layout { grid-template-columns: 1fr; gap: 35px; }
  .toc { position: static; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .wrap { width: min(100% - 24px, 1080px); }
  .article-hero { padding: 52px 0 42px; }
  .article-layout { padding-bottom: 72px; }
  .name-table { display: block; overflow-x: auto; }
  .footer-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
