/* Roundhand — the front page. Laid out like a broadsheet: a nameplate,
   a lead story, numbered sections, figures with captions. */

:root {
  --rev-bg: #211913;
  --rev-ink: #efe5d1;
  --rev-soft: #bcab91;
  --rev-hair: rgba(239, 229, 209, .17);
  --rev-accent: #e2a2a9;
  --pen-ink: #241b15;
  --pen-navy: #1f2d4a;
  --pen-graphite: #5f5a55;
  --ink-red: #a3242f;
  --gutter: 32px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --rev-bg: #0e0c09;
    --pen-ink: #ece2cf;
    --pen-navy: #93a9d8;
    --pen-graphite: #b2aba2;
    --ink-red: #e3909a;
  }
}

/* ——— Hero: a full-screen scene with the nameplate set over it ——— */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #f6eedd; background: #6e1a24; }
.hero-scene, .hero-scene img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-scene img { object-fit: cover; object-position: 30% 55%; }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(20, 8, 8, .3), transparent 24%); }
.hero > *:not(.hero-scene) { position: absolute; z-index: 1; }
.hero-bar { top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 22px 32px; }
.hero-mark { font-family: var(--display); font-style: italic; font-weight: 700; font-size: 22px; color: inherit; text-decoration: none; }
.hero-bar nav { display: flex; gap: 6px; }
.hero-bar nav a { color: inherit; text-decoration: none; font-variant-caps: all-small-caps; letter-spacing: .12em; font-size: 18px; padding: 6px 12px; border-radius: 999px; transition: background .2s; }
.hero-bar nav a:hover { background: rgba(246, 238, 221, .16); }
.hero-bar .hero-pill:hover { background: #fffaf0; }
.hero-bar .hero-pill, .hero-pill { white-space: nowrap; margin-left: 8px; padding: 6px 16px 7px; border-radius: 999px; background: #f3e9d2; color: #6e1a24; font-variant-caps: all-small-caps; letter-spacing: .12em; font-size: 18px; }
.hero-title { top: 15vh; left: 32px; margin: 0; text-align: left; font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(72px, 9.6vw, 184px); line-height: .9; letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(40, 10, 10, .25); }
.hero-notes { left: 36px; top: calc(15vh + min(9.6vw, 184px) * 1.05 + 18px); margin: 0; padding: 0; list-style: none; font-style: italic; font-size: 19px; line-height: 1.55; }
.hero-notes li::before { content: "\2767"; font-style: normal; margin-right: .6em; opacity: .8; }
.hero-corner { bottom: 22px; margin: 0; font-size: 15px; letter-spacing: .16em; color: #2a1f18; }
.hero-corner.left { left: 32px; }
.hero-corner.right { right: 32px; }
.hero-scroll { bottom: 18px; left: 50%; transform: translateX(-50%); color: #2a1f18; text-decoration: none; font-size: 15px; letter-spacing: .2em; display: grid; justify-items: center; gap: 8px; }
.hero-scroll::after { content: ""; width: 1px; height: 34px; background: currentColor; opacity: .7; animation: drip 2.4s ease-in-out infinite; transform-origin: top; }
@keyframes drip { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) { .hero-scroll::after { animation: none; } }

/* ——— Nameplate ——— */
.nameplate { padding-top: 26px; }
.ears { display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr); align-items: end; gap: 24px; }
.ear { margin: 0 0 14px; font-size: 15.5px; line-height: 1.35; font-style: italic; color: var(--ink-soft); }
.ear.right { text-align: right; }
.title { margin: 0; font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(60px, 10.5vw, 132px); line-height: .92; letter-spacing: -.02em; }
.title a { color: var(--ink); text-decoration: none; }
.nameplate .rules { margin-top: 18px !important; }
.folio { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 7px 0 8px; border-bottom: 1px solid var(--rule); font-size: 16px; color: var(--ink-soft); }
.folio ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.folio a { color: var(--ink); text-decoration: none; font-variant-caps: all-small-caps; letter-spacing: .12em; font-size: 19px; }
.folio a:hover { color: var(--oxblood); }

/* ——— Shared pieces ——— */
.kicker { margin: 0 0 14px; font-variant-caps: all-small-caps; letter-spacing: .14em; font-size: 18px; color: var(--oxblood); font-variant-numeric: lining-nums; }
.kicker .num { font-variant-caps: normal; font-style: italic; letter-spacing: 0; margin-right: .55em; padding-right: .7em; border-right: 1px solid currentColor; }
.deck { margin: 28px 0 0; max-width: 31em; font-size: clamp(21px, 1.9vw, 26px); line-height: 1.35; font-style: italic; color: var(--ink-soft); text-wrap: pretty; }
h3 { margin: 0 0 20px; font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(34px, 4.2vw, 64px); line-height: 1.02; letter-spacing: -.025em; text-wrap: balance; }

figure { margin: 0; }
.frame { position: relative; overflow: hidden; background: var(--paper-deep); border: 1px solid var(--hair); box-shadow: 0 1px 0 rgba(36, 27, 21, .04), 0 28px 50px -34px rgba(36, 27, 21, .55); }
.frame img { width: 100%; }
.frame.crop img { margin-top: -2.9%; } /* hide the iPad status bar */
figcaption { margin-top: 12px; font-size: 16px; line-height: 1.4; font-style: italic; color: var(--ink-soft); }
.fig { font-style: normal; font-variant-caps: all-small-caps; letter-spacing: .1em; color: var(--oxblood); margin-right: .5em; }

/* Sections are divided by a rule across the full measure. */
.story.split, .pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-bottom: 96px; }
.story.split, .pair { padding-top: 112px; }

/* ——— Lead ——— */
.lead { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: 60px; padding-bottom: 96px; }
.lead-head { grid-column: 1 / span 8; grid-row: 1; }
.lead h2 { margin: 0; font-weight: 500; font-size: clamp(44px, 5.5vw, 80px); line-height: 1; letter-spacing: -.024em; text-wrap: balance; }

.contents { grid-column: 9 / span 4; grid-row: 1; align-self: start; padding-left: var(--gutter); border-left: 1px solid var(--hair); }
.contents ol { list-style: none; margin: 0; padding: 0; }
.contents li a { display: flex; align-items: baseline; padding: 6px 0; color: var(--ink); text-decoration: none; font-size: 19px; }
.contents li a::after { content: ""; order: 1; flex: 1; margin: 0 .45em; border-bottom: 1px dotted var(--ink-faint); transform: translateY(-.28em); }
.contents li a span { order: 0; }
.contents li a i { order: 2; color: var(--oxblood); }
.contents li a:hover span { color: var(--oxblood); }
.notice { margin-top: 30px; padding: 16px 18px 18px; border: 1px solid var(--rule); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--rule); text-align: center; }
.notice p { margin: 0; font-size: 18px; line-height: 1.4; text-wrap: balance; }
.notice .caps { margin-bottom: 6px; font-size: 16px; letter-spacing: .22em; color: var(--oxblood); }

.plate.wide { grid-column: 1 / -1; margin-top: 72px; }
.plate.wide .frame { aspect-ratio: 2 / 1; }
.plate.wide .frame img { margin-top: -3%; }

.body.three { grid-column: 1 / -1; margin-top: 64px; columns: 3; column-gap: var(--gutter); column-rule: 1px solid var(--hair); }
.body.three p { margin: 0 0 .7em; text-align: justify; hyphens: auto; -webkit-hyphens: auto; text-wrap: pretty; }
.dropcap::first-letter { float: left; margin: .06em .09em 0 0; font-weight: 500; font-size: 4.25em; line-height: .78; color: var(--oxblood); }
@supports (initial-letter: 3) or (-webkit-initial-letter: 3) {
  .dropcap::first-letter { float: none; margin: 0 .1em 0 0; font-size: inherit; line-height: inherit; -webkit-initial-letter: 3; initial-letter: 3; }
}


/* ——— The writing pad ——— */
.frontispiece { grid-column: 6 / span 7; grid-row: 1 / span 2; margin-top: 6px; align-self: start; }
.frontispiece .frame { border: 0; box-shadow: 0 1px 0 rgba(36, 27, 21, .05), 0 50px 80px -56px rgba(36, 27, 21, .8); }
.frontispiece img { width: 100%; aspect-ratio: 1672 / 941; object-fit: cover; }
.leonardo.hands { grid-column: 1 / span 4; margin-top: 64px; }
.pad { grid-column: 5 / span 8; margin-top: 64px; }
.year { margin: 0 0 10px; font-size: 16px; letter-spacing: .3em; color: var(--oxblood); }
.leonardo .frame { background: #e9dcc3; }
.manicule { font-style: normal; color: var(--oxblood); margin-right: .12em; }
.pad-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; padding: 8px 0 12px; border-top: 2px solid var(--rule); }
.tool-group { display: flex; align-items: center; gap: 2px; padding: 0 13px; border-left: 1px solid var(--hair); }
.tool-group:first-child { padding-left: 0; border-left: 0; }
.tool-group.actions { margin-left: auto; padding-right: 0; gap: 12px; }
.pad-tools button { -webkit-appearance: none; appearance: none; background: none; border: 0; margin: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pens button { display: grid; justify-items: center; gap: 1px; padding: 4px 4px 3px; color: var(--ink-faint); }
.pens svg { width: 40px; height: 16px; overflow: visible; }
.pens path { fill: none; stroke-linecap: round; }
.pens .fountain { stroke: var(--pen-ink); stroke-width: 2.4; }
.pens .ballpoint { stroke: var(--pen-navy); stroke-width: 1.2; }
.pens .pencil { stroke: var(--pen-graphite); stroke-width: 1.5; opacity: .75; }
.pens .highlighter { stroke: #f2c230; stroke-width: 7; stroke-linecap: butt; opacity: .55; }
.pens span { font-variant-caps: all-small-caps; letter-spacing: .06em; font-size: 14px; line-height: 1.2; padding-bottom: 2px; }
.pens [aria-pressed="true"] { color: var(--oxblood); }
.pens [aria-pressed="true"] span { box-shadow: 0 1.5px 0 currentColor; }
.colors button { width: 22px; height: 22px; margin: 0 4px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--hair); transition: box-shadow .15s; }
.colors button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 4px var(--c); }
@media (prefers-color-scheme: dark) { .colors button[aria-pressed="true"] { box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 4px var(--ink); } }
.sheet { display: block; width: 62px; height: 82px; background-color: #fbf6ea; }
.sheet.ruled { background-image: repeating-linear-gradient(to bottom, transparent 0 8px, rgba(64, 104, 152, .45) 8px 10px); background-position: 0 12px; }
.sheet.grid { background-image: linear-gradient(to right, rgba(64, 104, 152, .4) 1.5px, transparent 1.5px), linear-gradient(to bottom, rgba(64, 104, 152, .4) 1.5px, transparent 1.5px); background-size: 10px 10px; }
.sheet.dotted { background-image: radial-gradient(circle, rgba(60, 50, 40, .7) 1.4px, transparent 1.9px); background-size: 10px 10px; }
.sheet.cornell { background-image: linear-gradient(to bottom, transparent 62px, rgba(126, 29, 39, .7) 62px 64px, transparent 64px), linear-gradient(to right, transparent 18px, rgba(126, 29, 39, .7) 18px 20px, transparent 20px), repeating-linear-gradient(to bottom, transparent 0 8px, rgba(64, 104, 152, .4) 8px 10px); background-size: 100% 100%, 100% 62px, 100% 10px; background-repeat: no-repeat, no-repeat, repeat-y; background-position: 0 0, 0 0, 0 12px; }
.papers button { position: relative; width: 21px; height: 27px; margin: 0 1.5px; overflow: hidden; border-radius: 2px; outline: 1px solid var(--hair); outline-offset: 1px; }
.papers button[aria-pressed="true"] { outline: 1.5px solid var(--oxblood); }
.papers .sheet { position: absolute; left: 0; top: 0; transform: scale(.34); transform-origin: 0 0; box-shadow: none; border: 0; }
.actions button { font-variant-caps: all-small-caps; letter-spacing: .08em; font-size: 16px; color: var(--ink); text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: .25em; }
.actions button:hover:not(:disabled) { color: var(--oxblood); text-decoration-color: currentColor; }
.actions button:disabled { color: var(--ink-faint); text-decoration: none; cursor: default; opacity: .6; }

.pad-sheet {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background-color: #fbf6ea;
  border: 1px solid rgba(36, 27, 21, .13);
  box-shadow: 0 1px 1px rgba(36, 27, 21, .05), 0 40px 70px -50px rgba(36, 27, 21, .7);
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M2 24 L6.5 14 L16.5 4 L22 9.5 L12 19.5 Z' fill='%23241b15' stroke='%23fbf6ea' stroke-width='1.3' stroke-linejoin='round'/%3E%3Cpath d='M2.4 23.6 L9.6 16.4' stroke='%23fbf6ea' stroke-width='1.1'/%3E%3Ccircle cx='10.2' cy='15.8' r='1.3' fill='%23fbf6ea'/%3E%3C/svg%3E") 2 24, crosshair;
}
.pad-sheet::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55  0 0 0 0 .48  0 0 0 0 .38  0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.paper-ruled { background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(64, 104, 152, .24) 31px 32px); background-position: 0 22px; }
.paper-grid { background-image: linear-gradient(to right, rgba(64, 104, 152, .16) 1px, transparent 1px), linear-gradient(to bottom, rgba(64, 104, 152, .16) 1px, transparent 1px); background-size: 24px 24px; background-position: 11px 11px; }
.paper-dotted { background-image: radial-gradient(circle, rgba(60, 50, 40, .38) 1px, transparent 1.4px); background-size: 24px 24px; background-position: 0 0; }
.paper-cornell { background-image:
    linear-gradient(to bottom, transparent calc(78% - 1px), rgba(126, 29, 39, .38) calc(78% - 1px) 78%, transparent 78%),
    linear-gradient(to right, transparent calc(27% - 1px), rgba(126, 29, 39, .38) calc(27% - 1px) 27%, transparent 27%),
    linear-gradient(to bottom, transparent 0 calc(13% - 1px), rgba(126, 29, 39, .38) calc(13% - 1px) 13%, transparent 13%),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(64, 104, 152, .2) 31px 32px);
  background-size: 100% 100%, 100% 78%, 100% 100%, 100% 100%; background-repeat: no-repeat, no-repeat, no-repeat, repeat; background-position: 0 0, 0 0, 0 0, 0 22px; }
