/* Slipnote. Tokens follow brand/slipnote/tokens.css; Clipfile material remaps them to brand/clipfile. */
:root {
  --ground: #F3EEE3;   /* Canvas */
  --ink: #123A2E;      /* Forest */
  --accent: #964A14;   /* Rust: links, ordinals, counts, focus */
  --flare: #F2A93B;    /* Saffron: mark, fills, edges; never text on Canvas */
  --surface: #E3E6D8;  /* Sage */
  --muted: #4A5F55;    /* Forest-tinted secondary text: 5.9:1 on Canvas, 5.4:1 on Sage */
  --line: #C9CDBE;
  --field: #FBF9F4;
  --field-edge: #6E7F76;
  --on-ink: #F3EEE3;
  --on-ink-muted: #E3E6D8; /* Sage on Forest, 9.9:1 */
  --behind: #F3EEE3;   /* what shows through a folded corner or a punched hole */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', system-ui, sans-serif;
  --font-data: 'Fragment Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --lift: 0 34px 60px -34px rgb(18 58 46 / .5), 0 10px 18px -12px rgb(18 58 46 / .28);
  --lift-sm: 0 14px 24px -16px rgb(18 58 46 / .7);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --fold: clamp(2.2rem, 4vw, 3.4rem);
  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem; --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  /* Type ramp: every font-size in this file uses one of these. */
  --t-giant: clamp(5.5rem, 25vw, 22rem);
  --t-hero: clamp(2.9rem, 5.9vw, 5.3rem);
  --t-display: clamp(2.6rem, 6vw, 5.5rem);
  --t-feature: clamp(2.1rem, 4.4vw, 3.7rem);
  --t-headline: clamp(1.9rem, 3.6vw, 3.1rem);
  --t-rail: clamp(2rem, 3vw, 2.55rem);
  --t-subhead: clamp(1.6rem, 2.6vw, 2.1rem);
  --t-wordmark: 2.15rem;
  --t-wordmark-compact: 1.9rem;
  --t-title: 1.5rem;
  --t-lead: clamp(1.1rem, 1.6vw, 1.26rem);
  --t-name: 1.12rem;
  --t-body: 1.0625rem;
  --t-dense: 1rem;
  --t-ui: .95rem;
  --t-small: .9rem;
  --t-label: .78rem;
  --measure: 36rem; /* about 70 characters of Public Sans at 17px */
  color-scheme: light;
}

