/* ─────────────────────────────────────────────────────────────────
   THE DAILY DABUGLE
   Newsprint. Deliberately does NOT inherit the retro site styling -
   the Bugle is meant to read as a different artifact. See DECISIONS.md
   2026.08.10 "Shared retro CSS extracted; Bugle gets its own stylesheet".
   ───────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&family=Anton&family=Oswald:wght@400;600;700&family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Special+Elite&display=swap');

:root {
  --paper:      #f2efe6;
  --paper-deep: #e8e4d8;
  --ink:        #1c1b19;
  --ink-soft:   #4a4741;
  --ink-faint:  #8b8780;
  --rule:       #1c1b19;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #57544d;
  color: var(--ink);
  font-family: 'Libre Baskerville', Georgia, serif;
  line-height: 1.6;
  padding: 0 0 60px;
}

/* ── THE GATE ──────────────────────────────────────────────────── */
#password-screen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #000080;
  background-image: repeating-linear-gradient(45deg, #000080 0px, #000080 10px, #0000a0 10px, #0000a0 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-family: 'Fredoka One', 'Comic Sans MS', cursive;
}

#password-box {
  background: #000033;
  border: 4px ridge #ffff00;
  padding: 32px 40px;
  text-align: center;
  box-shadow: 0 0 0 4px #ff00ff;
  max-width: 340px;
  width: 90%;
}

#password-box h2 {
  font-family: Impact, sans-serif;
  font-size: 22px;
  color: #ffff00;
  text-shadow: 2px 2px #ff00ff;
  letter-spacing: 3px;
  margin-bottom: 8px;
}

#password-box p { font-size: 12px; color: #aaaaaa; margin-bottom: 20px; }

#password-input {
  background: #000;
  border: 2px solid #ffff00;
  color: #ffff00;
  padding: 8px;
  font-size: 16px;
  width: 100%;
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

#password-submit {
  background: #ff00ff;
  color: #ffffff;
  border: 2px solid #ffff00;
  padding: 8px 24px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}

#password-submit:hover { background: #cc00cc; }
#password-error { color: #ff0000; font-size: 13px; margin-top: 10px; min-height: 18px; }

/* ── PAGE FRAME ────────────────────────────────────────────────── */
#main-wrapper { display: none; }

.sheet {
  max-width: 720px;
  margin: 0 auto;
  background: var(--paper);
  padding: 0;
}

/* ── STAND-FIRST / RETURN NAV ──────────────────────────────────── */
#bugle-nav {
  background: var(--ink);
  padding: 10px 16px;
  text-align: center;
}

#bugle-nav a {
  color: var(--paper);
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 10px;
  border-right: 1px solid #6a665e;
}

#bugle-nav a:last-child { border-right: none; }
#bugle-nav a:hover { color: #fff; text-decoration: underline; }

/* ── ARCHIVE INDEX ─────────────────────────────────────────────── */
#archive {
  padding: 26px 30px 30px;
  border-bottom: 6px double var(--rule);
}

#archive h1 {
  font-family: 'UnifrakturMaguntia', serif;
  font-size: 52px;
  text-align: center;
  line-height: 1.05;
  font-weight: normal;
}

#archive .strap {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  padding: 6px 0;
  margin: 14px 0 18px;
}

#archive ol { list-style: none; }

#archive li {
  border-bottom: 1px dotted var(--ink-faint);
  padding: 7px 0;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
}

#archive li .no {
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ink-faint);
  min-width: 106px;
  text-transform: uppercase;
}

#archive li a {
  color: var(--ink);
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-decoration: none;
}

#archive li a:hover { text-decoration: underline; }

/* ── ONE ISSUE ─────────────────────────────────────────────────── */
.issue {
  padding: 30px 30px 0;
  border-bottom: 6px double var(--rule);
  scroll-margin-top: 10px;
}

.issue:last-of-type { border-bottom: none; }

.masthead {
  font-family: 'UnifrakturMaguntia', serif;
  font-size: 44px;
  text-align: center;
  line-height: 1.1;
  padding-bottom: 6px;
}

.masthead.small { font-size: 30px; }

.rule-double {
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  height: 4px;
  margin-bottom: 0;
}

.folio {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 2px;
  border-bottom: 3px solid var(--rule);
}

.folio .mid { font-style: italic; color: var(--ink-soft); }

.folio.inverse {
  background: var(--ink);
  color: var(--paper);
  border-bottom: none;
  padding: 7px 12px;
  font-family: 'Oswald', sans-serif;
  font-style: normal;
  letter-spacing: 2px;
}

.folio.inverse .mid { color: var(--paper); }

/* banner strips top-left / top-right, as on the source pages */
.eyebrows {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-bottom: 8px;
}

.eyebrows .flag {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  border: 2px solid var(--rule);
  padding: 5px 9px;
  min-width: 96px;
}

