:root {
  --cream: #fff8ee;
  --paper: #ffffff;
  --ink: #263238;
  --muted: #60717a;
  --line: #eadfd1;
  --coral: #f27c5f;
  --coral-dark: #c9543f;
  --teal: #2a9bb8;
  --mint: #dff5ed;
  --gold: #f6c96b;
  --shadow: 0 18px 45px rgba(52, 40, 29, .12);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
a { color: var(--coral-dark); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: #8a321f; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 10px; background: #fff; color: #000; padding: 10px 14px; border-radius: 10px; z-index: 9999; }
.skip-link:focus { left: 10px; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,248,238,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.site-header__inner { width: min(1180px, calc(100% - 28px)); margin: 0 auto; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand__mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 15px; background: var(--mint); box-shadow: inset 0 0 0 1px rgba(42,155,184,.22); }
.brand__text { display: grid; gap: 0; }
.brand__name { font-weight: 850; font-size: 1.3rem; letter-spacing: -.03em; }
.brand__tagline { color: var(--muted); font-size: .78rem; }
.menu-toggle { display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; background: var(--ink); color: white; padding: 12px 16px; font: inherit; font-weight: 800; cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars:before, .menu-toggle__bars:after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 999px; content: ""; }
.menu-toggle__bars:before { transform: translateY(-6px); }
.menu-toggle__bars:after { transform: translateY(4px); }
.mobile-drawer { position: fixed; inset: 0; top: 0; height: 100vh; height: 100dvh; z-index: 3000; display: none; }
.mobile-drawer.is-open { display: block; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(38,50,56,.46); }
.drawer-panel { position: fixed; top: 0; right: 0; width: min(390px, 92vw); height: 100vh; height: 100dvh; overflow-y: auto; background: #fff; box-shadow: -24px 0 60px rgba(38,50,56,.25); padding: 72px 24px 28px; display: grid; align-content: start; gap: 8px; }
.drawer-panel a { display: block; padding: 14px 16px; border-radius: 16px; color: var(--ink); text-decoration: none; font-weight: 800; background: #fff8ee; border: 1px solid var(--line); }
.drawer-panel a:hover { background: var(--mint); }
.drawer-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--ink); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; }
html.menu-open, body.menu-open { overflow: hidden; overscroll-behavior: none; }
.hero { background: radial-gradient(circle at top left, rgba(242,124,95,.22), transparent 34%), radial-gradient(circle at 85% 15%, rgba(42,155,184,.18), transparent 28%), linear-gradient(135deg, #fff8ee 0%, #fff 58%, #f9ede3 100%); border-bottom: 1px solid var(--line); }
.hero__inner { padding: 32px 0 46px; }
.hero__content { max-width: 820px; }
.eyebrow { margin: 0 0 10px; color: var(--coral-dark); font-weight: 850; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
h1 { margin: 0; font-size: clamp(2.15rem, 5vw, 4.2rem); line-height: .98; letter-spacing: -.055em; max-width: 900px; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); line-height: 1.08; letter-spacing: -.035em; margin: 0 0 14px; }
h3 { font-size: 1.25rem; line-height: 1.2; margin: 0 0 8px; }
p { margin: 0 0 1rem; }
.hero p:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: 1.15rem; margin-top: 16px; }
.breadcrumbs { margin-bottom: 28px; font-size: .9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.breadcrumbs li:after { content: "/"; color: #b59682; margin-left: 8px; }
.breadcrumbs li:last-child:after { content: ""; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.content-wrap { padding: 42px 0 62px; }
.content-section, .calculator-card, .notice-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 34px); margin-bottom: 26px; }
.notice-card { background: linear-gradient(135deg, #fff, var(--mint)); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: #fffaf3; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.card strong { display: block; font-size: 1.1rem; margin-bottom: 6px; }
.calculator-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr); gap: 28px; align-items: stretch; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field span { display: block; font-weight: 850; margin-bottom: 7px; }
select, input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff; color: var(--ink); }
.button, button.button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: 13px 18px; background: var(--coral); color: #fff; font-weight: 850; text-decoration: none; cursor: pointer; box-shadow: 0 10px 24px rgba(242,124,95,.26); }
.button:hover { color: #fff; background: var(--coral-dark); }
.calculator-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.result-box { min-height: 100%; border-radius: 22px; background: linear-gradient(145deg, var(--ink), #35474e); color: #fff; padding: 26px; display: grid; align-content: center; gap: 12px; }
.result-box small { color: #d5e2e5; text-transform: uppercase; letter-spacing: .12em; font-weight: 850; }
.result-box .result-age { font-size: clamp(2.5rem, 6vw, 4.4rem); font-weight: 900; letter-spacing: -.06em; line-height: 1; }
.result-box .result-stage { color: #ffe9a8; font-weight: 850; }
.result-box a { color: #fff; }
.chart-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #fff4e8; font-weight: 900; }
tr:last-child td { border-bottom: 0; }
.age-link-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.age-link { display: block; padding: 14px 16px; border-radius: 16px; background: #fffaf3; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 850; }
.age-link span { display: block; color: var(--muted); font-weight: 600; font-size: .9rem; }
.age-link:hover { background: var(--mint); color: var(--ink); }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related-card { display: grid; gap: 6px; padding: 18px; border-radius: 18px; background: #fffaf3; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.related-card span { color: var(--muted); }
.faq-item { border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-top: 12px; background: #fffaf3; }
.faq-item summary { cursor: pointer; font-weight: 850; }
.faq-item p { margin-top: 12px; color: var(--muted); }
.callout { border-left: 5px solid var(--teal); background: #f1fbfd; padding: 18px; border-radius: 16px; }
.site-footer { background: #203038; color: #eef8fa; padding: 40px 0; }
.site-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: start; }
.site-footer h2 { margin: 0 0 8px; }
.site-footer p { color: #bcd0d6; max-width: 620px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #fff; text-decoration: none; }
.source-list li { margin-bottom: 10px; }
@media (max-width: 860px) {
  .calculator-card, .grid-2, .grid-3, .site-footer__inner { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .age-link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .brand__name { font-size: 1rem; }
  .brand__tagline { display: none; }
  .site-header__inner { min-height: 66px; }
  .menu-toggle__text { display: none; }
  .form-grid, .age-link-grid { grid-template-columns: 1fr; }
  .drawer-panel { width: 94vw; }
}
