/* The About page (about.html): the map's palette and type, set as a page to read. Bone paper, spruce ink, corn for
   the one thing you can grab, plum for lead. Text column of about 64 characters; figures break out wider. */
:root { --bone: #f6f2e7; --bone-2: #ece7d8; --ink: #12302b; --ink-2: #3d5550; --ink-3: #526460; --hair: rgba(18, 48, 43, .14);
  --corn: #f2b72e; --corn-ink: #2a2206; --plum: #8a2a66;
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif; --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --col: 41rem; --wide: 62rem; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--bone); color: var(--ink); font: 400 1.125rem/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration-color: var(--corn); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--corn); outline-offset: 3px; border-radius: 4px; }

.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem max(1.25rem, calc((100vw - var(--wide)) / 2)); background: rgba(246, 242, 231, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); font-size: .9375rem; }
.back { font-weight: 600; text-decoration: none; padding: .35rem .8rem .35rem .65rem; border-radius: 999px; background: var(--ink); color: var(--bone); white-space: nowrap; }
.back::before { content: "\2190\00a0"; }
.back:hover { background: #1c443d; }
.toc { display: flex; gap: 1.4rem; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.toc a { text-decoration: none; color: var(--ink-2); padding: .2rem 0; border-bottom: 2px solid transparent; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--corn); }

main { padding: 0 1.25rem; }
section, .foot { max-width: var(--col); margin: 0 auto; }
section { padding: 3.25rem 0 1rem; }
section + section { border-top: 1px solid var(--hair); margin-top: 2.5rem; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.25rem); line-height: 1.04; font-weight: 700; margin: 1.5rem 0 1rem; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.25rem); line-height: 1.1; font-weight: 700; margin: 0 0 1.25rem; }
h3 { font-size: 1.375rem; line-height: 1.2; font-weight: 600; margin: 2.25rem 0 .5rem; }
h4 { font-size: 1rem; font-weight: 600; margin: 0 0 .3rem; letter-spacing: 0; }
p { margin: 0 0 1.05rem; text-wrap: pretty; }
.standfirst { font-size: 1.3125rem; line-height: 1.5; color: var(--ink-2); }
.lead { font-size: 1.1875rem; }
.byline { display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .9375rem; color: var(--ink-3); margin: 1.25rem 0 2rem; }
.byline a { font-weight: 600; color: var(--ink); }

figure { margin: 2rem 0; }
.wide { width: min(var(--wide), 100vw - 2.5rem); margin-left: 50%; transform: translateX(-50%); }
figcaption { margin-top: .7rem; font-size: .9375rem; line-height: 1.45; color: var(--ink-3); max-width: var(--col); }
.wide figcaption { margin-left: auto; margin-right: auto; }
.hero video { display: block; width: 100%; height: auto; border-radius: 18px; background: #2f5d3a; box-shadow: 0 10px 30px rgba(8, 28, 24, .22); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 2.25rem 0 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.facts div { padding: 1rem .9rem 1rem 0; } .facts div + div { padding-left: .9rem; border-left: 1px solid var(--hair); }
.facts dt { font: 700 1.5rem/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts dd { margin: .3rem 0 0; font-size: .875rem; line-height: 1.35; color: var(--ink-3); }

/* drag to compare: the range input lies over the whole picture, so pointer, touch and arrow keys all work */
.cmp { position: relative; overflow: hidden; border-radius: 18px; background: var(--bone-2); box-shadow: 0 10px 30px rgba(8, 28, 24, .22); --p: 50%; touch-action: pan-y; }
.cmp img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.cmp-top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: var(--bone); box-shadow: 0 0 0 1px rgba(18, 48, 43, .35); pointer-events: none; }
.cmp-line i { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: var(--corn); box-shadow: 0 2px 8px rgba(8, 28, 24, .4), 0 0 0 2px var(--bone); }
.cmp-line i::before, .cmp-line i::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; border: solid var(--corn-ink); border-width: 0 0 2.5px 2.5px; }
.cmp-line i::before { left: 11px; transform: translateY(-50%) rotate(45deg); } .cmp-line i::after { right: 11px; transform: translateY(-50%) rotate(-135deg); }
.cmp input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.cmp input:focus-visible ~ .cmp-line i, .cmp:has(input:focus-visible) .cmp-line i { outline: 3px solid var(--ink); outline-offset: 3px; }
.tag { position: absolute; top: 12px; padding: .2rem .6rem; border-radius: 999px; background: rgba(18, 48, 43, .88); color: var(--bone); font-size: .8125rem; font-weight: 600; pointer-events: none; }
.tag-l { left: 12px; } .tag-r { right: 12px; }

