/* The Warrior Word — public site
   Type: Newsreader (Production Type, built for on-screen news reading; optical sizes switch
   automatically from text to display cuts) and Libre Franklin (newspaper sans) for labels and meta.
   All fonts self-hosted. Hebrew falls back glyph by glyph to Frank Ruhl Libre. */
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader/newsreader-latin-opsz-normal.woff2) format("woff2-variations"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(/fonts/newsreader/newsreader-latin-opsz-italic.woff2) format("woff2-variations"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url(/fonts/franklin/libre-franklin-latin-wght-normal.woff2) format("woff2-variations"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Frank Ruhl Libre"; src: url(/fonts/frank/frank-ruhl-libre-hebrew-400-normal.woff2) format("woff2"); font-weight: 400; unicode-range: U+0590-05FF, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: "Frank Ruhl Libre"; src: url(/fonts/frank/frank-ruhl-libre-hebrew-700-normal.woff2) format("woff2"); font-weight: 500 800; unicode-range: U+0590-05FF, U+FB1D-FB4F; font-display: swap; }

:root {
  --paper: #ffffff;
  --ink: #121212;
  --ink-2: #363636;      /* decks and secondary text */
  --muted: #6b6b6b;      /* dates, captions */
  --rule: #121212;       /* strong rules */
  --hair: #dedede;       /* hairlines between items */
  --accent: #a3171c;     /* section labels only; change here to match school colors */
  --foot: #121212;
  --on-foot: #e9e9e9;
  --serif: "Newsreader", "Frank Ruhl Libre", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Frank Ruhl Libre", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121212; --ink: #ececec; --ink-2: #c9c9c9; --muted: #9a9a9a; --rule: #ececec; --hair: #303030;
    --accent: #ff8f86; --foot: #000000; --on-foot: #d9d9d9; color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.5 var(--sans); font-optical-sizing: auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p, li, h1, h2, h3, blockquote, figcaption { unicode-bidi: plaintext; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }

/* ---------- Masthead ---------- */
.dateline { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem 0;
  font: 500 .78rem/1.3 var(--sans); color: var(--ink-2); border-bottom: 1px solid var(--hair); }
.dateline a:hover { text-decoration: underline; }
.dl-mid { text-align: center; }
@media (max-width: 640px) { .dateline .dl-mid, .dateline a { display: none; } }
.plate-row { text-align: center; padding: .9rem 0 .8rem; }
.nameplate { display: inline-block; margin: 0; font: 600 2rem/1 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.masthead-front .plate-row { padding: clamp(1.1rem, 3vw, 1.9rem) 0 clamp(.9rem, 2.4vw, 1.5rem); }
.masthead-front .nameplate { font-size: clamp(2.7rem, 9vw, 5.6rem); font-weight: 700; letter-spacing: -0.03em; line-height: .95; }
.tagline { margin: .55rem 0 0; font: italic 400 1.02rem/1.4 var(--serif); color: var(--ink-2); }

.sections-nav { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--hair); }
.masthead-front .sections-nav { border-top: 0; box-shadow: inset 0 1px 0 var(--rule), inset 0 4px 0 var(--paper), inset 0 5px 0 var(--rule); }
.nav-inner { display: flex; align-items: center; gap: 1rem; }
.sections-nav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: clamp(1rem, 2.6vw, 2.2rem);
  overflow-x: auto; scrollbar-width: none; flex: 1; }
.sections-nav ul::-webkit-scrollbar { display: none; }
.sections-nav a { display: block; padding: .8rem 0 .75rem; font: 500 .86rem/1 var(--sans); white-space: nowrap; color: var(--ink); }
.sections-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.sections-nav a[aria-current="page"] { font-weight: 700; box-shadow: inset 0 -2px 0 var(--ink); }
.search-link { font: 500 .82rem var(--sans); padding: .8rem 0; color: var(--ink-2); }
@media (max-width: 760px) {
  .sections-nav ul { justify-content: flex-start; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); padding-right: 1.5rem; }
  .sections-nav .search-link { display: none; }
}

main { padding-bottom: 4rem; }

/* ---------- Shared story elements ---------- */
.kicker { margin: 0 0 .45rem; font: 700 .78rem/1.2 var(--sans); color: var(--accent); }
.kicker .k-type { color: var(--ink-2); font-weight: 500; }
.kicker .k-sec + .k-type { margin-left: .55rem; padding-left: .55rem; border-left: 1px solid var(--hair); }
.hl { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.hl a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.dek { font: 400 1rem/1.45 var(--serif); color: var(--ink-2); margin: .45rem 0 0; text-wrap: pretty; }
.meta { font: 400 .76rem/1.3 var(--sans); color: var(--muted); margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem .7rem; }
.meta .by { color: var(--ink); font-weight: 600; }
.card-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--hair); }

/* ---------- Front page ---------- */
.front { padding-top: 1.6rem; }
.front-top { display: grid; gap: 1.5rem; padding-bottom: .5rem; }
.card-lead .card-img { display: block; margin-bottom: 1rem; }
.card-lead .hl { font-size: clamp(1.85rem, 3.3vw, 2.7rem); line-height: 1.08; letter-spacing: -0.02em; }
.card-lead .dek { font-size: 1.16rem; }
.col-side { display: grid; gap: 1.25rem; align-content: start; }
.col-side .card + .card { border-top: 1px solid var(--hair); padding-top: 1.25rem; }
.card-stack .card-img { display: block; margin-bottom: .75rem; }
.card-stack .hl { font-size: 1.3rem; line-height: 1.18; }
.card-text .hl { font-size: 1.12rem; line-height: 1.22; }
.rail-h { font: 700 .82rem/1 var(--sans); margin: 0 0 .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rule); }
.rail { list-style: none; margin: 0; padding: 0; }
.rail li { padding: .75rem 0; border-bottom: 1px solid var(--hair); }
.rail li:first-child { padding-top: 0; }
.rail a { display: block; font: 600 1rem/1.25 var(--serif); }
.rail a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.rail time { display: block; margin-top: .3rem; font: .74rem var(--sans); color: var(--muted); }
@media (min-width: 760px) {
  .front-top { grid-template-columns: 2fr 1fr; column-gap: 2rem; }
  .col-rail { grid-column: 1 / -1; }
  .col-side { border-left: 1px solid var(--hair); padding-left: 2rem; }
}
@media (min-width: 1080px) {
  .front-top { grid-template-columns: 15rem minmax(0, 1fr) 15rem; grid-template-areas: "side lead rail"; column-gap: 0; }
  .col-lead { grid-area: lead; padding: 0 2rem; border-left: 1px solid var(--hair); border-right: 1px solid var(--hair); }
  .col-side { grid-area: side; border-left: 0; padding: 0 2rem 0 0; }
  .col-rail { grid-area: rail; grid-column: auto; padding-left: 2rem; }
}

