/* © 2026 William C. Chesher. All Rights Reserved.
   dive.css - dive's own pages (the front page, the door, the admin), reading only the tokens. The rhythm is the
   family's (spawn's and bench's front page): the splash, how it works in one bento, the mono footer. */
@import url("/_cromulent/topnav.css");

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--side); }
a { color: var(--lead); }
h2 { font-size: clamp(24px, 3.6vw, 38px); font-weight: 700; letter-spacing: -.015em; margin: 0 0 10px; line-height: 1.12; }
h3 { font-size: 18px; font-weight: 700; margin: 0; letter-spacing: -.01em; }

/* ---- the bar ---- */
.bar { display: flex; align-items: center; gap: 22px; padding: 16px 0 18px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font: 800 26px/.9 var(--disp); letter-spacing: -.055em; }
.wordmark .mark { height: 30px; width: auto; filter: drop-shadow(0 0 10px rgba(114, 227, 254, .3)); }
.wordmark .wm { display: inline-flex; align-items: flex-end; }
.wordmark .pt, .wm .pt { display: inline-block; flex: none; width: .17em; height: .17em; margin-left: .05em;
  align-self: flex-end; margin-bottom: .12em; background: var(--lead); }
.bar-nav { display: flex; align-items: center; gap: 4px clamp(6px, 1.4vw, 14px); flex-wrap: wrap; margin-right: auto; }
.bar-nav a { font: 500 15px/1.2 var(--body); color: var(--ink-2); text-decoration: none; padding: 8px 6px; border-radius: 8px; }
.bar-nav a:hover { color: var(--ink); }
.bar-who { font: 500 14px/1.2 var(--body); text-decoration: none; color: var(--ink-2); padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line); white-space: nowrap; }
.bar-who[data-who="out"] { color: var(--lead-ink); font-weight: 600; border-color: var(--lead); background: var(--lead);
  border-radius: var(--radius-sm); }
.bar a:focus-visible, .btn:focus-visible, .h-key:focus-visible, footer a:focus-visible { outline: 2px solid var(--lead); outline-offset: 2px; }

/* ---- buttons ---- */
.btn { display: inline-block; font: 600 15px/1.2 var(--disp); text-decoration: none; padding: 10px 18px; cursor: pointer;
  border-radius: var(--radius-sm); border: 1px solid transparent; transition: background var(--fast) var(--ease); }
.btn:active { transform: scale(.985); }
.btn.big { font-size: 15.5px; padding: 12px 24px; border-radius: 12px; }
.btn.primary { background: var(--lead); border-color: var(--lead); color: var(--lead-ink); }
.btn.primary:hover { background: var(--lead-lt); border-color: var(--lead-lt);
  box-shadow: 0 0 0 1px rgba(114, 227, 254, .35), 0 10px 40px -8px rgba(114, 227, 254, .45); }
.btn.outline { color: var(--ink); background: color-mix(in srgb, var(--void) 70%, transparent); border-color: var(--line-2); }
.btn.outline:hover { border-color: var(--ink-dim); }

/* ---- THE SPLASH: the family's first screen, with the lessons site's hero as its living stage, in dive's own copy
   (static/hero/): 58 counties move between four shapes (home.js) and the sea of values comes up between them (sea.js);
   the words are the hero's own argument. ---- */
.splash { position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column;
  overflow: hidden; background: radial-gradient(44% 40% at 50% 40%, rgba(114, 227, 254, .07), transparent 72%),
  radial-gradient(56% 46% at 50% 100%, rgba(91, 127, 255, .12), transparent 72%); }
.splash::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; opacity: .55;
  background: linear-gradient(100deg, var(--lead) 6%, var(--lead-lt) 36%, var(--blue-lt) 72%, var(--blue) 98%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent); }
.splash > .wrap { width: 100%; max-width: none; padding: 0 clamp(16px, 4vw, 60px); }
.splash .bar { border-bottom: 0; }
.splash-motto { position: absolute; top: 16px; left: clamp(16px, 4vw, 60px); height: 38px; margin: 0; display: flex;
  align-items: center; gap: 12px; font: 400 11px/1 var(--pixel); text-transform: uppercase; color: var(--ink-faint); pointer-events: none; }
.splash-motto::before { content: ""; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--lead)); }
@media (min-width: 901px) { .splash .bar { justify-content: flex-end; } .splash .bar .wordmark { display: none; } .splash .bar-nav { margin-right: 0; } }
@media (max-width: 900px) { .splash-motto { display: none; } }
.h-sea { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.6s var(--ease);
  pointer-events: none; }
