/* One stylesheet for the whole site. Light only, one family, one accent, no boxes, no hairlines, no underlines.
 * Choices: research/13-result-page-notes.md */
@font-face { font-family: "Inter Site"; src: url("../fonts/inter-latin.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #1c1b19;
  --quiet: #68645e;
  --track: #e9e6e1;
  --accent: #0a7266;
  --accent-down: #075a50;
  --gutter: 20px;
  --col: 1080px;
  --prose: 640px;
  --lead: 400px;
  --gap: 40px;
  --head: 56px;
  --fade: 160ms;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 "Inter Site", system-ui, sans-serif; font-optical-sizing: auto; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; font-size: inherit; font-weight: inherit; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
main:focus, h1:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: -999px; z-index: 5; padding: 8px 12px; background: var(--paper); }
.skip:focus { left: 8px; }
.quiet { color: var(--quiet); }
.num, .tn { font-variant-numeric: tabular-nums; }
.num { position: relative; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.chev { flex: none; color: var(--quiet); transition: transform var(--fade) ease; }
[aria-expanded="true"] .chev { transform: rotate(180deg); }
.fade { animation: fade var(--fade) ease; }
@keyframes fade { from { opacity: 0; } }

/* ---------- site header and footer ---------- */
.site { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); height: var(--head); display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.site a { display: inline-flex; align-items: center; min-height: 44px; color: var(--quiet); }
.site a:first-child { color: var(--ink); font-weight: 600; }
.site a:hover { color: var(--accent); }

footer { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 104px var(--gutter) 64px; color: var(--quiet); font-size: 15px; }
.foot-in { max-width: var(--prose); display: grid; gap: 12px; }
footer nav { display: flex; flex-wrap: wrap; column-gap: 24px; margin-top: 12px; color: var(--ink); }
footer nav a, footer nav button { display: inline-flex; align-items: center; min-height: 44px; }
footer nav a:hover, footer nav button:hover { color: var(--accent); }

/* ---------- result, screen 1 ---------- */
.wide { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.hero { min-height: calc(100vh - var(--head)); min-height: calc(100svh - var(--head)); padding-bottom: 12px; display: flex; flex-direction: column; }
.summary { font-size: 27px; line-height: 1.24; font-weight: 600; letter-spacing: -0.022em; text-wrap: balance; margin-top: 8px; }
.rows { margin: auto 0; padding: 24px 0; max-width: var(--prose); width: 100%; }
.foot { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; color: var(--quiet); font-size: 15px; }
.foot p { text-wrap: balance; }
.foot p, .meta { flex-basis: 100%; }
.disclose { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.tools { display: flex; gap: 24px; }
.tools button { min-height: 44px; }
.tools button:hover, .disclose:hover { color: var(--ink); }

.row { display: grid; grid-template-columns: 1fr auto; column-gap: 28px; align-items: center; padding: 14px 0; }
.row-name { font-size: 17px; line-height: 1.3; align-self: end; }
.num-row { grid-row: 1 / 3; grid-column: 2; font-size: 44px; min-width: 1.25em; text-align: right; }
.row .track { margin-top: 10px; align-self: start; }
.track { display: block; position: relative; height: 4px; border-radius: 2px; background: var(--track); }
.track i { position: absolute; top: -4px; left: calc(var(--p, 0) * (100% - 12px)); width: 12px; height: 12px; border-radius: 6px; background: var(--accent); }

.about { padding-top: 24px; scroll-margin-top: 64px; }
.about-in { max-width: var(--prose); color: var(--quiet); font-size: 15px; display: grid; gap: 16px; }
.about strong { font-weight: 500; color: var(--ink); margin-right: 6px; }
.plain { display: grid; gap: 12px; }

/* ---------- switcher ---------- */
.switcher { position: fixed; z-index: 2; inset: 0 0 auto; background: var(--paper); opacity: 0; visibility: hidden; transition: opacity var(--fade) ease, visibility 0s linear var(--fade); }
.switcher.on { opacity: 1; visibility: visible; transition: opacity var(--fade) ease; }
.switcher ul { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.switcher ul::-webkit-scrollbar { display: none; }
.switcher a { display: block; padding: 16px 0; font-size: 15px; line-height: 20px; white-space: nowrap; color: var(--quiet); transition: color var(--fade) ease; }
.switcher a:focus-visible { outline-offset: -4px; }
.switcher a:hover { color: var(--ink); }
.switcher a[aria-current] { color: var(--accent); font-weight: 500; }

/* ---------- sections ---------- */
.domain, .after, .sec { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 104px var(--gutter) 0; }
.sec { padding-top: 64px; }
h2 { font-size: 28px; line-height: 1.2; font-weight: 600; letter-spacing: -0.022em; }
.sec h2 { font-size: 22px; }
.num-domain { display: block; font-size: 88px; margin: 20px 0 0 -0.05em; }
.body { margin-top: 36px; max-width: var(--prose); }
.sec .body { margin-top: 16px; }
.phrase { font-size: 21px; line-height: 1.38; font-weight: 500; letter-spacing: -0.012em; text-wrap: pretty; margin-bottom: 28px; }
.prose { display: grid; gap: 20px; }
.prose > * { min-width: 0; overflow-wrap: anywhere; }
.prose a { color: var(--accent); font-weight: 500; }
.prose a:hover { color: var(--accent-down); }
.prose strong, .prose dt { font-weight: 600; }
.prose ul, .prose ol, .prose dl { display: grid; gap: 14px; }
.prose em { font-style: normal; font-weight: 500; }
.refs { font-size: 15px; }
.refs a { color: var(--quiet); font-weight: 400; }
.refs a:hover { color: var(--accent); }
.combo { margin-top: 40px; }
.combo h3 { font-weight: 600; margin-bottom: 6px; }
.src { font-size: 14px; color: var(--quiet); }
.src .chev { width: 10px; height: 10px; }
.src-list { display: grid; gap: 6px; padding-bottom: 12px; overflow-wrap: anywhere; }
.reading { display: grid; gap: 20px; }
.mixed { margin-top: 20px; }
.facets { margin-top: 44px; }
.facet { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; width: 100%; min-height: 48px; font-weight: 500; line-height: 1.3; }
.facet:hover .chev { color: var(--ink); }
.num-facet { font-size: 20px; letter-spacing: -0.01em; min-width: 2ch; text-align: right; }
.facet-text { display: grid; gap: 14px; padding: 4px 0 28px; }
.facet-text .quiet { font-size: 15px; }
.pairs { display: grid; gap: 28px; margin-top: 36px; }
.pairs h3 { font-weight: 600; margin-bottom: 4px; }

/* ---------- controls ---------- */
.actions { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; row-gap: 8px; margin-top: 32px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 28px; border-radius: 24px; background: var(--accent); color: var(--paper); font-weight: 500; transition: background var(--fade) ease; }
.btn:hover { background: var(--accent-down); }
.text { display: inline-flex; align-items: center; min-height: 48px; color: var(--quiet); }
.text:hover { color: var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--accent); }
.msg { margin-top: 8px; color: var(--accent); }

dialog { border: 0; padding: 32px; border-radius: 20px; width: min(440px, calc(100vw - 40px)); color: var(--ink); background: var(--paper); }
dialog[open] { animation: fade var(--fade) ease; }
dialog::backdrop { background: rgba(28, 27, 25, 0.45); }
dialog input[readonly] { width: 100%; margin-top: 20px; padding: 12px 14px; border: 0; border-radius: 10px; background: var(--track); color: var(--ink); font: inherit; font-size: 16px; }
dialog .check { font-size: 15px; line-height: 1.5; }
dialog .check input { margin-top: 2px; }

/* ---------- landing, start and text pages ---------- */
.page { padding-top: 24px; }
.page .summary { max-width: 18em; }
.lede { font-size: 19px; line-height: 1.5; }
.intro { max-width: var(--prose); margin-top: 28px; }

/* ---------- questionnaire ---------- */
.progress { position: fixed; z-index: 2; inset: 0 0 auto; height: 3px; background: var(--track); }
.progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: var(--accent); transition: width var(--fade) ease; }
.q { display: flex; flex-direction: column; min-height: calc(100vh - var(--head)); min-height: calc(100svh - var(--head)); padding-bottom: 24px; }
.ask { display: flex; align-items: flex-end; height: 42vh; height: 42svh; min-height: 200px; }
.statement { font-size: 32px; line-height: 1.16; font-weight: 600; letter-spacing: -0.024em; text-wrap: balance; max-width: 18em; }
.scale { display: grid; grid-template-columns: repeat(5, 56px); justify-content: space-between; max-width: calc(var(--prose) + 24px); margin: 44px -12px 0; row-gap: 4px; }
.point { display: flex; align-items: center; justify-content: center; height: 56px; }
.point i { display: block; width: 32px; height: 32px; border-radius: 16px; border: 2px solid var(--quiet); transition: background var(--fade) ease, border-color var(--fade) ease; }
.point[aria-pressed="true"] i { border-color: var(--accent); background: var(--accent); }
.point:focus-visible { outline: none; }
.point:focus-visible i { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (hover: hover) { .live .point:hover i { border-color: var(--accent); } }
.anchor { grid-row: 2; padding: 0 12px; font-size: 15px; line-height: 1.4; color: var(--quiet); }
.anchor-low { grid-column: 1 / 3; }
.anchor-high { grid-column: 4 / 6; text-align: right; }
.anchor-mid { grid-column: 1 / 6; grid-row: 3; text-align: center; opacity: 0; transition: opacity var(--fade) ease; }
.point:nth-child(3):focus-visible ~ .anchor-mid { opacity: 1; }
@media (hover: hover) { .live .point:nth-child(3):hover ~ .anchor-mid { opacity: 1; } }
.q .back { margin-top: auto; align-self: flex-start; font-size: 15px; }

/* ---------- desktop ---------- */
@media (min-width: 800px) {
  :root { --gutter: 40px; --head: 72px; }
  body { font-size: 18px; }
  .hero { padding-bottom: 20px; }
  .summary { font-size: 40px; line-height: 1.18; margin-top: 24px; }
  .row { padding: 10px 0; }
  .row-name { font-size: 18px; }
  .num-row { font-size: 48px; }
  .domain, .after, footer { padding-top: 176px; }
  .sec { padding-top: 96px; }

  /* the one grid: lead column + reading column, from the first screen to the footer */
  .rows, .foot, .about-in, .intro { margin-left: calc(var(--lead) + var(--gap)); }
  .rows, .foot { width: auto; }
  .foot { position: relative; flex-wrap: nowrap; justify-content: space-between; min-height: 44px; max-width: var(--prose); }
  .foot p { flex-basis: auto; }
  .tools { position: absolute; top: 0; left: calc(-1 * (var(--lead) + var(--gap))); }
  .domain, .after, .sec { display: grid; grid-template-columns: var(--lead) minmax(0, var(--prose)); column-gap: var(--gap); align-items: start; }
  .lead { position: sticky; top: 96px; }
  h2 { font-size: 34px; }
  .sec h2 { font-size: 24px; }
  .num-domain { font-size: 168px; margin-top: 16px; }
  .body, .sec .body { margin-top: 6px; }
  .sec .body { margin-top: 0; }
  .phrase { font-size: 24px; line-height: 1.34; margin-bottom: 32px; }
  footer { padding-left: calc(var(--gutter) + var(--lead) + var(--gap)); }

  .page .summary { font-size: 56px; line-height: 1.08; letter-spacing: -0.028em; margin-top: 56px; }
  .page.small .summary { font-size: 40px; line-height: 1.18; }
  .lede { font-size: 21px; }
  .intro { margin-top: 48px; }

  .statement { font-size: 56px; line-height: 1.08; letter-spacing: -0.028em; }
  .scale { margin-top: 64px; }
  .anchor-mid { grid-row: 2; grid-column: 2 / 5; }
}
@media (min-width: 800px) and (max-width: 1100px) {
  :root { --lead: 240px; }
  h2 { font-size: 28px; }
  .num-domain { font-size: 112px; }
  .page .summary, .statement { font-size: 44px; }
  .foot { flex-wrap: wrap; }
}
@media (max-width: 359px) { .row-name { font-size: 16px; } .tools, .foot { column-gap: 14px; gap: 14px; } .foot { row-gap: 0; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade, dialog[open] { animation: none; }
  .chev, .switcher, .switcher.on, .switcher a, .btn, .progress i, .point i, .anchor-mid { transition: none; }
}

/* ---------- paper: everything open, controls gone ---------- */
@page { margin: 18mm 16mm; }
@media print {
  .site, .tools, .switcher, .chev, .skip, dialog, .disclose, .actions, footer nav, .again { display: none !important; }
  .facet-text[hidden], .about[hidden], .src-list[hidden] { display: grid !important; }
  .fade { animation: none; }
  body { font-size: 10.5pt; line-height: 1.5; }
  .hero { min-height: 0; }
  .summary { font-size: 22pt; }
  .phrase { font-size: 13pt; margin-bottom: 14px; }
  .num-domain { font-size: 44pt; margin-top: 8px; }
  .num-row { font-size: 28pt; }
  .row { padding: 8px 0; }
  .about-in, .facet-text .quiet, footer { font-size: 9pt; }
  .src { font-size: 8pt; }
  .about-in p, .about-in li { break-inside: avoid; }
  .body { margin-top: 18px; max-width: none; }
  .facet { min-height: 32px; }
  .facet-text { gap: 8px; padding-bottom: 12px; }
  .facets, .combo, .pairs { margin-top: 20px; }
  .wide, .domain, .after, footer { padding-left: 0; padding-right: 0; }
  .domain, .after, footer { padding-top: 32px; }
  .domain { break-before: page; padding-top: 0; }
  h2, .facet, .combo h3, .pairs h3 { break-after: avoid; }
  .facets li, .pairs li, .reading li, .combo { break-inside: avoid; }
  .lead { position: static; }
  .track, .track i { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
