/* ResumeFixIt: blueprint. One cobalt ink on drafting-paper cream, thin rules
   framing every band, condensed caps for headings. See DESIGN.md. */

:root {
  --paper: #f3efe4;
  --paper-2: #f8f5ec;
  --ink: #16306b;
  --text: #1f2d4d;
  --muted: #4a5a7e;
  --blue: #2451b3;
  --blue-strong: #1b3f91;
  --on-blue: #f8f5ec;
  --rule: rgb(36 81 179 / 0.32);
  --rule-soft: rgb(36 81 179 / 0.12);
  --grid: rgb(36 81 179 / 0.07);
  --pad: clamp(20px, 4vw, 56px);
  --measure: 40rem;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1528;
    --paper-2: #111d35;
    --ink: #dbe6ff;
    --text: #d3dcef;
    --muted: #9fb0d3;
    --blue: #8fb3ff;
    --blue-strong: #b3cbff;
    --on-blue: #0c1528;
    --rule: rgb(143 179 255 / 0.3);
    --rule-soft: rgb(143 179 255 / 0.12);
    --grid: rgb(143 179 255 / 0.06);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.62;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--blue); color: var(--on-blue); }
html { scrollbar-color: var(--rule) var(--paper); caret-color: var(--blue); }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); text-transform: uppercase; font-weight: 600; letter-spacing: 0.005em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.6rem + 5vw, 5.75rem); line-height: 0.92; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); line-height: 1; }
h3 { font-size: 1.3rem; line-height: 1.05; }
h4 { font-size: 1.2rem; line-height: 1.05; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--blue-strong); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
strong { font-weight: 600; color: var(--ink); }
ul { padding-left: 1.2rem; }
.icon { width: 0.95em; height: 0.95em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; vertical-align: -0.1em; margin-left: 0.3em; flex: none; }

.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 30; }
.skip:focus { left: 8px; top: 8px; }

/* The frame: one column of bands with visible rules on every side. */
.frame { max-width: 78rem; margin: 0 auto; border-inline: 1px solid var(--rule); }
.band { position: relative; border-top: 1px solid var(--rule); padding: clamp(36px, 5vw, 72px) var(--pad); }
.band-title { margin-bottom: clamp(20px, 3vw, 36px); }

/* Split band: heading column + body column, divided by a rule. */
.split { display: grid; gap: 14px 0; }
.split-body { max-width: var(--measure); }
.split-label { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); margin: 0; }
@media (min-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); padding-block: 0; }
  .split > h2, .split > .split-label { padding: clamp(36px, 5vw, 64px) var(--pad) clamp(36px, 5vw, 64px) 0; border-right: 1px solid var(--rule); }
  .split > .split-body { padding: clamp(36px, 5vw, 64px) 0 clamp(36px, 5vw, 64px) var(--pad); }
}