.splash:has(.is-ocean) .h-sea { opacity: .9; }
.splash-body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 0 var(--side) clamp(40px, 7vh, 80px); }
.stage { width: min(100%, 720px, calc(36vh * 1.61)); margin-bottom: clamp(6px, 1.6vh, 20px); }
.stage .h-field-box { transition: opacity 1.4s var(--ease); }
.stage.is-ocean .h-field-box { opacity: 0; }
.h-chart svg, .h-field { display: block; width: 100%; height: auto; overflow: visible; }
.h-keys { display: flex; justify-content: center; gap: 6px 18px; flex-wrap: wrap; margin: 6px 0 0; }
.h-key { font: 400 11px/1 var(--pixel); text-transform: uppercase; color: var(--ink-faint); background: none; border: 0;
  padding: 6px 2px; cursor: pointer; }
.h-key:hover { color: var(--ink); }
.h-key[aria-pressed="true"] { color: var(--lead); box-shadow: inset 0 -2px 0 var(--lead); }
.h-says { margin: 6px 0 0; font: 400 13px/1.4 var(--mono); color: var(--ink-dim); min-height: 1.4em; }
.splash-logo { --logo: min(14vw, 11vh, 150px); display: flex; align-items: center; justify-content: center; gap: .16em; margin: 0;
  font: 800 var(--logo)/1 var(--disp); letter-spacing: -.045em; color: var(--ink); animation: rise 520ms var(--ease) 60ms both; }
.splash-logo .mark { width: auto; height: .74em; filter: drop-shadow(0 0 .14em rgba(114, 227, 254, .4)); }
.splash-logo .wm { display: inline-flex; align-items: baseline; padding-bottom: .06em; text-shadow: 0 0 60px rgba(114, 227, 254, .2); }
.splash-logo .wm .pt { background: var(--blue-lt); box-shadow: 0 0 .2em rgba(91, 127, 255, .5); }
.hero-copy { display: flex; flex-direction: column; align-items: center; margin-top: clamp(14px, 3vh, 40px); }
.hero-copy > * { animation: rise 520ms var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 120ms; }
.hero-copy > :nth-child(3) { animation-delay: 220ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.splash h1 { margin: 0; font: 700 min(clamp(28px, 3.2vw, 50px), 8.6vw, 5.6vh)/1.06 var(--disp); letter-spacing: -.035em; }
.splash h1 em { font-style: normal; color: var(--lead); }
.lede { margin: clamp(12px, 2.4vh, 22px) 0 0; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.5; color: var(--ink-2);
  max-width: 34em; text-wrap: balance; }
.lede .p2 { color: var(--blue-lt); font-weight: 600; }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin: clamp(22px, 4vh, 48px) 0 0; }
@media (prefers-reduced-motion: reduce) { .splash-logo, .hero-copy > * { animation: none !important; } .h-sea { transition: none; } }

/* ---- how it works: the family's bento ---- */
.band { padding: clamp(48px, 6vw, 80px) 0 0; }
.band h2 { margin: 8px 0 0; max-width: 20ch; font: 700 clamp(32px, 4vw, 50px)/1.02 var(--disp); letter-spacing: -.04em; }
.bento { display: grid; gap: 14px; margin-top: clamp(24px, 3vw, 36px); grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-areas: "s1 s2 two two" "s3 s4 two two"; }
.bento .loop { display: contents; list-style: none; margin: 0; padding: 0; }
.cell { position: relative; min-width: 0; overflow: hidden; padding: 22px 22px 24px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel); }
.cell::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--c, var(--lead)), transparent 75%); }
.step.s1 { grid-area: s1; --c: var(--lead); }
.step.s2 { grid-area: s2; --c: var(--lead-lt); }
.step.s3 { grid-area: s3; --c: var(--caution); }
.step.s4 { grid-area: s4; --c: var(--good); }
.step .n { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 500 12px/1 var(--mono); color: var(--c); }
.step .n::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--c); }
.step h3 { font-size: 22px; letter-spacing: -.02em; margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-dim); font-size: 14.5px; line-height: 1.55; }
.two { grid-area: two; --c: var(--blue); display: flex; flex-direction: column; gap: 12px;
  border-color: color-mix(in srgb, var(--blue) 30%, var(--line));
  background: radial-gradient(70% 60% at 90% 100%, rgba(91, 127, 255, .14), transparent 75%), var(--panel); }
.two .eyebrow { margin: 0; }
.two h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.08; letter-spacing: -.025em; }
.two .say { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.thread { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-sm);
  background: var(--void); border: 1px solid color-mix(in srgb, var(--blue) 26%, var(--line)); }
