/* The ZShot Gazette — a faux newspaper, built as a zshot capture target.
   Demonstrates two things the other example_assets don't: a responsive
   layout (mobile / tablet / desktop) and a light + dark palette driven by
   prefers-color-scheme. Newspaper serif (Charter) for the page, JetBrains
   Mono for the furniture — both self-hosted at the site root /fonts/. */

@font-face { font-family: "Charter"; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/charter_regular.woff2') format('woff2'); }
@font-face { font-family: "Charter"; font-style: italic; font-weight: 400; font-display: swap; src: url('/fonts/charter_italic.woff2') format('woff2'); }
@font-face { font-family: "Charter"; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/charter_bold.woff2') format('woff2'); }
@font-face { font-family: "Charter"; font-style: italic; font-weight: 700; font-display: swap; src: url('/fonts/charter_bold_italic.woff2') format('woff2'); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/jetbrains-mono-400.woff2') format('woff2'); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/jetbrains-mono-700.woff2') format('woff2'); }

/* ── tokens ─────────────────────────────────────────────── */
:root {
  --serif: "Charter", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* light "newsprint" */
  --paper:   #f6f1e7;
  --surface: #fffdf8;
  --ink:     #1b1714;
  --ink-2:   #4a4038;
  --muted:   #7a6f60;
  --rule:    #d9cdb8;
  --accent:  #c8540a;
  --shadow:  0 1px 2px rgba(40, 30, 18, 0.10), 0 8px 24px rgba(40, 30, 18, 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    /* dark "espresso" — matches the CLI site's pumpk1nsp1c3 theme */
    --paper:   #0e0a06;
    --surface: #15100a;
    --ink:     #f3e9d8;
    --ink-2:   #cdb491;
    --muted:   #9c7e5c;
    --rule:    #2a1f14;
    --accent:  #ff8534;
    --shadow:  0 1px 2px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}

/* ── base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.kicker {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.byline {
  margin: 10px 0 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.dek, .lead__dek { color: var(--ink-2); }
code {
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 0 4px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

/* ── masthead ──────────────────────────────────────────── */
.masthead {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 0;
}
.masthead__bar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.masthead__date { color: var(--ink-2); }
.masthead__name {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 0 6px;
}
.masthead__mark { width: 44px; height: 44px; }
.masthead__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(2.4rem, 9vw, 5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-align: center;
}
.masthead__motto {
  margin: 0;
  text-align: center;
  font-style: italic;
  font-size: 0.85rem;
  color: var(--muted);
}
.sections {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 22px;
  margin-top: 12px;
  padding: 9px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sections a { color: var(--ink); text-decoration: none; }
.sections a:hover { color: var(--accent); }

/* ── layout ────────────────────────────────────────────── */
.paper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.content { min-width: 0; }

/* ── lead story ────────────────────────────────────────── */
.lead { padding-bottom: 28px; border-bottom: 1px solid var(--rule); }
.lead__hed {
  margin: 0 0 14px;
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.lead__hed a { text-decoration: none; }
.lead__hed a:hover { color: var(--accent); }
.lead__fig { margin: 0 0 16px; }
.lead__fig img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
figcaption {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.4;
  color: var(--muted);
}
.lead__dek { font-size: 1.16rem; line-height: 1.55; margin: 0; }
.lead__dek::first-letter {
  float: left;
  font-size: 3.1rem;
  line-height: 0.82;
  font-weight: 700;
  padding: 4px 8px 0 0;
  color: var(--accent);
}

/* ── story grid ────────────────────────────────────────── */
.stories {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
}
.story { display: flex; flex-direction: column; }
.story + .story { }
.story__media { display: block; }
.story__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.story__hed {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.12;
}
.story__hed a { text-decoration: none; }
.story__hed a:hover { color: var(--accent); }
.story .dek { margin: 0; font-size: 0.98rem; line-height: 1.5; }

/* ── almanac sidebar ───────────────────────────────────── */
.almanac { display: flex; flex-direction: column; gap: 22px; }
.widget {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.widget__head {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.horoscope {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
}
.weather { margin: 0; }
.weather img {
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  border-radius: 4px;
}
.weather__now {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.weather__sky { font-size: 1.5rem; font-weight: 700; }
.weather__temp {
  font-family: var(--mono);
  font-size: 1rem;
  color: var(--accent);
}
.weather__rows {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-2);
}
.weather__rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--rule);
}
.weather__rows span:first-child { color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

/* ── colophon ──────────────────────────────────────────── */
.colophon {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 18px 20px 40px;
  border-top: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.colophon p { margin: 2px 0; }
.colophon a { color: var(--accent); }

/* ── tablet ────────────────────────────────────────────── */
@media (min-width: 680px) {
  body { font-size: 19px; }
  .stories { grid-template-columns: 1fr 1fr; gap: 30px 28px; }
}

/* ── desktop ───────────────────────────────────────────── */
@media (min-width: 1040px) {
  .paper { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 40px; }
  .almanac { position: sticky; top: 24px; align-self: start; }
  .lead { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; }
  .lead .kicker { grid-column: 1 / -1; }
  .lead__hed { grid-column: 1 / -1; }
}
