:root {
  --bg: #FFFFFF; --panel: #F4F8F9; --disc: #E3EEF0; --text: #13233A; --muted: #4A5A6E;
  --accent: #0E7C86; --line: #D6E2E5;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1726; --panel: #15223A; --disc: #1C3340; --text: #EEF3F6; --muted: #A9B6C4;
    --accent: #3FB8C2; --line: #253650; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1726; --panel: #15223A; --disc: #1C3340; --text: #EEF3F6; --muted: #A9B6C4;
  --accent: #3FB8C2; --line: #253650; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 'Inter', system-ui, sans-serif; }
.wrap { max-width: 1040px; margin: 0 auto; padding-inline: 16px; }
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(40px, 9vw, 72px); }
h2 { font-weight: 800; font-size: clamp(28px, 5vw, 40px); margin-bottom: 16px; }
h3 { font-weight: 800; font-size: 22px; }
section { padding: 56px 0 0; }
.lead { color: var(--muted); max-width: 640px; margin: 0 0 24px; }
.mark { font-weight: 800; font-size: 56px; line-height: 1; color: var(--accent); margin: 0 0 12px; }
.mark sup, .fallback sup { font-size: 0.45em; vertical-align: top; }
.mark.small { font-size: 32px; margin: 0; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 40px; }
.strapline { font-weight: 600; font-size: 20px; color: var(--accent); margin: 12px 0 4px; }
.byline { color: var(--muted); margin: 0; }
.hero-photo { position: relative; width: min(320px, 80vw); aspect-ratio: 1; border-radius: 50%; background: var(--disc); overflow: hidden; justify-self: center; display: flex; align-items: center; justify-content: center; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo .fallback { font-weight: 800; font-size: 120px; color: var(--accent); }
@media (min-width: 760px) { .hero { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); padding-top: 72px; } .hero-photo { justify-self: end; } }

.cores, .nine { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.core, .c-card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.eyebrow { margin: 0 0 6px; font-weight: 600; font-size: 14px; color: var(--accent); }
.core p { margin: 6px 0 0; }
.core ol { margin: 12px 0 0; padding-left: 20px; }
.c-card .meaning { margin: 8px 0; }
.c-card .use { margin: 0; color: var(--muted); font-size: 15px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.timeline li { border-top: 3px solid var(--accent); padding-top: 12px; }
.timeline .step { font-weight: 600; font-size: 14px; color: var(--accent); }
.timeline p { color: var(--muted); margin: 6px 0 0; }

.about p { max-width: 680px; }
.about blockquote { margin: 16px 0 0; padding-left: 16px; border-left: 3px solid var(--accent); font-weight: 600; font-size: 20px; }

.selfcheck { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.selfcheck fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px 16px; margin: 0; min-width: 0; }
.selfcheck legend { font-weight: 800; padding: 0 6px; }
.sc-row { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 1.5em; align-items: center; gap: 10px; margin-top: 10px; }
.sc-row input { width: 100%; accent-color: var(--accent); }
.sc-row output { font-weight: 800; text-align: right; }
.sc-result { margin-top: 20px; background: var(--panel); border-radius: 12px; padding: 20px; }
.sc-cores { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); }
.sc-msg { margin: 0; font-weight: 800; font-size: 20px; }
.sc-tip { margin: 6px 0 0; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 56px; padding-bottom: 40px; }
.footer a { color: var(--accent); font-weight: 600; margin-right: 20px; }
a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
