/* ==========================================================================
   Reading Glasses Strength Test
   One stylesheet for the whole site. Sections:
     1. Fonts and colours     5. The test (steps, card match, chart, result)
     2. Base                  6. Home page sections
     3. Header and footer     7. Article pages
     4. Buttons               8. Printable chart and print rules
   Visitors arrive without their glasses, so text is large and contrast is
   high everywhere. Keep it that way.
   ========================================================================== */

/* 1. Fonts and colours ---------------------------------------------------- */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
}
/* Figures. Atkinson draws its zero with a slash through it, which makes a
   strength such as +1.50 harder to read at a glance. So digits and the plus
   sign are taken from Fraunces everywhere, and every strength on the site
   looks the same. This is the same font file under a second name, limited to
   those characters: nothing extra is downloaded. */
@font-face {
  font-family: "Figures";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+002B, U+0030-0039;
}

:root {
  color-scheme: light;

  --paper: #f8f5ef;
  --paper-deep: #f1ece2;
  --surface: #ffffff;
  --ink: #15171c;
  --ink-2: #41454f;
  --ink-3: #5b5f69;
  --line: #e3ddd0;
  --line-strong: #cfc7b6;
  --navy: #1b2a47;
  --navy-deep: #111c33;
  --amber: #b8742e;
  --amber-ink: #8a5215;
  --amber-wash: #f7ecda;

  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Figures", "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* The chart's print: the typeface alone, with no borrowed figures. */
  --chart: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shadow: 0 1px 2px rgba(21, 23, 28, 0.04), 0 10px 26px -10px rgba(21, 23, 28, 0.12),
    0 30px 60px -30px rgba(21, 23, 28, 0.16);
  --shadow-soft: 0 1px 2px rgba(21, 23, 28, 0.04), 0 8px 22px -14px rgba(21, 23, 28, 0.14);

  --gutter: clamp(20px, 5vw, 48px);
  --wrap: 1120px;
}

/* 2. Base ----------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 380;
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p {
  margin: 0 0 1em;
  text-wrap: pretty;
}

a {
  color: var(--ink);
  text-decoration-color: var(--amber);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-color: var(--ink);
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] {
  display: none !important;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
}
.skip:focus {
  top: 12px;
}

.eyebrow {
  margin: 0 0 1.1em;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.fine {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink-3);
}

/* 3. Header and footer ---------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.1875rem;
  font-weight: 480;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.brand svg {
  flex: none;
  width: 46px;
  height: 22px;
  color: var(--navy);
}
.brand em {
  font-style: italic;
  font-weight: 400;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 3vw, 34px);
  font-size: 1.0625rem;
}
.site-nav a {
  padding: 10px 2px;
  color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--amber);
}
.nav-short {
  display: none;
}

.brand span {
  white-space: nowrap;
}
@media (max-width: 600px) {
  .brand {
    gap: 10px;
    font-size: 1.125rem;
  }
  .brand svg {
    width: 40px;
  }
  .brand__second {
    display: block;
  }
  .nav-long {
    display: none;
  }
  .nav-short {
    display: inline;
  }
  /* The name already leads to the test, so the first link can go. */
  .site-nav a:first-child {
    display: none;
  }
  .site-nav {
    gap: 18px;
  }
}

.site-footer {
  margin-top: clamp(56px, 9vw, 120px);
  padding-block: clamp(36px, 6vw, 64px);
  background: var(--paper-deep);
  border-top: 1px solid var(--line);
  font-size: 1.0625rem;
  color: var(--ink-2);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
}
.site-footer p {
  margin: 0 0 0.7em;
  max-width: 44ch;
}
.site-footer__brand {
  font-family: var(--serif);
  font-size: 1.375rem;
  color: var(--ink);
}
.site-footer nav {
  display: grid;
  gap: 2px;
  align-content: start;
}
.site-footer nav a {
  padding: 7px 0;
  width: fit-content;
}
.site-footer__legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
  font-size: 1rem;
  color: var(--ink-3);
}
@media (max-width: 720px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* 4. Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 60px;
  padding: 8px 32px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 1.1875rem/1.15 var(--sans);
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}
.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(27, 42, 71, 0.7);
}
.btn--primary:hover {
  background: var(--navy-deep);
  transform: translateY(-1px);
}
.btn--primary:active {
  transform: translateY(0);
}
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--ink);
}
.btn--block {
  display: flex;
  width: 100%;
}
.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.linkbtn {
  padding: 12px 4px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  cursor: pointer;
}
.linkbtn:hover {
  color: var(--ink);
  text-decoration-color: var(--ink);
}

