/* Loop News (/news): drawing paper, pencil and espresso ink. Same palette and type as
   the landing page. Light only, because the page is paper. Design: Doop canvas 26bEK9pgQk. */
@font-face { font-family: "Caveat"; src: url("/fonts/caveat-latin-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/caveat-latin-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --ground: #FDFCFB;
  --paper: #FDFCF8;
  --surface: #FFFFFF;
  --wash: #F3ECE7;
  --tint: #F5EFED;
  --ink: #3F2C2A;
  --text: #4D3533;
  --brand: #4D3533;
  --on-brand: #FDFCFB;
  --muted: rgba(77, 53, 51, .68);
  --faint: rgba(77, 53, 51, .46);
  --whisper: rgba(77, 53, 51, .26);
  --hair: rgba(77, 53, 51, .14);
  --dots: rgba(77, 53, 51, .22);
  --pencil: #BBAEA8;
  --pencil-dark: #8C7974;
  --hand-ink: #5E4B47;
  --accent: #B83E13;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --dotgrid: radial-gradient(var(--dots) 1px, transparent 1.3px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { position: relative; background: var(--ground); color: var(--text); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 12px; top: 8px; z-index: 9; padding: 10px 14px; border-radius: 10px; background: var(--ground); transform: translateY(-160%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Dot grid paper that fades out under the top of the page. */
.paper-fade { position: absolute; left: 0; right: 0; top: 0; height: 1240px; background-image: var(--dotgrid); background-size: 22px 22px; opacity: .55; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .5) 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .5) 55%, transparent 100%); }
.page { position: relative; }