.story { margin-top: 3rem; }
.story h3 { font-size: 1.625rem; margin-top: 0; }
.wrong { margin: 1.5rem 0; padding: 1rem 1.2rem 1.05rem; border-radius: 14px; background: rgba(138, 42, 102, .08); border-left: 4px solid var(--plum); font-size: 1.0625rem; }
.wrong h4 { color: var(--plum); } .wrong p:last-child, .wrong ul { margin-bottom: 0; }
.wrong ul { padding-left: 1.1rem; } .wrong li + li { margin-top: .6rem; }

.bars { display: grid; gap: .55rem; margin: 1.75rem 0; }
.bars div { display: grid; grid-template-columns: 4.2rem 1fr 2.4rem; align-items: center; gap: .7rem; font-size: .9375rem; }
.bars i { display: block; height: 1.5rem; width: calc(var(--v) / 60 * 100%); border-radius: 6px; background: var(--ink-3); } .bars i.good { background: var(--corn); }
.bars b { font: 700 1.25rem/1 var(--display); font-variant-numeric: tabular-nums; }

.limits { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.limits li { padding: .85rem 0; border-top: 1px solid var(--hair); } .limits li:last-child { border-bottom: 1px solid var(--hair); }
.limits b { font-family: var(--display); font-weight: 600; }
.fine { font-size: 1rem; color: var(--ink-2); }
.fine summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: .4rem 0; }
.fine h3 { font-size: 1.0625rem; margin: 1.2rem 0 .25rem; }
.credits { margin: 0; font-size: 1rem; }
.credits dt { font-family: var(--display); font-weight: 600; margin-top: 1.1rem; } .credits dd { margin: .15rem 0 0; color: var(--ink-2); }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 2.5rem 1.25rem 3.5rem; margin-top: 2.5rem; border-top: 1px solid var(--hair); font-size: .9375rem; color: var(--ink-3); max-width: calc(var(--col) + 2.5rem); }