.sec-front { margin-top: 2.6rem; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  border-top: 2px solid var(--rule); padding-top: .65rem; margin-bottom: 1.3rem; }
.sec-head h2 { margin: 0; font: 700 1.55rem/1.1 var(--serif); letter-spacing: -0.01em; }
.sec-head h2 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.sec-head .more { font: 500 .8rem var(--sans); color: var(--ink-2); white-space: nowrap; }
.sec-head .more:hover { text-decoration: underline; }
.quad { display: grid; gap: 1.6rem; }
.quad .hl { font-size: 1.2rem; line-height: 1.2; }
.quad .dek { font-size: .95rem; }
@media (min-width: 640px) { .quad { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .quad { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .quad > * { padding: 0 1.25rem; border-left: 1px solid var(--hair); }
  .quad > :first-child { padding-left: 0; border-left: 0; }
  .quad > :last-child { padding-right: 0; }
}

/* ---------- Section, author and search lists ---------- */
.page-head { padding: 2.2rem 0 .9rem; margin-bottom: 1.6rem; border-bottom: 2px solid var(--rule); }
.page-head h1 { font: 700 clamp(2.2rem, 5vw, 3.3rem)/1.05 var(--serif); letter-spacing: -0.025em; margin: 0; }
.page-head .intro { color: var(--ink-2); max-width: 42rem; font: 1.05rem/1.55 var(--serif); margin-top: .6rem; }
.author-head .grade { margin: .45rem 0 0; font: 600 .85rem var(--sans); color: var(--accent); }
.list { max-width: 54rem; }
.card-row { display: grid; gap: 1.25rem; padding: 1.4rem 0; border-bottom: 1px solid var(--hair); }
.card-row:first-child { padding-top: 0; }
.card-row.has-img { grid-template-columns: minmax(0, 1fr) clamp(7rem, 26vw, 13rem); }
.card-row .card-img { order: 2; }
.card-row .hl { font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.2; }
.empty { color: var(--muted); padding: 2rem 0; font-family: var(--serif); font-size: 1.1rem; }
.pager { display: flex; justify-content: space-between; align-items: center; max-width: 54rem; margin-top: 2rem; font: .85rem var(--sans); color: var(--muted); }
.pager a { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: .25em; }
.search-form { display: flex; gap: .5rem; max-width: 40rem; margin-bottom: 2rem; }
.search-form input { flex: 1; }

/* ---------- Article ---------- */
.story-head, .prose, .corrections, .report { width: min(100% - 2.5rem, 42.5rem); margin-inline: auto; }
.story-head { padding: 2.6rem 0 1.5rem; }
.story-head .kicker { font-size: .85rem; margin-bottom: .8rem; }
.story-head .kicker a:hover { text-decoration: underline; }
.story-head h1 { font: 600 clamp(2.15rem, 5vw, 3.35rem)/1.07 var(--serif); letter-spacing: -0.022em; margin: 0; text-wrap: pretty; }
.standfirst { font: 400 clamp(1.15rem, 2.2vw, 1.36rem)/1.45 var(--serif); color: var(--ink-2); margin: 1rem 0 0; text-wrap: pretty; }
.byline-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin-top: 1.5rem; padding-top: .85rem;
  border-top: 1px solid var(--hair); font: 400 .82rem/1.4 var(--sans); color: var(--muted); }
.byline-row .by { color: var(--ink); font-weight: 700; }
.byline-row .by a { text-decoration: underline; text-decoration-color: var(--hair); text-underline-offset: .2em; }
.byline-row .by a:hover { text-decoration-color: currentColor; }
.byline-row .upd { margin-left: .8rem; }
.hero { width: min(100% - 2.5rem, 64rem); margin: .5rem auto 2.2rem; }
.hero img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--hair); }
.hero figcaption { width: min(100%, 42.5rem); margin: .55rem auto 0; font: 400 .78rem/1.45 var(--sans); color: var(--muted); }
.embed { width: min(100% - 2.5rem, 52rem); margin: 0 auto 2.2rem; }
.embed iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.embed-audio iframe { aspect-ratio: auto; height: 232px; }
.prose { font: 400 1.2rem/1.68 var(--serif); color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose h2 { font: 700 1.5rem/1.25 var(--serif); letter-spacing: -0.01em; margin: 2.2rem 0 .7rem; }
.prose h3 { font: 700 1.05rem/1.35 var(--sans); margin: 1.9rem 0 .5rem; }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; text-decoration-color: var(--accent); }
.prose a:hover { color: var(--accent); }
.prose blockquote { margin: 2rem 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--accent); font-style: italic; font-size: 1.32rem; line-height: 1.45; color: var(--ink-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { margin: 2rem 0; }
.prose hr { border: 0; text-align: center; margin: 2.5rem 0; }
.prose hr::after { content: "\2022\2003\2022\2003\2022"; color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; font: .9rem/1.4 var(--sans); display: block; overflow-x: auto; }
.prose th, .prose td { padding: .55rem .7rem; border-bottom: 1px solid var(--hair); text-align: left; }
.prose th { border-bottom: 1px solid var(--rule); }
.story-feature .prose > p:first-child::first-letter,
.story-creative .prose > p:first-child::first-letter {
  float: left; font-size: 4.1em; line-height: .82; font-weight: 600; padding: .07em .1em 0 0; }
.page-prose { width: auto; margin: 0; max-width: 42.5rem; }
.corrections { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--hair); padding: .9rem 0; margin-top: 2.2rem; font: .9rem/1.5 var(--sans); }
.corrections p { margin: .25rem 0; }
.report { font: .8rem var(--sans); margin-top: 2rem; color: var(--muted); }
.report a { text-decoration: underline; text-underline-offset: .2em; }
.related { margin-top: 3.5rem; }
.preview-bar { background: var(--ink); color: var(--paper); text-align: center; padding: .6rem 1rem; font: 600 .85rem var(--sans); }

