:root {
  color-scheme: light;
  --paper: #f3efe3;
  --paper-bright: #fffdf6;
  --paper-soft: #e8e2d4;
  --paper-deep: #d9d1c0;
  --ink: #121210;
  --ink-soft: #24251f;
  --ink-raised: #303129;
  --quiet: #6c685f;
  --red: #ff543f;
  --blue: #1747ff;
  --yellow: #f5d82d;
  --pink: #f04eae;
  --green: #65dc84;
  --sans: "Local Grotesk", Arial, sans-serif;
  --mono: "Local Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
section[id] { scroll-margin-top: 58px; }
body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: 1000;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
input[type="range"] {
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: color-mix(in srgb, currentColor 24%, transparent);
}
input[type="range"]::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  margin-top: -5px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: currentColor;
}
input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 99px;
  background: color-mix(in srgb, currentColor 24%, transparent);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 50%;
  background: currentColor;
}
:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 1100;
  top: 10px;
  left: 10px;
  padding: 9px 13px;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { transform: none; }

.site-nav {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 20px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: 0 12px 32px rgba(18, 18, 16, .1);
  font-family: var(--mono);
  font-size: 13px;
  backdrop-filter: blur(12px);
}
.wordmark {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-decoration: none;
}
.wordmark span { margin: 0 .65ch; color: var(--quiet); font-weight: 400; }
.site-nav nav { display: flex; align-items: center; gap: 4px; }
.site-nav nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  background: transparent;
  text-decoration: none;
  transition: background .16s, color .16s;
}
.site-nav nav a:hover { background: var(--paper-deep); }
.site-nav nav .nav-download {
  background: var(--ink);
  color: var(--paper-bright);
  font-weight: 700;
}
.site-nav nav .nav-download:hover { background: var(--blue); color: white; }

.hero {
  --hero-weight: 550;
  position: relative;
  min-height: max(760px, 100svh);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto minmax(280px, 1fr) auto;
  column-gap: 12px;
  row-gap: 20px;
  padding: 82px 20px 28px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 42%, rgba(255, 255, 255, .72), transparent 52%),
    linear-gradient(145deg, var(--paper-bright), var(--paper) 52%, var(--paper-soft));
}
.hero-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 14px;
  background: var(--paper-soft);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}
