:root {
  --surface: #EDF2F5;
  --ink: #12212E;
  --muted: #4D606D;
  --rule: #C6D3DB;
  --accent: #1D6B62;
  --deep: #0F2538;
  --deep-ink: #E6EEF3;
  --deep-muted: #A3B6C3;
  --deep-rule: #2A4258;
  --deep-accent: #7ACFC2;
  --lamp: #E9B44C;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0D1822;
    --ink: #E4ECF1;
    --muted: #9CAFBC;
    --rule: #223446;
    --accent: #7ACFC2;
    --deep: #07111A;
    --deep-rule: #1F3245;
  }
}
:root[data-theme="dark"] {
  --surface: #0D1822;
  --ink: #E4ECF1;
  --muted: #9CAFBC;
  --rule: #223446;
  --accent: #7ACFC2;
  --deep: #07111A;
  --deep-rule: #1F3245;
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); color-scheme: light dark; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.deep a:focus-visible, .deep summary:focus-visible { outline-color: var(--deep-accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 48px); }
.prose { max-width: 62ch; }

/* header */
.site-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; padding: 22px 0; }
.brand { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 0.97rem; }
.nav a { color: var(--muted); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--lamp); }

/* hero */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 5.2rem); max-width: 13ch; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 46ch; margin-top: 28px; }
.hero .honest { max-width: 52ch; font-size: 0.97rem; color: var(--muted); border-left: 3px solid var(--lamp); padding-left: 14px; margin-top: 24px; }
.waterline { display: block; overflow: hidden; height: 64px; background: var(--surface); line-height: 0; }
.waterline svg { width: 200%; height: 64px; fill: var(--deep); animation: drift 26s linear infinite; }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .waterline svg { animation: none; } }