.chat { display: flex; flex-direction: column; gap: 4px; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.45; }
.chat .who { font: 400 11px/1 var(--pixel); text-transform: uppercase; }
.chat.you { align-self: flex-end; max-width: 80%; background: var(--panel-2); border: 1px solid var(--line); }
.chat.you .who { color: var(--lead); }
.chat.p2 { background: rgba(91, 127, 255, .1); }
.chat.p2 .who { color: var(--blue-lt); }
.chat .msg { color: var(--ink-2); }
.chat .chip { align-self: flex-start; font: 600 12px/1.3 var(--mono); color: var(--lead-ink); background: var(--lead); padding: 2px 8px; border-radius: 999px; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "s1 s2" "s3 s4" "two two"; } }
@media (max-width: 560px) { .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "s1" "s2" "s3" "s4" "two"; } }

/* ---- what the partner counts: the fluency band ---- */
.grow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(20px, 3vw, 32px); }
.grow .cell { --c: var(--blue); }
.grow .k { font: 400 11px/1 var(--pixel); text-transform: uppercase; color: var(--blue-lt); margin: 0 0 8px; }
.grow p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }
.grow-note { margin: 14px 0 0; color: var(--ink-faint); font-size: 14px; max-width: 60em; }
@media (max-width: 860px) { .grow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .grow { grid-template-columns: minmax(0, 1fr); } }

/* ---- footer ---- */
footer.foot { margin-top: clamp(48px, 6vw, 80px); padding: 0 0 40px; border-top: 1px solid var(--line); font: 400 12px/1.5 var(--mono); color: var(--ink-faint); }
footer.foot .foot-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 24px 48px; padding-top: clamp(32px, 4vw, 48px); }
footer.foot .foot-say { margin: 0; max-width: 46em; font: 400 14px/1.6 var(--disp); color: var(--ink-2); }
footer.foot .foot-go { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
footer.foot nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 20px; }
footer.foot a:not(.btn) { color: var(--ink-dim); text-decoration: none; }
footer.foot a:not(.btn):hover { color: var(--ink); }
footer.foot .foot-small { margin-top: clamp(28px, 4vw, 40px); text-align: center; font-size: 11px; }
@media (max-width: 720px) { footer.foot .foot-row { grid-template-columns: minmax(0, 1fr); } footer.foot .foot-go { align-items: flex-start; } footer.foot nav { justify-content: flex-start; } }

/* ---- about ---- */
.about .lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 56ch; }

/* ---- the door and the admin ---- */
.door { max-width: 440px; margin: clamp(40px, 10vh, 120px) auto; }
.card { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); margin: 0 0 16px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font: 500 14px/1.3 var(--disp); color: var(--ink-2); }
.form label:has(input[type="checkbox"]) { flex-direction: row; align-items: center; gap: 10px; }
.form input:not([type="checkbox"]), .form select { font: 400 16px/1.3 var(--mono); color: var(--ink); background: var(--void);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.form input:focus-visible, .form select:focus-visible { outline: 2px solid var(--lead); outline-offset: 1px; }
.said { margin: 0 0 14px; color: var(--ink-2); }
.said.bad { color: var(--bad); }
.admin h1, .door h1 { font: 700 clamp(30px, 4vw, 44px)/1.05 var(--disp); letter-spacing: -.03em; margin: 0 0 18px; }
.admin { padding: clamp(24px, 4vw, 48px) 0; }
.admin h2 { font-size: 20px; margin: 0 0 10px; }
.chip { display: inline-block; font: 600 12px/1 var(--mono); text-transform: lowercase; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--ink-2); margin: 0 0 10px; }
.chip.on { color: var(--lead-ink); background: var(--good); border-color: var(--good); }
.chip.off, .chip.switched-off { color: var(--ink); border-color: var(--bad); }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; vertical-align: top; padding: 7px 9px; border-bottom: 1px solid var(--line); }
th { font: 400 11px/1.2 var(--pixel); text-transform: uppercase; color: var(--ink-faint); }