.hero-type {
  grid-column: 1 / -1;
  align-self: center;
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  padding: .14em .04em .08em 0;
  font-size: min(28vw, 430px);
  font-weight: var(--hero-weight);
  font-variation-settings: "wght" var(--hero-weight);
  letter-spacing: -.085em;
  line-height: .76;
  white-space: nowrap;
}
.hero-type span {
  display: inline-block;
  transform-origin: 50% 80%;
  will-change: font-weight, transform;
}
.hero-type span:nth-child(2) { color: var(--blue); transform: translateY(-.015em) rotate(-1.4deg); }
.hero-type span:nth-child(4) { color: var(--red); transform: translateY(.02em) rotate(1deg); }
.hero-copy {
  grid-column: 1 / 9;
  align-self: stretch;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(230px, .85fr);
  gap: clamp(22px, 3vw, 48px);
  padding: clamp(20px, 2.2vw, 32px);
  background: var(--paper-soft);
  box-shadow: 0 18px 48px rgba(18, 18, 16, .1);
}
.hero-line {
  align-self: end;
  margin: 0;
  font-size: clamp(23px, 3vw, 42px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.01;
}
.hero-intro {
  max-width: 38ch;
  align-self: end;
  display: grid;
  gap: 18px;
}
.hero-intro p {
  margin: 0;
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.42;
}
.download-card {
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  background: var(--ink);
  box-shadow: 0 12px 28px rgba(18, 18, 16, .18);
  color: var(--paper-bright);
  text-decoration: none;
  transition: background .16s, transform .16s;
}
.download-card:hover { background: var(--blue); transform: translateY(-2px); }
.download-card strong { font-size: 15px; }
.download-card > span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.hero-controls {
  grid-column: 9 / -1;
  align-self: stretch;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto 1fr;
  align-content: space-between;
  gap: 14px 16px;
  padding: clamp(18px, 2.2vw, 30px);
  background: var(--yellow);
  box-shadow: 0 18px 42px rgba(18, 18, 16, .14);
  font-family: var(--mono);
  font-size: 12px;
}
.hero-controls label { display: flex; justify-content: space-between; gap: 12px; text-transform: uppercase; }
.hero-controls input { grid-column: 1 / -1; align-self: end; width: 100%; accent-color: var(--ink); }
.motion-toggle {
  grid-column: 2;
  grid-row: 1;
  padding: 3px 7px;
  border: 0;
  background: rgba(18, 18, 16, .12);
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.section { padding: clamp(78px, 11vw, 170px) 20px; }
.section-label {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 14px;
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}
.why { background: var(--paper-bright); }
.why-lead {
  display: grid;
  grid-template-columns: 2fr 5fr 3fr;
  gap: clamp(20px, 4vw, 72px);
  align-items: start;
  padding: clamp(50px, 7vw, 100px) 0 clamp(72px, 9vw, 130px);
}
.eyebrow {
  margin: 5px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}
.why-lead h2 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(54px, 8.6vw, 134px);
  font-weight: 550;
  letter-spacing: -.065em;
  line-height: .83;
}
.why-lead h2 em {
  color: var(--red);
  font-style: normal;
  font-weight: 700;
}
.why-lead > p:last-child {
  max-width: 36ch;
  margin: 3px 0 0;
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.45;
}
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 10px;
  background: var(--paper-soft);
}
.principles article {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--paper-bright);
}
.principles article:nth-child(2) { background: var(--yellow); }
.principles article:nth-child(3) { background: var(--pink); }
.principle-number { font-family: var(--mono); font-size: 12px; }
.principles h2 {
  margin: auto 0 14px;
  font-size: clamp(32px, 3.4vw, 54px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: .94;
}
.principles p { max-width: 39ch; margin: 0; font-size: 16px; }
.care-note {
  position: relative;
  width: min(920px, calc(100% - 40px));
  margin: clamp(64px, 8vw, 118px) auto 0;
  padding: clamp(24px, 4vw, 48px);
  transform: rotate(-.7deg);
  background: var(--yellow);
  box-shadow: 12px 18px 42px rgba(18, 18, 16, .2);
}
.care-note::before {
  position: absolute;
  top: -17px;
  left: 50%;
  width: 116px;
  height: 28px;
  transform: translateX(-50%) rotate(1.5deg);
  content: "";
  background: color-mix(in srgb, var(--paper-bright) 72%, transparent);
  box-shadow: 0 8px 18px rgba(18, 18, 16, .1);
}
.care-note strong { font-size: clamp(22px, 2.4vw, 34px); font-weight: 700; }
.care-note p { max-width: 70ch; margin: 12px 0 0; font-size: clamp(15px, 1.25vw, 18px); }

.family { padding: clamp(76px, 9vw, 140px) 20px; }
.family-head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 12px;
  align-items: end;
  margin-bottom: clamp(58px, 7vw, 100px);
}
.family-head > div {
  grid-column: 1 / 9;
  min-width: 0;
  display: grid;
  gap: clamp(24px, 2.5vw, 36px);
}
.family-index {
  justify-self: start;
  padding: 8px 10px;
  background: rgba(255, 253, 246, .22);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}