/* Clipfile's kit: the Clipfile page's content area and the clipping on the home page. */
.clip main, .clipping {
  --ground: #F7F5F0;   /* Newsprint */
  --ink: #111111;      /* Press Black */
  --accent: #C8102E;   /* Press Red */
  --flare: #C8102E;
  --muted: #6B6B66;    /* Graphite: 4.9:1 on Newsprint, never body text on Proof */
  --surface: #ECE9E1;  /* Proof */
  --line: #D6D2C7;
  --field: #F7F5F0;
  --field-edge: #6B6B66;
  --on-ink: #F7F5F0;
  --font-display: 'Newsreader', Georgia, serif;
  --font-body: 'Work Sans', system-ui, sans-serif;
  --font-data: 'Work Sans', system-ui, sans-serif;
  --lift: 0 34px 60px -34px rgb(17 17 17 / .42), 0 10px 18px -12px rgb(17 17 17 / .24);
  --lift-sm: 0 14px 24px -16px rgb(17 17 17 / .6);
  color: var(--ink);
  font-family: var(--font-body);
}
.clip main { --behind: #F7F5F0; background: var(--ground); }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 7.5rem; scrollbar-color: var(--muted) var(--surface); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--t-body)/1.6 var(--font-body);
  caret-color: var(--accent);
  -webkit-font-smoothing: antialiased;
}
/* Paper grain over every surface; multiply only ever darkens, so text contrast holds. */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 60; 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='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .32 0 0 0 0 .27 0 0 0 0 .16 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--flare); color: #123A2E; }
.clip main ::selection, .clipping ::selection { background: #C8102E; color: #F7F5F0; }
main, footer { overflow-x: clip; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .22em; transition: text-decoration-thickness .2s; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.on-ink :focus-visible { outline-color: var(--flare); }

h1, h2, h3, h4 {
  margin: 0 0 var(--s4);
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 50;
  line-height: 1.08;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: var(--t-display); letter-spacing: -.03em; line-height: 1.02; font-variation-settings: "SOFT" 50, "opsz" 144; }
h2 { font-size: var(--t-headline); }
h3 { font-size: var(--t-title); line-height: 1.2; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
li { text-wrap: pretty; }

.wrap { width: min(100% - 2 * var(--gutter), 74rem); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono, .tag {
  font: 400 var(--t-label)/1.5 var(--font-data);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.tag { margin: 0 0 var(--s3); color: var(--muted); }
.count { color: var(--accent); font: 400 var(--t-label)/1 var(--font-data); font-variant-numeric: tabular-nums; }
.lead { max-width: 38rem; font-size: var(--t-lead); line-height: 1.55; }
.small { font-size: var(--t-small); line-height: 1.5; color: var(--muted); }

.arrow { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease); }

.button, button {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: .7rem; min-height: 3rem;
  padding: 0 1.25rem;
  border: 0; border-radius: 3px;
  background: var(--ink); color: var(--on-ink);
  font: 600 var(--t-body)/1.3 var(--font-body);
  text-decoration: none; cursor: pointer;
  box-shadow: var(--lift-sm);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.button::after, button::after {
  content: ""; position: absolute; inset: auto 0 0; height: 4px;
  background: var(--flare); transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s var(--ease);
}
.button:hover, button:hover { transform: translateY(-2px); text-decoration: none; }
.button:hover::after, button:hover::after { transform: scaleY(1); }
.button:hover .arrow { transform: translateX(3px); }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
button:disabled::after { transform: scaleY(0); }

/* The ruler: a 1px rule with inch and minor ticks, drawn rather than decorated. */
.ruler {
  height: 12px; border-top: 1px solid var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 40px) 0 0 / 100% 100% no-repeat,
    repeating-linear-gradient(90deg, var(--muted) 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat;
}

/* Paper objects: a filed slip with a Saffron top edge and a punched hole. */
.paper { position: relative; background: var(--field); border-top: .35rem solid var(--flare); box-shadow: var(--lift); }
.paper::before {
  content: ""; position: absolute; top: .7rem; right: .8rem;
  width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--behind); box-shadow: inset 0 1px 2px rgb(18 58 46 / .35);
}
/* A press clipping: the top corner folded back to show the ground behind it. */
.fold { position: relative; }
.fold::before {
  content: ""; position: absolute; top: 0; right: 0;
  border-style: solid; border-width: 0 var(--fold) var(--fold) 0;
  border-color: transparent var(--behind) transparent transparent;
  filter: drop-shadow(-3px 3px 3px rgb(17 17 17 / .18));
}
.fold::after {
  content: ""; position: absolute; top: 0; right: 0;
  border-style: solid; border-width: var(--fold) 0 0 var(--fold);
  border-color: transparent transparent transparent #E4E0D6;
}
.dots { position: relative; }
.dots::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(18 58 46 / .2) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

/* Masthead */
.mast {
  position: sticky; top: 0; z-index: 30;
  background: rgb(243 238 227 / .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--ink);
}
.mast-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 var(--s5); min-height: 4.25rem; }
.brand {
  display: inline-flex; align-items: center; gap: .7rem; min-height: 2.75rem;
  color: var(--ink); text-decoration: none;
  font: italic 600 var(--t-wordmark)/1 var(--font-display);
  font-variation-settings: "SOFT" 50, "opsz" 72;
  letter-spacing: -.01em;
}
.brand .mark { width: 2.6rem; height: 2.6rem; flex: none; }
nav { display: flex; flex-wrap: wrap; }
.mast nav { gap: 0 clamp(.9rem, 2vw, 1.75rem); }
.mast nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  color: var(--ink); font-size: var(--t-ui); text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 calc(100% - 9px) / 0 2px no-repeat;
  transition: background-size .4s var(--ease);
}
.mast nav a:hover, .mast nav a[aria-current=page] { background-size: 100% 2px; }
.mast nav a[aria-current=page] { font-weight: 600; }
.running { border-top: 1px solid var(--line); }
.running .wrap { display: flex; justify-content: space-between; gap: var(--s5); padding-block: .4rem; color: var(--muted); }
.running p { margin: 0; }
.running b { font-weight: 400; color: var(--accent); }

main { padding-bottom: var(--s9); }
.home main { padding-bottom: 0; }

/* Home hero */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 5vw, 4.5rem) clamp(5rem, 9vw, 8rem); }
.hero h1 { margin: 0; font-size: var(--t-hero); line-height: 1; }
.hero h1 em { display: block; }
.hero .lead { margin: var(--s5) 0 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.6rem; margin-top: var(--s6); }
.actions > a:not(.button) { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 600; }

