/* ── AppDeen Archive: the Records section under the hero (index.html) ──
   A journal front page edited by Walter AppDeen: Newsreader for the nameplate,
   headlines and body, DM Sans for small labels in sentence case. Two editions
   follow the site's theme switch: the evening edition (dark, the site default)
   and the paper edition (light). Brand blue #2254F2 is only an accent here
   (a rule, the Tempo level), never text on the dark edition. The Blue Papers
   papers at the end are a slider of drawing sheets, each in its paper's own world.
   Every rule is scoped under #records so styles.css stays as it is.
   Motion: one quiet fade per story as it enters the view and the Tempo count;
   nothing under prefers-reduced-motion. Nothing is sticky, nothing scrolls sideways. */

#records{
  --rc-paper:#121110; --rc-ink:#EDE6D8; --rc-soft:#B9B1A2; --rc-hair:rgba(237,230,216,.16); --rc-rule:rgba(237,230,216,.42);
  --rc-blue:#2254F2; --rc-spark:rgba(237,230,216,.72);
  --rc-serif:"Newsreader","Iowan Old Style","Palatino Linotype",Palatino,Georgia,serif;
  --rc-sans:"DM Sans",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --rc-gut:clamp(16px, 4vw, 48px);
  position:relative; z-index:2; display:block;
  background:var(--rc-paper); color:var(--rc-ink);
  min-height:4vh;                                                    /* empty: a strip that ends where the hero ends */
  margin-top:-4vh; box-shadow:0 -40px 80px -20px rgba(4,6,13,.9);   /* takes over the roster's dive-through jobs */
  font-family:var(--rc-serif); font-optical-sizing:auto; -webkit-font-smoothing:antialiased; }
#records[hidden]{ display:none !important; }
#records:not([hidden]) + .roster{ margin-top:0; box-shadow:none; }   /* the roster no longer closes the dive */
html[data-theme="light"] #records{
  --rc-paper:#F5F1E8; --rc-ink:#1B1A17; --rc-soft:#59544A; --rc-hair:rgba(27,26,23,.16); --rc-rule:rgba(27,26,23,.5);
  --rc-spark:rgba(27,26,23,.7); box-shadow:none; }
#records *{ box-sizing:border-box; margin:0; padding:0; }
#records .rc-wrap{ max-width:1240px; margin:0 auto; padding:0 var(--rc-gut); }
#records .rc-sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
#records :focus-visible{ outline:2px solid var(--rc-blue); outline-offset:3px; border-radius:2px; }
#records .rc-small{ font-family:var(--rc-sans); font-size:14px; line-height:1.45; color:var(--rc-soft); }
#records .rc-kicker{ font-family:var(--rc-sans); font-size:14px; font-weight:600; line-height:1.3; color:var(--rc-ink); }

/* ── Masthead ───────────────────────────────────────────────────────── */
#records .rc-front{ padding-top:clamp(104px, 14vh, 140px); }
#records .rc-mast{ display:grid; grid-template-columns:minmax(0,15rem) minmax(0,1fr) minmax(0,15rem); grid-template-areas:"ear name tempo" "date date date";
  column-gap:28px; align-items:start; }
#records .rc-name{ grid-area:name; } #records .rc-ear-l{ grid-area:ear; } #records .rc-tempo{ grid-area:tempo; }
#records .rc-dateline{ grid-area:date; } #records .rc-intro{ grid-area:intro; }
#records .rc-ear{ border:1px solid var(--rc-hair); padding:14px 16px; }
#records .rc-ear-l{ margin-top:34px; font-style:italic; font-size:16px; line-height:1.45; color:var(--rc-soft); text-align:center; }
#records .rc-name{ margin-top:28px; text-align:center; font-family:var(--rc-serif); font-weight:600; font-size:clamp(40px, 4.3vw, 66px);
  line-height:1; letter-spacing:-.01em; font-variation-settings:"opsz" 72; text-wrap:balance; }
