/* The writer pages (/screenwriters and /screenwriters/<slug>), on top of
   formatter-page.css (the base, .wrap, .pitch, .btn). Copied to
   landing/screenwriters/writers.css by build.mjs.

   The head is the Best Screenplay page's night band in small: navy paper,
   ivory ink, gold for a win and nothing else. The colours repeat the .os
   tokens in page.css; change one, change both. The site is light-only.
   See .claude/oscar-screenplays-registry.md, "The writer pages". */

.sw {
  --night: #0b1020;
  --night-2: #121a30;
  --night-line: rgba(244, 239, 227, 0.11);
  --night-line-2: rgba(244, 239, 227, 0.2);
  --ivory: #f4efe3;
  --ivory-2: #c8c2b2;
  --ivory-3: #9a9484;
  --gold: #e6b84f;
  --gold-wash: rgba(230, 184, 79, 0.12);
  --silver: #626a85;
}

/* ───────────────────── the head ───────────────────── */
.sw-head { background: var(--night); color: var(--ivory); padding: 40px 0 48px; }
.sw-head ::selection { background: var(--gold); color: var(--night); }
.sw-head a { color: var(--gold); }
.sw-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ivory-3); margin: 0 0 22px; }
.sw-crumbs a { color: var(--ivory-2); text-decoration: none; }
.sw-crumbs a:hover { color: var(--gold); text-decoration: underline; }
.sw .os-eyebrow {
  margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.sw-head h1 {
  font-family: var(--serif); font-size: clamp(38px, 4.4vw, 58px); font-weight: 500;
  letter-spacing: -0.025em; line-height: 1.04; margin: 12px 0 0; text-wrap: balance; color: var(--ivory);
}
.sw-lede { font-size: 18px; line-height: 1.6; color: var(--ivory-2); margin: 16px 0 0; max-width: 62ch; }

.sw-strip { display: block; width: 100%; height: auto; margin: 26px 0 0; overflow: visible; }
.sw-strip.narrow { display: none; }
.sw-strip .axis { stroke: var(--night-line-2); stroke-width: 1.5; }
.sw-strip .ticks line { stroke: var(--night-line-2); }
.sw-strip .ticks text { fill: var(--ivory-3); font: 12px var(--sans); text-anchor: middle; }
.sw-strip circle.won { fill: var(--gold); }
.sw-strip circle.nom { fill: var(--silver); stroke: var(--ivory-3); stroke-width: 1; }
.sw-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: 10px 0 0; font-size: 13.5px; color: var(--ivory-3); }
.sw-legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sw-legend .dot.gold { background: var(--gold); }
.sw-legend .dot.silver { background: var(--silver); }
.sw-legend a { margin-left: auto; font-weight: 600; text-decoration: none; }
.sw-legend a:hover { text-decoration: underline; }

.sw-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 28px 0 0; }
.sw-tile { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 14px; padding: 14px 16px; }
.sw-tile p { margin: 0; }
.sw-tile .l { font-size: 13px; color: var(--ivory-3); }
.sw-tile .v { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--ivory); margin-top: 4px; line-height: 1.2; }
.sw-tile .v a { color: var(--ivory); font-size: 18px; text-decoration: none; }
.sw-tile .v a:hover { color: var(--gold); text-decoration: underline; }
.sw-tile .s { font-size: 13px; color: var(--ivory-2); margin-top: 4px; }

.sw-find { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 26px 0 0; }
.sw-find label { font-size: 14px; color: var(--ivory-3); }
.sw-find input {
  flex: 1 1 220px; max-width: 380px; font: inherit; font-size: 15px; color: var(--ivory);
  background: var(--night-2); border: 1px solid var(--night-line-2); border-radius: 10px; padding: 9px 12px;
}
.sw-find input::placeholder { color: var(--ivory-3); opacity: 0.8; }
.sw-find input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-wash); }

/* ───────────────────── the body (light) ───────────────────── */
.sw-body { padding: 18px 28px 20px; }
.sw-sec { margin: 44px 0 0; }
.sw-sec h2 { font-family: var(--serif); font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -0.015em; margin: 0; }
.sw-sec a { color: var(--accent); font-weight: 600; text-decoration: none; }
.sw-sec a:hover { text-decoration: underline; }

.sw-noms { list-style: none; margin: 18px 0 0; padding: 0; }
.sw-nom { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.sw-nom p { margin: 0; }
.sw-y { font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; padding-top: 1px; }
.sw-film { font-size: 18px; color: var(--ink); line-height: 1.4; }
.sw-film strong { font-family: var(--serif); font-weight: 600; font-size: 21px; }
.sw-res {
  display: inline-block; vertical-align: 3px; margin-left: 8px; font-size: 12px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line);
}
.sw-nom.won .sw-res { background: #fbf1d8; color: #7a5a10; border-color: #ecd59a; }
.sw-nom .sw-cat { font-size: 15.5px; color: var(--ink-2); margin-top: 4px; }
.sw-nom .sw-note { font-size: 14.5px; color: var(--muted); margin-top: 4px; }

.sw-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.sw-chips li { font-size: 14.5px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; }
.sw-chips li span { color: var(--muted); }

.sw-top { columns: 3 240px; column-gap: 32px; margin: 16px 0 0; padding: 0 0 0 22px; }
.sw-top li { font-size: 15.5px; padding: 3px 0; break-inside: avoid; }
.sw-top li span, .sw-az li span { color: var(--muted); font-size: 13.5px; }
.sw-letters { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 14px 0 0; font-size: 15px; }
.sw-group h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 26px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.sw-az { list-style: none; columns: 3 220px; column-gap: 32px; margin: 10px 0 0; padding: 0; }
.sw-az li { font-size: 15px; padding: 3px 0; break-inside: avoid; }
.sw-none { font-size: 15.5px; color: var(--muted); margin-top: 18px; }

.sw-about p { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); max-width: 74ch; margin: 12px 0 0; }
.sw-about .sw-fix { font-size: 15.5px; color: var(--ink); }
.sw-about .sw-tm { font-size: 13px; color: var(--muted); max-width: none; margin-top: 20px; }
.sw-pitch { margin-top: 56px; }

@media (max-width: 720px) {
  .sw-head { padding: 30px 0 36px; }
  .sw-lede { font-size: 16.5px; }
  .sw-legend a { margin-left: 0; }
  .sw-nom { grid-template-columns: 50px minmax(0, 1fr); gap: 0 12px; }
  .sw-body { padding: 10px 16px 20px; }
  .sw-strip.wide { display: none; }
  .sw-strip.narrow { display: block; }
}
