/* ═══════════════════════════════════════════════════════════════════════
   CAPITOL — frontpage.css           (#3  The Front Page — full broadsheet)
   One CSS file + skeleton (skeletons/frontpage.html). Lives inside the bottom
   sheet (#sheet-body). Add class "fp" to .sheet-card to give it more room.
   Same paper family as clipping.css. Transform/opacity animation only.
   ═══════════════════════════════════════════════════════════════════════ */

.sheet-card.fp { max-width: 560px; max-height: 90vh; padding: 0; background: #0a0d14; border-radius: 16px 16px 0 0; }
.sheet-card.fp .sheet-close { z-index: 5; top: 10px; right: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #f2e7c6; font-size: 14px; }

.broadsheet {
  --np-ink: #1b1810; --np-red: #a8201e; --np-cream: #f2e7c6; --np-cream-2: #e4d3a0;
  --np-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='.55' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .32  0 0 0 0 .12  0 0 0 .55 -.12'/></filter><rect width='100%' height='100%' filter='url(%23p)'/></svg>");
  container-type: inline-size; position: relative; color: var(--np-ink); font-family: Georgia, 'Times New Roman', serif;
  padding: 5cqw 5cqw 7cqw;
  background:
    radial-gradient(ellipse at 8% 0%, rgba(170, 120, 40, .25), transparent 40%),
    radial-gradient(ellipse at 100% 100%, rgba(150, 100, 30, .3), transparent 45%),
    var(--np-grain), linear-gradient(180deg, #f7edcd, var(--np-cream) 50%, var(--np-cream-2));
  box-shadow: inset 0 0 6cqw rgba(140, 95, 30, .4);
  transform-origin: 50% 0; animation: bs-unfold .55s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes bs-unfold { from { transform: translateY(26px) scale(.97); opacity: 0; } to { opacity: 1; } }
.broadsheet::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 49.7%, rgba(80, 50, 10, .14) 50%, rgba(255, 255, 255, .35) 50.3%, transparent 50.8%); }

/* masthead with "ears" */
.bs-top { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 2.4cqw; }
.bs-ear {
  font: 700 2.15cqw/1.4 Georgia, serif; letter-spacing: .12em; text-transform: uppercase; text-align: center; color: #4a4027;
  border: .35cqw solid var(--np-ink); padding: 1.4cqw .8cqw; background: rgba(255, 255, 255, .15);
}
.bs-ear b { display: block; font-size: 3.6cqw; letter-spacing: .04em; color: var(--np-red); }
.bs-mast {
  grid-column: 1 / -1; order: -1; white-space: nowrap; text-align: center; font: 900 7.4cqw/1 Georgia, 'Times New Roman', serif; letter-spacing: .03em; text-transform: uppercase; color: #12100a;
  text-shadow: .3cqw .3cqw 0 rgba(168, 32, 30, .25);
}
.bs-mast small { display: block; margin-top: 1.4cqw; font: 700 2cqw/1 Georgia, serif; letter-spacing: .3em; color: var(--np-red); text-shadow: none; }

.bs-dateline {
  display: flex; justify-content: space-between; gap: 2cqw; margin-top: 3cqw; padding: 1.7cqw 0;
  font: 700 2.4cqw/1 Georgia, serif; letter-spacing: .16em; text-transform: uppercase; color: #3a3322;
  border-top: .9cqw solid var(--np-ink); border-bottom: .35cqw solid var(--np-ink); position: relative;
}
.bs-dateline::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1.4cqw; border-bottom: .2cqw solid var(--np-ink); }

/* lead story */
.bs-lead { margin-top: 5cqw; padding-bottom: 4cqw; border-bottom: .8cqw double var(--np-ink); text-align: center; }
.bs-kicker { font: 700 2.5cqw/1 Georgia, serif; letter-spacing: .3em; text-transform: uppercase; color: var(--np-red); }
.bs-lead h2 { margin: 2cqw 0 1.6cqw; font: 900 9.6cqw/1.02 Georgia, serif; letter-spacing: -.012em; text-transform: uppercase; text-wrap: balance; overflow-wrap: anywhere; color: #12100a; }
.bs-lead h2.long { font-size: 7.2cqw; }
.bs-byline { font: italic 3cqw/1.4 Georgia, serif; color: #4a4027; }
.bs-photo {
  margin: 3.4cqw auto 0; width: 100%; aspect-ratio: 2.3; position: relative; overflow: hidden; border: .5cqw solid var(--np-ink);
  background: radial-gradient(circle, rgba(0, 0, 0, .6) 24%, transparent 27%) 0 0 / 1.5cqw 1.5cqw, linear-gradient(#cfc6aa, #8c836b);
}
.bs-photo svg { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: multiply; }
.bs-photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: .8cqw 0; text-align: center; background: rgba(243, 232, 198, .92); font: italic 2.3cqw/1.3 Georgia, serif; color: #3a3220; }

/* the rest: newspaper columns with rules */
.bs-term { margin: 4.4cqw 0 0; text-align: center; font: 700 2.5cqw/1 Georgia, serif; letter-spacing: .4em; text-transform: uppercase; color: var(--np-ink); display: flex; align-items: center; gap: 2.4cqw; }
.bs-term::before, .bs-term::after { content: ""; flex: 1; height: .3cqw; background: var(--np-ink); opacity: .6; }
.bs-cols { column-count: 2; column-gap: 5cqw; column-rule: .3cqw solid rgba(27, 24, 16, .55); margin-top: 3cqw; }
.bs-article { break-inside: avoid; padding: 0 0 3.2cqw; margin-bottom: 3.2cqw; border-bottom: .25cqw solid rgba(27, 24, 16, .4); }
.bs-article:last-child { border-bottom: 0; }
.bs-article .meta { font: 700 2.1cqw/1 Georgia, serif; letter-spacing: .2em; text-transform: uppercase; color: #6a5d3f; }
.bs-article h3 { margin: 1.2cqw 0 1.6cqw; font: 800 4.5cqw/1.12 Georgia, serif; text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; overflow-wrap: anywhere; color: #14120b; }
.bs-article.big h3 { font-size: 5.6cqw; }
.bs-article .lines i { display: block; height: .85cqw; margin-bottom: 1.1cqw; background: #2b2518; opacity: .2; border-radius: 1px; }
.bs-article .lines i:last-child { width: 55%; }
/* drop-cap flourish on the first column article */
.bs-cols .bs-article:first-child h3::first-letter { color: var(--np-red); }

.bs-foot { margin-top: 3cqw; padding-top: 3cqw; border-top: .8cqw double var(--np-ink); text-align: center; }
.bs-foot q { quotes: none; display: block; font: italic 700 4.3cqw/1.3 Georgia, serif; color: #2a2417; }
.bs-foot small { display: block; margin-top: 1.8cqw; font: 700 2cqw/1 Georgia, serif; letter-spacing: .34em; text-transform: uppercase; color: #6a5d3f; }
.bs-orn { text-align: center; color: var(--np-red); letter-spacing: 1.2em; font-size: 3.2cqw; margin-top: 2cqw; }

/* empty state */
.bs-empty { padding: 9cqw 6cqw; text-align: center; font: italic 4.2cqw/1.5 Georgia, serif; color: #4a4027; }

@media (prefers-reduced-motion: reduce) { .broadsheet { animation: none; } }