#records .rc-dateline{ margin-top:22px; border-top:3px double var(--rc-rule); border-bottom:1px solid var(--rc-rule);
  padding:9px 0; display:flex; justify-content:space-between; align-items:baseline; gap:6px 24px; flex-wrap:wrap;
  font-family:var(--rc-sans); font-size:14px; line-height:1.4; color:var(--rc-ink); }
#records .rc-intro{ display:none; }

/* Tempo: the weather ear */
#records .rc-tempo{ align-self:start; border-top:2px solid var(--rc-blue); }
#records .rc-tempo-h{ font-family:var(--rc-sans); font-size:14px; font-weight:600; line-height:1.3; }
#records .rc-tempo-v{ display:flex; align-items:baseline; gap:10px; margin-top:4px; }
#records .rc-num{ display:inline-block; font-family:var(--rc-serif); font-weight:600; font-size:44px; line-height:1; font-variant-numeric:tabular-nums lining-nums; }
#records .rc-level{ font-style:italic; font-size:20px; line-height:1; }
#records .rc-tempo-p{ margin-top:6px; font-family:var(--rc-sans); font-size:14px; line-height:1.45; color:var(--rc-soft); }
#records .rc-spark{ display:block; width:100%; height:36px; margin-top:10px; overflow:visible; }
#records .rc-spark .rc-sp-base{ stroke:var(--rc-hair); stroke-width:1; stroke-dasharray:2 3; vector-effect:non-scaling-stroke; }
#records .rc-spark .rc-sp-line{ fill:none; stroke:var(--rc-spark); stroke-width:1.25; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
#records .rc-spark .rc-sp-end{ fill:var(--rc-blue); }
#records .rc-spark-x{ display:flex; justify-content:space-between; font-family:var(--rc-sans); font-size:12px; line-height:1.3; color:var(--rc-soft); margin-top:2px; }
#records .rc-what{ margin-top:8px; border-top:1px solid var(--rc-hair); }
#records .rc-what summary{ display:flex; align-items:center; min-height:44px; cursor:pointer; list-style:none;
  font-family:var(--rc-sans); font-size:14px; font-weight:500; }
#records .rc-what summary span{ text-decoration:underline; text-decoration-color:var(--rc-blue); text-underline-offset:4px; text-decoration-thickness:1.5px; }
#records .rc-what summary::-webkit-details-marker{ display:none; }
#records .rc-what summary::after{ content:"+"; margin-left:auto; font-size:18px; }
#records .rc-what[open] summary::after{ content:"\2212"; }
#records .rc-what p{ font-family:var(--rc-sans); font-size:14px; line-height:1.5; color:var(--rc-soft); padding-bottom:4px; }
#records .rc-what p + p{ margin-top:6px; }

/* ── Lead story ─────────────────────────────────────────────────────── */
#records .rc-lead{ display:grid; grid-template-columns:minmax(0,8fr) minmax(0,4fr); gap:clamp(24px, 3.5vw, 48px);
  padding:clamp(28px, 4vh, 44px) 0; border-bottom:1px solid var(--rc-rule); }
#records .rc-lead .rc-kicker{ margin-bottom:12px; }
#records .rc-lead-h{ font-weight:600; font-size:clamp(34px, 4.2vw, 54px); line-height:1.08; letter-spacing:-.012em;
  font-variation-settings:"opsz" 60; text-wrap:balance; max-width:22ch; }