.eyebrows .flag.solid { background: var(--ink); color: var(--paper); }
.eyebrows .masthead { flex: 1; padding-bottom: 0; }

/* ── HEADLINES ─────────────────────────────────────────────────── */
.hed {
  font-family: 'Anton', 'Oswald', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  text-align: center;
  line-height: 0.92;
  letter-spacing: -1px;
  font-size: clamp(46px, 12vw, 86px);
  padding: 14px 0 12px;
}

.hed.tall  { font-size: clamp(54px, 15vw, 104px); letter-spacing: -2px; }
.hed.slab  { font-family: 'Playfair Display', serif; font-weight: 900; letter-spacing: 0; }
.hed.western {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  letter-spacing: 8px;
  font-size: clamp(44px, 11vw, 82px);
}

.subhed {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  text-align: center;
  font-size: clamp(20px, 5vw, 30px);
  line-height: 1.2;
  text-transform: uppercase;
  padding-bottom: 14px;
}

.subhed.sentence { text-transform: none; font-family: 'Oswald', sans-serif; font-weight: 400; }

.starline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: clamp(19px, 4.6vw, 30px);
  border-top: 3px solid var(--rule);
  border-bottom: 3px solid var(--rule);
  padding: 10px 0;
  margin-bottom: 16px;
}

/* ── BODY ──────────────────────────────────────────────────────── */
.columns {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 20px;
  padding-bottom: 6px;
}

.deck {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 21px;
  line-height: 1.15;
  text-transform: uppercase;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.copy { font-size: 13.5px; line-height: 1.62; text-align: justify; hyphens: auto; }
.copy + .copy { margin-top: 9px; }
.copy em { font-style: italic; }

figure { margin: 0; }

figure img {
  width: 100%;
  display: block;
  filter: grayscale(100%) contrast(1.06);
}

figcaption {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  padding: 12px 14px;
  margin-top: 10px;
}

figcaption .attrib {
  display: block;
  font-style: normal;
  font-weight: 400;
  font-size: 13px;
  margin-top: 4px;
}

.stack { display: flex; flex-direction: column; gap: 12px; }

/* wanted-poster typewriter box */
.deets {
  border: 2px solid var(--rule);
  padding: 16px 18px;
  text-align: center;
  font-family: 'Special Elite', 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.62;
}

.deets h3 {
  font-size: 15px;
  letter-spacing: 2px;
  margin: 8px 0 10px;
  text-transform: uppercase;
}

.deets .stars { letter-spacing: 6px; font-size: 15px; }
.deets .label { margin-top: 12px; font-weight: bold; letter-spacing: 1px; }

.hotline {
  border: 2px solid var(--rule);
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 1px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.banner {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 2px;
  font-size: clamp(17px, 4.4vw, 27px);
  padding: 14px 12px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.banner.serif {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-style: normal;
  letter-spacing: 4px;
}

/* footer strip on every issue */
.kicker {
  background: var(--ink);
  color: var(--paper);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 700;
  text-align: center;
  letter-spacing: 4px;
  font-size: 14px;
  padding: 11px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.kicker a { color: var(--paper); text-decoration: none; }
.kicker a:hover { text-decoration: underline; }

.issue-end {
  border-top: 3px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  height: 4px;
  margin: 6px 0 26px;
}

.totop {
  display: block;
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-decoration: none;
  padding-bottom: 20px;
}

.totop:hover { color: var(--ink); }

/* ── COLOPHON ──────────────────────────────────────────────────── */
#colophon {
  background: var(--paper-deep);
  padding: 22px 30px 26px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  text-align: center;
  border-top: 6px double var(--rule);
}

#colophon strong { font-family: 'Oswald', sans-serif; letter-spacing: 2px; text-transform: uppercase; }

/* ── PHONES ────────────────────────────────────────────────────── */
@media (max-width: 620px) {
  .issue   { padding: 22px 16px 0; }
  #archive { padding: 20px 16px 24px; }
  #archive h1 { font-size: 38px; }
  #archive li { flex-direction: column; gap: 2px; }
  #archive li .no { min-width: 0; }

  .columns { grid-template-columns: 1fr; gap: 14px; }
  .masthead { font-size: 30px; }
  .masthead.small { font-size: 22px; }

  .eyebrows { flex-wrap: wrap; gap: 8px; }
  .eyebrows .flag { font-size: 9px; min-width: 74px; padding: 4px 6px; }

  .folio { font-size: 10px; letter-spacing: 0; }
  .folio .mid { display: none; }

  .copy { font-size: 14.5px; text-align: left; }
  .deck { font-size: 19px; }
  .starline { letter-spacing: 2px; gap: 8px; }
  .hotline { font-size: 21px; }
  .kicker { font-size: 11px; letter-spacing: 2px; gap: 10px; }
  #bugle-nav a { display: inline-block; padding: 3px 8px; border-right: none; }
}
