/* Lift The Veil: a broadsheet front page. Fonts are served from this site
   (SIL Open Font License; see /fonts/LICENSE.txt), never from another server. */
@font-face {
  font-family: 'LV Masthead';
  src: url('/fonts/masthead.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'LV Serif';
  src: url('/fonts/serif.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'LV Serif';
  src: url('/fonts/serif-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'LV Serif';
  src: url('/fonts/serif-italic.woff2') format('woff2');
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'LV Sans';
  src: url('/fonts/franklin.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --ink: #121212;
  --body: #333333;
  --muted: #727272;
  --rule: #dfdfdf;
  --accent: #8e1b1b;
  --serif: 'LV Serif', Georgia, 'Times New Roman', serif;
  --sans: 'LV Sans', 'Franklin Gothic Medium', 'Helvetica Neue', Arial, sans-serif;
  --masthead: 'LV Masthead', 'Old English Text MT', serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
/* `hidden` must win over the display rules below (the more-line is a flex row). */
[hidden] { display: none !important; }
/* Always keep room for the scrollbar, so the page does not jump sideways between a
   long page (Print, with a scrollbar) and a short one (Video, maybe without). */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Masthead ---------- */
.mast {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0.9rem 1rem 0;
  text-align: center;
}
.mast-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
}
.mast-date { text-align: left; }
.mast-edition { text-align: right; font-weight: 500; color: var(--muted); }
.mast-kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.nameplate {
  margin: 0.15rem 0 0.25rem;
  font-family: var(--masthead);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  line-height: 1.05;
}
.mast-dek {
  margin: 0 auto 0.6rem;
  white-space: nowrap; /* one line on desktop; phones wrap (below) */
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--body);
}

/* ---------- Section bars (regions, then topics) ---------- */
.sections,
.topics {
  max-width: 76rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.sections-row,
.topics-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 1.4rem;
  font-family: var(--sans);
}
.sections-row {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 0.55rem 0;
}
.topics-row {
  border-bottom: 3px double var(--ink);
  padding: 0.45rem 0 0.55rem;
}
.navitem {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.15rem 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.topics-row .navitem { font-size: 0.75rem; font-weight: 500; color: var(--body); }
.navitem:hover { border-bottom-color: var(--rule); }
.navitem[aria-pressed='true'] { border-bottom-color: var(--ink); color: var(--ink); }
.navitem .count { color: var(--muted); font-weight: 400; font-size: 0.85em; }

/* ---------- Page ---------- */
.page {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

/* Shared story parts */
.kicker {
  margin: 0 0 0.3rem;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.headline {
  margin: 0 0 0.4rem;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink);
}
.headline a:hover { color: #326891; }
.summary {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--body);
}
.meta {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.photo { margin: 0 0 0.6rem; }
.photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #f0f0f0;
}
.credit {
  margin-top: 0.25rem;
  font-family: var(--sans);
  font-size: 0.62rem;
  color: var(--muted);
  text-align: right;
  letter-spacing: 0.02em;
}

/* ---------- Top: lead + side column, separated by a vertical rule ---------- */
.top {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}
.top--solo { grid-template-columns: 1fr; }
.lead-col { padding-right: 1.25rem; }
.story--lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1.25rem;
  align-items: start;
}
/* The wide story under the lead: one long row across the lead column, photo left. */
.story--wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}
.story--wide.story--nophoto { grid-template-columns: 1fr; }
.story--wide .headline { font-size: 1.35rem; }
.story--wide .photo { margin: 0; }
.story--lead.story--nophoto { grid-template-columns: 1fr; }
.story--lead .headline { font-size: clamp(1.45rem, 2.1vw, 1.8rem); line-height: 1.14; }
.story--lead .summary { font-size: 1.02rem; }
.photo--lead { margin: 0; }
.side {
  border-left: 1px solid var(--rule);
  padding-left: 1.25rem;
}
.story--side { padding: 0 0 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.story--side:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.story--side .headline { font-size: 1.12rem; }
.story--side .summary { display: none; }
.story--side .photo img { aspect-ratio: 16 / 9; }

/* ---------- More: four ruled columns ---------- */
.rail-label {
  margin: 0 0 0.9rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.more {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.story--card {
  padding: 0 1rem 1.25rem;
  margin-bottom: 1.25rem;
  border-left: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.story--card:nth-child(4n + 1) { border-left: 0; padding-left: 0; }
.story--card:nth-child(4n) { padding-right: 0; }
.story--card .headline { font-size: 1.08rem; }
.story--card .summary { font-size: 0.88rem; }

/* "Show more stories": a centered link on a hairline running across the page. */
.more-line {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.5rem 0 1.5rem;
}
.more-line::before,
.more-line::after {
  content: '';
  flex: 1;
  border-top: 1px solid var(--ink);
}
.more-button {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.25rem;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}
.more-button .chev {
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin: 0 0 0.2em 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  vertical-align: middle;
}
.more-button:hover { color: #326891; text-decoration: underline; }
.more-button:disabled { color: var(--muted); cursor: default; text-decoration: none; }

.status { text-align: center; font-family: var(--sans); color: var(--muted); }

/* ---------- Footer ---------- */
.foot {
  max-width: 76rem;
  margin: 0 auto;
  padding: 1.25rem 1rem 2.5rem;
  border-top: 3px double var(--ink);
  text-align: center;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--muted);
}
.foot-logo { display: block; width: 96px; height: 96px; margin: 0.75rem auto 0.5rem; border-radius: 4px; }
.foot-name { margin: 0 0 0.5rem; font-family: var(--masthead); font-size: 1.8rem; color: var(--ink); }
.foot-small { font-size: 0.7rem; }

/* ---------- Narrower screens ---------- */
@media (max-width: 1000px) {
  .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story--card:nth-child(4n + 1) { border-left: 1px solid var(--rule); padding-left: 1rem; }
  .story--card:nth-child(4n) { padding-right: 1rem; }
  .story--card:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .story--card:nth-child(2n) { padding-right: 0; }
}
@media (max-width: 760px) {
  .mast-dek { white-space: normal; }
  .mast-bar { grid-template-columns: 1fr; gap: 0.15rem; }
  .mast-date,
  .mast-edition { text-align: center; }
  .mast-edition { display: none; }
  .top { grid-template-columns: 1fr; }
  .lead-col { padding-right: 0; }
  .story--lead,
  .story--wide { grid-template-columns: 1fr; }
  .story--lead .photo--lead,
  .story--wide .photo { order: -1; }
  .side { border-left: 0; padding-left: 0; margin-top: 1.25rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
  .more { grid-template-columns: 1fr; }
  .story--card,
  .story--card:nth-child(n) { border-left: 0; padding-left: 0; padding-right: 0; }
  .sections-row,
  .topics-row {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .sections-row::-webkit-scrollbar,
  .topics-row::-webkit-scrollbar { display: none; }
  .navitem { white-space: nowrap; }
}

/* ---------- Print · Video, under the tagline ---------- */
.editions {
  margin: -0.2rem 0 0.55rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.editions a { color: var(--muted); padding: 0 0.15rem; border-bottom: 2px solid transparent; }
.editions a:hover { color: var(--ink); }
.editions a[aria-current='page'] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Video page: a grid of thumbnails, newest first ---------- */
/* The double rule under the masthead, as on Print. */
.video-rule { border-top: 3px double var(--ink); margin: 0 0 1.25rem; }
.vgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.6rem 1rem;
  margin-bottom: 1.5rem;
}
.vthumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #16110c;
}
.vthumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.2s ease; }
.vthumb:hover img { transform: scale(1.03); }
.vplay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3.2rem;
  height: 2.25rem;
  border-radius: 0.6rem;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.vplay::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-35%, -50%);
  border-style: solid;
  border-width: 0.55rem 0 0.55rem 0.95rem;
  border-color: transparent transparent transparent #fff;
}
.vthumb:hover .vplay,
.vcard--nothumb .vplay { opacity: 1; }
.vcard--nothumb .vplay { background: var(--accent); }
.vdur {
  position: absolute;
  right: 0.4rem;
  bottom: 0.4rem;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
}
.vtext { padding-top: 0.6rem; }
.vtitle {
  margin: 0 0 0.3rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vtitle a:hover { color: #326891; }
.vsource,
.vmeta { margin: 0; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); }
.vsource { color: var(--body); font-weight: 600; }

@media (max-width: 1000px) {
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .vgrid { grid-template-columns: 1fr; }
}