.family-head h2 {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: .17em;
  margin: 0;
  font-size: clamp(82px, 10.5vw, 180px);
  font-weight: 650;
  letter-spacing: -.07em;
  line-height: .84;
  white-space: nowrap;
}
.family-head h2 span { display: block; }
.family-head > p {
  grid-column: 9 / -1;
  justify-self: end;
  max-width: 43ch;
  margin: 0;
  padding: clamp(20px, 2.4vw, 32px);
  background: rgba(255, 253, 246, .78);
  font-size: clamp(17px, 1.6vw, 23px);
  line-height: 1.45;
}
.grotesk { background: var(--red); }
.mono .family-index { background: var(--ink-soft); color: #aaa99e; }
.mono .family-head h2 {
  font-family: var(--mono);
  font-size: clamp(74px, 9.4vw, 164px);
  font-variant-ligatures: none;
  font-variation-settings: "wght" 520;
  font-weight: 520;
  letter-spacing: -.055em;
  line-height: .9;
}
.mono .family-head > p { background: var(--ink-soft); color: var(--paper); }
.tester { box-shadow: 0 20px 54px rgba(18, 18, 16, .16); }
.tester-bar {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(190px, .8fr) minmax(190px, .8fr);
  align-items: center;
  gap: 20px;
  padding: 9px 13px;
  background: var(--paper-deep);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}
.tester-control { display: grid; grid-template-columns: 8ch minmax(80px, 1fr); gap: 10px; align-items: center; }
.tester-control label { display: flex; justify-content: space-between; gap: 1ch; }
.tester-control input { width: 100%; accent-color: currentColor; }
.tester-text {
  width: 100%;
  min-height: 420px;
  display: block;
  margin: 0;
  padding: clamp(24px, 5vw, 76px);
  overflow-wrap: anywhere;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: clamp(42px, min(var(--tester-size), 14vw), 150px);
  font-weight: var(--tester-weight);
  font-variation-settings: "wght" var(--tester-weight);
  letter-spacing: -.055em;
  line-height: .88;
}
.tester-text:focus { outline-offset: -8px; }
.tester-grotesk { --tester-weight: 520; --tester-size: 88px; background: var(--paper-bright); }
.glyph-field {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: clamp(150px, 11vw, 190px) clamp(120px, 8vw, 150px) clamp(110px, 7vw, 135px);
  gap: 10px;
  margin-top: 18px;
  padding: 10px;
  background: rgba(18, 18, 16, .16);
  box-shadow: 0 18px 46px rgba(18, 18, 16, .14);
}
.glyph-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(16px, 2vw, 26px);
  overflow: hidden;
  background: var(--paper-bright);
  color: var(--ink);
}
.glyph-card > span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.glyph-card > strong {
  display: block;
  font-size: clamp(30px, 3.4vw, 60px);
  font-variation-settings: "wght" 520;
  font-weight: 520;
  letter-spacing: -.045em;
  line-height: .92;
  white-space: nowrap;
}
.glyph-card:nth-child(1) { grid-column: 1 / 7; grid-row: 1 / 3; background: var(--ink); color: var(--paper); }
.glyph-card:nth-child(1) > strong { font-size: clamp(42px, 4.6vw, 80px); }
.glyph-card:nth-child(2) { grid-column: 7 / -1; grid-row: 1; }
.glyph-card:nth-child(2) > strong { font-size: clamp(38px, 4.2vw, 72px); }
.glyph-card:nth-child(3) { grid-column: 7 / 10; grid-row: 2; background: var(--yellow); }
.glyph-card:nth-child(4) { grid-column: 10 / -1; grid-row: 2; background: var(--paper-soft); }
.glyph-card:nth-child(5) { grid-column: 1 / 5; grid-row: 3; background: var(--blue); color: white; }
.glyph-card:nth-child(6) { grid-column: 5 / -1; grid-row: 3; }
.family-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
  padding: 10px;
  background: rgba(18, 18, 16, .16);
}
.family-notes article {
  min-height: clamp(190px, 15vw, 250px);
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--paper-bright);
}
.family-notes article:nth-child(2) { background: var(--paper-soft); }
.family-notes article:nth-child(3) { background: var(--ink); color: var(--paper); }
.family-notes span { font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.family-notes p { max-width: 37ch; margin: auto 0 0; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.35; }

.type-poem {
  position: relative;
  min-height: min(900px, 100svh);
  overflow: hidden;
  padding: 36px 20px;
  background: var(--yellow);
}
.type-poem p { position: absolute; margin: 0; letter-spacing: -.06em; line-height: .78; }
.poem-one { top: 7%; left: 3%; font-size: clamp(68px, 13vw, 200px); font-weight: 420; }
.poem-two { right: 2%; top: 40%; color: var(--blue); font-size: clamp(58px, 10vw, 160px); font-weight: 700; }
.poem-three { bottom: 5%; left: 14%; color: var(--red); font-size: clamp(60px, 11vw, 170px); font-weight: 560; }
.poem-stamp {
  position: absolute;
  right: -65px;
  bottom: 12%;
  padding: 9px 20px;
  transform: rotate(-90deg);
  background: var(--ink);
  box-shadow: 0 14px 32px rgba(18, 18, 16, .22);
  color: var(--yellow);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.mono { background: var(--ink); color: var(--paper); }
.mono-workbench {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 12px;
  padding: 12px;
  background: var(--ink-soft);
}
.terminal { min-width: 0; background: #181916; }
.terminal header {
  min-height: 52px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 15px;
  background: var(--ink-raised);
  color: #aaa99e;
  font-family: var(--mono);
  font-size: 11px;
}
.terminal header span:nth-child(2) { text-align: center; }
.terminal header span:last-child { color: var(--green); }
.terminal pre {
  min-height: 520px;
  margin: 0;
  padding: clamp(22px, 4vw, 52px);
  overflow: auto;
  color: #ecebe2;
  font-family: var(--mono);
  font-size: clamp(15px, 1.55vw, 22px);
  font-variant-ligatures: none;
  font-weight: 430;
  line-height: 1.7;
  tab-size: 4;
}
.comment { color: #85887e; }
.keyword { color: #ee6caf; }
.function { color: #63a7ff; }
.string { color: #f0cf55; }
.prompt { color: #61d885; }
.success { color: #61d885; }
.tester-mono {
  --tester-weight: 480;
  --tester-size: 54px;
  border: 0;
  background: var(--blue);
  color: white;
  font-family: var(--mono);
}
.tester-mono .tester-bar { background: rgba(18, 18, 16, .22); }
.tester-mono .tester-text {
  min-height: 520px;
  font-family: var(--mono);
  font-size: clamp(24px, min(var(--tester-size), 13vw), 82px);
  font-variant-ligatures: none;
  letter-spacing: -.035em;
  line-height: 1.15;
}
.mono-strip {
  display: grid;
  grid-template-columns: 6ch 1fr 6ch 1fr 6ch 1fr;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
  padding: 20px;
  background: var(--ink-soft);
  color: #ecebe2;
  font-family: var(--mono);
  font-size: clamp(17px, 2.2vw, 34px);
}
.mono-strip span { color: #85887e; font-size: 11px; }
.mono-strip b { padding: 10px 12px; background: #181916; white-space: nowrap; }
.mono-strip .weight-400 { font-weight: 400; }
.mono-strip .weight-550 { font-weight: 550; }
.mono-strip .weight-700 { font-weight: 700; }

.reading-lab { background: var(--paper-bright); }
.reading-intro {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(30px, 7vw, 110px);
  align-items: end;
  padding: clamp(52px, 7vw, 100px) 0;
}
.reading-intro h2 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(52px, 8vw, 124px);
  font-weight: 580;
  letter-spacing: -.06em;
  line-height: .83;
}
.reading-intro p { max-width: 42ch; margin: 0; font-size: clamp(17px, 1.5vw, 22px); }
.reader {
  --reader-size: 22px;
  --reader-weight: 430;
  padding: 10px;
  box-shadow: 0 22px 58px rgba(18, 18, 16, .14);
}
.reader-controls {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 24px;
  align-items: end;
  min-height: 74px;
  padding: 12px 14px;
  background: var(--reader-controls-bg);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}
.reader-controls > div { display: grid; grid-template-columns: 10ch 1fr; align-items: center; gap: 10px; }
.reader-controls label { display: flex; justify-content: space-between; gap: 1ch; }
.reader-controls input { min-width: 80px; width: 100%; accent-color: currentColor; }
.reader-controls fieldset { display: flex; justify-content: flex-end; gap: 6px; margin: 0; padding: 0; border: 0; }
.reader-controls legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.reader-controls button {
  padding: 8px 11px;
  border: 0;
  background: var(--reader-button-bg);
  color: inherit;
  cursor: pointer;
  font-size: 10px;
  text-transform: uppercase;
}
.reader-controls button:hover { background: var(--reader-button-hover); }
.reader-controls button[aria-pressed="true"] { background: var(--reader-active-bg); color: var(--reader-active-text); font-weight: 700; }
.reader-page {
  margin-top: 10px;
  padding: clamp(38px, 7vw, 110px) max(24px, calc((100% - 900px) / 2));
  background: var(--reader-page-bg);
  font-size: var(--reader-size);
  font-weight: var(--reader-weight);
  font-variation-settings: "wght" var(--reader-weight);
  line-height: 1.65;
}
.reader-page p { max-width: 68ch; margin: 0 auto; }
.reader-page p + p { margin-top: 1.25em; }
.reader-page .reader-kicker {
  margin-bottom: 3em;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.reader[data-reader-mode="paper"] {
  --reader-active-bg: var(--ink);
  --reader-active-text: var(--paper-bright);
  --reader-button-bg: #cbc2b0;
  --reader-button-hover: #bdb3a0;
  --reader-controls-bg: var(--paper-deep);
  --reader-page-bg: var(--paper);
  background: var(--paper-soft);
  color: var(--ink);
}
.reader[data-reader-mode="night"] {
  --reader-active-bg: #d7d8cc;
  --reader-active-text: #161714;
  --reader-button-bg: #3b3c35;
  --reader-button-hover: #4a4b43;
  --reader-controls-bg: var(--ink-soft);
  --reader-page-bg: #161714;
  background: var(--ink-raised);
  color: #d7d8cc;
}
.reader[data-reader-mode="contrast"] {
  --reader-active-bg: black;
  --reader-active-text: white;
  --reader-button-bg: #d8d8d8;
  --reader-button-hover: #c5c5c5;
  --reader-controls-bg: #ededed;
  --reader-page-bg: white;
  background: #cfcfcf;
  color: black;
}

.closing {
  position: relative;
  min-height: min(950px, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px 30px;
  overflow: hidden;
  background: var(--blue);
  color: white;
}
.closing-label { font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.closing h2 {
  position: relative;
  z-index: 1;
  align-self: center;
  margin: auto 0;
  font-size: clamp(70px, 13.5vw, 210px);
  font-weight: 650;
  letter-spacing: -.075em;
  line-height: .73;
}
.closing-actions {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.closing-actions a { text-decoration: none; }
.closing-download {
  min-width: min(100%, 330px);
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  background: white;
  box-shadow: 0 16px 36px rgba(18, 18, 16, .22);
  color: var(--ink);
  transition: background .16s, transform .16s;
}
.closing-download:hover { background: var(--yellow); transform: translateY(-2px); }
.closing-download > span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; }
.closing-download strong { font-size: 18px; }
.back-to-top {
  padding: 10px 12px;
  background: rgba(255, 255, 255, .16);
  font-family: var(--mono);
  font-size: 12px;
}
.closing-mark {
  position: absolute;
  right: -3vw;
  bottom: -30vw;
  color: var(--red);
  font-size: min(110vw, 1500px);
  font-weight: 700;
  line-height: 1;
  opacity: .78;
  transform: rotate(8deg);
}
.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 20px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
}
.footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.footer a {
  padding: 7px 9px;
  background: var(--ink-raised);
  text-decoration: none;
}
.footer a:hover { background: var(--blue); color: white; }

@media (max-width: 1280px) {
  .family-head > div { grid-column: 1 / -1; }
  .family-head > p { grid-column: 7 / -1; margin-top: 32px; }
}

@media (max-width: 1100px) {
  .hero { min-height: max(820px, 100svh); grid-template-rows: auto minmax(240px, 1fr) auto auto; }
  .hero-copy { grid-column: 1 / -1; }
  .hero-controls { grid-column: 1 / -1; min-height: 100px; }
}

@media (max-width: 980px) {
  .why-lead { grid-template-columns: 1fr 3fr; }
  .why-lead > p:last-child { grid-column: 2; }
  .family-head > p { grid-column: 6 / -1; }
  .tester-bar { grid-template-columns: 1fr 1fr; }
  .tester-bar > span { grid-column: 1 / -1; }
  .mono-workbench { grid-template-columns: 1fr; }
  .mono-strip { grid-template-columns: 6ch 1fr; }
  .reading-intro { grid-template-columns: 1fr; }
  .reading-intro p { justify-self: end; }
  .reader-controls { grid-template-columns: 1fr 1fr; }
  .reader-controls fieldset { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 700px) {
  .site-nav { padding: 0 14px; }
  .site-nav nav { gap: 3px; }
  .site-nav nav a { padding-inline: 8px; }
  .site-nav nav a:first-child { display: none; }
  .hero {
    min-height: max(760px, 100svh);
    grid-template-rows: auto minmax(150px, 1fr) auto auto;
    row-gap: 12px;
    padding: 76px 14px 18px;
    background: var(--paper);
  }
  .hero-meta span:nth-child(2) { display: none; }
  .hero-type { font-size: 29vw; }
  .hero-copy { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 18px; }
  .hero-intro { max-width: 38ch; }
  .hero-controls { grid-column: 1 / -1; min-height: 94px; }
  .section, .family { padding-left: 14px; padding-right: 14px; }
  .section-label span:last-child { display: none; }
  .why-lead { display: block; }
  .why-lead h2 { margin-top: 34px; }
  .why-lead > p:last-child { margin-top: 34px; }
  .principles { grid-template-columns: 1fr; }
  .principles article { min-height: 260px; }
  .care-note { width: calc(100% - 18px); box-shadow: 0 16px 36px rgba(18, 18, 16, .2); }
  .family-head { grid-template-columns: 1fr; }
  .family-head > div, .family-head > p { grid-column: 1; }
  .family-head h2 {
    display: grid;
    gap: .09em;
    font-size: clamp(72px, 26vw, 130px);
    line-height: .88;
    white-space: normal;
  }
  .mono .family-head h2 { gap: .14em; font-size: clamp(58px, 20vw, 100px); line-height: 1; }
  .family-head > p { justify-self: start; margin-top: 30px; }
  .tester-bar { grid-template-columns: 1fr; }
  .tester-bar > span { grid-column: auto; }
  .tester-control { grid-template-columns: 9ch 1fr; }
  .tester-text { min-height: 340px; padding: 22px; }
  .glyph-field {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    grid-auto-rows: minmax(140px, auto);
  }
  .glyph-card:nth-child(1), .glyph-card:nth-child(2) { grid-column: 1 / -1; grid-row: auto; min-height: 190px; }
  .glyph-card:nth-child(3), .glyph-card:nth-child(4), .glyph-card:nth-child(5), .glyph-card:nth-child(6) { grid-column: auto; grid-row: auto; }
  .glyph-card:nth-child(1) > strong { font-size: clamp(32px, 10vw, 42px); }
  .glyph-card:nth-child(2) > strong { font-size: clamp(34px, 10vw, 48px); }
  .glyph-card > strong { font-size: clamp(28px, 8vw, 40px); }
  .family-notes { grid-template-columns: 1fr; }
  .family-notes article { min-height: 180px; padding: 18px 20px 28px; }
  .family-notes p { margin: auto 0 0; }
  .type-poem { min-height: 690px; }
  .poem-two { top: 38%; }
  .poem-three { left: 4%; }
  .terminal header { grid-template-columns: 1fr auto; }
  .terminal header span:nth-child(2) { display: none; }
  .terminal pre { min-height: 440px; padding: 20px 14px; font-size: 14px; }
  .tester-mono .tester-text { min-height: 380px; }
  .mono-strip { gap: 10px; padding: 14px; }
  .reading-intro p { justify-self: start; }
  .reader-controls { grid-template-columns: 1fr; gap: 16px; }
  .reader-controls fieldset { grid-column: auto; }
  .reader-page { padding: 42px 22px; }
  .closing { min-height: 740px; padding-left: 14px; padding-right: 14px; }
  .closing-actions { align-items: stretch; flex-direction: column; }
  .back-to-top { align-self: flex-end; }
  .footer { flex-direction: column; }
  .footer nav { justify-content: flex-start; }
}

@media (max-width: 430px) {
  .site-nav nav a:not(.nav-download) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-delay: 0s !important;
    transition-duration: 0s !important;
  }
  .hero-type span { transform: none !important; }
}