/* Floating pill nav */
.site-header { position: sticky; top: 0; z-index: 20; padding: 12px 12px 0; }
.nav-pill {
  max-width: 76rem; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px 8px 8px 16px; border: 1px solid var(--rule); border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: 0 8px 24px -16px rgb(22 48 107 / 0.35);
}
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.35rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.logo b { font-weight: 700; color: var(--blue); }
.logo-mark { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.6; }
.logo-mark .logo-fix { stroke: var(--blue); stroke-width: 2.4; }
.site-header ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.site-header nav a { display: block; padding: 7px 12px; border-radius: 999px; font-family: var(--display); font-size: 1.02rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { color: var(--ink); background: var(--rule-soft); }
.site-header nav a[aria-current='page'] { background: var(--blue); color: var(--on-blue); }
.nav-menu { display: none; position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; padding: 8px 16px; border-radius: 999px; background: var(--blue); color: var(--on-blue); font-family: var(--display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu nav { position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: 18px; box-shadow: 0 18px 40px -20px rgb(22 48 107 / 0.45); }
.nav-menu ul { flex-direction: column; }
.nav-menu nav a { padding: 10px 14px; font-size: 1.1rem; }
@media (max-width: 1400px) { .nav-wide { display: none; } .nav-menu { display: block; } }

/* Home hero: headline + the drawing, on graph paper */
.home-hero, .page-hero {
  border-top: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
}
.home-hero { display: grid; gap: 32px; align-items: center; padding-top: clamp(40px, 7vw, 96px); }
.hero-copy p { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.5rem); color: var(--ink); max-width: 30ch; margin: 24px 0 28px; }
@media (min-width: 900px) { .home-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.button { display: inline-flex; align-items: center; gap: 4px; padding: 12px 22px; border-radius: 999px; background: var(--blue); color: var(--on-blue); font-family: var(--display); font-size: 1.15rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; transition: background 200ms cubic-bezier(0.16, 1, 0.3, 1); }
.button:hover { background: var(--blue-strong); color: var(--on-blue); }

/* The drawing */
.blueprint { width: 100%; max-width: 460px; justify-self: center; overflow: visible; }
.blueprint .bp-draw { fill: none; stroke: var(--blue); stroke-width: 1; }
.blueprint .bp-sheet { stroke-width: 1.6; fill: var(--paper-2); }
.blueprint .bp-name { stroke-width: 7; stroke: var(--ink); }
.blueprint .bp-head { stroke-width: 4; stroke: var(--ink); }
.blueprint .bp-text { stroke-width: 2.5; stroke: var(--muted); opacity: 0.8; }
.blueprint .bp-dot { fill: var(--muted); stroke: none; }
.blueprint .bp-dim, .blueprint .bp-leader { stroke-dasharray: 3 3; stroke-width: 1; }
.blueprint .bp-label { font-family: var(--display); font-size: 9.5px; font-weight: 600; letter-spacing: 0.08em; fill: var(--blue); }
@media (prefers-reduced-motion: no-preference) {
  .blueprint .bp-draw:not(.bp-dim):not(.bp-leader) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: calc(var(--d) * 90ms); }
  .blueprint .bp-sheet { fill-opacity: 0; animation: draw 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards, fill-in 600ms ease-out 900ms forwards; }
  .blueprint .bp-dot, .blueprint .bp-dim, .blueprint .bp-leader, .blueprint .bp-label { opacity: 0; animation: appear 500ms ease-out forwards; animation-delay: calc(var(--d) * 90ms); }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill-in { to { fill-opacity: 1; } }
@keyframes appear { to { opacity: 1; } }

/* Section page hero with an architect's title block */
.page-hero { padding-top: clamp(40px, 6vw, 88px); }
.page-hero h1 { max-width: 18ch; }
.title-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: clamp(28px, 4vw, 48px) 0 0; border: 1px solid var(--rule); background: var(--paper-2); max-width: 44rem; }
.title-block > div { padding: 10px 14px; border-right: 1px solid var(--rule); }
.title-block > div:last-child { border-right: 0; }
.title-block dt { font-family: var(--display); font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.title-block dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.35rem; font-weight: 600; color: var(--ink); text-transform: uppercase; font-variant-numeric: tabular-nums; }
.title-block a { text-decoration: none; white-space: nowrap; }
@media (max-width: 560px) {
  .title-block { grid-template-columns: 1fr 1fr; }
  .title-block > div:nth-child(2) { border-right: 0; }
  .title-block .tb-jump { grid-column: 1 / -1; border-top: 1px solid var(--rule); }
}

/* Copyable prompt */
.prompt { position: relative; margin: 0 0 1rem; padding: 18px 18px 18px; border: 1px dashed var(--blue); background: var(--paper-2); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.92rem; line-height: 1.55; color: var(--text); }
.prompt code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }
.prompt:has(.copy) { padding-top: 52px; }
.copy { position: absolute; top: 10px; right: 10px; padding: 6px 14px; border: 1px solid var(--blue); border-radius: 999px; background: var(--paper); color: var(--blue); font-family: var(--display); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.copy:hover { background: var(--blue); color: var(--on-blue); }

/* Quote strip: two rows drifting in opposite directions */
.marquee { padding-inline: 0; padding-block: 0; overflow: hidden; background: var(--blue); }
.mq-row { display: flex; overflow: hidden; border-bottom: 1px solid color-mix(in srgb, var(--on-blue) 25%, transparent); }
.mq-row:last-child { border-bottom: 0; }
.mq-track { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.mq-track li { flex: none; border-right: 1px solid color-mix(in srgb, var(--on-blue) 25%, transparent); }
.mq-track a { display: block; padding: 20px 28px; font-family: var(--display); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em; color: var(--on-blue); text-decoration: none; white-space: nowrap; }
.mq-track a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .mq-track { animation: drift 60s linear infinite; }
  .mq-reverse .mq-track { animation-direction: reverse; animation-duration: 70s; }
  .marquee:hover .mq-track, .marquee:focus-within .mq-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .mq-row { flex-wrap: wrap; }
  .mq-dup { display: none; }
  .mq-track { flex-wrap: wrap; }
  .mq-track a { white-space: normal; }
}
@keyframes drift { to { transform: translateX(-100%); } }

/* Resources: ruled rows */
.tier + .tier, .tier + .ad { margin-top: clamp(32px, 4vw, 48px); }
.tier-head { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 14px; font-size: 1.15rem; letter-spacing: 0.08em; border: 1px solid var(--rule); border-bottom: 0; }
.tier-1 .tier-head { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.tier-2 .tier-head { background: var(--paper-2); }
.tier-3 .tier-head { background: transparent; border-style: dashed; }
.tier-count { font-variant-numeric: tabular-nums; opacity: 0.8; }
.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); }
.row { display: grid; gap: 6px 28px; padding: 18px 14px; border-top: 1px solid var(--rule); }
.row:first-child { border-top: 0; }
.row-name a { display: inline-flex; align-items: baseline; color: var(--ink); text-decoration: none; }
.row-name a:hover { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; }
.row-what p { margin: 0 0 0.35rem; font-size: 1rem; }
.catch { color: var(--muted); }
.catch strong { color: var(--muted); }
.row-tags { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; }
.tag { font-family: var(--display); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 8px; border: 1px solid var(--rule); color: var(--muted); white-space: nowrap; }
.tag-no-account { border-color: var(--blue); color: var(--blue); }
.tag-paid { border-style: dashed; }
@media (min-width: 860px) {
  .row { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) 170px; }
  .row-tags { justify-content: flex-end; }
}