#records .rc-lead[data-long] .rc-lead-h{ font-size:clamp(30px, 3.4vw, 44px); max-width:26ch; }
#records .rc-deck{ margin-top:14px; font-size:clamp(20px, 1.15rem + .35vw, 23px); line-height:1.4; font-style:italic; color:var(--rc-soft); max-width:46ch; }
#records .rc-byline{ margin-top:18px; display:flex; flex-wrap:wrap; align-items:center; gap:0 8px; font-family:var(--rc-sans); font-size:14px; line-height:1.4; color:var(--rc-soft); }
#records .rc-byline b{ font-weight:600; color:var(--rc-ink); }
#records .rc-listen{ display:inline-flex; align-items:center; gap:7px; min-height:44px; padding:0; border:0; background:none; cursor:pointer;
  font:500 14px/1.4 var(--rc-sans); color:var(--rc-ink); text-decoration:underline; text-decoration-color:var(--rc-blue);
  text-underline-offset:4px; text-decoration-thickness:1.5px; }
#records .rc-listen[hidden]{ display:none; }
#records .rc-listen::before{ content:""; width:0; height:0; border-left:8px solid currentColor; border-top:5px solid transparent; border-bottom:5px solid transparent; }
#records .rc-listen[aria-pressed="true"]::before{ width:8px; height:10px; border:0; border-left:3px solid currentColor; border-right:3px solid currentColor; }
#records .rc-body{ margin-top:14px; font-size:clamp(19px, 1.1rem + .2vw, 21px); line-height:1.55; max-width:33em; }
#records .rc-meta{ margin-top:16px; font-family:var(--rc-sans); font-size:14px; line-height:1.4; color:var(--rc-soft); }
#records .rc-meta .rc-flag{ color:var(--rc-ink); font-weight:500; }
#records .rc-fig img{ display:block; width:100%; height:auto; aspect-ratio:var(--ar, 4/3); object-fit:cover; background:var(--rc-hair); }
#records .rc-fig figcaption{ margin-top:8px; font-family:var(--rc-sans); font-size:13.5px; line-height:1.45; color:var(--rc-soft); }
#records .rc-fig figcaption span{ white-space:nowrap; }

/* ── Secondary stories: columns with hairline rules ─────────────────── */
#records .rc-cols{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); padding:clamp(24px, 3vh, 34px) 0; border-bottom:1px solid var(--rc-rule); }
#records .rc-story{ padding:0 22px; border-left:1px solid var(--rc-hair); }
#records .rc-story:first-child{ padding-left:0; border-left:0; }
#records .rc-story:last-child{ padding-right:0; }
#records .rc-story .rc-kicker{ margin-bottom:8px; }
#records .rc-story-h{ font-weight:600; font-size:clamp(22px, 1.2rem + .3vw, 25px); line-height:1.18; letter-spacing:-.005em; font-variation-settings:"opsz" 30; }
#records .rc-story-p{ margin-top:10px; font-size:18px; line-height:1.5; color:var(--rc-ink); }
#records .rc-quake{ margin-top:10px; padding-left:10px; border-left:2px solid var(--rc-blue); font-family:var(--rc-sans); font-size:14px; line-height:1.45; }

/* ── Inside today's edition: the section index ──────────────────────── */
#records .rc-index{ padding:clamp(28px, 4vh, 44px) 0 clamp(48px, 8vh, 88px); }
#records .rc-index-h{ font-weight:600; font-size:clamp(24px, 1.3rem + .5vw, 30px); line-height:1.15; padding-bottom:10px; border-bottom:3px double var(--rc-rule); }
#records .rc-index ol{ list-style:none; }
#records .rc-index li{ display:grid; grid-template-columns:minmax(0,14rem) minmax(0,7rem) minmax(0,1fr); gap:4px 24px; align-items:baseline;
  padding:14px 0; border-bottom:1px solid var(--rc-hair); }
#records .rc-ix-name{ font-weight:600; font-size:20px; line-height:1.3; }
#records .rc-ix-count{ font-family:var(--rc-sans); font-size:14px; color:var(--rc-soft); }
#records .rc-ix-latest{ font-size:18px; line-height:1.45; }
#records .rc-ix-latest .rc-small{ display:block; font-size:13px; }