.pad-ink { position: absolute; inset: 0; transform-origin: 50% 0; transition: transform .5s cubic-bezier(.55, 0, .75, .2), opacity .45s ease-in; }
.pad-ink.turning { transform: perspective(1400px) rotateX(-82deg); opacity: 0; }
.pad-ink canvas { position: absolute; left: 0; top: 0; display: block; }
.pad-ink canvas.live { touch-action: none; }
.pad-hint { position: absolute; left: 7%; top: 8.5%; margin: 0; display: grid; gap: 6px; pointer-events: none; transition: opacity .35s; }
.pad-hint .go { font-style: italic; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.15; color: rgba(36, 27, 21, .62); }
.pad-hint .how { font-variant-caps: all-small-caps; letter-spacing: .1em; font-size: 15px; color: rgba(36, 27, 21, .5); }
.pad.used .pad-hint { opacity: 0; }
.pad figcaption { margin-top: 14px; max-width: 46em; }
.snap-note { background-image: linear-gradient(transparent 52%, var(--highlight) 52%, var(--highlight) 92%, transparent 92%); background-repeat: no-repeat; background-size: 0% 100%; transition: background-size 1s cubic-bezier(.6, .05, .3, 1); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.snap-note.lit { background-size: 100% 100%; }
.aside-link { margin-top: 26px !important; font-style: italic; }
.aside-link a::after { content: " \2191"; font-style: normal; }

/* The reply sets itself, word by word. */
.said.setting .w { opacity: .14; transition: opacity .4s ease; }
.said.setting .w.on { opacity: 1; }

/* ——— Feature stories ——— */
.split .plate { grid-column: 1 / span 5; }
.split .copy { grid-column: 7 / span 6; align-self: center; }
.split.reverse .copy { grid-column: 1 / span 6; }
.split.reverse .plate { grid-column: 8 / span 5; }
.copy p { margin: 0 0 14px; max-width: 32em; text-wrap: pretty; }

.pull { margin: 36px 0 0; padding: 20px 0 22px; border-top: 2px solid var(--rule); border-bottom: 1px solid var(--rule); }
.pull p { margin: 0; font-size: clamp(25px, 2.4vw, 32px); line-height: 1.22; font-style: italic; text-wrap: balance; hanging-punctuation: first; }

.pair .story { grid-column: span 6; display: flex; flex-direction: column; }
.pair { column-gap: 0; }
.pair .story:first-child { padding-right: var(--gutter); }
.pair .story + .story { padding-left: var(--gutter); border-left: 1px solid var(--hair); }
.pair .story > p:not(.kicker) { margin: 0 0 14px; max-width: 30em; text-wrap: pretty; }
.pair .plate { margin-top: auto; padding-top: 30px; }
.pair .frame { aspect-ratio: 1 / 1.08; }

.briefs p:not(.kicker) { margin: 0; padding: 16px 0; border-top: 1px solid var(--hair); font-size: 19px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.briefs .kicker + p { border-top: 2px solid var(--rule); }
.briefs b { color: var(--ink); font-weight: 600; }

.omissions { margin-top: 34px; }
.omissions ul { list-style: none; margin: 0; padding: 12px 0 0; border-top: 2px solid var(--rule); }
.omissions li { display: flex; align-items: baseline; gap: 0; padding: 5px 0; font-size: 18px; }
.omissions li::after { content: ""; order: 1; flex: 1; min-width: 1.5em; margin: 0 .45em; border-bottom: 1px dotted var(--ink-faint); transform: translateY(-.28em); }
.omissions li span { order: 0; }
.omissions li i { order: 2; color: var(--oxblood); text-align: right; }
.omissions .fine { margin: 14px 0 0; font-size: 16px; color: var(--ink-soft); font-style: italic; }


/* ——— Stages: full-bleed flat colour, as in the hero's set ——— */
.stage { --on: #f3e9d2; --on-soft: rgba(243, 233, 210, .74); --accent: #d9b87a; color: var(--on); }
.stage.green { background: #2f3624; }
.stage.oxblood { background: #6e1a24; }
.stage.brass { background: #b38c55; --on: #241b15; --on-soft: rgba(36, 27, 21, .78); --accent: #4a0d14; }
.stage .story.split { padding-top: 112px; padding-bottom: 120px; }
.stage .kicker, .stage .fig { color: var(--accent); }
.stage .copy p, .stage .deck, .stage figcaption { color: var(--on-soft); }
.stage h3 { color: var(--on); }
.stage a { color: var(--on); }
.stage .frame { border: 0; box-shadow: 0 2px 2px rgba(0, 0, 0, .12), 0 40px 70px -40px rgba(0, 0, 0, .7); }
.stage .mirror-toggle { background: transparent; color: var(--on); border-color: var(--on-soft); }
.stage .mirror-toggle:hover { color: var(--accent); border-color: var(--accent); }
.stage .manicule { color: var(--accent); }

/* II: the page you write on, and the painted hand about to write on it. */
.stage.green .split .plate { grid-column: 1 / span 6; }
.stage.green .split .copy { grid-column: 8 / span 5; }
.stage-art { position: relative; }
.stage-art .hand { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 22%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 86%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 22%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 18%, #000 86%, transparent); mask-composite: intersect; }
.stage-art .hand img { width: 100%; display: block; }
.stage-art .hand + .page { position: absolute; left: -4%; top: 47%; width: 56%; margin: 0; z-index: 1; }
.stage-art .page { position: relative; width: 78%; margin: 0 auto; }
.stage-art .page .frame { transform: rotate(-4deg); }
.stage-art figcaption { margin-top: 16px; }
.stage-art .hand ~ figcaption { margin-top: 16%; }

/* The closing scene, a bookend to the hero. */
.closing { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #6e1a24; color: #f6eedd; }
.closing-scene { position: absolute; left: 0; right: 0; top: -12%; height: 124%; }
.closing-scene img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.closing::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to bottom, rgba(20, 8, 8, .28), transparent 40%); }
.closing-text { position: absolute; z-index: 1; left: 36px; top: 14vh; max-width: 30em; }
.closing h2 { margin: 0 0 18px; font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(56px, 8vw, 150px); line-height: .92; letter-spacing: -.03em; text-shadow: 0 2px 30px rgba(40, 10, 10, .25); }
.closing p { margin: 0; font-size: 21px; font-style: italic; }
.closing .links { margin-top: 18px; font-style: normal; font-size: 18px; }
.closing a { color: #f6eedd; }
.closing .store { margin-top: 26px; font-style: normal; }
.closing .store-btn { display: inline-block; padding: 10px 24px 12px; border-radius: 999px; background: #f3e9d2; color: #6e1a24; text-decoration: none; font-variant-caps: all-small-caps; letter-spacing: .12em; font-size: 21px; box-shadow: 0 10px 30px -12px rgba(20, 8, 8, .5); transition: background .2s; }
.closing .store-btn:hover { background: #fffaf0; }

[data-depth] { will-change: transform; }

/* ——— Interlude: Leonardo's mirror hand ——— */
.interlude { padding: 112px 0 116px; }
.interlude-head { max-width: 760px; }
.interlude h3 { max-width: 15em; }
.mirror { margin: 52px 0 0; }
.mirror-page { perspective: 2400px; }
.mirror-page img { width: 100%; box-shadow: 0 1px 1px rgba(36, 27, 21, .06), 0 40px 70px -46px rgba(36, 27, 21, .75); transition: transform 1.2s cubic-bezier(.65, 0, .25, 1); transform-origin: 50% 50%; }
.mirror.flipped .mirror-page img { transform: rotateY(180deg); }
.mirror figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin-top: 18px; }
.mirror-toggle { -webkit-appearance: none; appearance: none; font: inherit; font-size: 18px; color: var(--ink); background: var(--paper); border: 1px solid var(--rule); padding: 7px 16px 8px; cursor: pointer; font-style: normal; }
.mirror-toggle .label { font-variant-caps: all-small-caps; letter-spacing: .1em; }
.mirror-toggle:hover { color: var(--oxblood); border-color: var(--oxblood); }

.plate.layered .stack { position: relative; }
.plate.layered .inset { position: absolute; right: 4%; bottom: -7%; width: 46%; transform: rotate(2.4deg); box-shadow: 0 2px 2px rgba(36, 27, 21, .08), 0 30px 50px -26px rgba(36, 27, 21, .7); }
.plate.layered figcaption { margin-top: calc(7% + 18px); }
.sheet-of-ideas { background: #ece6da; }

/* ——— Connect, set in reverse ——— */
.connect { background: var(--rev-bg); color: var(--rev-ink); padding: 104px 0 112px; }
@media (prefers-color-scheme: dark) { .connect { border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); } }
.connect .kicker { color: var(--rev-accent); }
.connect h3 { font-size: clamp(40px, 5.2vw, 74px); max-width: 12em; }
.connect .deck { color: var(--rev-soft); max-width: 34em; }
.connect-head { max-width: 900px; }

.exchange { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); margin-top: 64px; align-items: start; }
.plate.page { grid-column: 1 / span 5; }
.plate.page .frame { border: 0; background: #f7f0e2; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .85); transform: rotate(-1.1deg); }
.plate.page figcaption { color: var(--rev-soft); margin-top: 18px; }
.plate.page .fig { color: var(--rev-accent); }
.on-page { position: absolute; left: 27%; top: 56%; width: 39%; height: 12.5%; overflow: visible; }

.transcript { grid-column: 7 / span 6; }
.transcript .label { margin: 0; padding-bottom: 10px; border-bottom: 1px solid var(--rev-hair); font-size: 15px; letter-spacing: .2em; color: var(--rev-soft); }
.turn { padding: 20px 0 22px; border-bottom: 1px solid var(--rev-hair); }
.turn .who { margin: 0 0 6px; font-size: 16px; color: var(--rev-accent); }
.turn .said { margin: 0; font-size: clamp(22px, 2vw, 26px); line-height: 1.32; text-wrap: pretty; }
.turn:first-of-type .said { font-style: italic; }
.turn .source { margin: 12px 0 0; font-size: 14px; color: var(--rev-soft); }

.steps { list-style: none; counter-reset: step; margin: 36px 0 0; padding: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rev-hair); font-size: 18px; line-height: 1.42; color: var(--rev-soft); }
.steps li:first-child { border-top: 2px solid var(--rev-ink); }
.steps li::before { content: counter(step); font-style: italic; font-size: 30px; line-height: 1; color: var(--rev-ink); }
.steps b { color: var(--rev-ink); font-weight: 500; }
.steps code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .8em; color: var(--rev-ink); background: rgba(239, 229, 209, .09); padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
.connect .fine { margin: 30px 0 0; font-size: 17px; color: var(--rev-soft); }
.connect .fine a { color: var(--rev-accent); white-space: nowrap; }
.connect .fine a::after { content: " →"; }

/* ——— Terms: the price, stated plainly ——— */
.pro-tag { color: inherit; opacity: .85; }
.leaders { list-style: none; margin: 16px 0 0; padding: 0; }
.leaders li { display: flex; align-items: baseline; padding: 4px 0; font-size: 19px; }
.leaders li::after { content: ""; order: 1; flex: 1; min-width: 1.2em; margin: 0 .45em; border-bottom: 1px dotted var(--ink-faint); transform: translateY(-.28em); }
.leaders li span { order: 0; }
.leaders li i { order: 2; font-style: normal; font-variant-numeric: lining-nums; color: var(--ink); }

/* ——— Letters to the editor ——— */
.letters { padding-top: 104px; padding-bottom: 112px; }
.letters-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 2px solid var(--rule); }
.letters-head h3 { margin: 0; }
.letter-wall { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px var(--gutter); margin-top: 48px; align-items: start; }
.letter { position: relative; margin: 0; padding: 30px 30px 26px; background: #fbf6ea; color: #2a1f18; border: 1px solid rgba(36, 27, 21, .1);
  box-shadow: 0 1px 1px rgba(36, 27, 21, .05), 0 26px 44px -34px rgba(36, 27, 21, .55);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(64, 104, 152, .16) 31px 32px); background-position: 0 25px; }
.letter:nth-child(1) { grid-column: 1 / span 7; grid-row: 1; transform: rotate(-.6deg); background-image: none; padding: 40px 40px 32px; }
.letter:nth-child(2) { grid-column: 8 / span 5; grid-row: 1; transform: rotate(.8deg); }
.letter:nth-child(3) { grid-column: 8 / span 5; grid-row: 2; transform: rotate(-.4deg); }
.letter:nth-child(4) { grid-column: 2 / span 6; grid-row: 2; transform: rotate(.5deg); }
.letter::before { content: "\201C"; position: absolute; left: 18px; top: -6px; font-size: 76px; line-height: 1; color: #9b1f2c; font-family: var(--display); font-style: italic; }
.letter blockquote { margin: 0; }
.letter blockquote p { margin: 0; font-style: italic; font-size: 23px; line-height: 32px; text-wrap: pretty; }
.letter.big blockquote p { font-size: clamp(28px, 2.8vw, 38px); line-height: 1.22; letter-spacing: -.01em; }
.letter figcaption { margin-top: 18px; font-style: normal; font-size: 16px; color: #6a5a4c; }
.letter .name { font-variant-caps: all-small-caps; letter-spacing: .1em; color: #2a1f18; font-size: 17px; }
.letter .role::before { content: " \00B7  "; }

/* ——— Ink that writes itself ——— */
.ink-wrap { position: relative; white-space: nowrap; }
.ink { position: absolute; overflow: visible; pointer-events: none; }
.ink path { fill: none; stroke: var(--ink-red); stroke-linecap: round; stroke-linejoin: round; }
.ink.under { left: -2%; bottom: -.16em; width: 104%; height: .3em; }
.ink.under path { stroke-width: 4.5; }
.ink.loop path { stroke-width: 5; }
.ear .ink.loop { left: -30%; top: -30%; width: 160%; height: 160%; }
.on-page path { stroke: #a3242f; stroke-width: 3; }
.js .ink path { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.15s cubic-bezier(.55, .1, .3, 1) .2s; }
.js .ink.inked path { stroke-dashoffset: 0; }

/* ——— Smaller screens ——— */
@media (max-width: 980px) {
  .lead-head, .contents, .pad, .leonardo.hands, .frontispiece { grid-column: 1 / -1; grid-row: auto; }
  .lead-head { order: 0; } .frontispiece { order: 1; margin-top: 36px; } .leonardo.hands { order: 1; margin-top: 44px; } .pad { order: 2; margin-top: 40px; } .body.three { order: 3; } .contents { order: 4; } .plate.wide { order: 5; }
  .leonardo.hands .frame { aspect-ratio: 16 / 10; }
  .leonardo.hands img { height: 100%; object-fit: cover; object-position: 50% 2%; }
  .body.three { columns: 2; margin-top: 48px; }
  .contents { margin-top: 40px; padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--hair); display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--gutter); }
  .contents .kicker { grid-column: 1 / -1; }
  .notice { margin-top: 0; align-self: start; }
  .split .plate, .split .copy, .split.reverse .plate, .split.reverse .copy { grid-column: 1 / -1; }
  .split .plate { order: 2; max-width: 480px; width: 100%; justify-self: center; margin-top: 40px; }
  .stage.green .split .plate, .stage.green .split .copy { grid-column: 1 / -1; }
  .plate.page, .transcript { grid-column: 1 / -1; }
  .plate.page { max-width: 460px; width: 100%; justify-self: center; margin-bottom: 48px; }
}
@media (max-width: 760px) {
  .hero-bar { padding: 16px 20px; }
  .hero-scene img { object-position: 50% 80%; }
  .hero-bar nav a:not([href="#connect"]):not([href="#pricing"]):not(.hero-pill) { display: none; }
  .hero-title { top: 12svh; left: 0; right: 0; text-align: center; font-size: 16.5vw; }
  .hero-mark { display: none; }
  .hero-bar { justify-content: flex-end; }
  .hero-pill { font-size: 16px; padding: 5px 14px 6px; }
  .hero-notes { left: 20px; right: 20px; top: calc(12svh + 17.5vw + 14px); font-size: 17px; text-align: center; }
  .hero-notes li::before { display: none; }
  .hero-corner.left { display: none; }
  .hero-corner.right { right: auto; left: 20px; font-size: 13px; }
  .hero-scroll { left: auto; right: 20px; transform: none; }
  .letters { padding-top: 72px; padding-bottom: 80px; }
  .letter-wall { gap: 26px; margin-top: 36px; }
  .letter:nth-child(n) { grid-column: 1 / -1; grid-row: auto; }
  .letter { padding: 26px 22px 22px; }
  .letter blockquote p { font-size: 21px; line-height: 32px; }
  :root { --gutter: 22px; }
  .ears { grid-template-columns: 1fr; }
  .ear { display: none; }
  .title { text-align: center; }
  .folio { justify-content: center; }
  .folio > .caps { display: none; }
  .folio ul { gap: 13px; flex-wrap: wrap; justify-content: center; }
  .folio a { font-size: 16px; letter-spacing: .08em; }
  .lead h2 { font-size: 42px; text-wrap: wrap; }
  .lead { padding-top: 40px; padding-bottom: 72px; }
  .contents { grid-template-columns: 1fr; }
  .notice { margin-top: 26px; }
  .plate.wide { margin-top: 40px; }
  .body.three { columns: 1; }
  .body.three p { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
  .leonardo.hands .frame { aspect-ratio: 4 / 3; }
  .frontispiece { margin-left: -20px; margin-right: -20px; }
  .frontispiece img { aspect-ratio: 4 / 3; object-position: 58% 40%; }
  .frontispiece figcaption { padding: 0 20px; }
  .interlude { padding: 72px 0 76px; }
  .mirror figcaption { gap: 14px; }
  .mirror-page { margin: 0 -20px; }
  .mirror-page img { height: 320px; object-fit: cover; object-position: 0 50%; box-shadow: none; }
  .pad-sheet { aspect-ratio: 1 / 1.08; }
  .pad-tools { gap: 10px 0; }
  .tool-group { padding: 0 10px; }
  .pens button { padding: 4px 4px 2px; }
  .pens svg { width: 38px; }
  .pens span { display: none; }
  .tool-group.papers { padding-left: 0; border-left: 0; }
  .pad-hint { left: 8%; top: 6%; }
  .story.split, .pair { padding-top: 72px; padding-bottom: 72px; }
  .stage .story.split { padding-top: 72px; padding-bottom: 80px; }
  .interlude { padding: 72px 0 76px; }
  .closing-text { left: 20px; right: 20px; top: 10svh; text-align: center; }
  .closing h2 { font-size: 15vw; }
  .closing-scene img { object-position: 50% 80%; }
  .pair .story { grid-column: 1 / -1; }
  .pair .story:first-child { padding-right: 0; }
  .pair .story + .story { margin: 64px 0 0; padding: 44px 0 0; border-left: 0; border-top: 1px solid var(--rule); }
  .connect { padding: 72px 0 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .ink path { transition: none; }
}

/* ——— Pricing: free on paper, Pro on the green stage with the painted hand ——— */
.pricing { padding: 104px 0 112px; }
.pricing-head { max-width: 760px; margin-bottom: 48px; }
.plans { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: stretch; }
.plan { position: relative; padding: 34px 34px 32px; display: flex; flex-direction: column; }
.plan p { margin: 0; }
.plan-name { font-size: 17px; letter-spacing: .16em; color: var(--oxblood); }
.amt { font-family: var(--display); font-style: italic; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.per { font-style: italic; font-size: 18px; color: var(--ink-soft); }
.plan.free { border: 1px solid var(--rule); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px var(--rule); }
.price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 26px !important; }
.price .amt { font-size: 68px; line-height: 1; }
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hair); }
.ticks li { position: relative; padding: 11px 0 11px 30px; border-bottom: 1px solid var(--hair); font-size: 19px; line-height: 1.35; }
.ticks li::before { content: "\2767"; position: absolute; left: 0; top: 11px; color: var(--oxblood); }
.plan-cta { margin-top: auto !important; padding-top: 28px; }
.btn-line, .btn-solid { display: inline-block; padding: 10px 26px 12px; border-radius: 999px; text-decoration: none; font-variant-caps: all-small-caps; letter-spacing: .12em; font-size: 20px; white-space: nowrap; transition: background .2s, color .2s; }
.btn-line { border: 1px solid var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.plan.pro { display: grid; grid-template-columns: minmax(0, 1fr) 210px; column-gap: 28px; background: #2f3624; color: #f3e9d2; overflow: hidden; box-shadow: 0 2px 2px rgba(0, 0, 0, .12), 0 40px 70px -40px rgba(0, 0, 0, .7); }
.plan.pro .plan-name { color: #d9b87a; }
.plan.pro .ticks { margin-top: 18px; border-color: rgba(243, 233, 210, .2); }
.plan.pro .ticks li { border-color: rgba(243, 233, 210, .2); }
.plan.pro .ticks li::before { color: #d9b87a; }
.plan-intro { grid-column: 1; grid-row: 1; }
.plan-art { grid-column: 2; grid-row: 1; margin: -34px -34px 0 0; min-height: 230px; background: url("/assets/hand-green.jpg") 38% 62% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 35%), linear-gradient(to top, transparent, #000 30%); -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 35%), linear-gradient(to top, transparent, #000 30%); mask-composite: intersect; }
.tiers { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.tier { position: relative; padding: 20px 12px 16px; border: 1px solid rgba(243, 233, 210, .3); border-radius: 4px; text-align: center; }
.tier .caps { font-size: 15px; letter-spacing: .16em; color: rgba(243, 233, 210, .74); }
.tier .amt { margin: 6px 0 2px; font-size: 38px; line-height: 1.1; color: #f3e9d2; }
.tier .per { font-size: 16px; color: rgba(243, 233, 210, .74); }
.tier.best { background: #f3e9d2; border-color: #f3e9d2; }
.tier.best .caps { color: #7a1c26; }
.tier.best .amt { color: #241b15; }
.tier.best .per { color: #5d4d40; }
.tier .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); padding: 3px 12px 5px; border-radius: 999px; background: #7a1c26; color: #f6eedd !important; font-size: 14px !important; letter-spacing: .12em; white-space: nowrap; }
.plan.pro .plan-cta { grid-column: 1 / -1; text-align: center; }
.btn-solid { background: #f3e9d2; color: #6e1a24; }
.btn-solid:hover { background: #fffaf0; }
.pricing-fine { margin: 24px 0 0; max-width: 48em; font-size: 15px; line-height: 1.45; font-style: italic; color: var(--ink-faint); }
@media (max-width: 980px) {
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .pricing { padding: 64px 0 72px; }
  .pricing-head { margin-bottom: 32px; }
  .plan { padding: 26px 22px 26px; }
  .price .amt { font-size: 56px; }
  .plan.pro { grid-template-columns: minmax(0, 1fr); }
  .btn-line, .btn-solid { font-size: 17px; padding: 10px 20px 12px; }
  .plan-art { grid-column: 1; grid-row: 1; margin: -26px -22px 0; min-height: 200px; background-position: 50% 62%;
    -webkit-mask-image: linear-gradient(to top, transparent, #000 40%); mask-image: linear-gradient(to top, transparent, #000 40%); }
  .plan-intro { grid-row: 2; }
  .tiers { grid-template-columns: 1fr; gap: 18px; }
  .tier { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name amt" "per amt"; align-items: center; text-align: left; padding: 16px 18px; }
  .tier .caps:not(.badge) { grid-area: name; }
  .tier .amt { grid-area: amt; margin: 0; font-size: 32px; }
  .tier .per { grid-area: per; }
  .tier .badge { left: 18px; transform: none; }
}