/* The one ad. Collapsed until AdSense reports it filled: an unapproved site
   or an unfilled request never leaves an empty box. Width is kept so AdSense
   can measure the slot. */
.ad { border-top: 0; padding: 0; height: 0; overflow: hidden; margin: 0; }
.ad:has(ins.adsbygoogle[data-ad-status='filled']) { height: auto; overflow: visible; padding: 16px 0 0; margin-top: clamp(24px, 3vw, 36px); }
.ad-note { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 8px; }

.plain { margin: 0; padding-left: 1.1rem; }
.plain li { margin-bottom: 0.6rem; }
.guide-list li, .split-body li { margin-bottom: 0.4rem; }

/* Lessons */
.lessons { list-style: none; margin: 0 0 1.25rem; padding: 0; border: 1px solid var(--rule); }
.lesson { padding: 18px; border-top: 1px solid var(--rule); background: var(--paper-2); }
.lesson:first-child { border-top: 0; }
.lesson h3 a { display: inline-flex; align-items: baseline; color: var(--ink); text-decoration: none; }
.lesson h3 a:hover { color: var(--blue); }
.lesson p { margin: 8px 0 0; font-size: 1rem; }
.price { font-family: var(--display); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--blue); }
.lesson-offer { font-size: 1.1rem; color: var(--ink); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-weight: 600; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 12px; height: 12px; margin-top: 6px; border-right: 1.6px solid var(--blue); border-bottom: 1.6px solid var(--blue); transform: rotate(45deg); transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1); }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: 12px; }
.faq details > div { padding: 0 0 16px; }