/* ── Ask Walter: markup present, shown only once Walter has a render and a voice ── */
#records .rc-walter[data-walter="off"]{ display:none; }
#records .rc-walter{ padding:24px 0; border-top:1px solid var(--rc-rule); }
#records .rc-walter-form{ display:flex; gap:10px; margin-top:12px; }
#records .rc-walter-form input{ flex:1; min-height:44px; padding:0 14px; border:1px solid var(--rc-rule); background:transparent; color:inherit; font:400 17px var(--rc-serif); }
#records .rc-walter-form button{ min-height:44px; padding:0 18px; border:1px solid var(--rc-rule); background:transparent; color:inherit; font:500 15px var(--rc-sans); cursor:pointer; }

/* ── Blue Papers: a slider of drawing sheets, each in its paper's world ──
   BP-001 the blueprint (brand blue, white line-work), BP-002 graph paper (ink and
   blue), BP-003 an instrument scale. The slider is a native horizontal scroll-snap
   strip with visible buttons, dots and arrow keys; vertical page scroll passes
   through. Parallax: the line-work layer moves slower than the text (transform
   only), off under reduced motion. */
#records .rc-lab{ padding:clamp(48px, 8vh, 88px) 0 clamp(40px, 6vh, 64px); border-top:3px double var(--rc-rule); font-family:var(--rc-sans); }
#records .rc-lab-head{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) auto; gap:12px 40px; align-items:end; padding-bottom:18px; }
#records .rc-lab-h{ font-family:var(--rc-serif); font-weight:600; font-size:clamp(30px, 1.6rem + 1vw, 40px); line-height:1.1; letter-spacing:-.01em; }
#records .rc-lab-p{ font-size:17px; line-height:1.55; max-width:60ch; color:var(--rc-soft); }
#records .rc-sl-ctl{ display:flex; gap:8px; }
#records .rc-sl-btn{ width:48px; height:48px; border:1px solid var(--rc-rule); border-radius:50%; background:transparent; color:var(--rc-ink); cursor:pointer;
  font:500 20px/1 var(--rc-sans); display:inline-flex; align-items:center; justify-content:center; }
#records .rc-sl-btn:hover{ border-color:var(--rc-ink); }
#records .rc-sl-btn[disabled]{ opacity:.35; cursor:default; }
#records .rc-slider{ --sl-pad:max(var(--rc-gut), calc((100% - 1240px) / 2 + var(--rc-gut))); }
#records .rc-slider:focus-visible{ outline-offset:-2px; }
#records .rc-track{ display:flex; gap:20px; overflow-x:auto; overscroll-behavior-x:contain; scroll-snap-type:x mandatory; scroll-padding:0 var(--sl-pad);
  padding:4px var(--sl-pad) 8px; scrollbar-width:none; -webkit-overflow-scrolling:touch; }
#records .rc-track::-webkit-scrollbar{ display:none; }
#records .rc-slide{ position:relative; flex:0 0 min(78vw, 980px); scroll-snap-align:start; overflow:hidden; isolation:isolate;
  min-height:440px; padding:10px; background:var(--s-bg); color:var(--s-ink); border:1px solid var(--s-line); }
#records .rc-slide-field{ position:absolute; top:0; bottom:0; left:-30%; right:-30%; z-index:-1; will-change:transform;
  background-image:var(--s-grid); background-size:var(--s-size); }
/* the paper's drawing (inline SVG, art.css): in the field (160% of the slide wide), over the sheet's
   right half from 46% to 98% of the slide, above the title block */
#records .rc-lw{ position:absolute; left:47.5%; top:3%; width:32.5%; height:63%; color:var(--s-ink); --art-acc:var(--s-acc); }
#records .rc-lw .art{ width:100%; height:100%; }
#records .rc-slide-in{ position:relative; height:100%; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,280px); grid-template-rows:auto auto 1fr auto;
  gap:0 32px; padding:clamp(20px, 3vw, 36px); border:1px solid var(--s-line); }
