/* Layout: road-sign wayfinding. Deep Kerama-blue signage on cool coral-limestone white,
   sea-glass green as the single accent. Content column ~68ch, cards only where they act as signs. */
:root {
  --bg: #f5f7f6;          /* coral limestone, cool */
  --surface: #ffffff;
  --ink: #12222e;
  --muted: #536370;
  --line: #d9e1e4;
  --sign: #0d4a73;        /* Japanese road-sign blue */
  --sign-ink: #ffffff;
  --accent: #1f8f7a;      /* sea glass */
  --accent-soft: #e2f3ef;
  --warn-soft: #fff4dc;
  --warn-ink: #6b4a00;
  --link: #0d4a73;
  --on-accent: #ffffff;

  --f-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 6vw, 3.1rem);
  --radius: 10px;
  --wrap: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1820; --surface: #13232e; --ink: #e8eef1; --muted: #9fb0ba; --line: #24394a;
    --sign: #1d6aa1; --sign-ink: #ffffff; --accent: #4cc4ab; --accent-soft: #143a35;
    --warn-soft: #3a2f12; --warn-ink: #f3d58f; --link: #8cc8ef; --on-accent: #06231e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1820; --surface: #13232e; --ink: #e8eef1; --muted: #9fb0ba; --line: #24394a;
  --sign: #1d6aa1; --sign-ink: #ffffff; --accent: #4cc4ab; --accent-soft: #143a35;
  --warn-soft: #3a2f12; --warn-ink: #f3d58f; --link: #8cc8ef; --on-accent: #06231e; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-3); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--step-2); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); font-weight: 600; }
p { margin: 0; }
.eyebrow {
  font-family: var(--f-mono); font-size: var(--step--1); text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent);
}

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 7px; background: var(--sign); color: var(--sign-ink);
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 0.95rem;
  border: 2px solid var(--sign-ink); box-shadow: 0 0 0 2px var(--sign);
}
.logo-text { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
.nav { display: flex; gap: 18px; font-size: var(--step--1); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
.nav a:hover { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  font-family: var(--f-body); font-weight: 700; font-size: var(--step-0); text-decoration: none;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface); }

/* Hero */
.hero { padding-block: 56px 40px; }
.hero .wrap { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; }
.hero-copy { display: grid; gap: 18px; min-width: 0; }
.hero-copy .lede { font-size: var(--step-1); color: var(--muted); max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.note { font-size: var(--step--1); color: var(--muted); }

/* Road sign */
.roadsign {
  background: var(--sign); color: var(--sign-ink); border-radius: 12px; padding: 18px 20px;
  border: 3px solid var(--sign-ink); box-shadow: 0 0 0 3px var(--sign), 0 14px 30px -18px rgba(0,0,0,.45);
  display: grid; gap: 4px; min-width: 0;
}
.roadsign .sign-title { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: .85; margin-bottom: 6px; }
.sign-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-block: 9px; border-top: 1px solid rgba(255,255,255,.28);
  font-family: var(--f-display); font-weight: 600; font-size: 1.1rem;
}
.sign-row:first-of-type { border-top: 0; }
.sign-row .jp { font-family: var(--f-body); font-weight: 400; font-size: 0.9rem; opacity: .85; }
.route {
  font-family: var(--f-mono); font-size: 0.8rem; font-weight: 600; border: 2px solid currentColor;
  border-radius: 6px 6px 50% 50% / 6px 6px 40% 40%; padding: 2px 7px 5px; white-space: nowrap;
}

/* Sections */
section { padding-block: 48px; }
.section-head { display: grid; gap: 8px; margin-bottom: 24px; max-width: 46rem; }
.section-head p { color: var(--muted); }
.band { background: var(--surface); border-block: 1px solid var(--line); }

.topics { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.topic {
  display: grid; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); text-decoration: none; color: var(--ink); min-width: 0;
}
a.topic:hover { border-color: var(--accent); }
.topic .status { font-family: var(--f-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
a.topic .status { color: var(--accent); }
.topic p { color: var(--muted); font-size: var(--step--1); }

.steps { display: grid; gap: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { display: grid; gap: 8px; align-content: start; min-width: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-family: var(--f-display); font-weight: 800;
}
.steps p { color: var(--muted); }
.disclosure {
  margin-top: 28px; padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft);
  font-size: var(--step--1); max-width: 46rem;
}

.feature { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.feature-copy { display: grid; gap: 14px; min-width: 0; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.checklist li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist .amt { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.checklist .total { font-weight: 700; background: var(--accent-soft); border-radius: 0 0 var(--radius) var(--radius); }
.checklist .total .amt { color: var(--ink); }

/* Form */
.contact { display: grid; gap: 32px; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.contact-copy { display: grid; gap: 14px; align-content: start; min-width: 0; }
form.card { display: grid; gap: 14px; padding: 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
label { font-weight: 700; font-size: var(--step--1); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px;
}
textarea { min-height: 120px; resize: vertical; }
.form-msg { padding: 12px 14px; border-radius: 8px; background: var(--accent-soft); font-size: var(--step--1); }

/* Article */
.article-head { padding-block: 44px 24px; }
.article-head .wrap { display: grid; gap: 14px; max-width: 48rem; }
.meta { font-family: var(--f-mono); font-size: var(--step--1); color: var(--muted); }
.article { max-width: 48rem; margin-inline: auto; padding-inline: 20px; padding-block: 8px 56px; }
.article > * + * { margin-top: 1.1em; }
.article h2 { margin-top: 2em; font-size: var(--step-2); }
.article ul { padding-left: 1.2em; }
.article li + li { margin-top: .35em; }
.toc { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: var(--surface); }
.toc ol { margin: 8px 0 0; padding-left: 1.3em; }
.callout { padding: 14px 16px; border-radius: var(--radius); background: var(--accent-soft); }
.verify { background: var(--warn-soft); color: var(--warn-ink); padding: 1px 6px; border-radius: 4px; font-family: var(--f-mono); font-size: 0.82em; }
.cta-box { display: grid; gap: 12px; padding: 22px; border-radius: 14px; background: var(--sign); color: var(--sign-ink); }
.cta-box h3, .cta-box p { color: var(--sign-ink); }
.cta-box .btn { justify-self: start; background: var(--sign-ink); color: var(--sign); }
.disclaimer { font-size: var(--step--1); color: var(--muted); font-style: italic; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: var(--step--1); color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

@media (max-width: 760px) {
  .hero .wrap, .feature, .contact, .steps, .field-row { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 32px 24px; }
  .nav { gap: 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  .roadsign { animation: rise .6s ease-out both; }
  @keyframes rise { from { transform: translateY(8px); } to { transform: none; } }
}