/* Icons and pencil marks */
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sk { fill: none; stroke: var(--pencil-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sk .lt, .tally .lt { stroke: var(--pencil); }
.sk .ac { stroke: var(--accent); stroke-width: 2; }
.sk .sf { fill: var(--surface); }
.sk .pp { fill: var(--paper); }
.sk .wash { fill: var(--wash); }
.sk .tx { stroke: none; fill: var(--hand-ink); font-family: var(--hand); font-weight: 500; }
.sk .tb { fill: var(--ink); font-weight: 600; }
.hand { font-family: var(--hand); font-weight: 500; color: var(--hand-ink); }
.pen-underline { position: absolute; left: -3px; bottom: -9px; width: calc(100% + 6px); height: 8px; fill: none; stroke: var(--pencil-dark); stroke-width: 1.5; stroke-linecap: round; }
.pen-ring { position: absolute; left: -6px; top: -5px; width: calc(100% + 12px); height: calc(100% + 10px); overflow: visible; fill: none; stroke: var(--pencil-dark); stroke-width: 1.5; stroke-linecap: round; pointer-events: none; }
.hand-arrow { width: 64px; height: 42px; fill: none; stroke: var(--pencil-dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tick { width: 20px; height: 16px; flex: none; fill: none; stroke: var(--hand-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tally { width: 34px; height: 20px; flex: none; fill: none; stroke: var(--pencil-dark); stroke-width: 1.5; stroke-linecap: round; }
.live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent); }

/* Shared type */
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.ulink { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; text-decoration-color: var(--dots); transition: text-decoration-color .2s; }
.ulink:hover { text-decoration-color: var(--ink); }

/* Buttons: the landing page brown pill */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: opacity .2s, background .2s; }
.button.solid { background: var(--brand); color: var(--on-brand); }
.button.ghost { background: var(--tint); color: var(--ink); }
.button.small { height: 38px; padding: 0 16px; font-size: 14px; }
.button:hover { opacity: .88; }
.button[disabled] { opacity: .55; cursor: default; }
.button .arr { font-weight: 400; opacity: .85; }

/* Header, as on the landing page */
.top { position: relative; display: flex; align-items: center; justify-content: space-between; height: 104px; padding: 0 64px; font-size: 14px; }
.top-left, .top-right { display: flex; align-items: center; gap: 22px; }
.brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.brand img { height: 36px; width: auto; }
.navlink { position: relative; color: var(--muted); transition: color .2s; }
.navlink:hover, .navlink[aria-current] { color: var(--ink); }
.gh { display: inline-flex; font: 600 12px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif; color: #25292e; }
.gh-btn { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid #d1d9e0; border-radius: 6px; background: #f6f8fa; box-shadow: 0 1px 0 rgba(31, 35, 40, .04); transition: background .15s; }
.gh:hover .gh-btn { background: #eff2f5; }
.gh-mark { width: 16px; height: 16px; fill: #1f2328; }

/* Hero */
.hero { position: relative; width: min(680px, calc(100% - 40px)); margin: 48px auto 0; text-align: center; }
.hero h1 { margin-top: 22px; font-family: var(--serif); font-weight: 400; font-size: 58px; line-height: 1.04; letter-spacing: -.02em; color: var(--ink); }
.loop-word { position: relative; display: inline-block; }
.loop-ring { position: absolute; left: -8px; top: -10px; width: calc(100% + 22px); height: calc(100% + 20px); overflow: visible; fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linecap: round; pointer-events: none; }
.hero-sub { max-width: 560px; margin: 26px auto 0; font-size: 19px; line-height: 1.6; color: var(--muted); text-wrap: balance; }
.hero .capture { width: min(540px, 100%); margin: 34px auto 0; }
.hero-note { position: absolute; left: 640px; top: 192px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 22px; line-height: 1.1; white-space: nowrap; pointer-events: none; }
.hero-note span { display: block; transform: rotate(-2deg); }
.proof { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.proof b { font-weight: 600; color: var(--ink); }

/* Email capture: one pill field with the button inside */
.capture { display: flex; flex-direction: column; gap: 12px; }
.capture-field { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 6px 0 20px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair), 0 12px 32px color-mix(in srgb, var(--brand) 8%, transparent); transition: box-shadow .2s; }
.capture-field:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink), 0 12px 32px color-mix(in srgb, var(--brand) 10%, transparent); }
.capture-field .ic { width: 18px; height: 18px; color: var(--pencil-dark); stroke-width: 1.8; }
.capture-field input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0; background: transparent; font-size: 16px; color: var(--ink); outline: none; }
.capture-field input::placeholder { color: var(--faint); }
.capture-note { font-size: 13px; line-height: 1.45; color: var(--faint); text-align: center; }
.capture.start .capture-note { text-align: left; }
.capture-error { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); color: #8a2e0e; font-size: 14px; text-align: left; }
.joined { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; padding: 14px 22px 14px 18px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink); font-size: 16px; }
.joined .tick { stroke: var(--accent); }
.joined small { color: var(--muted); font-size: 14px; }

/* Next drop: a sheet of drawing paper with taped index cards */
.sheet { position: relative; display: grid; grid-template-columns: minmax(0, 336px) minmax(0, 1fr); gap: 40px; align-items: start; width: min(1120px, calc(100% - 40px)); margin: 80px auto 0; padding: 64px 60px 52px; border-radius: 24px; overflow: hidden; background-color: var(--paper); background-image: var(--dotgrid); background-size: 22px 22px; box-shadow: inset 0 0 0 1px var(--hair); }
.sheet-label { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--hand-ink); }
.count { display: flex; align-items: flex-start; gap: 14px; margin-top: 26px; color: var(--ink); }
.count b { display: block; font-family: var(--serif); font-weight: 400; font-size: 58px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.count small { display: block; margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.count i { font-style: normal; font-family: var(--serif); font-size: 44px; line-height: 1.15; color: var(--pencil); }
.sheet-title { margin-top: 24px; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.sheet-text p { margin-top: 24px; font-size: 16px; line-height: 1.6; color: var(--text); }
.sheet-text .ulink { display: inline-block; margin-top: 16px; font-size: 15px; }
.cards { display: flex; justify-content: center; align-items: flex-start; padding-top: 18px; }
.drop-card { position: relative; display: flex; flex-direction: column; gap: 12px; width: 232px; flex: none; margin: 0 -11px; padding: 24px 20px 16px; border-radius: 4px; background-color: var(--surface);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 27px, color-mix(in srgb, var(--pencil) 40%, transparent) 27px, color-mix(in srgb, var(--pencil) 40%, transparent) 28px); background-position: 0 58px;
  box-shadow: inset 0 0 0 1px var(--hair), 0 14px 34px color-mix(in srgb, var(--brand) 10%, transparent); }
.drop-card:nth-child(1) { transform: rotate(-2.5deg); margin-top: 32px; z-index: 1; }
.drop-card:nth-child(2) { z-index: 2; }
.drop-card:nth-child(3) { transform: rotate(2deg); margin-top: 42px; z-index: 3; }
.tape { position: absolute; top: -11px; left: 50%; width: 86px; height: 22px; transform: translateX(-50%) rotate(-3deg); background: color-mix(in srgb, var(--wash) 90%, transparent); box-shadow: inset 0 0 0 1px var(--hair); }
.redacted { position: relative; display: block; width: 78%; height: 24px; }
.redacted:nth-of-type(2n) { width: 64%; }
.scribble { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--pencil-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop-card .hint { font-family: var(--hand); font-weight: 500; font-size: 22px; line-height: 28px; color: var(--hand-ink); }
.drop-card .when { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 1px dashed var(--pencil); font-family: var(--mono); font-size: 11px; letter-spacing: .02em; color: var(--faint); white-space: nowrap; }
.drop-card .when::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sheet-note { grid-column: 2; justify-self: center; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 2px; margin-top: -4px; font-size: 22px; line-height: 1.1; }
.sheet-note .hand-arrow { transform: scale(-1, -1); }
.sheet-note span { transform: rotate(-1.5deg); }

/* Format tags */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--wash); color: var(--hand-ink); font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.tag .ic { width: 13px; height: 13px; }
.tag.new { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 34%, transparent); }
.tag.new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tag.lock { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--hair); }

/* Browse: side menu and the posts */
.browse { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 72px; align-items: start; width: min(1120px, calc(100% - 40px)); margin: 136px auto 0; }
.side { position: sticky; top: 32px; }
.side-label { padding: 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.side-label + .side-list { margin-top: 14px; }
.side-list + .side-label { margin-top: 34px; }
.side-list { display: flex; flex-direction: column; gap: 4px; }
.side-row { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-radius: 12px; color: var(--muted); font-size: 15px; line-height: 1.2; transition: color .2s, background .2s; }
.side-row:hover { color: var(--ink); background: var(--tint); }
.side-row .ic { color: var(--pencil-dark); }
.side-row .nm { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-row .ct { flex: none; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.side-row[aria-current] { color: var(--ink); font-weight: 600; }
.side-row[aria-current]:hover { background: transparent; }
.side-row[aria-current] .ct { color: var(--hand-ink); }
.side-row.empty { color: var(--faint); }
.side-row.empty .ic { color: var(--pencil); }
.side-note { margin: 34px 14px 0; padding-top: 22px; border-top: 1px dotted var(--dots); font-size: 22px; line-height: 1.15; transform: rotate(-1.5deg); }
.side-fold { display: none; }
.feed { min-width: 0; }
.feed-head h2 { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.08; letter-spacing: -.015em; color: var(--ink); }
.feed-head p { margin-top: 10px; font-size: 16px; color: var(--muted); }
.feed-head { padding-bottom: 22px; border-bottom: 1px dotted var(--dots); }
.feed-head + .shelf-grid { margin-top: 36px; }

/* Story cards */
.story { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.story-art { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; background-color: var(--paper); background-image: var(--dotgrid); background-size: 22px 22px; box-shadow: inset 0 0 0 1px var(--hair); transition: box-shadow .2s; }
.story-art:hover { box-shadow: inset 0 0 0 1px var(--whisper); }
.story-art > img, .story-art > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-art > img { object-fit: cover; mix-blend-mode: multiply; }
.story-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.story-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.story-tags .in { margin-left: 2px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.story h3, .story-l h2 { margin-top: 2px; font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
.story h3 a:hover, .story-l h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: var(--dots); }
.story-dek { font-size: 15px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.story-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 6px; padding-top: 12px; border-top: 1px dotted var(--dots); font-size: 13px; color: var(--faint); }
.story-meta > span:first-child, .article-meta > span:first-child { white-space: nowrap; }
.story-meta .file { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; color: var(--hand-ink); text-align: right; }
.story-meta .file .ic { width: 14px; height: 14px; }
.story-meta .file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.story-l { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.story-l .story-art { aspect-ratio: 4 / 3; }
.story-l h2 { font-size: 40px; line-height: 1.08; letter-spacing: -.015em; }
.story-l .story-dek { font-size: 17px; }

/* Shelves */
.shelf { margin-top: 104px; }
.shelf + .shelf { margin-top: 96px; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 18px; border-bottom: 1px dotted var(--dots); }
.shelf-head h2 { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; letter-spacing: -.01em; color: var(--ink); }
.shelf-head h2 .ic { width: 22px; height: 22px; color: var(--pencil-dark); stroke-width: 1.8; }
.shelf-head p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.shelf-head .see-all { flex: none; font-size: 14px; }
.shelf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; margin-top: 32px; }
.soon { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; min-height: 260px; padding: 28px; border-radius: 20px; border: 1.5px dashed var(--pencil); background: color-mix(in srgb, var(--paper) 70%, transparent); }
.soon .lock-sketch { width: 40px; height: 44px; }
.soon p { font-size: 24px; line-height: 1.15; }
.soon .ulink { font-size: 14px; }
.empty-note { margin-top: 32px; padding: 40px; border-radius: 20px; border: 1.5px dashed var(--pencil); text-align: center; }
.empty-note p { font-size: 26px; line-height: 1.2; }
.empty-note .ulink { display: inline-block; margin-top: 12px; font-size: 15px; }

/* Drop log */
.log { margin-top: 112px; }
.log-list { border-bottom: 1px dotted var(--dots); }
.log-row { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px dotted var(--dots); }
.log-list .log-row:first-child { border-top: 0; }
.log-tile { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--brand); }
.log-tile .ic { width: 20px; height: 20px; stroke-width: 1.8; }
.log-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.log-file { font-family: var(--mono); font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.log-file:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dots); }
.log-sub { font-size: 14px; line-height: 1.4; color: var(--muted); }
.log-when { flex: none; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); white-space: nowrap; }
.log-row.new .log-when { color: var(--hand-ink); }
.log-row.new .log-when::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }
.log-act { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: 13px; color: var(--text); white-space: nowrap; transition: background .2s; }
.log-act:hover { background: var(--tint); }
.log-act .ic { width: 14px; height: 14px; }
.log-act.open { background: var(--tint); box-shadow: none; }

/* Closing call to action */
.closing { position: relative; width: min(680px, calc(100% - 40px)); margin: 168px auto 0; text-align: center; }
.mail-sketch { width: 132px; height: 92px; margin: 0 auto; }
.closing h2 { margin-top: 26px; font-family: var(--serif); font-weight: 400; font-size: 52px; line-height: 1.06; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.closing > p { max-width: 540px; margin: 20px auto 0; font-size: 19px; line-height: 1.6; color: var(--muted); text-wrap: balance; }
.closing .capture { width: min(540px, 100%); margin: 34px auto 0; }

/* Footer */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1120px, calc(100% - 40px)); margin: 152px auto 0; padding: 40px 0 148px; border-top: 1px dotted var(--dots); font-size: 15px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot p { font-size: 14px; color: var(--faint); }

/* The next-drop pill at the bottom */
.dropbar { position: fixed; left: 50%; bottom: 28px; z-index: 6; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 6px 0 22px; border-radius: 999px; background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 22%, transparent); font-size: 15px; line-height: 1; white-space: nowrap; transform: translateX(-50%); }
.dropbar .live-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--on-brand) 30%, transparent); }
.dropbar b { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .02em; }
.dropbar-go { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: color-mix(in srgb, var(--on-brand) 14%, transparent); font-weight: 600; transition: background .2s; }
.dropbar-go:hover { background: color-mix(in srgb, var(--on-brand) 22%, transparent); }
.dropbar .narrow { display: none; }