#records .rc-slide-in > :not(.rc-tb){ grid-column:1; max-width:24rem; }
#records .rc-slide-k{ font-size:14px; font-weight:600; line-height:1.4; color:var(--s-soft); }
#records .rc-sheet-t{ margin-top:10px; font-family:var(--rc-sans); font-weight:600; font-size:clamp(24px, 1.1rem + 1.2vw, 34px); line-height:1.12; letter-spacing:-.018em; max-width:18ch; }
#records .rc-sheet-a{ margin-top:12px; font-family:var(--rc-serif); font-size:19px; line-height:1.5; max-width:34ch; }
#records .rc-read{ align-self:end; justify-self:start; display:inline-flex; align-items:center; min-height:44px; margin-top:18px; padding:0 18px;
  border:1px solid var(--s-ink); color:var(--s-ink); font:600 15px/1 var(--rc-sans); text-decoration:none; background:var(--s-bg); }
#records .rc-read:hover{ background:var(--s-ink); color:var(--s-bg); }
#records .rc-tb{ grid-column:2; grid-row:1 / span 4; align-self:end; }
#records .rc-tb table{ width:100%; border-collapse:collapse; font-size:13px; line-height:1.3; background:var(--s-bg); border:1px solid var(--s-ink); }
#records .rc-tb th, #records .rc-tb td{ border:1px solid var(--s-line); padding:5px 8px; text-align:left; vertical-align:top; }
#records .rc-tb th{ font-weight:400; width:5.4em; color:var(--s-soft); }
#records .rc-tb td{ font-weight:600; }
#records .rc-dots{ display:flex; justify-content:center; gap:0; margin-top:6px; }
#records .rc-dot{ width:44px; height:44px; border:0; background:transparent; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
#records .rc-dot i{ width:9px; height:9px; border-radius:50%; border:1.5px solid var(--rc-ink); transition:background-color .2s; }
#records .rc-dot[aria-current="true"] i{ background:var(--rc-ink); }
/* the three worlds */
#records .rc-slide[data-paper="001"]{ --s-bg:#2254F2; --s-ink:#fff; --s-acc:#F3E6C4; --s-soft:rgba(255,255,255,.86); --s-line:rgba(255,255,255,.5); --s-draw:#fff;
  --s-grid:linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); --s-size:32px 32px; }
#records .rc-slide[data-paper="002"]{ --s-bg:#17160F; --s-ink:#ECE6D8; --s-acc:#2254F2; --s-soft:#BDB5A5; --s-line:rgba(236,230,216,.36); --s-draw:#ECE6D8;
  --s-grid:linear-gradient(rgba(236,230,216,.075) 1px, transparent 1px), linear-gradient(90deg, rgba(236,230,216,.075) 1px, transparent 1px),
           linear-gradient(rgba(236,230,216,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(236,230,216,.03) 1px, transparent 1px);
  --s-size:40px 40px, 40px 40px, 8px 8px, 8px 8px; }
html[data-theme="light"] #records .rc-slide[data-paper="002"]{ --s-bg:#F6F2E7; --s-ink:#1E1C18; --s-soft:#57524A; --s-line:rgba(30,28,24,.4); --s-draw:#2254F2;
  --s-grid:linear-gradient(rgba(34,84,242,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(34,84,242,.16) 1px, transparent 1px),
           linear-gradient(rgba(34,84,242,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(34,84,242,.07) 1px, transparent 1px); }
#records .rc-slide[data-paper="003"]{ --s-bg:#101412; --s-ink:#E3E8E3; --s-acc:#2254F2; --s-soft:#A9B0AA; --s-line:rgba(227,232,227,.32); --s-draw:#E3E8E3; --s-grid:none; --s-size:auto; }
html[data-theme="light"] #records .rc-slide[data-paper="003"]{ --s-bg:#EDF0EC; --s-ink:#1A1D1B; --s-soft:#525853; --s-line:rgba(26,29,27,.38); --s-draw:#2254F2; }
#records .rc-hl{ color:inherit; text-decoration:none; }
#records .rc-hl:hover{ text-decoration:underline; text-decoration-color:var(--rc-blue); text-underline-offset:5px; text-decoration-thickness:2px; }

/* ── Motion: one fade per story (the Blue Papers drawings move by art.css) ── */
#records.rc-anim .rc-fade{ opacity:0; transform:translateY(14px); transition:opacity .7s ease-out, transform .7s cubic-bezier(.2,.7,.2,1); }
#records.rc-anim .rc-fade.rc-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  #records *, #records *::before, #records *::after{ animation:none !important; transition:none !important; }
  #records .rc-fade{ opacity:1 !important; transform:none !important; }
}