/* the layers diagram and the official links, as on the map's About sheet */
.ab-official { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 22px; }
.ab-official a { display: block; padding: 14px 18px 15px; border-radius: 14px; background: var(--ink); color: var(--bone); text-decoration: none; }
.ab-official a:hover { background: #1c443d; }
.ab-official b { display: block; font: 700 19px/1.2 var(--display); letter-spacing: -.01em; text-decoration: underline; text-decoration-color: var(--corn); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ab-official span { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.35; color: rgba(246, 242, 231, .86); font-weight: 400; }
.ab-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 4px 0 8px; }
.ab-bars p { margin: 0 0 5px; font-size: 13.5px; color: var(--ink-2); }
.ab-bar, .ab-ticks { display: grid; grid-template-columns: repeat(5, 1fr); }
.ab-bar { height: 14px; border-radius: 7px; overflow: hidden; }
.ab-ticks { margin-top: 4px; font-size: 12.5px; line-height: 1.3; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ab-cut { margin: 6px 0 30px; }
.ab-cut-in { position: relative; }
.ab-cut svg { display: block; width: 62%; height: auto; overflow: visible; }
.ab-cut svg * { vector-effect: non-scaling-stroke; }
.ab-cut .sh { fill: rgba(246, 242, 231, .8); } .ab-cut .rim { fill: none; stroke: #12302b; stroke-width: 1.4; stroke-linejoin: round; }
.ab-cut .side { fill: #7a6244; stroke: #12302b; stroke-width: 1.4; stroke-linejoin: round; }
.ab-cut .ink { fill: none; stroke: rgba(18, 48, 43, .42); stroke-width: .8; }
.ab-cut .water { fill: none; stroke: #1f6d8c; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; } .ab-cut .thin { stroke-width: 3; } .ab-cut .faint { stroke-width: 1.4; }
.ab-cut ol { list-style: none; margin: 0; padding: 0; }
.ab-cut li { position: absolute; left: 61%; right: 0; top: calc(21.3% + var(--i) * 16.78%); padding-left: 44px; transform: translateY(-.75em); font-size: 13.5px; line-height: 1.35; margin: 0 !important; }
.ab-cut li::before { content: ""; position: absolute; left: 0; top: .68em; width: 36px; border-top: 1.4px solid var(--ink); }
.ab-cut li b { display: block; font: 700 15px/1.3 var(--display); color: var(--ink); } .ab-cut li span { display: block; }
.ab-cut figcaption { margin-top: 12px; font-size: 13.5px; color: var(--ink-3); }

.ab-cut li { font-size: .875rem; } .ab-cut li b { font-size: 1rem; }
.ab-bars p { font-size: .9375rem; }

@media (max-width: 720px) {
  body { font-size: 1.0625rem; } .toc { display: none; }
  .facts { grid-template-columns: 1fr 1fr; } .facts div:nth-child(3) { padding-left: 0; border-left: 0; } .facts div:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .cmp, .hero video { border-radius: 12px; } .cmp-line i { width: 40px; height: 40px; margin: -20px; }
  .ab-cut svg { width: 100%; } .ab-cut ol { margin-top: .8rem; } .ab-cut li { position: static; transform: none; padding-left: 0; margin-top: .35rem !important; } .ab-cut li::before { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.x { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; color: var(--ink); vertical-align: middle; } .x:hover { background: var(--bone-2); } .made { display: inline-flex; align-items: center; gap: .6rem; }
.steps { margin: 0 0 1.2rem; padding-left: 1.2rem; } .steps li { margin: .45rem 0; } .steps b { font-family: var(--display); font-weight: 600; }

/* steps, model spec, formulas, outside screenshot (24 Nov) */
.steps { margin: 0 0 1.2rem; padding-left: 1.2rem; } .steps li { margin: .45rem 0; } .steps b { font-family: var(--display); font-weight: 600; }
.spec { margin: 1.2rem 0 1.4rem; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0 1rem; font-size: 1rem; }
.spec dt { font: 600 .9375rem/1.5 var(--display); padding-top: .6rem; border-top: 1px solid var(--hair); }
.spec dd { margin: 0; padding: .6rem 0; border-top: 1px solid var(--hair); color: var(--ink-2); min-width: 0; }
.eq { font-family: "STIX Two Math", "Cambria Math", Georgia, serif; font-style: italic; white-space: nowrap; color: var(--ink); }
.eq.block { display: block; margin: .55rem 0 .35rem; white-space: nowrap; overflow-x: auto; padding-bottom: .15rem; }
@media (max-width: 720px) { .spec { grid-template-columns: 1fr; } .spec dd { border-top: 0; padding-top: .1rem; } }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--hair); border-radius: 10px; background: #fff; }
math { font-family: "STIX Two Math", "Cambria Math", "Latin Modern Math", math; font-size: 1.08em; color: var(--ink); }
math[display="block"] { display: block math; margin: .7rem 0 .6rem; overflow-x: auto; overflow-y: hidden; padding-bottom: .15rem; }
/* a longer aside shown when its dotted phrase is hovered, focused or tapped */
.has-note { position: relative; }
.note { border-bottom: 1.5px dotted currentColor; cursor: help; }
.note:focus-visible { outline: 3px solid var(--corn); outline-offset: 2px; border-radius: 2px; }
.note-body { display: none; position: absolute; left: 0; right: 0; top: calc(100% + .35rem); z-index: 6; padding: .9rem 1.05rem; background: var(--paper, #f6f2e7); color: var(--ink-2); border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 10px 28px rgba(30, 24, 12, .2); font-size: .95rem; line-height: 1.5; }
.note:hover + .note-body, .note:focus + .note-body, .note-body:hover { display: block; }
/* a few words shown under a dotted phrase on hover, focus or tap */
.tipped { position: relative; }
.note-tip { display: none; position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + .45rem); z-index: 6; white-space: nowrap; padding: .4rem .7rem; background: var(--ink); color: var(--bone); border-radius: 9px; box-shadow: 0 8px 22px rgba(30, 24, 12, .22); font: 500 .95rem/1.3 var(--text); letter-spacing: 0; }
.tipped:hover .note-tip, .tipped:focus .note-tip { display: block; }
/* a whole section folded behind its heading (closed until asked for) */
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .7rem; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary h2 { margin: 0; }
.fold > summary::after { content: ""; flex: none; width: .6rem; height: .6rem; border-right: 2.5px solid var(--ink-3); border-bottom: 2.5px solid var(--ink-3); transform: rotate(45deg) translateY(-.15rem); transition: transform .15s ease; }
.fold[open] > summary::after { transform: rotate(-135deg) translateY(-.1rem); }
.fold > summary:focus-visible { outline: 3px solid var(--corn); outline-offset: 4px; border-radius: 6px; }
.fold[open] > summary { margin-bottom: 1rem; }
@media (prefers-reduced-motion: reduce) { .fold > summary::after { transition: none; } }