/* Keep going */
.more-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.more-grid li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.more-grid a { display: flex; justify-content: space-between; align-items: center; padding: 16px; font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); text-decoration: none; transition: background 240ms cubic-bezier(0.16, 1, 0.3, 1); }
.more-grid a:hover { background: var(--blue); color: var(--on-blue); }

/* Be you: the one inverted band */
.be-you { background: var(--blue); color: var(--on-blue); display: grid; gap: 20px; }
.be-you h2 { color: var(--on-blue); font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem); line-height: 0.95; }
.be-you p { max-width: var(--measure); font-size: 1.12rem; }
.be-you a { color: var(--on-blue); text-decoration-thickness: 2px; }
@media (min-width: 860px) { .be-you { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--pad); } }

/* Crisis */
.crisis-box { margin: 20px 0 0; padding: 14px 16px; border: 1px solid var(--blue); background: var(--paper-2); color: var(--ink); max-width: 44rem; }

/* Footer: ruled cells, then the giant outlined wordmark */
.site-footer { max-width: 78rem; margin: 0 auto; border-inline: 1px solid var(--rule); border-bottom: 1px solid var(--rule); overflow: hidden; }
.cells { display: grid; gap: 20px; font-size: 0.97rem; color: var(--muted); }
.cells .crisis-line { color: var(--ink); }
.fine { font-size: 0.88rem; }
@media (min-width: 860px) { .cells { grid-template-columns: 1.3fr 1fr 1fr; gap: 0; padding-block: 0; } .cells .cell { margin: 0; padding: 32px var(--pad); border-right: 1px solid var(--rule); } .cells .cell:first-child { padding-left: 0; } .cells .cell:last-child { border-right: 0; padding-right: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Show your value: worked examples by job */
.examples-note { color: var(--muted); max-width: var(--measure); margin-top: -12px; }
.example-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: clamp(20px, 3vw, 32px); }
.example { border: 1px solid var(--rule); background: var(--paper-2); }
.example > h3 { padding: 12px 16px; background: var(--blue); color: var(--on-blue); font-size: 1.35rem; letter-spacing: 0.04em; }
.ex-cols { display: grid; }
.ex-cols > div { padding: 16px; border-bottom: 1px solid var(--rule); }
.ex-cols h4, .ex-lines dt { font-size: 0.9rem; letter-spacing: 0.08em; color: var(--blue); margin-bottom: 6px; font-family: var(--display); font-weight: 600; text-transform: uppercase; }
.ex-cols p, .ex-cols li { font-size: 1rem; }
.ex-cols ul { margin: 0; padding-left: 1.1rem; }
.ex-cols li { margin-bottom: 0.25rem; }
.ex-lines { margin: 0; }
.ex-lines > div { padding: 14px 16px; }
.ex-lines dd { margin: 0; font-size: 1.05rem; }
.ex-before { border-bottom: 1px dashed var(--rule); }
.ex-before dd { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--rule); }
.ex-after dd { color: var(--ink); font-weight: 500; }
.blank { padding: 0 4px; background: var(--rule-soft); border-bottom: 1.5px solid var(--blue); font-variant-numeric: tabular-nums; }
@media (min-width: 860px) {
  .ex-cols { grid-template-columns: 1fr 1fr; }
  .ex-cols > div:first-child { border-right: 1px solid var(--rule); }
  .ex-lines { display: grid; grid-template-columns: 1fr 1fr; }
  .ex-before { border-bottom: 0; border-right: 1px dashed var(--rule); }
}
.footer-links { display: flex; gap: 18px; margin-top: 12px; font-family: var(--display); font-size: 1rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* The soft note at the top of each page: no label, no signature. */
.note { max-width: 36rem; margin-top: 24px; }
.note p { font-size: clamp(1.08rem, 1rem + 0.3vw, 1.2rem); color: var(--text); }
.note p:first-child { color: var(--ink); }
.home-note { display: grid; }
.home-note .note { margin-top: 0; }
@media (min-width: 860px) { .home-note { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .home-note .note { grid-column: 2; } }

/* Section page hero: copy on the left, the section's drawing on the right. */
.page-hero.has-sketch { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .page-hero.has-sketch { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.hero-sketch { justify-self: center; width: min(260px, 60vw); }
@media (max-width: 899px) { .hero-sketch { display: none; } }

/* Section drawings */
.sketch { display: block; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.sketch .thick { stroke-width: 3; }
.sketch .dim { stroke-dasharray: 2 2; stroke-width: 1; }
.sketch .accent { stroke: var(--blue); stroke-width: 2.2; }
.sketch-sm { width: 44px; height: 44px; }
.sketch-lg { width: 100%; height: auto; }
.sketch-lg { stroke-width: 1.1; }
.sketch-lg .accent { stroke-width: 1.6; }
.sketch-lg .thick { stroke-width: 2.2; }

/* Home: where do you want to start, as a ruled sheet of details */
.start-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
@media (min-width: 620px) { .start-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .start-grid { grid-template-columns: repeat(3, 1fr); } }
.start-grid li { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.start-grid a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 6px; align-items: center; height: 100%; padding: 20px; text-decoration: none; color: var(--text); transition: background 240ms cubic-bezier(0.16, 1, 0.3, 1); }
.start-grid .sketch { grid-row: 1 / span 2; width: 52px; height: 52px; transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1); }
.start-grid a:hover { background: var(--rule-soft); }
.start-grid a:hover .sketch { transform: translateY(-3px) rotate(-3deg); }
.start-pitch { font-size: 1.1rem; line-height: 1.3; color: var(--ink); }
.start-go { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); }

/* Motion: drawings draft themselves in when they reach the viewport. Only with
   JS on and motion allowed; otherwise they are simply drawn. */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-draw] .sketch > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
  html.js [data-draw].is-in .sketch > * { animation: draw 900ms cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
  html.js [data-draw].is-in .sketch > .dim { stroke-dasharray: 2 2; stroke-dashoffset: 0; animation: appear 400ms ease-out both; }
  html.js .start-grid li { opacity: 0; transform: translateY(12px); }
  html.js .start-grid.is-in li { animation: rise 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards; animation-delay: calc(min(var(--n), 6) * 60ms); }
  html.js .start-grid.is-in li .sketch > * { animation-delay: calc(min(var(--n), 6) * 60ms + var(--i, 0) * 60ms + 220ms); }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* Footer wordmark: one solid word stretched to the frame, cropped at the base. */
.wordmark { display: block; width: 100%; height: auto; aspect-ratio: 1000 / 150; margin-top: 8px; margin-bottom: -2.2%; }
.wordmark text { font-family: var(--display); font-weight: 700; font-size: 188px; fill: var(--blue); opacity: 0.16; }

/* Home rules: three big statements in ruled cells */
.rules-grid { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.rules-grid li { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.rules-grid h3 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.6rem); line-height: 0.98; margin-bottom: 14px; }
.rules-grid p { max-width: 34ch; color: var(--text); }
@media (min-width: 900px) {
  .rules-grid { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
  .rules-grid li { padding: 28px 28px 32px; border-bottom: 0; border-right: 1px solid var(--rule); }
  .rules-grid li:first-child { padding-left: 0; }
  .rules-grid li:last-child { border-right: 0; padding-right: 0; }
}

/* The page-hero note is body copy, not the home hero's big lede. */
.hero-copy .note p { max-width: none; margin: 0 0 1rem; font-size: clamp(1.08rem, 1rem + 0.3vw, 1.2rem); }
.hero-copy .note p:last-child { margin-bottom: 0; }
.page-hero .title-block { margin-top: clamp(24px, 3vw, 36px); }

/* Ten sections: tighten the wide nav so it fits inside the pill. */
@media (min-width: 1401px) {
  .site-header .nav-wide a { padding: 7px 9px; font-size: 0.96rem; letter-spacing: 0.03em; }
}