/* ── Narrower screens ───────────────────────────────────────────────── */
@media (max-width:1100px){
  #records .rc-mast{ grid-template-columns:minmax(0,1fr) minmax(0,17rem); grid-template-areas:"name name" "date date" "ear tempo"; }
  #records .rc-name{ margin-top:0; }
  #records .rc-ear-l{ align-self:center; margin-top:22px; padding:0 8px 0 0; border:0; text-align:left; font-size:21px; line-height:1.5; color:var(--rc-ink); max-width:30ch; }
  #records .rc-tempo{ margin-top:22px; }
  #records .rc-cols{ grid-template-columns:repeat(2, minmax(0,1fr)); row-gap:28px; }
  #records .rc-story:nth-child(odd){ padding-left:0; border-left:0; }
  #records .rc-story:nth-child(even){ padding-right:0; }
  #records .rc-story:nth-child(n+3){ padding-top:24px; border-top:1px solid var(--rc-hair); }
  #records .rc-lab-head{ grid-template-columns:minmax(0,1fr) auto; }
  #records .rc-lab-p{ grid-column:1 / -1; grid-row:2; }
}
@media (max-width:760px){
  #records .rc-front{ padding-top:104px; }
  #records .rc-mast{ grid-template-columns:minmax(0,1fr); grid-template-areas:"name" "date" "intro" "tempo"; }
  #records .rc-name{ font-size:clamp(34px, 10.4vw, 48px); }
  #records .rc-ear-l{ display:none; }
  #records .rc-dateline{ margin-top:16px; justify-content:center; text-align:center; gap:2px 14px; }
  #records .rc-intro{ display:block; margin-top:16px; font-style:italic; font-size:19px; line-height:1.5; }
  #records .rc-tempo{ margin-top:22px; }
  #records .rc-lead{ grid-template-columns:1fr; }
  #records .rc-fig{ max-width:520px; }
  #records .rc-cols{ grid-template-columns:1fr; row-gap:0; padding-top:0; }
  #records .rc-story, #records .rc-story:nth-child(n){ padding:24px 0; border-left:0; border-top:1px solid var(--rc-hair); }
  #records .rc-story:first-child{ border-top:0; }
  #records .rc-index li{ grid-template-columns:minmax(0,1fr) auto; }
  #records .rc-ix-latest{ grid-column:1 / -1; }
  #records .rc-track{ gap:12px; }
  #records .rc-slide{ flex-basis:calc(100vw - 2 * var(--rc-gut) - 34px); min-height:0; }
  #records .rc-slide-in{ grid-template-columns:1fr; grid-template-rows:none; }
  #records .rc-tb{ grid-column:1; grid-row:auto; margin-top:18px; }
  #records .rc-read{ grid-row:auto; }
  #records .rc-lw{ left:21.25%; top:14px; width:57.5%; height:calc((100vw - 2 * var(--rc-gut) - 34px) * .46); }
  #records .rc-slide-in{ padding-top:calc((100vw - 2 * var(--rc-gut) - 34px) * .46 + 28px); }
}