.sheet-wrap { position: relative; }
.sheet { margin: 0; background: #123A2E; color: var(--on-ink); box-shadow: var(--lift); }
.sheet svg { display: block; width: 100%; height: auto; }
.sheet text { font: 400 12px var(--font-data); letter-spacing: .06em; fill: #F3EEE3; }
.sheet .lbl { font-size: 14px; text-anchor: middle; }
.sheet .stn text { text-anchor: middle; }
.sheet .hyp { stroke-dasharray: 540; animation: draw 1.6s var(--ease) .2s backwards; }
.sheet .stn { transform-box: fill-box; transform-origin: center; animation: pop .7s var(--ease) backwards; }
.sheet .stn:nth-last-of-type(3) { animation-delay: .7s; }
.sheet .stn:nth-last-of-type(2) { animation-delay: 1s; }
.sheet .stn:nth-last-of-type(1) { animation-delay: 1.3s; }
@keyframes draw { from { stroke-dashoffset: 540; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
.legend { display: none; }

.slip { position: absolute; right: -9%; bottom: -13%; width: min(17.5rem, 56%); padding: 1.2rem 1.35rem 1rem; transform: rotate(-2.2deg); animation: settle 1.1s var(--ease) .5s backwards; transition: transform .6s var(--ease); }
.slip:hover { transform: rotate(-.6deg) translateY(-3px); }
@keyframes settle { from { transform: rotate(-7deg) translateY(22px); opacity: 0; } }
.slip h2 { margin: 0; font: italic 600 var(--t-title)/1.1 var(--font-display); }
.slip dl { margin: .75rem 0 0; counter-reset: issue; }
.slip dl > div { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 0 .7rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.slip dl > div::before { counter-increment: issue; content: counter(issue, decimal-leading-zero); grid-row: span 2; padding-top: .2rem; color: var(--accent); font: 400 var(--t-label)/1.5 var(--font-data); }
.slip dt a { color: var(--ink); font: italic 600 var(--t-name)/1.2 var(--font-display); text-decoration-color: var(--flare); text-decoration-thickness: 2px; text-underline-offset: .2em; }
/* The whole row is the tap target for its link. */
.slip dt a::after { content: ""; position: absolute; inset: 0; }
.slip dd { margin: 0; color: var(--muted); font-size: var(--t-small); line-height: 1.4; }

/* Field guide: a notebook page */
.guide-band { background: var(--surface); border-block: 1px solid var(--line); padding-block: clamp(3.5rem, 7vw, 6rem); }
.notebook {
  position: relative;
  padding: clamp(1.75rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3.5rem) clamp(1.75rem, 4vw, 3.25rem) clamp(3.6rem, 8vw, 7.5rem);
  background-color: var(--field);
  background-image: radial-gradient(rgb(18 58 46 / .16) 1px, transparent 1.2px);
  background-size: 20px 20px;
  box-shadow: var(--lift);
}
.notebook::before { content: ""; position: absolute; top: 0; bottom: 0; left: clamp(2.6rem, 5.5vw, 5rem); width: 2px; background: var(--flare); }
.holes { position: absolute; top: 0; bottom: 0; left: clamp(.7rem, 1.9vw, 1.75rem); display: flex; flex-direction: column; justify-content: space-evenly; }
.holes i { width: clamp(.8rem, 1.5vw, 1.15rem); aspect-ratio: 1; border-radius: 50%; background: var(--behind); box-shadow: inset 0 2px 3px rgb(18 58 46 / .3); }
.guide-band .holes i { background: var(--surface); }
.tab { position: absolute; right: clamp(1.25rem, 4vw, 3.5rem); top: 0; margin: 0; transform: translateY(-100%); padding: .45rem .9rem .4rem; background: var(--ink); color: var(--on-ink); border-radius: 4px 4px 0 0; }
.guide-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.guide-top h2 { margin: 0; max-width: 14ch; font-size: var(--t-feature); line-height: 1.03; letter-spacing: -.025em; }
.guide-deck { margin: 1.1rem 0 0; max-width: 38rem; font-size: var(--t-lead); line-height: 1.55; }
.clock-fig { margin: 0; }
.clock { display: block; width: clamp(7rem, 15vw, 11.5rem); height: auto; }
.clock-cap { display: block; margin-top: .5rem; text-align: center; color: var(--muted); }
.clock-cap b { display: block; color: var(--ink); font: 400 var(--t-title)/1 var(--font-data); letter-spacing: 0; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(2rem, 4vw, 3.25rem) 0 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 7px; right: 25%; top: 7px; border-top: 2px solid var(--ink); }
.timeline::after { content: ""; position: absolute; left: 75%; right: 12%; top: 7px; border-top: 2px dashed var(--muted); }
.timeline li { position: relative; padding: 1.7rem 1rem 0 0; font-weight: 600; font-size: var(--t-ui); line-height: 1.3; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--ink); }
.timeline li:nth-child(3)::before { background: var(--flare); }
.timeline li:last-child::before { background: var(--field); border-color: var(--muted); }
.timeline .mono { display: block; margin-bottom: .15rem; color: var(--muted); font-weight: 400; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.75rem); margin-top: clamp(2.25rem, 4vw, 3.5rem); padding-top: clamp(1.75rem, 3vw, 2.5rem); border-top: 1px solid var(--ink); }
.steps article { display: grid; grid-template-columns: auto 1fr; gap: .2rem 1rem; align-content: start; }
.steps .num { grid-row: span 2; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--flare); font: italic 600 var(--t-title)/1 var(--font-display); }
.steps h3 { margin: 0; align-self: center; line-height: 1.15; }
.steps p { grid-column: 2; margin: .5rem 0 0; font-size: var(--t-dense); }

/* Directory: a sticky specialty rail beside numbered rows */
.directory { display: grid; grid-template-columns: minmax(0, 19rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); padding-top: clamp(4rem, 8vw, 7rem); }
.rail { position: sticky; top: 7.5rem; align-self: start; }
.rail h2 { margin: 0; font-size: var(--t-rail); line-height: 1.04; letter-spacing: -.025em; }
.rail > p { margin: 1rem 0 0; font-size: var(--t-dense); }
.jump { display: block; margin-top: 1.6rem; border-top: 1px solid var(--ink); }
.jump a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px;
  padding-inline: .1rem; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 600; font-size: var(--t-ui); text-decoration: none;
  transition: padding .45s var(--ease), background-color .3s;
}
.jump a:hover { padding-inline: .7rem; background: var(--surface); }
.cols, .entry { display: grid; grid-template-columns: 2.6rem minmax(0, 12.5rem) minmax(0, 1fr) minmax(0, 10.5rem); gap: 0 1.5rem; }
.cols { padding: .6rem .75rem 0; color: var(--muted); }
.ruler + .group { margin-top: 1.4rem; }
.group + .group { margin-top: clamp(2.75rem, 5vw, 4rem); }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .7rem; border-bottom: 1px solid var(--ink); }
.group-head h3 { margin: 0; font-size: var(--t-subhead); line-height: 1.08; letter-spacing: -.02em; }
.group-head .mono { color: var(--muted); white-space: nowrap; }
.entries { list-style: none; margin: 0; padding: 0; }
.entry { align-items: baseline; padding: 1.25rem .75rem 1.3rem; border-bottom: 1px solid var(--line); transition: background-color .3s, box-shadow .3s; }
.entry:hover { background: var(--field); box-shadow: 0 18px 30px -26px rgb(18 58 46 / .55); }
.ordinal { color: var(--accent); font: 400 var(--t-small)/1 var(--font-data); font-variant-numeric: tabular-nums; }
.entry h4 { margin: 0; font: italic 600 var(--t-title)/1.15 var(--font-display); }
.entry h4 a { color: var(--ink); text-decoration: underline 3px transparent; text-underline-offset: .18em; transition: text-decoration-color .3s; }
.entry:hover h4 a, .entry h4 a:hover { text-decoration-color: var(--flare); }
.entry-desc { margin: 0; max-width: 34rem; font-size: var(--t-dense); }
.entrylinks { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s5); margin: 0; }
.entry .entrylinks { display: grid; gap: .1rem; justify-items: start; }
.entrylinks a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.entry .entrylinks a { min-height: 2rem; }
.entrylinks .site { gap: .35rem; font: 400 var(--t-small)/1.3 var(--font-data); overflow-wrap: anywhere; }
.entrylinks .site .arrow { width: .9em; height: .9em; }
.entrylinks .site:hover .arrow, .entry:hover .site .arrow { transform: translate(2px, -2px); }
.entrylinks .social { color: var(--muted); font-size: var(--t-small); text-underline-offset: .2em; }