/* deep sections */
.deep { background: var(--deep); color: var(--deep-ink); }
.deep a { color: var(--deep-accent); }
.deep .muted { color: var(--deep-muted); }
.deep-section { padding: clamp(28px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); }
.deep-section h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 20ch; }
.deep-section .intro { max-width: 54ch; color: var(--deep-muted); margin-top: 18px; }
.concepts { margin-top: 40px; max-width: 760px; border-top: 1px solid var(--deep-rule); }
details { border-bottom: 1px solid var(--deep-rule); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 1.75rem); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--lamp); flex: none; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--deep-muted); max-width: 58ch; padding-bottom: 22px; margin: 0; }
details[open] p { animation: reveal 0.25s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { details[open] p { animation: none; } }

/* light sections */
.section { padding: clamp(48px, 7vw, 88px) 0; }
.section h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.feature { display: block; margin-top: 28px; padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.feature h3 { font-size: clamp(1.7rem, 4vw, 2.5rem); max-width: 22ch; }
.feature p { color: var(--muted); max-width: 54ch; margin: 14px 0 0; }
.feature .go { display: inline-block; margin-top: 16px; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.feature:hover h3 { text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: 2px; text-underline-offset: 6px; }

.cta-band { border-top: 1px solid var(--rule); }
.cta-band .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.cta-band p { margin: 8px 0 0; color: var(--muted); max-width: 46ch; }
.btn { display: inline-block; background: var(--ink); color: var(--surface); font-weight: 600; text-decoration: none; padding: 13px 22px; border-radius: 4px; }
.btn:hover { background: var(--accent); color: #fff; }

/* list of articles */
.page-head { padding: clamp(40px, 7vw, 88px) 0 24px; }
.page-head h1 { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 18ch; }
.page-head p { color: var(--muted); max-width: 52ch; margin-top: 18px; }
.rows { margin: 24px 0 72px; border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 1fr auto; gap: 6px 32px; padding: 26px 0; border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.row h3 { font-size: clamp(1.4rem, 3vw, 1.9rem); max-width: 26ch; }
.row p { grid-column: 1; color: var(--muted); margin: 0; max-width: 56ch; }
.row .tag { grid-column: 2; grid-row: 1; align-self: start; font-size: 0.9rem; color: var(--muted); white-space: nowrap; padding-top: 6px; }
a.row:hover h3 { text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.row.soon { opacity: 0.72; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; } .row .tag { grid-column: 1; grid-row: auto; padding-top: 0; } }

/* article */
.article-head { padding: clamp(40px, 7vw, 88px) 0 8px; }
.article-head .kicker { color: var(--muted); font-size: 0.95rem; margin-bottom: 16px; }
.article-head h1 { font-size: clamp(2.3rem, 6.4vw, 4.2rem); max-width: 16ch; }
.article-head .dek { font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.55rem); line-height: 1.4; color: var(--muted); max-width: 40ch; margin-top: 24px; }
.article-body { padding: 32px 0 72px; }
.article-body p, .article-body li { font-family: var(--serif); font-size: 1.22rem; line-height: 1.7; }
.article-body h2 { font-size: 1.85rem; margin: 2.2em 0 0.6em; }
.article-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.article-body li { margin-bottom: 0.5em; }
.callout { margin: 2em 0; padding: 20px 24px; background: var(--deep); color: var(--deep-ink); border-radius: 4px; }
.callout p { font-family: var(--sans); font-size: 1rem; line-height: 1.6; margin: 0; color: var(--deep-ink); }
.callout a { color: var(--deep-accent); }

/* footer */
.site-footer { padding: 40px 0 48px; font-size: 0.95rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 48px; }
.site-footer p { margin: 0 0 8px; max-width: 58ch; }
.site-footer .brand { color: var(--deep-ink); }

.nav a.nav-cta { color: var(--ink); border: 1px solid var(--ink); padding: 4px 14px; border-radius: 4px; }
.nav a.nav-cta:hover { background: var(--ink); color: var(--surface); }
.nav a.nav-cta[aria-current="page"] { background: var(--ink); color: var(--surface); }
.btn-lamp { display: inline-block; margin-top: 28px; background: var(--lamp); color: #12212E; font-weight: 600; text-decoration: none; padding: 13px 22px; border-radius: 4px; }
.deep a.btn-lamp { color: #12212E; }
.btn-lamp:hover { background: #F3CB7C; }
.inline-cta { margin: 2.4em 0 1.6em; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.inline-cta p { font-family: var(--serif); font-size: 1.22rem; margin: 0 0 14px; }
.steps { margin: 0 0 1em; padding-left: 1.3em; }
.steps li { margin-bottom: 0.6em; }
.faq { margin: 8px 0 40px; border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { font-size: clamp(1.2rem, 2.6vw, 1.45rem); padding: 18px 0; }
.faq summary::after { color: var(--accent); }
.faq details p { color: var(--muted); padding-bottom: 18px; }
.safety { margin: 32px 0 72px; padding: 18px 22px; background: var(--deep); color: var(--deep-ink); border-radius: 4px; font-size: 0.98rem; }
.safety p { margin: 0 0 8px; }
.safety p:last-child { margin: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(24px, 5vw, 64px); align-items: center; }
.mind { margin: 0; justify-self: end; width: 100%; max-width: 380px; color: var(--ink); }
.mind svg { display: block; width: 100%; height: auto; overflow: visible; }
.mind .deepfill { fill: var(--deep); animation: fade 1.4s ease-out 0.5s both; }
.mind .head { animation: fade 1.6s ease-out both; }
.mind .thread { fill: none; stroke: var(--lamp); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 6s ease-in-out 1.6s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mind .head { filter: invert(1); } }
:root[data-theme="dark"] .mind .head { filter: invert(1); }
@media (prefers-reduced-motion: reduce) { .mind .deepfill, .mind .head { animation: none; } .mind .thread { animation: none; stroke-dashoffset: 0; } }
@media (max-width: 820px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .mind { justify-self: start; max-width: 340px; } }
.view[hidden] { display: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--surface); padding: 10px 14px; z-index: 5; }
.skip:focus { left: 8px; top: 8px; }
.lang { display: flex; gap: 4px; font-size: 0.85rem; align-items: center; }
.lang a { color: var(--muted); text-decoration: none; padding: 3px 8px; border: 1px solid transparent; border-radius: 3px; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { color: var(--ink); border-color: var(--rule); }
.chooser { padding: clamp(48px, 10vw, 120px) 0 40px; }
.chooser .brand { font-size: clamp(2.4rem, 8vw, 4.4rem); display: block; margin-bottom: 12px; }
.chooser p { color: var(--muted); max-width: 52ch; }