/* 5. The test ------------------------------------------------------------- */

/* While the test runs, everything else on the home page steps aside. */
body.is-testing .home-sections,
body.is-testing .site-nav {
  display: none;
}

.stage {
  max-width: 600px;
  min-height: calc(100vh - 150px);
  margin-inline: auto;
  padding-block: clamp(4px, 2vw, 28px) 40px;
}
.stage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(18px, 4vw, 34px);
}
.stage__progress {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}
.stage__count {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.steps {
  display: flex;
  gap: 6px;
  flex: 1;
  max-width: 168px;
}
.steps i {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--line-strong);
  transition: background-color 0.3s ease;
}
.steps i.is-done {
  background: var(--navy);
}

.view {
  animation: rise 0.42s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.stage h2 {
  font-size: clamp(2rem, 1.35rem + 3.2vw, 2.75rem);
  margin-bottom: 0.4em;
}
.stage h2:focus {
  outline: none;
}
.say {
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink-2);
}
.problem {
  padding: 14px 18px;
  border-left: 3px solid var(--amber);
  border-radius: 0 12px 12px 0;
  background: var(--amber-wash);
  font-size: 1.125rem;
}

/* Age */
.choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}
.choice {
  min-height: 66px;
  padding: 10px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 18px;
  background: var(--surface);
  color: var(--ink);
  font: 500 1.3125rem/1.1 var(--sans);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.choice:hover {
  border-color: var(--ink);
}
.choice:active {
  transform: scale(0.985);
  background: var(--amber-wash);
}
.choices .choice:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* Card match. The stage ignores touches on purpose: a hand holding a card
   against the glass must not move anything. */
.cal__stage {
  position: relative;
  width: min(100vw - 48px, 820px);
  margin: 22px calc((100% - min(100vw - 48px, 820px)) / 2) 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background-color: var(--surface);
  background-image: radial-gradient(var(--line) 1px, transparent 1.4px);
  background-size: 16px 16px;
  pointer-events: none;
  touch-action: none;
  user-select: none;
}
.cal__outline {
  position: absolute;
  left: 12px;
  bottom: 12px;
  border: 2px solid var(--navy);
  background: rgba(27, 42, 71, 0.07);
}
.cal[data-layout="flat"] .cal__outline {
  border-top-color: var(--amber);
  border-right-color: var(--amber);
  border-top-width: 3px;
  border-right-width: 3px;
}
.cal[data-layout="upright"] .cal__outline {
  top: -40px;
  border-right: 3px solid var(--amber);
  border-radius: 0 0 0 10px;
}
.cal[data-layout="sideways"] .cal__outline {
  right: 12px;
  border-top: 3px solid var(--amber);
  border-radius: 0 0 10px 10px;
}
.cal__hint {
  position: absolute;
  left: 26px;
  bottom: 24px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.75;
}
.cal__controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 6px;
}
.cal__slider {
  flex: 1;
  min-width: 0;
  height: 48px;
  margin: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.cal__slider::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
}
.cal__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 36px;
  height: 36px;
  margin-top: -16px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 2px 10px rgba(21, 23, 28, 0.32);
}
.cal__slider::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
}
.cal__slider::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 2px 10px rgba(21, 23, 28, 0.32);
}
.btn--round {
  flex: none;
  width: 54px;
  height: 54px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font: 400 1.75rem/1 var(--sans);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.btn--round:hover {
  border-color: var(--ink);
}
.cal .btn--block {
  margin-top: 14px;
}
.cal .fine {
  margin-top: 16px;
}
@media (max-width: 640px) {
  /* Edge to edge on a phone: a card is nearly as wide as the screen. */
  .cal__stage {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    border-inline: 0;
    border-radius: 0;
  }
}

/* Get ready */
.ready {
  display: grid;
  gap: 0;
  margin: 22px 0 28px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.ready li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.25rem;
  line-height: 1.45;
}
.ready svg {
  width: 40px;
  height: 40px;
  color: var(--navy);
}
.ready strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.4375rem;
  font-weight: 420;
  letter-spacing: -0.012em;
  line-height: 1.2;
  margin-bottom: 2px;
}
.ready span {
  color: var(--ink-2);
}

