@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-normal-latin.woff2?v=2a24bad466") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-normal-latin-ext.woff2?v=a0cd390d01") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-italic-latin.woff2?v=011e0ca2bd") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F; }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 200 900; font-display: swap; src: url("fonts/source-serif-4-italic-latin-ext.woff2?v=513549ab98") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }


:root {
  --paper: #f3f1ea; --ink: #15191d; --muted: #47515a; --rule: #c9ccc6; --link: #0b5f73; --accent: #0b7a86;
  --deep: #030b16; --sea-ink: #e4eef6; --sea-muted: #a5b8c8; --glow: #7fe3d8; --warm: #ffc982; --line: rgba(160,200,230,.18);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --bar: 3rem; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --paper: #0b1118; --ink: #e6edf3; --muted: #aab6c2; --rule: #26313d; --link: #8fe6dc; --accent: #7fe3d8; color-scheme: dark; } }
:root[data-theme="dark"] { --paper: #0b1118; --ink: #e6edf3; --muted: #aab6c2; --rule: #26313d; --link: #8fe6dc; --accent: #7fe3d8; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--deep); scroll-padding-top: calc(var(--bar) + 1rem); }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--deep); color: var(--sea-ink); font: 400 1.1875rem/1.62 var(--serif); }
a { color: var(--glow); text-underline-offset: .15em; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--warm); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: .5rem 1rem; z-index: 50; }
.skip:focus { left: .5rem; }
b { font-weight: 650; color: #fff; }

#sea { position: fixed; inset: 0; width: 100vw; height: 100lvh; display: block; z-index: 0; pointer-events: none; }
html.no-js #sea { display: none; }
body { background: linear-gradient(180deg, #06223a 0, #041628 45vh, var(--deep) 120vh) fixed, var(--deep); }

/* bar */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .9rem; height: var(--bar); padding: 0 1rem; background: rgba(3,11,22,.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); font: 500 .9rem/1 var(--sans); white-space: nowrap; }
.topbar a { color: var(--sea-ink); text-decoration: none; }
.topbar .home { font-weight: 700; display: inline-flex; align-items: center; gap: .45rem; }
.topbar .home .tail { color: var(--glow); }
.topnav { display: flex; gap: .9rem; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 auto; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { padding: .9rem .1rem; border-bottom: 2px solid transparent; color: var(--sea-muted); }
.topnav a[aria-current] { border-bottom-color: var(--glow); color: #fff; }
.chip { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: .35rem .7rem; flex: none; }
.icon-btn { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-right: -.5rem; border: 0; background: none; color: var(--sea-ink); border-radius: 50%; cursor: pointer; flex: none; }
.icon-btn svg { display: block; }
.icon-btn svg[hidden] { display: none; }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: rgba(127,227,216,.12); }
.progress .swim { position: absolute; left: 0; bottom: -5px; color: var(--glow); will-change: transform; transform: translateX(-30px); }
.progress .swim .tail { display: block; transform: scaleX(-1); }
@media (max-width: 560px) { .topbar .home { font-size: 0; gap: 0; } .topbar .home .tail { width: 30px; height: 13px; } }

/* layout */
main { position: relative; z-index: 3; }
.hero, .block { max-width: 44rem; margin: 0 auto; padding: 0 1.2rem; }
.block { padding-top: 3.5rem; padding-bottom: 1.5rem; }
.hero { min-height: calc(88svh - var(--bar)); display: flex; flex-direction: column; justify-content: center; padding-top: 4rem; padding-bottom: 2rem; }
.kicker { font: 600 .8rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--glow); margin: 0 0 1rem; }
h1, h2 { font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.hero h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); margin: 0 0 1.1rem; text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.6); }
.deck { font-size: clamp(1.15rem, 2.2vw, 1.38rem); color: var(--sea-muted); margin: 0 0 1.4rem; }
h2 { font-size: clamp(1.5rem, 3.4vw, 1.9rem); margin: 0 0 1rem; text-wrap: balance; }
h2 .anchor { color: inherit; text-decoration: none; }
h2 .anchor:hover { text-decoration: underline; text-decoration-color: rgba(255,255,255,.35); }
section[id] { scroll-margin-top: calc(var(--bar) + 1rem); }
p { margin: 0 0 1.05rem; }
.small { font: 400 .9rem/1.5 var(--sans); color: var(--sea-muted); }

/* tool */
.tool { padding-top: 2rem; }
.controls { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; margin: 1.2rem 0 .8rem; }
.yl { display: flex; flex-direction: column; gap: .35rem; font: 500 .8rem/1.2 var(--sans); color: var(--sea-muted); }
.yl input { width: 7.5rem; min-height: 48px; font: 600 1.25rem/1 var(--sans); color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.3); border-radius: 12px; padding: 0 .8rem; font-variant-numeric: tabular-nums; }
.play { min-height: 48px; padding: .6rem 1.15rem; border-radius: 999px; border: 1px solid rgba(255,201,130,.7); background: rgba(255,201,130,.14); color: #fff; font: 600 1rem/1 var(--sans); cursor: pointer; }
.play::before { content: "▶"; font-size: .75em; margin-right: .5em; color: var(--warm); }
.play.alt { border-color: rgba(127,227,216,.7); background: rgba(127,227,216,.12); }
.play.alt::before { color: var(--glow); }
.play.ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.play.ghost::before { color: #fff; }
.play[data-on]::before { content: "■"; }
.play:disabled { opacity: .45; cursor: progress; }
.play:hover:not(:disabled) { filter: brightness(1.2); }
.result { font-size: 1.12rem; min-height: 3em; color: var(--sea-ink); }
.result b { color: var(--warm); }
.specwrap { position: relative; margin: 0 0 1rem; }
.spec { display: block; width: 100%; height: 150px; border-radius: 12px; background: rgba(0,6,14,.7); border: 1px solid var(--line); }
.specnow { position: absolute; right: 3.6rem; bottom: .45rem; margin: 0; font: 600 .78rem/1 var(--sans); color: var(--sea-muted); letter-spacing: .03em; }
html.no-js .specwrap, html.no-audio .specwrap { display: none; }
.status { font: 500 .9rem/1.4 var(--sans); color: var(--warm); min-height: 1.2em; }

.chart { margin: 1.2rem 0 1.4rem; }
.chart figcaption, .dots figcaption { font: 400 .88rem/1.5 var(--sans); color: var(--sea-muted); margin-top: .6rem; }
.svg { width: 100%; height: auto; display: block; overflow: visible; }
.svg .grid { stroke: var(--line); stroke-width: 1; }
.svg .tick { fill: var(--sea-muted); font: 500 12px var(--sans); }
.svg .trend { stroke: var(--glow); stroke-width: 2.2; fill: none; opacity: .75; }
.svg .pt { fill: var(--deep); stroke: var(--glow); stroke-width: 1.8; }
.svg .pt.rice { fill: var(--glow); }
.svg .lab { fill: var(--sea-ink); font: 600 13px var(--sans); }
.svg .me line { stroke: var(--warm); stroke-dasharray: 3 4; }
.svg .me circle { fill: var(--warm); stroke: var(--deep); stroke-width: 2; }
.svg .me text { fill: var(--warm); font: 700 14px var(--sans); paint-order: stroke; stroke: var(--deep); stroke-width: 4px; }
.svg .glide circle { fill: #fff; filter: drop-shadow(0 0 6px var(--glow)); }
.svg [hidden] { display: none; }
.svg .rl { fill: var(--sea-ink); font: 600 14px var(--sans); }
.svg .rs { fill: var(--sea-muted); font: 400 12px var(--sans); }
.svg .rv { fill: var(--sea-ink); font: 600 13px var(--sans); }
.svg .bar { fill: rgba(127,227,216,.45); }
.svg .bar.hi { fill: var(--glow); }
.reset { margin-left: .4rem; min-height: 44px; padding: .3rem .8rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: var(--sea-ink); font: 500 .85rem/1 var(--sans); cursor: pointer; }
.reset[hidden] { display: none; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin: 1.4rem 0; }
.tiles p { margin: 0; padding: .9rem; border: 1px solid var(--line); border-radius: 12px; background: rgba(3,11,22,.55); display: flex; flex-direction: column; gap: .3rem; }
.tiles b { font: 700 1.15rem/1.15 var(--sans); color: var(--glow); }
.tiles span { font: 400 .82rem/1.35 var(--sans); color: var(--sea-muted); }
@media (max-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.listen { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 .8rem; }

.hyp { border-top: 1px solid var(--line); margin: 0 0 1.2rem; }
.hyp > div { display: grid; grid-template-columns: 11rem 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.hyp p { margin: 0; font-size: 1rem; line-height: 1.55; }
.hyp b { color: var(--warm); }
@media (max-width: 600px) { .hyp > div { grid-template-columns: 1fr; gap: .3rem; } }

.dots { margin: 1.2rem 0 1.4rem; }
.dots canvas { display: block; width: 100%; height: 260px; }
html.no-js .dots canvas { display: none; }
.end { font-size: 1.3rem; line-height: 1.5; font-style: italic; color: #fff; margin-top: 2rem; padding-bottom: 3rem; }

/* share */
.share { margin-top: .4rem; }
.share-row { display: flex; flex-wrap: wrap; row-gap: .5rem; gap: .35rem; align-items: center; }
.share-row .lab { font: 500 .85rem/1 var(--sans); color: var(--sea-muted); margin-right: .3rem; }
.share-row a, .share-row button { display: inline-grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: transparent; color: var(--sea-ink); cursor: pointer; }
.share-row a:hover, .share-row button:hover, .share-row a:focus-visible, .share-row button:focus-visible { color: var(--glow); border-color: var(--glow); }
.share-row [hidden] { display: none; }
@media (pointer: coarse) { .share-row a, .share-row button { width: 2.75rem; height: 2.75rem; } }
.share-status { font: 500 .85rem/1.3 var(--sans); color: var(--glow); min-height: 1.2em; margin: .4rem 0 0; }

/* method: follows the theme */
.sources { position: relative; z-index: 3; max-width: none; background: var(--paper); color: var(--ink); padding: 3rem 1.2rem 2rem; margin-top: 2rem; }
.sources > * { max-width: 42rem; margin-left: auto; margin-right: auto; }
.sources a { color: var(--link); overflow-wrap: anywhere; }
.sources h2 .anchor { color: var(--ink); }
.sources h3 { font: 700 .95rem/1.3 var(--sans); margin: 2rem auto .6rem; }
.sources .method, .sources li { font-size: 1rem; line-height: 1.6; color: var(--ink); }
.sources b { color: inherit; }
.srcs, .related { padding-left: 1.2rem; }
.srcs li, .related li { margin-bottom: .5rem; }
.sources .stamp { color: var(--muted); font: 400 .85rem/1.4 var(--sans); }
.ytab { margin: 1.4rem auto; font: 400 .9rem/1.4 var(--sans); }
.ytab summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; color: var(--link); }
.ytab table { border-collapse: collapse; width: 100%; max-width: 26rem; font-variant-numeric: tabular-nums; }
.ytab th, .ytab td { text-align: left; padding: .25rem .6rem; border-bottom: 1px solid var(--rule); }
.foot { position: relative; z-index: 3; background: var(--paper); color: var(--muted); border-top: 1px solid var(--rule); padding: 1.2rem; text-align: center; font: 400 .9rem/1.4 var(--sans); }
.foot a { color: var(--link); }
body.nf { background: var(--paper); color: var(--ink); }
body.nf a { color: var(--link); }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.gtags { position: absolute; inset: 0; pointer-events: none; }
.gtags span { position: absolute; left: .6rem; font: 700 .75rem/1 var(--sans); padding: .15rem .35rem; border-radius: 4px; background: rgba(0,6,14,.7); }
.hero { position: relative; }
.hero > :not(.heroline) { position: relative; }
.heroline { position: absolute; left: -10vw; right: -10vw; top: 12%; width: 120vw; max-width: none; height: 70%; left: 50%; transform: translateX(-50%); opacity: .38; pointer-events: none; }
.heroline path { fill: none; stroke: var(--glow); stroke-width: 2; vector-effect: non-scaling-stroke; }
.heroline path.d { stroke-width: 8; stroke-linecap: round; opacity: .8; }
.heroline text { fill: var(--glow); font: 700 15px var(--sans); }
@media (max-width: 640px) { .heroline { opacity: .16; top: 22%; } }
.regions { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.regions li { display: grid; grid-template-columns: 15rem 1fr; column-gap: 1rem; align-items: center; }
.regions .rn { font: 600 .92rem/1.2 var(--sans); color: var(--sea-ink); }
.regions .rm { grid-column: 1; font: 400 .78rem/1.3 var(--sans); color: var(--sea-muted); font-variant-numeric: tabular-nums; }
.regions .rb { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: .5rem; }
.regions .rb i { display: block; height: 14px; border-radius: 3px; background: rgba(127,227,216,.45); }
.regions .hi .rb i { background: var(--glow); }
.regions .rb b { font: 600 .88rem/1 var(--sans); color: var(--sea-ink); white-space: nowrap; }
@media (max-width: 600px) { .regions li { grid-template-columns: 1fr; } .regions .rb { grid-column: 1; grid-row: auto; margin-top: .25rem; } }
html.no-js .controls, html.no-js .listen, html.no-audio .controls .play, html.no-audio .listen { display: none; }
