:root {
  --paper: #f4efe6;
  --paper-2: #ebe4d6;
  --ink: #1b1714;
  --ink-soft: #4a433c;
  --muted: #7a7168;
  --line: #d8cfc0;
  --forest: #1f4d3a;
  --forest-deep: #16382b;
  --copper: #b85a2a;
  --copper-soft: #e8cbb8;
  --white: #fffdf8;
  --ok: #2f6b4f;
  --shadow: 0 18px 40px rgba(27, 23, 20, 0.08);
  --radius: 18px;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(184, 90, 42, 0.08), transparent 28%),
    linear-gradient(180deg, var(--paper) 0%, #efe8db 100%);
  font-family: var(--sans);
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--forest);
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 80;
  background: var(--white);
  padding: 8px 12px;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(244, 239, 230, 0.88);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 38px;
  height: 38px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-name span {
  color: var(--copper);
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--forest);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 20px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--forest);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--forest-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  font: inherit;
  color: var(--ink);
}

.hero,
.page-hero,
.article-hero {
  padding: 64px 0 32px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--copper);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero h1,
.page-hero h1,
.article-hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin: 14px 0 18px;
  font-size: clamp(2.3rem, 6vw, 4.6rem);
}

.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 680px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-card,
.panel,
.tip,
.faq-item,
.form-card,
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
}

.hero-card h2 {
  font-family: var(--serif);
  margin: 0 0 12px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}

.stat {
  padding: 14px;
  border-radius: 14px;
  background: var(--paper-2);
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.5rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

.section {
  padding: 28px 0 64px;
}

.section h2,
.article-body h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.grid-3,
.grid-2,
.drawer-grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2,
.drawer-grid {
  grid-template-columns: 1fr 1fr;
}

.panel,
.tip,
.team-card {
  padding: 24px;
}

.panel h3,
.tip h3,
.team-card h3 {
  font-family: var(--serif);
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.num {
  color: var(--copper);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.drawer {
  padding: 26px;
  border-radius: var(--radius);
  color: var(--white);
  min-height: 220px;
}

.drawer h3 {
  font-family: var(--serif);
  margin: 10px 0;
  font-size: 1.7rem;
}

.d1 { background: #1f4d3a; }
.d2 { background: #245c63; }
.d3 { background: #8a3b1d; }
.d4 { background: #3d2e25; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  position: relative;
  padding: 10px 0 10px 32px;
  border-bottom: 1px solid var(--line);
}

.checklist li::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid var(--forest);
  border-radius: 4px;
  position: absolute;
  left: 0;
  top: 14px;
}

.quote {
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1.3;
  margin: 28px 0;
  padding-left: 20px;
  border-left: 3px solid var(--copper);
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 96px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.toc a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 6px 0;
  font-size: 0.92rem;
}

.article-body p,
.article-body li {
  font-size: 1.05rem;
}

.article-body h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin-top: 32px;
}

.faq-item {
  margin-bottom: 12px;
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 650;
  padding: 18px 20px;
  cursor: pointer;
}

.faq-item .faq-body {
  display: none;
  padding: 0 20px 18px;
  color: var(--ink-soft);
}

.faq-item.open .faq-body {
  display: block;
}

.cta-band {
  background: var(--forest-deep);
  color: var(--white);
  border-radius: 28px;
  padding: 42px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.cta-band h2 {
  color: var(--white);
}

.form {
  display: grid;
  gap: 12px;
}

input, textarea, select {
  width: 100%;
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}

.site-footer h2,
.site-footer h3 {
  font-family: var(--serif);
  margin: 0 0 10px;
}

.site-footer a {
  display: block;
  text-decoration: none;
  color: var(--ink-soft);
  margin: 6px 0;
}

.site-footer address {
  font-style: normal;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

.site-footer address strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.colophon {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: none;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: var(--ink);
  color: var(--white);
  padding: 16px 18px;
  border-radius: 16px;
}

.cookie p {
  margin: 0;
  max-width: 720px;
}

.cookie a {
  color: var(--copper-soft);
}

.cookie.show {
  display: flex;
}

.crumbs {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.alert {
  display: none;
  padding: 12px 14px;
  border-radius: 12px;
  background: #e5f2ea;
  color: var(--ok);
}

.alert.show {
  display: block;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 20px;
    gap: 14px;
  }

  nav.open {
    display: flex;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .drawer-grid,
  .article-layout,
  .cta-band,
  .footer-grid,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }

  .cookie {
    flex-direction: column;
    align-items: flex-start;
  }
}