/* The chart: black on white whatever else changes, like a printed card. */
.chart {
  margin-top: 20px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
}
.chart__row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 18px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: #000;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chart__row + .chart__row::before {
  content: "";
  position: absolute;
  inset: 0 14px auto 18px;
  border-top: 1px solid #ece7dc;
}
.chart__row:hover {
  background: #faf8f3;
}
.chart__row[aria-checked="true"] {
  background: var(--amber-wash);
}
.chart__row[aria-checked="true"]::before,
.chart__row[aria-checked="true"] + .chart__row::before {
  border-color: transparent;
}
.chart__line {
  position: relative;
  flex: 1;
  min-width: 0;
}
.chart__text {
  position: absolute;
  left: 0;
  font-family: var(--chart);
  font-weight: 400;
  font-kerning: normal;
  line-height: 1;
  white-space: nowrap;
  color: #000;
}
.chart__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid #c9c2b3;
  border-radius: 50%;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.chart__row[aria-checked="true"] .chart__mark {
  border-color: var(--navy);
  background: var(--navy);
}
.chart__row[aria-checked="true"] .chart__mark::after {
  content: "";
  width: 12px;
  height: 7px;
  margin-top: -3px;
  border: solid #fff;
  border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg);
}
/* The button stays at the bottom of the screen while the chart is taller
   than the screen, so it is always in reach on a phone. */
.chart-confirm {
  position: sticky;
  bottom: 0;
  z-index: 1;
  margin: 0 calc(var(--gutter) * -1);
  padding: 16px var(--gutter) max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(248, 245, 239, 0), var(--paper) 22%);
}
.chart-none {
  margin: 0;
  text-align: center;
}
.chart-note {
  margin-top: 16px;
}

/* Result */
.result__figure {
  margin: 0.02em 0 0.1em -0.04em;
  font-family: var(--serif);
  font-size: clamp(6rem, 2.6rem + 19vw, 10rem);
  font-weight: 300;
  font-variant-numeric: lining-nums;
  line-height: 0.92;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.result__figure .plus {
  margin-right: 0.03em;
  color: var(--amber);
}
.result__headline {
  font-size: clamp(2.4rem, 1.5rem + 4.6vw, 3.6rem);
  margin: 0.1em 0 0.35em;
}
.result__for {
  font-size: 1.3125rem;
  line-height: 1.4;
  color: var(--ink-2);
  margin-bottom: 0.4em;
}
.result h3 {
  font-size: 1.625rem;
  margin: 2em 0 0.5em;
}

.buy {
  margin-top: 30px;
  padding: clamp(20px, 5vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.buy h3 {
  margin: 0 0 0.3em;
  font-size: 1.5rem;
}
.buy__disclosure {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink-3);
}
.buy__more {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.buy__more a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 2px;
  border-top: 1px solid var(--line);
  text-decoration: none;
}
.buy__more a:hover .buy__label {
  text-decoration: underline;
  text-decoration-color: var(--amber);
  text-underline-offset: 3px;
}
.buy__label {
  display: block;
  font-weight: 600;
}
.buy__note {
  display: block;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink-3);
}
.buy__more svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--ink-3);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.tile {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
}
.tile__label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tile__value {
  margin: 0.15em 0 0.1em;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 340;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.tile__value--words {
  font-size: 1.5rem;
  line-height: 1.2;
  margin-block: 0.4em 0.3em;
}
.tile__where {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink-2);
}
.tile a {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.0625rem;
  font-weight: 600;
}
@media (max-width: 420px) {
  .tiles {
    grid-template-columns: 1fr;
  }
}

.note {
  margin: 22px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--amber);
  border-radius: 0 14px 14px 0;
  background: var(--amber-wash);
}
.note p:last-child {
  margin-bottom: 0;
}
.note strong:first-child {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 440;
  letter-spacing: -0.012em;
}

.result ul {
  margin: 0 0 1em;
  padding-left: 1.2em;
}
.result li {
  margin-bottom: 0.4em;
}
.result li::marker {
  color: var(--amber);
}
.result .buy__more {
  padding-left: 0;
}
.result .buy__more li {
  margin-bottom: 0;
}
.result__actions {
  display: grid;
  gap: 12px;
  margin-top: 34px;
}

/* 6. Home page ------------------------------------------------------------ */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
  padding-block: clamp(20px, 5vw, 72px) clamp(56px, 9vw, 120px);
}
.hero h1 {
  font-size: clamp(2.9rem, 1.5rem + 6.4vw, 5.5rem);
  font-weight: 340;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: 0.38em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 320;
  color: var(--navy);
}
.lede {
  max-width: 31ch;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.5rem);
  line-height: 1.45;
  color: var(--ink-2);
  margin-bottom: 1.5em;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
