:root {
  --bg: #e3eee7;
  --bg-deep: #d3e4db;
  --sidebar: #10241c;
  --card: #f7fbf8;
  --accent: #0c6e49;
  --accent-deep: #084e34;
  --accent-soft: #c9eadb;
  --ink: #0c1a14;
  --ink-2: #1b3128;
  --line: #8eaea0;
  --warn: #8a4b08;
  --warn-bg: #fff4e4;
  --radius: 14px;
  --sidebar-w: 248px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", Candara, Calibri, "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background:
    radial-gradient(ellipse 70% 50% at 0% 0%, #f6e4b8 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 100% 8%, #7dceb0 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 100%, #e7d08a 0%, transparent 46%),
    linear-gradient(155deg, #f4faf6 0%, #d5ebe2 40%, #c3ddd0 68%, #e7f3ea 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.7;
  font-weight: 400;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent-deep); }
a:hover { color: #063d28; }

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(188deg, #246049 0%, #10281f 46%, #1b4634 100%);
  color: #f4faf6;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 22px 16px 18px;
  z-index: 40;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,.16);
}
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #d7b15a;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.brand-name span {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d7ecdf;
}

.nav-group-title {
  margin: 16px 8px 6px;
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #b7d2c4;
}
.nav-item {
  display: block;
  margin: 2px 0;
  padding: 10px 12px;
  border-radius: 9px;
  color: #e7f5ee;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active {
  background: linear-gradient(90deg, #1d6a4c, #14382c);
  color: #fff;
  box-shadow: inset 3px 0 0 #e2c36a;
}

.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: 0.95rem;
  line-height: 1.45;
  color: #d5ebe0;
}
.sidebar-foot a { color: #b7f0d4; font-weight: 650; }

.menu-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 50;
  border: 0;
  background: linear-gradient(180deg, #1d6a4c, #10281f);
  color: #fff;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 14, .46);
  z-index: 30;
}

.main {
  margin-left: var(--sidebar-w);
  flex: 1;
  min-width: 0;
  padding: 42px 28px 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.main > * { width: min(1040px, 100%); }

.kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
h1 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(2.45rem, 4.4vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 em {
  font-style: italic;
  font-weight: 560;
  color: var(--accent-deep);
}
h2 {
  margin: 2.4rem 0 0.7rem;
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h3 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 650;
  line-height: 1.25;
}
.lead {
  max-width: 46rem;
  margin: 0 auto 1rem;
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--ink);
}
.prose { max-width: 48rem; margin-left: auto; margin-right: auto; }
.prose p,
.card p,
.op-card p { margin: 0 0 0.9rem; }
.prose p:last-child,
.op-card p:last-child { margin-bottom: 0; }
.prose ul,
.prose ol { margin: 0.4rem auto 1.1rem; padding-left: 1.3rem; text-align: left; display: inline-block; }
.prose li { margin: 0 0 0.7rem; }
.prose li strong { color: var(--ink); }

.notice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: flex-start;
  background: linear-gradient(100deg, #fff8ec 0%, #ffe3b4 100%);
  border: 1px solid #e2b56a;
  border-left: 6px solid #c47a12;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 18px 0 26px;
  color: #3d2808;
  font-size: 1.02rem;
  line-height: 1.55;
}
.notice strong { color: var(--warn); }
.age-pill {
  display: inline-block;
  background: #fff;
  border: 1px solid #e2b56a;
  color: var(--warn);
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
  margin-right: 6px;
}

.hero-figure { margin: 8px auto 28px; max-width: 920px; }
.hero-figure img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  border: 1px solid var(--line);
}
.hero-figure figcaption {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.45;
  color: var(--ink-2);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 8px 0 10px;
}
.stat {
  background: linear-gradient(180deg, rgba(255,255,255,.96) 0%, rgba(226,242,233,.94) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2.35rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-deep);
  margin-bottom: 8px;
}
.stat span {
  display: block;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  font-weight: 600;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  margin-top: 14px;
}
.card {
  background: linear-gradient(165deg, rgba(255,255,255,.96) 0%, rgba(223,240,230,.94) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
}
.card h2 { margin-top: 0; }

.op-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.op-card {
  background: linear-gradient(168deg, rgba(255,255,255,.97) 0%, rgba(220,239,228,.95) 55%, rgba(244,232,196,.55) 100%);
  border: 1px solid var(--line);
  border-top: 4px solid #c6a15a;
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #d7b15a;
  box-shadow: 0 8px 16px rgba(16, 40, 30, .16);
}
.stat .card-icon,
.card .card-icon,
.help-link .card-icon { display: block; margin: 0 auto 10px; }
.op-card header { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: left; }
.op-card header div { flex: 1; min-width: 0; }
.op-license {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-deep);
  letter-spacing: 0.01em;
}
.op-score {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1;
}
.op-score small {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 2px;
}
.op-card p { font-size: 1.05rem; line-height: 1.62; color: var(--ink); }
.op-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 9px;
  text-decoration: none;
  font-weight: 750;
  font-size: 1rem;
}
.btn-primary { background: linear-gradient(180deg, #14915f 0%, #0b6846 100%); color: #fff; }
.btn-primary:hover { background: linear-gradient(180deg, #0e7a50 0%, #084e34 100%); color: #fff; }
.btn-quiet {
  background: linear-gradient(180deg, #e7f7ef 0%, #c5e6d6 100%);
  color: var(--accent-deep);
}
.btn-quiet:hover { background: #b5e0cc; color: var(--accent-deep); }

.help-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 14px 0 8px;
}
.help-link {
  display: block;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(226,242,233,.94));
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: var(--ink);
}
.help-link:hover { border-color: var(--accent); }
.help-link strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--accent-deep);
  margin-bottom: 4px;
}
.help-link span { font-size: 1.02rem; line-height: 1.5; color: var(--ink); }

.quote {
  margin: 1.4rem auto;
  padding: 14px 8px 0;
  border-top: 4px solid #c6a15a;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--ink);
  max-width: 42rem;
}

.site-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: 52rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
}
.site-footer p { margin: 0 auto 0.75rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 8px auto 12px; justify-content: center; }
.footer-links a { font-weight: 750; }

@media (max-width: 1100px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .op-grid, .split, .help-links { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .sidebar { transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.open { transform: none; }
  .overlay.open { display: block; }
  .main { margin-left: 0; padding: 72px 18px 48px; }
  body { font-size: 18px; }
  .stat-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sidebar { transition: none; }
}