/* The Clipfile clipping on the home page, overlapping the footer */
.other { position: relative; z-index: 2; margin-top: clamp(4.5rem, 9vw, 8rem); margin-bottom: clamp(-7rem, -9vw, -4rem); }
.clipping {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.5rem, 3.5vw, 3rem);
  background: var(--ground); box-shadow: var(--lift);
  transform: rotate(-.7deg); transition: transform .6s var(--ease);
}
.clipping:hover { transform: rotate(0deg) translateY(-3px); }
.clip-mast { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding: 0 var(--fold) .9rem 0; border-bottom: 3px double var(--ink); }
.clip-brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font: 600 var(--t-wordmark-compact)/1 var(--font-display); }
.clip-brand .mark { width: 2rem; height: 2rem; flex: none; }
.clip-brand i { font-style: italic; }
.clip-kicker { margin: 0; color: var(--accent); font: italic 500 var(--t-name)/1.3 var(--font-display); }
.clipping h2 { margin: 0; font-size: var(--t-feature); line-height: 1.02; font-variation-settings: normal; }
.clipping p { margin: 1rem 0 0; max-width: 36rem; font-size: var(--t-dense); }
.clipping .button { margin-top: var(--s5); }
.clip-index { display: block; align-self: start; padding-left: clamp(1.25rem, 3vw, 2.5rem); border-left: 1px solid var(--line); }
.clip-index .mono { margin: 0; padding-bottom: .5rem; border-bottom: 1px solid var(--ink); color: var(--muted); font-weight: 500; }
.clip-index a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; padding: .35rem 0;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none;
  font: 600 var(--t-name)/1.25 var(--font-display);
  transition: padding .45s var(--ease), color .3s;
}
.clip-index a:hover { padding-left: .5rem; color: var(--accent); }
.clip-index .count { font-weight: 500; font-size: var(--t-small); }

