/* media.charlessieg.com: page layouts. Big condensed rank numerals on a ticket stub carry the design. */

/* Page heads */
.page-head { padding-top: clamp(1.75rem, 5vw, 3rem); padding-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(2.6rem, 8.5vw, 5rem); line-height: 1; max-width: 16ch; }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--ink-soft); max-width: var(--measure); margin: 0.9rem 0 0; }
.count { font: 700 1.6rem/1 var(--condensed); font-stretch: condensed; font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0.02em; color: var(--accent); margin: 1.1rem 0 0.35rem; }
.note { color: var(--ink-soft); max-width: var(--measure); margin: 0; font-size: 0.95rem; }

/* Home */
.hero { padding-top: clamp(2.5rem, 8vw, 6rem); padding-bottom: clamp(1.5rem, 4vw, 3rem); }
.hero__title { font-size: clamp(5rem, 24vw, 14rem); line-height: 0.85; letter-spacing: -0.01em; color: var(--ink); }
.hero__line { font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.4; max-width: 30rem; margin: 1.25rem 0 0.5rem; }
.hero__note { color: var(--ink-soft); max-width: 30rem; margin: 0; }

.shelves { display: grid; gap: 3.5rem 4rem; grid-template-columns: minmax(0, 1fr); padding-top: 1.5rem; }
@media (min-width: 62rem) { .shelves { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.shelf__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem; border-bottom: 2px solid var(--ink); padding-bottom: 0.6rem; }
.shelf__head h2 { font-size: clamp(2rem, 5vw, 2.8rem); }
.shelf__head .count { margin: 0; }
.shelf__all { margin: 1.5rem 0 0; font-size: 1.1rem; }

/* A ranked entry: the rank is a ticket stub (a dashed edge), the band is decoration only. */
/* One grid per list: every entry takes the numeral column's widest rank (1 to 100), so the stubs and titles line up. */
.reel { list-style: none; display: grid; grid-template-columns: auto minmax(0, 1fr); }
.entry { position: relative; display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; column-gap: clamp(0.9rem, 3vw, 1.75rem); padding: 1.4rem 0 1.4rem 1.1rem; border-bottom: 1px solid var(--rule); }
.entry__band { position: absolute; left: 0; top: 1.4rem; bottom: 1.4rem; width: 4px; border-radius: 2px; background: var(--band, var(--rule)); }
.entry__rank {
  padding-right: clamp(0.9rem, 3vw, 1.75rem); border-right: 2px dashed var(--rule);
  font: 700 clamp(2.6rem, 9vw, 5rem)/0.9 var(--condensed); font-stretch: condensed; font-variant-numeric: tabular-nums lining-nums;
  color: var(--accent); text-align: right; text-decoration: none;
}
a.entry__rank:hover { text-decoration: underline; text-decoration-thickness: 0.05em; }
.entry__body { min-width: 0; }
.entry__title { font-size: clamp(1.55rem, 4.4vw, 2.3rem); line-height: 1.05; }
.entry__link { text-decoration: none; }
.entry__link:hover { text-decoration: underline; text-decoration-thickness: 0.07em; }
.entry__when { margin: 0.3rem 0 0; font: 700 1.2rem/1.2 var(--condensed); font-stretch: condensed; font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0.03em; }
.entry__facts { display: flex; flex-wrap: wrap; gap: 0.15rem 0; list-style: none; margin: 0.45rem 0 0; font-size: 0.92rem; line-height: 1.4; color: var(--ink-soft); }
.entry__facts li { white-space: nowrap; }
.entry__facts li:first-child { white-space: normal; }
/* The separator trails its item, so no line ever starts with one. */
.entry__facts li:not(:last-child)::after { content: ""; display: inline-block; width: 1px; height: 0.9em; margin: 0 0.7em; background: var(--rule); vertical-align: -0.08em; }
.entry__premise { margin: 0.9rem 0 0.5rem; max-width: var(--measure); font-size: 1.05rem; }
.entry__cast { margin: 0; font-size: 0.92rem; color: var(--ink-soft); max-width: var(--measure); }
.entry__cast-label { font-weight: 600; margin-right: 0.35em; color: var(--ink); }
.entry:target { background: color-mix(in srgb, var(--accent) 14%, var(--paper)); }

.entry--compact { padding-block: 1rem; }
.entry--compact .entry__band { top: 1rem; bottom: 1rem; }
.entry--compact .entry__rank { font-size: clamp(2rem, 7vw, 3rem); }
.entry--compact .entry__title { font-size: clamp(1.25rem, 3.4vw, 1.6rem); }
.entry--compact .entry__when { font-size: 1.05rem; margin-top: 0.2rem; }
.entry--compact .entry__facts { font-size: 0.88rem; margin-top: 0.3rem; }

/* About and 404 */
.prose { max-width: 48rem; }
.prose section { margin-top: 2.25rem; }
.prose h2 { font-size: 1.9rem; margin-bottom: 0.6rem; }
.prose p { max-width: var(--measure); }
.missing { list-style: none; margin-top: 1.5rem; display: grid; gap: 0.4rem; font-size: 1.15rem; }