/* ---- the dives (pages.py, dives.js, dive.js) ---- */
.page-title { font: 700 clamp(30px, 4.4vw, 52px)/1.04 var(--disp); letter-spacing: -.035em; margin: 6px 0 12px; max-width: 22ch; }
.lead { font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); max-width: 60ch; margin: 0; }
.rung h2 { margin: 6px 0 0; }
.dive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; margin-top: 20px; }
.dive-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.dive-card:hover { border-color: color-mix(in srgb, var(--lead) 45%, var(--line)); }
.dive-card .n { font: 500 12px/1 var(--mono); color: var(--lead); }
.dive-card .big { font: 700 34px/1 var(--disp); letter-spacing: -.03em; color: var(--lead); margin-top: 6px; }
.dive-card .unit { font: 400 11px/1.3 var(--pixel); text-transform: uppercase; color: var(--ink-faint); }
.dive-card h3 { font-size: 18px; line-height: 1.25; margin: 8px 0 0; }
.dive-card p { margin: 0; color: var(--ink-dim); font-size: 14.5px; }
.dive-card .state { margin-top: auto; padding-top: 8px; font: 500 12px/1 var(--mono); color: var(--good); }
.dive-card.started { border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.dive .dive-head { padding-bottom: 8px; }
.stepper { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 22px 0 0; padding: 0; }
.stepper li { display: flex; align-items: center; gap: 8px; font: 400 11px/1 var(--pixel); text-transform: uppercase; color: var(--ink-faint); }
.stepper .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line-2); font: 500 11px/1 var(--mono); }
.stepper li.open { color: var(--ink-2); }
.stepper li.done .n { background: var(--good); border-color: var(--good); color: var(--lead-ink); }
.stepper li.now { color: var(--lead); }
.stepper li.now .n { background: var(--lead); border-color: var(--lead); color: var(--lead-ink); }
.step-card { margin-top: 18px; padding: clamp(18px, 3vw, 30px); }
.step-card h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 12px; }
.step-card h3 { font-size: 16px; margin: 18px 0 6px; color: var(--lead); }
.step-card p, .step-card li { color: var(--ink-2); max-width: 70ch; }
.step-card b { color: var(--ink); }
.step-card .ask { color: var(--ink); }
.step-card .locked { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--panel-2); border-left: 3px solid var(--lead); color: var(--ink); }
.step-card textarea { font: 400 16px/1.45 var(--disp); color: var(--ink); background: var(--void); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: 10px 12px; min-height: 64px; resize: vertical; width: 100%; }
.step-card textarea:disabled { color: var(--ink-2); border-style: dashed; }
.step-card textarea:focus-visible { outline: 2px solid var(--lead); outline-offset: 1px; }
.step-card .form { max-width: 720px; margin-top: 16px; }
.step-card .note { color: var(--ink-faint); font-size: 13.5px; margin: 0; }
/* the charts are drawn for a light page, so they sit on a sheet of paper: every mark stays as it was drawn */
.chart-card { margin: 4px 0 16px; padding: clamp(10px, 2vw, 18px); background: var(--paper); color: var(--paper-ink); border-radius: var(--radius-sm); }
.chart-card .chart svg { display: block; width: 100%; height: auto; }
.chart-card figcaption { margin-top: 8px; font: 400 13px/1.4 var(--mono); color: #4a4a45; }
.pool-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0; }
.pool-go .note { flex-basis: 100%; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 0 0 8px; }
.stats dt { font: 700 30px/1.05 var(--disp); color: var(--lead); letter-spacing: -.02em; }
.stats dd { margin: 4px 0 0; color: var(--ink-dim); font-size: 14.5px; }
.stats .stat { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--panel-2); border: 1px solid var(--line); }
.idea { text-transform: none; }
.more { margin-top: 14px; color: var(--ink-2); }
.more summary { cursor: pointer; color: var(--lead); font-weight: 600; }
/* the second opinion: the partner's claim in the partner's blue, the call picked, and whether the claim held */
.partner-claim { margin: 12px 0 16px; padding: 12px 16px; border-left: 3px solid var(--blue); background: rgba(91, 127, 255, 0.08); color: var(--ink); }
.form.opinion .btn[aria-pressed="true"] { border-color: var(--lead); color: var(--lead); }
.note.held { color: var(--good); }
.note.missed { color: var(--bad); }
.ctas.left { justify-content: flex-start; margin-top: 10px; }

/* ---- the pool opened from a dive: which dive it is testing, what was saved, the way back ---- */
.pool-dive { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px var(--side);
  background: var(--panel); border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--body); }
.pool-dive p { margin: 0; }
.pool-dive .eyebrow-ish { font-family: var(--pixel); font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--lead); margin-right: 8px; }
.pool-dive-saved { margin-left: auto; color: var(--ink-dim); font-family: var(--mono); font-size: 13px; }
.pool-dive-saved:empty { display: none; }

/* the check, with the partner resting (check.js) */
#check .check { margin: 1rem 0 2rem; }
#check .choice { display: flex; align-items: flex-start; gap: .5rem; margin: .4rem 0; font-weight: 400; }
#check .choice input { margin-top: .3rem; }