/* Interior pages: a dotted, ruled header */
.page-head { padding-top: clamp(2.5rem, 5vw, 4rem); }
.intro { position: relative; padding-bottom: var(--s6); }
.intro .lead { margin-bottom: 0; }
.page-body { padding-top: clamp(2.5rem, 5vw, 4rem); }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: var(--s7); font-size: var(--t-subhead); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: var(--s3); }
.prose li::marker { color: var(--accent); }
.callout { margin-top: var(--s6); padding: var(--s4) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.callout > :last-child { margin-bottom: 0; }

/* "At a glance": a filed paper card, or a Forest colophon card on About */
.with-facts { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: var(--s7) clamp(var(--s6), 6vw, var(--s9)); align-items: start; }
.facts { position: sticky; top: 8.5rem; padding: 1.5rem 1.5rem 1.25rem; }
.facts.paper { transform: rotate(-.8deg); }
.facts h2 { margin: 0 0 var(--s3); color: var(--muted); font: 400 var(--t-label)/1.4 var(--font-data); letter-spacing: .08em; text-transform: uppercase; }
.facts dl { margin: 0; }
.facts dl > div { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.facts dl > div:last-child { padding-bottom: 0; }
.facts dt { color: var(--muted); font: 400 var(--t-label)/1.5 var(--font-data); letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: .15rem 0 0; font-weight: 600; }
.ledger { background: #123A2E; color: var(--on-ink); border-top: .35rem solid var(--flare); box-shadow: var(--lift); }
.ledger h2, .ledger dt { color: var(--on-ink-muted); }
.ledger dl > div { border-top-color: rgb(243 238 227 / .28); }
.ledger dd { font: 400 var(--t-ui)/1.45 var(--font-data); font-variant-numeric: tabular-nums; }
.ledger a { color: var(--on-ink); text-decoration-color: var(--flare); }

/* Clipfile page */
.clip-page { padding-top: clamp(2rem, 4vw, 3rem); }
.clip-page .clip-mast { padding-right: 0; }
.clip-page .clip-brand { font-size: var(--t-wordmark); }
.clip-page .clip-brand .mark { width: 2.4rem; height: 2.4rem; }
.clip-page .intro { padding-block: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--ink); }
.clip-page .intro h1 { font-variation-settings: normal; letter-spacing: -.02em; }
.clip-page .directory { padding-top: clamp(2.5rem, 5vw, 4rem); }
.clip-page .rail { padding-right: clamp(1rem, 2.5vw, 2rem); border-right: 1px solid var(--line); }
.clip .group-head h3 { font-style: italic; }
.clip .entry h4 { font-style: normal; }
.clip .ordinal { color: var(--muted); font-weight: 500; }
.brief { margin-top: clamp(4rem, 8vw, 6rem); max-width: 46rem; padding: clamp(1.5rem, 3.5vw, 2.75rem) calc(var(--fold) + 1rem) clamp(1.5rem, 3.5vw, 2.75rem) clamp(1.5rem, 3.5vw, 2.75rem); background: var(--surface); box-shadow: var(--lift); transform: rotate(-.7deg); }
.brief h2 { font-size: var(--t-subhead); }
.brief p { margin: 0; }

/* Contact */
.formwrap { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.form-page { padding-right: clamp(1.25rem, 3vw, 2.5rem); }
form p { max-width: var(--measure); }
label { display: block; margin: var(--s4) 0 var(--s2); font-weight: 600; }
label:first-child { margin-top: 0; }
input, textarea, select {
  width: 100%; max-width: 100%; min-height: 2.75rem;
  padding: .6rem .7rem;
  border: 1px solid var(--field-edge); border-radius: 2px;
  background: var(--field); color: var(--ink);
  font: inherit;
}
textarea { min-height: 10rem; resize: vertical; }
::placeholder { color: var(--muted); opacity: 1; }
.cf-turnstile { margin: var(--s4) 0; }
.trap { display: none; }
.form-error { margin: var(--s3) 0 0; color: var(--accent); font-weight: 600; }
.form-error:empty { display: none; }
.form-success h2 { font-size: var(--t-subhead); }
.letter { padding: 1.5rem 1.5rem 1.35rem; transform: rotate(-1.6deg); }
.letter h2 { margin-bottom: var(--s3); font: italic 600 var(--t-title)/1.1 var(--font-display); }
.letter a { display: inline-flex; align-items: center; min-height: 2.75rem; font: 400 var(--t-ui)/1.3 var(--font-data); }

/* Sitemap rows */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.rows li { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 0 1.5rem; align-items: center; padding: .5rem .75rem; border-bottom: 1px solid var(--line); transition: background-color .3s; }
.rows li:hover { background: var(--field); }
.rows a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--ink); font: italic 600 var(--t-title)/1.15 var(--font-display); text-decoration: underline 3px transparent; text-underline-offset: .18em; }
.rows li:hover a { text-decoration-color: var(--flare); }
.rows .mono { color: var(--muted); text-transform: none; letter-spacing: .02em; }
.after-rows { margin-top: var(--s5); }

/* Footer */
.foot { position: relative; overflow: hidden; background: var(--surface); padding-top: clamp(3.5rem, 6vw, 5rem); }
.home .foot { padding-top: clamp(8rem, 13vw, 11rem); }
.foot > .ruler { position: absolute; top: 0; left: 0; right: 0; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(2rem, 5vw, 4rem); }
.foot .small { margin: .9rem 0 0; max-width: 34rem; font-size: var(--t-small); }
.foot nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; align-self: start; border-top: 1px solid var(--ink); }
.foot nav a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 46px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: var(--t-ui); text-decoration: none; transition: padding .45s var(--ease); }
.foot nav a:hover { padding-left: .5rem; }
.foot nav .arrow { color: var(--accent); opacity: 0; transition: opacity .3s, transform .45s var(--ease); }
.foot nav a:hover .arrow, .foot nav a:focus-visible .arrow { opacity: 1; }
.wordmark { margin: clamp(1rem, 3vw, 2.5rem) 0 -.16em; color: #D6DBC9; font: italic 600 var(--t-giant)/.8 var(--font-display); font-variation-settings: "SOFT" 50, "opsz" 144; letter-spacing: -.04em; text-align: center; white-space: nowrap; user-select: none; }
.colophon { position: relative; background: #123A2E; color: var(--on-ink); }
.colophon .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.5rem; padding-block: .9rem; }
.colophon p { margin: 0; }

.skip { position: absolute; z-index: 70; left: var(--s2); top: var(--s2); padding: var(--s2) var(--s3); background: var(--ground); transform: translateY(-200%); }
.skip:focus { transform: none; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 6rem; }
  .sheet-wrap { max-width: 34rem; }
  .directory { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .clip-page .rail { padding-right: 0; border-right: 0; }
  .jump { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }
  .cols { display: none; }
  .entry { grid-template-columns: 2.4rem minmax(0, 1fr); padding-inline: 0; }
  .entry > :not(.ordinal) { grid-column: 2; }
  .entry h4 a { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .entry-desc { margin-top: .2rem; }
  .entry .entrylinks { grid-auto-flow: column; justify-content: start; gap: 1.25rem; margin-top: .3rem; }
  .entry .entrylinks a { min-height: 2.75rem; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .clipping { grid-template-columns: minmax(0, 1fr); }
  .clip-index { padding-left: 0; border-left: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .with-facts { grid-template-columns: minmax(0, 1fr); }
  .facts { position: static; order: -1; max-width: 26rem; }
  .formwrap { grid-template-columns: minmax(0, 1fr); }
  .letter { max-width: 26rem; }
}

@media (max-width: 640px) {
  html { scroll-padding-top: 1rem; }
  /* On phones the two-row masthead would cover too much of the screen to stay pinned. */
  .mast { position: static; }
  .mast-inner { gap: 0 1rem; padding-top: .5rem; }
  .mast nav { width: 100%; justify-content: space-between; }
  .running .wrap > :last-child { display: none; }
  .brand { font-size: var(--t-wordmark-compact); }
  .hero { padding-bottom: 3.5rem; }
  .sheet .lbl, .sheet .note { display: none; }
  .sheet .stn text { font-size: 20px; }
  .legend { display: grid; gap: .55rem; margin: 0; padding: .25rem 1.1rem 4rem; list-style: none; counter-reset: station; }
  .legend li { display: grid; grid-template-columns: 1.75rem 1fr; gap: .75rem; align-items: center; font-size: var(--t-ui); line-height: 1.35; }
  .legend li::before {
    counter-increment: station; content: counter(station);
    display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%;
    border: 1.5px solid var(--on-ink); font: 400 var(--t-label)/1 var(--font-data);
  }
  .slip { position: relative; right: auto; bottom: auto; width: 86%; margin: -2.75rem 0 0 auto; }
  .guide-top { grid-template-columns: minmax(0, 1fr); }
  .clock-fig { justify-self: start; display: flex; align-items: center; gap: 1rem; }
  .clock-cap { margin: 0; text-align: left; }
  .timeline { grid-template-columns: minmax(0, 1fr); }
  .timeline::before { left: 7px; right: auto; top: 8px; bottom: 30%; border-top: 0; border-left: 2px solid var(--ink); }
  .timeline::after { left: 7px; right: auto; top: 70%; bottom: 1.6rem; border-top: 0; border-left: 2px dashed var(--muted); }
  .timeline li { padding: 0 0 1.1rem 2rem; }
  .jump { grid-template-columns: minmax(0, 1fr); }
  .clipping .clip-kicker { display: none; }
  .foot nav { grid-template-columns: minmax(0, 1fr); }
  .form-page { padding: 1.5rem .75rem 1.5rem 2.5rem; }
  .form-page::before { left: 1.9rem; }
  .form-page .holes { left: .55rem; }
  .form-page .holes i { width: .75rem; }
  .rows li { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .rows .mono { grid-column: 2; padding-bottom: .4rem; }
}

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