/* Article */
.article-head { width: min(720px, calc(100% - 40px)); margin: 40px auto 0; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.crumbs .sep { color: var(--whisper); }
.crumbs a:not(.ulink):hover { color: var(--ink); }
.article-head .story-tags { margin-top: 30px; }
.article-head h1 { margin-top: 20px; font-family: var(--serif); font-weight: 400; font-size: 58px; line-height: 1.04; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.article-head .dek { margin-top: 20px; font-size: 20px; line-height: 1.55; color: var(--muted); text-wrap: balance; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 30px; padding-top: 16px; border-top: 1px dotted var(--dots); font-size: 14px; color: var(--faint); }
.article-meta .file { display: inline-flex; align-items: center; gap: 7px; color: var(--hand-ink); }
.article-meta .file .ic { width: 14px; height: 14px; }
.article-meta .file code { font-family: var(--mono); font-size: 13px; }
.cover { position: relative; width: min(960px, calc(100% - 40px)); aspect-ratio: 16 / 7; margin: 48px auto 0; border-radius: 24px; overflow: hidden; background-color: var(--paper); background-image: var(--dotgrid); background-size: 22px 22px; box-shadow: inset 0 0 0 1px var(--hair); }
.cover > svg { position: absolute; inset: 4% 0; width: 100%; height: 92%; }
.cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.prose { width: min(640px, calc(100% - 40px)); margin: 64px auto 0; font-family: var(--serif); font-size: 21px; line-height: 1.7; color: var(--text); }
.prose > * + * { margin-top: 26px; }
.prose h2 { margin-top: 52px; font-weight: 400; font-size: 32px; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }
.prose h3 { margin-top: 40px; font-weight: 600; font-size: 23px; line-height: 1.25; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 16px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--pencil-dark); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--tint); font-family: var(--mono); font-size: .78em; }
.prose pre { overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); font-size: 15px; line-height: 1.6; }
.prose pre code { padding: 0; background: none; font-size: 14px; }
.prose .fade { -webkit-mask-image: linear-gradient(to bottom, #000 10%, transparent 100%); mask-image: linear-gradient(to bottom, #000 10%, transparent 100%); }
.prose-end { width: min(640px, calc(100% - 40px)); margin: 56px auto 0; text-align: center; font-size: 24px; }

/* The subscriber gate and the companion file: a taped sheet of paper */
.gate, .companion { position: relative; width: min(760px, calc(100% - 40px)); margin: 8px auto 0; }
.companion { margin-top: 88px; }
.gate-sheet { position: relative; padding: 52px 60px 44px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair), 0 18px 44px color-mix(in srgb, var(--brand) 10%, transparent); }
.gate-sheet .tape { width: 110px; height: 24px; top: -12px; transform: translateX(-50%) rotate(-2deg); }
.gate-top { display: flex; align-items: center; gap: 14px; }
.lock-sketch { width: 40px; height: 44px; flex: none; }
.gate-top .kicker { color: var(--hand-ink); }
.gate h2, .companion h2 { margin-top: 22px; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 1.08; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.gate-sheet > p { margin-top: 14px; font-size: 17px; line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.gets { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; list-style: none; font-size: 16px; color: var(--text); }
.gets li { display: flex; align-items: center; gap: 12px; }
.gets code { font-family: var(--mono); font-size: 14px; color: var(--ink); }
.gate .capture { margin-top: 32px; }
.gate-note { position: absolute; left: 100%; bottom: 64px; margin-left: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 22px; line-height: 1.1; white-space: nowrap; }
.gate-note span { transform: rotate(-2deg); }
.file-line { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding: 14px 16px; border-radius: 12px; background: var(--tint); font-family: var(--mono); font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.file-line .ic { width: 18px; height: 18px; color: var(--hand-ink); }
.file-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.file-actions form { display: contents; }
.saved-note { margin-top: 18px; font-size: 15px; color: var(--text); }
.saved-note strong { color: var(--ink); }
.file-view { margin-top: 22px; }
.file-view summary { cursor: pointer; font-size: 15px; color: var(--ink); }
.file-view pre { margin-top: 14px; max-height: 420px; overflow: auto; padding: 18px 20px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); font: 13px/1.6 var(--mono); white-space: pre-wrap; }
.more { width: min(880px, calc(100% - 40px)); margin: 136px auto 0; }

/* Short message pages: unsubscribe and errors */
.msg { width: min(560px, calc(100% - 40px)); margin: 72px auto 0; padding: 48px 52px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair), 0 18px 44px color-mix(in srgb, var(--brand) 8%, transparent); }
.msg h1 { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; color: var(--ink); }
.msg p { margin-top: 14px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.msg form { margin-top: 24px; }
.msg .ulink { display: inline-block; margin-top: 22px; font-size: 15px; }

@media (max-width: 1200px) {
  .hero-note, .gate-note { display: none; }
}
@media (max-width: 1080px) {
  .sheet { grid-template-columns: 1fr; gap: 36px; padding: 48px 40px 44px; }
  .sheet-note { grid-column: 1; }
  .browse { grid-template-columns: 1fr; gap: 0; margin-top: 96px; }
  .side { display: none; }
  .side-fold { display: block; margin-bottom: 56px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--hair); background: var(--surface); }
  .side-fold summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-size: 15px; color: var(--ink); }
  .side-fold summary::-webkit-details-marker { display: none; }
  .side-fold summary b { font-weight: 600; }
  .side-fold summary .kicker { font-size: 11px; }
  .side-fold summary::after { content: "▾"; color: var(--pencil-dark); }
  .side-fold[open] summary::after { content: "▴"; }
  .side-fold .side-inner { padding: 4px 6px 18px; border-top: 1px dotted var(--dots); }
  .side-fold .side-label { margin-top: 18px; }
}
@media (max-width: 760px) {
  .top { height: 76px; padding: 0 20px; }
  .top-left { display: none; }
  .top-right { gap: 16px; }
  .brand { position: static; transform: none; }
  .brand img { height: 30px; }
  .hero { margin-top: 28px; }
  .hero h1 { font-size: 44px; }
  .hero-sub { font-size: 17px; }
  .capture-field { height: 54px; padding-left: 16px; }
  .capture-field .button { padding: 0 14px; }
  .sheet { margin-top: 56px; padding: 36px 22px 32px; border-radius: 20px; }
  .count b { font-size: 46px; }
  .count i { font-size: 36px; }
  .cards { flex-direction: column; align-items: center; padding-top: 6px; }
  .drop-card { margin: 0 0 -6px; }
  .drop-card:nth-child(1), .drop-card:nth-child(3) { margin-top: 0; }
  .drop-card:nth-child(2) { transform: rotate(1.5deg); }
  .sheet-note { justify-self: center; align-items: center; margin-top: 10px; }
  .sheet-note .hand-arrow { display: none; }
  .story-l { grid-template-columns: 1fr; gap: 22px; }
  .story-l h2 { font-size: 30px; }
  .shelf { margin-top: 80px; }
  .shelf + .shelf { margin-top: 72px; }
  .shelf-grid { grid-template-columns: 1fr; gap: 48px; }
  .shelf-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .log-row { flex-wrap: wrap; row-gap: 10px; }
  .log-text { flex: 1 1 calc(100% - 60px); }
  .log-when { margin-left: 60px; }
  .closing { margin-top: 120px; }
  .closing h2 { font-size: 38px; }
  .closing > p { font-size: 17px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 28px; margin-top: 112px; padding-bottom: 120px; }
  .foot nav { flex-direction: column; gap: 14px; }
  .dropbar { left: 16px; right: 16px; bottom: 16px; justify-content: space-between; gap: 10px; height: 52px; padding: 0 5px 0 16px; font-size: 14px; transform: none; }
  .dropbar-go { height: 42px; padding: 0 14px; }
  .dropbar .wide { display: none; }
  .dropbar .narrow { display: inline; }
  .article-head h1 { font-size: 40px; }
  .article-head .dek { font-size: 18px; }
  .article-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
  .cover { aspect-ratio: 4 / 3; margin-top: 36px; border-radius: 20px; }
  .prose { margin-top: 44px; font-size: 18px; }
  .prose h2 { font-size: 26px; }
  .gate-sheet { padding: 40px 22px 30px; }
  .gate h2, .companion h2 { font-size: 30px; }
  .more { margin-top: 104px; }
  .msg { margin-top: 40px; padding: 36px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .top, .paper-fade, .dropbar, .gate, .closing, .foot, .side, .side-fold, .sheet { display: none !important; }
  body { background: #fff; }
}

/* Filtered view and sheet details */
.feed-head h2 .ic { width: 30px; height: 30px; color: var(--pencil-dark); stroke-width: 1.6; }
.feed .back { margin-top: 48px; }
.gate-top > .ic { width: 28px; height: 28px; color: var(--pencil-dark); stroke-width: 1.5; }