.hero__need {
  margin: 20px 0 0;
  max-width: 34ch;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.saved {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 26px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 1.125rem;
}
.saved .linkbtn {
  padding-block: 6px;
}

/* Phone hand-off: only offered to mouse-and-keyboard screens. */
.handoff {
  display: none;
}
@media (hover: hover) and (pointer: fine) and (min-width: 881px) {
  .handoff {
    display: flex;
    align-items: center;
    gap: 18px;
    max-width: 420px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    font-size: 1.0625rem;
    line-height: 1.45;
    color: var(--ink-2);
  }
  .handoff img {
    flex: none;
    width: 96px;
    height: 96px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }
  .handoff strong {
    display: block;
    color: var(--ink);
  }
}

/* The reading card in the hero. Decorative: the real chart is drawn to size. */
.card-art {
  position: relative;
  justify-self: center;
  width: min(100%, 430px);
  margin-right: clamp(0px, 2vw, 24px);
}
.card-art__card {
  padding: 22px 26px 12px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: rotate(-1.75deg);
}
.card-art__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.card-art__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0.42em 0 0.5em;
  border-bottom: 1px solid #ece7dc;
  color: #000;
  line-height: 1;
  white-space: nowrap;
}
.card-art__row:last-child {
  border-bottom: 0;
}
.card-art__row i {
  flex: none;
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  font-weight: 400;
  color: var(--amber-ink);
}
.card-art__specs {
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 52%;
  transform: rotate(-11deg);
  filter: drop-shadow(0 14px 12px rgba(21, 23, 28, 0.22));
}
@media (max-width: 880px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .card-art {
    margin: 8px 0 36px;
    width: min(100%, 400px);
  }
  .card-art__specs {
    right: -8px;
  }
}

.section {
  padding-block: clamp(56px, 9vw, 112px);
  border-top: 1px solid var(--line);
}
.section__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(24px, 6vw, 88px);
  align-items: start;
}
.section h2 {
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  font-weight: 350;
  letter-spacing: -0.025em;
}
.section h2 em {
  font-style: italic;
  font-weight: 330;
}
.section__intro {
  max-width: 30ch;
  color: var(--ink-2);
}
@media (max-width: 880px) {
  .section__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .section__intro {
    max-width: 44ch;
  }
}

.how {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: how;
}
.how li {
  display: grid;
  grid-template-columns: clamp(52px, 8vw, 84px) 1fr;
  gap: 8px 12px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: how;
}
.how li:first-child {
  padding-top: 4px;
}
.how li::before {
  content: counter(how);
  font-family: var(--serif);
  font-size: clamp(2.6rem, 2rem + 2.6vw, 3.75rem);
  font-style: italic;
  font-weight: 300;
  line-height: 0.9;
  color: var(--amber);
}
.how h3 {
  font-size: 1.625rem;
  margin: 0 0 0.3em;
}
.how p {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-2);
}

/* Strength by age: set like a price list, with dotted leaders. */
.ages {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ages li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  font-size: 1.25rem;
}
.ages li::after {
  content: "";
  order: 1;
  flex: 1;
  min-width: 24px;
  border-bottom: 2px dotted var(--line-strong);
  transform: translateY(-5px);
}
.ages b {
  order: 2;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: -0.01em;
}
.ages .is-none b {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-2);
}

.shop {
  margin-top: 36px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}
