/* On the record: the index, and each piece.
   Essays read long in one calm column. Case notes are short and always follow one structure:
   the case at a glance, What happened, The point worth pausing on. */

.record-page main { padding-top: 14svh; }

/* ---------- index ---------- */
.record-index { max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 5rem) 16svh; }
.record-index .brush { font-size: clamp(2.6rem, 5.6vw, 5rem); }
.record-intro { margin-top: 1.6rem; max-width: 36rem; font-size: 1.15rem; color: #d6cebf; }
.record-index .sec-head { margin-bottom: 4.5rem; }
.entries .sf { display: block; margin-top: .4rem; font-size: 1.02rem; color: #c3b9a9; font-style: italic; }

/* ---------- a piece ---------- */
.piece { max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 5rem) 12svh; }
.piece-head, .prose, .glance { max-width: 42rem; margin-left: auto; margin-right: auto; }
.back { display: inline-block; margin-bottom: 2.6rem; font-family: var(--caps); font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.back::before { content: ''; display: inline-block; width: 1.8rem; height: 1px; background: currentColor; margin-right: .8rem; vertical-align: middle; }
.back:hover { color: var(--foil); }
.piece-head .brush { font-size: clamp(2.8rem, 6.4vw, 5.4rem); line-height: 1; }
.piece-head .brush em { font-style: italic; }
.piece-lede { margin-top: 1.6rem; font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; color: #ece5d9; }
.byline { margin-top: 1.6rem; font-family: var(--caps); font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.byline a { color: var(--foil-dim); }
.byline a:hover { color: var(--foil); }

/* the case at a glance: short facts in one band, charges and outcome side by side below */
.glance { margin-top: 3.4rem; border-top: 1px solid #43403c; border-bottom: 1px solid #43403c; }
.glance-top { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.4rem; padding: 1.1rem 0; border-bottom: 1px solid #2f2c29; }
/* both bands share one pair of columns: Court over Charges, Counsel over Outcome */
.glance-main { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.4rem; padding: 1.1rem 0; }
.glance div { padding: .3rem 0; }
.glance dt { font-family: var(--caps); font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--foil-dim); margin-bottom: .35rem; }
.glance dd { font-size: 1.05rem; line-height: 1.5; color: var(--paper); }
.glance .charges span { display: block; }
.glance-note { padding: 0 0 1.1rem; font-size: .95rem; font-style: italic; color: var(--muted); }
@media (max-width: 640px) { .glance-main { grid-template-columns: 1fr; gap: .8rem; } }

/* body text */
.prose { margin-top: 3.4rem; font-size: 1.18rem; line-height: 1.75; color: #e4dccf; }
.prose > p { margin-bottom: 1.35rem; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 2.2vw, 1.75rem); line-height: 1.2; color: var(--foil); margin: 3rem 0 1rem; }
.prose h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; color: var(--paper); margin: 2.4rem 0 .9rem; }
.prose a { color: var(--foil); text-decoration: underline; text-decoration-color: rgba(224,199,126,.35); text-underline-offset: .2em; }
.prose a:hover { text-decoration-color: var(--foil); }
.prose em { font-style: italic; }
.prose ul, .prose ol { margin: 0 0 1.35rem 1.3rem; }
.prose li { margin-bottom: .5rem; }

.prose blockquote {
  margin: 0 0 2.8rem; padding: 0 0 0 1.6rem; border-left: 1px solid var(--foil-dim);
  font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.4; color: var(--paper);
}
.prose blockquote .cite { display: block; margin-top: .9rem; font-family: var(--body); font-style: normal; font-size: .95rem; letter-spacing: 0; text-transform: none; color: var(--muted); }
.prose blockquote .cite em { font-style: italic; }

/* films and figures sit exactly on the text column, so both edges line up */
.prose figure { margin: 3rem 0; }
.prose figure video, .prose figure img { width: 100%; height: auto; display: block; background: #0c0a09; }
.prose figcaption { margin-top: .9rem; text-align: center; font-family: var(--caps); font-size: .62rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }

/* previous and next */
.piece-nav { max-width: 42rem; margin: 6rem auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-top: 1px solid #2f2c29; padding-top: 1.6rem; }
.piece-nav a:last-child { text-align: right; }
.piece-nav .kicker { display: block; margin-bottom: .5rem; }
.piece-nav .t { font-family: var(--serif); font-size: 1.4rem; line-height: 1.2; color: var(--paper); transition: color .3s; }
.piece-nav a:hover .t { color: var(--foil); }

/* case notes close on one line: the takeaway */
.prose .one-line {
  margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid #2f2c29;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.3; color: var(--foil);
}

/* the index runs newest first, a year at a time; within each year, writing on the left and cases on the right */
.years { max-width: 1400px; }
.year { display: grid; grid-template-columns: 7rem 1fr 1fr; gap: 0 clamp(2rem, 5vw, 5rem); margin-bottom: 4.5rem; }
.year-label {
  position: sticky; top: 6rem; align-self: start;
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--foil);
}
.entries li.none { padding: 1.3rem 0; border-bottom: 1px solid #2f2c29; font-style: italic; color: var(--muted); }
@media (max-width: 900px) {
  .year { grid-template-columns: 1fr; gap: 1.6rem; margin-bottom: 3.4rem; }
  .year-label { position: static; }
}


/* drafts under review: flagged at the top, and every point awaiting confirmation marked in the text */
.draft-flag { display: inline-block; margin-bottom: 1.6rem; padding: .45rem .8rem; border: 1px solid var(--foil-dim); font-family: var(--caps); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--foil); }
.prose mark.check { background: rgba(224,199,126,.14); color: var(--foil); padding: 0 .25em; font-style: italic; }

/* where the media reported a case: the outlets, linked, under the takeaway */
.prose .reported-by { margin-top: 1.4rem; font-family: var(--caps); font-size: .64rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.prose .reported-by a { color: var(--foil-dim); text-decoration: none; }
.prose .reported-by a:hover { color: var(--foil); }

/* the outlets that reported the case, in the case-at-a-glance box */
.glance-reported { padding: 1.1rem 0; border-top: 1px solid #2f2c29; }
.glance-reported dd { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; }
.glance-reported a { color: var(--paper); border-bottom: 1px solid #43403c; padding-bottom: .1rem; transition: color .3s, border-color .3s; }
.glance-reported a::after { content: ' \2197'; font-size: .8em; color: var(--foil-dim); }
.glance-reported a:hover { color: var(--foil); border-color: var(--foil-dim); }