/* ---------- Staff, corrections log ---------- */
.staff { list-style: none; padding: 0; margin: 0; columns: 17rem; column-gap: 2.5rem; }
.staff li { padding: .7rem 0; border-bottom: 1px solid var(--hair); break-inside: avoid; }
.staff a { font: 600 1.15rem var(--serif); }
.staff a:hover { text-decoration: underline; }
.staff span { display: block; font: .8rem var(--sans); color: var(--muted); margin-top: .15rem; }
.corr-log { list-style: none; padding: 0; margin: 0; max-width: 46rem; }
.corr-log li { padding: 1.1rem 0; border-bottom: 1px solid var(--hair); }
.corr-log time { display: block; color: var(--muted); font: .78rem var(--sans); margin-bottom: .2rem; }
.corr-log a { font: 600 1.15rem var(--serif); }
.corr-log p { margin: .35rem 0 0; font: .95rem/1.5 var(--sans); color: var(--ink-2); }

/* ---------- Forms ---------- */
.form { display: grid; gap: .35rem; max-width: 40rem; }
.wrap.narrow { width: min(100% - 2.5rem, 42.5rem); }
.form label { font: 600 .85rem var(--sans); margin-top: .9rem; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: 400 1rem/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid #b5b5b5; border-radius: 0; padding: .65rem .75rem; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 2px solid var(--ink); outline-offset: -1px; }
button { font: 600 .9rem var(--sans); background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 0; padding: .68rem 1.25rem; cursor: pointer; justify-self: start; }
button:hover { background: var(--paper); color: var(--ink); }
.notice { padding: .9rem 1rem; border-left: 3px solid var(--ink); background: color-mix(in srgb, var(--ink) 4%, var(--paper)); font-size: .95rem; }
.notice.err { border-left-color: var(--accent); }

/* ---------- Footer ---------- */
.site-foot { background: var(--foot); color: var(--on-foot); padding: 3rem 0 2rem; }
.foot-top { display: grid; gap: 1.75rem; padding-bottom: 2rem; border-bottom: 1px solid #3a3a3a; }
.foot-plate { color: #ffffff; font-size: 2.1rem; font-weight: 700; }
@media (min-width: 860px) { .foot-top { grid-template-columns: 1fr auto; align-items: end; } }
.subscribe label { display: block; font: 600 .85rem var(--sans); margin-bottom: .55rem; }
.sub-row { display: flex; max-width: 27rem; }
.sub-row input { flex: 1; min-width: 0; background: transparent; color: #fff; border-color: #5a5a5a; }
.sub-row input::placeholder { color: #9a9a9a; }
.sub-row input:focus { outline-color: #fff; border-color: #fff; }
.sub-row button { background: #fff; color: #121212; border-color: #fff; }
.sub-row button:hover { background: transparent; color: #fff; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.75rem; padding: 2rem 0; }
.foot-cols h2 { font: 700 .8rem var(--sans); color: #ffffff; margin: 0 0 .8rem; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { margin-bottom: .5rem; font: .88rem var(--sans); }
.foot-cols a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.copy { margin: 0; padding-top: 1.25rem; border-top: 1px solid #3a3a3a; font: .76rem var(--sans); color: #9a9a9a; }

@media print {
  .masthead nav, .site-foot, .report, .related, .skip { display: none; }
  body { color: #000; background: #fff; }
}

/* Message pages (subscribe, confirm, unsubscribe) */
.message { font: 1.15rem/1.55 var(--serif); }
.message form { margin-top: 1.25rem; }
.back { margin-top: 2rem; font: .85rem var(--sans); }
.back a { text-decoration: underline; text-underline-offset: .2em; }