.shop h3 {
  font-size: 1.5rem;
  margin-bottom: 0.25em;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.chips a {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 6px 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-variant-numeric: lining-nums;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.chips a:hover {
  border-color: var(--navy);
  background: var(--amber-wash);
}

.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-of-type {
  border-top: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: clamp(1.3125rem, 1.2rem + 0.5vw, 1.5rem);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: linear-gradient(var(--amber-ink), var(--amber-ink)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--amber-ink), var(--amber-ink)) center / 1.5px 100% no-repeat;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  max-width: 58ch;
  margin: -4px 0 24px;
  color: var(--ink-2);
}

.sources {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.0625rem;
  color: var(--ink-2);
}
.sources li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.closing {
  text-align: center;
}
.closing h2 {
  max-width: 16ch;
  margin-inline: auto;
}
.closing p {
  max-width: 44ch;
  margin-inline: auto;
  color: var(--ink-2);
}

.noscript {
  margin-top: 20px;
  padding: 16px 20px;
  border-left: 3px solid var(--amber);
  background: var(--amber-wash);
}

/* 7. Article pages -------------------------------------------------------- */

.article {
  max-width: 46rem;
  padding-block: clamp(20px, 5vw, 64px) 0;
}
.article h1 {
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.25rem);
  font-weight: 340;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.45em;
}
.article h1 em,
.article h2 em {
  font-style: italic;
  font-weight: 320;
}
.article .lede {
  max-width: 38ch;
}
.article h2 {
  font-size: clamp(1.75rem, 1.5rem + 1.2vw, 2.125rem);
  margin: 1.9em 0 0.5em;
}
.article ul,
.article ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
}
.article li {
  margin-bottom: 0.5em;
}
.article li::marker {
  color: var(--amber-ink);
}
.draft {
  display: inline-block;
  margin: 0 0 1.4em;
  padding: 8px 14px;
  border: 1px dashed var(--amber);
  border-radius: 10px;
  background: var(--amber-wash);
  font-size: 1rem;
  color: var(--ink-2);
}
.meta-line {
  font-size: 1rem;
  color: var(--ink-3);
}
.article__cta {
  margin-top: 2.6em;
  padding-top: 2em;
  border-top: 1px solid var(--line);
}

/* 8. Printable chart ------------------------------------------------------ */

.sheet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 1.6em 0 2em;
}

.sheet {
  margin: 0 0 2.4em;
  padding: clamp(18px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: #000;
  box-shadow: var(--shadow);
  overflow-x: auto;
}
.sheet__head,
.sheet__foot {
  font-size: 10pt;
  line-height: 1.4;
  color: #333;
}
.sheet__title {
  margin: 0 0 2pt;
  font-family: var(--serif);
  font-size: 17pt;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: #000;
}
.sheet__how {
  margin: 0 0 9pt;
}
.article .sheet__rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 0.5pt solid #999;
}
.article .sheet__row {
  margin: 0;
}
.sheet__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5mm;
  padding: 2.2mm 0;
  border-bottom: 0.5pt solid #bbb;
  break-inside: avoid;
}
.sheet__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-family: var(--chart);
  font-weight: 400;
  line-height: 1.02;
  white-space: nowrap;
  color: #000;
}
.sheet__label {
  flex: none;
  font-family: var(--serif);
  font-size: 15pt;
  font-variant-numeric: lining-nums tabular-nums;
  color: #000;
}
.sheet__check {
  display: flex;
  align-items: center;
  gap: 6mm;
  margin-top: 6mm;
  break-inside: avoid;
}
.sheet__card {
  flex: none;
  width: 85.6mm;
  height: 53.98mm;
  border: 0.75pt dashed #000;
  border-radius: 3.18mm;
  display: grid;
  place-items: center;
  font-size: 9pt;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
}
.sheet__check p {
  margin: 0;
  font-size: 10pt;
  line-height: 1.45;
  color: #222;
}
.sheet__foot {
  margin: 5mm 0 0;
  font-size: 8.5pt;
  color: #555;
}

.sizes {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.125rem;
}
.sizes caption {
  margin-bottom: 0.6em;
  text-align: left;
  font-size: 1rem;
  color: var(--ink-3);
}
.sizes th,
.sizes td {
  padding: 12px 10px 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
}
.sizes thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-bottom-color: var(--line-strong);
}
.sizes td:last-child,
.sizes th:last-child {
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-variant-numeric: lining-nums tabular-nums;
}
.sizes thead th:last-child {
  font-family: var(--sans);
  font-size: 0.8125rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .view,
  .btn,
  .choice,
  .steps i,
  .faq summary::after {
    animation: none;
    transition: none;
  }
}

@page {
  size: auto;
  margin: 14mm 16mm;
}

@media print {
  body {
    background: #fff;
    font-size: 11pt;
  }
  .site-header,
  .site-footer,
  .skip,
  .no-print,
  .sheet-actions {
    display: none !important;
  }
  .wrap,
  .article {
    max-width: none;
    padding: 0;
  }
  /* On the chart page, only the sheet is printed. Sizes on it are physical
     units, so it must be printed at 100%. */
  .print-sheet-only > :not(.sheet) {
    display: none !important;
  }
  .sheet {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }
  a {
    text-decoration: none;
  }
}
