/* ============================================================
   TOWSHARK — Mobile-First Design System
   Base: phone → Tablet (600px) → Desktop (900px) → Wide (1200px)
   ============================================================ */

:root {
  --paper: #eee4cf;
  --paper-shadow: #dbcaa5;
  --ink: #111111;
  --muted: #544f45;
  --red: #b21f24;
  --deep-red: #7a1317;
  --gold: #c9902f;
  --border: rgba(17, 17, 17, 0.18);
  --panel: rgba(255, 250, 240, 0.7);
  --radius: 2px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  color: var(--ink);
  font-family: "Work Sans", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  background:
    radial-gradient(circle at top, rgba(201, 144, 47, 0.18), transparent 30%),
    linear-gradient(180deg, #2e261c 0%, #17120d 100%);
  min-height: 100vh;
}

/* — Newsprint texture overlay — */
.newsprint {
  position: fixed; inset: 0; pointer-events: none; opacity: 0.10;
  background-image:
    linear-gradient(rgba(0,0,0,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.12) 1px, transparent 1px);
  background-size: 3px 3px, 120px 120px;
  mix-blend-mode: multiply;
}

/* — Page shell (the "paper") — */
.page-shell {
  width: calc(100% - 12px);
  max-width: 1320px;
  margin: 6px auto;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(244,237,217,0.98), rgba(231,219,191,0.96));
  box-shadow: 0 28px 80px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.48);
}

/* ============================================================
   MASTHEAD
   ============================================================ */
.masthead {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 4px double var(--ink);
}

.masthead-brand { flex: 1; }

.edition-tag, .section-kicker {
  margin: 0 0 4px;
  font-family: "Archivo Expanded", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
}

.masthead h1 {
  font-family: "Archivo Expanded", sans-serif;
  font-size: clamp(2.4rem, 10vw, 4.4rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.tagline {
  margin-top: 4px;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 44ch;
}

.edition-box {
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.44);
  font-size: 0.88rem;
  line-height: 1.5;
}

.edition-box p { margin: 0; color: var(--muted); }

/* ============================================================
   HERO — Lead story + Intelligence Panel
   ============================================================ */
.hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.hero-copy h2 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  line-height: 1.05;
  margin-bottom: 10px;
}

.hero-copy p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 70ch;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid var(--ink);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-link:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--paper);
}

/* Intelligence panel */
.intelligence-panel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.intelligence-panel article {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(178,31,36,0.08), rgba(201,144,47,0.12));
}

.intelligence-panel span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--deep-red);
}

.intelligence-panel strong {
  font-family: "Archivo Expanded", sans-serif;
  font-size: 0.95rem;
  text-transform: uppercase;
}

/* ============================================================
   MAIN LAYOUT — Stories + Rail
   ============================================================ */
.layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 16px;
}

.main-column { min-width: 0; }

/* — Section headers — */
.section-header { margin-bottom: 12px; }

.section-header h3,
.rail-card h3 {
  font-family: "Archivo Expanded", sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
}

/* — Story cards — */
.story-stack {
  display: grid;
  gap: 10px;
}

.story-card, .column-card, .rail-card {
  border: 1px solid var(--border);
  background: var(--panel);
}

.story-card { padding: 14px; }

.story-card-lead {
  background: linear-gradient(135deg, rgba(178,31,36,0.1), rgba(255,255,255,0.78));
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.story-meta span {
  padding: 3px 7px;
  border: 1px solid rgba(122,19,23,0.24);
  background: rgba(255,255,255,0.55);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--deep-red);
}

.story-card h4 {
  font-family: "Instrument Serif", serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.1;
  margin-bottom: 8px;
}

.story-card p,
.column-card li,
.rail-card li,
.playbook-item p,
.newsletter p,
.footer-note p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.story-why { margin-top: 10px; }
.story-why strong { color: var(--deep-red); }

.story-source {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

.story-source a {
  color: var(--deep-red);
  font-weight: 700;
  text-decoration: none;
}

.story-source a:hover { text-decoration: underline; }

.share-btn {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid var(--deep-red);
  background: transparent;
  color: var(--deep-red);
  font-family: "Archivo Expanded", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.share-btn:hover {
  background: var(--deep-red);
  color: var(--paper);
}

.share-copied {
  background: var(--deep-red);
  color: var(--paper);
}

.story-group + .story-group { margin-top: 20px; }

.section-header.compact { margin-bottom: 10px; }

/* — Why It Matters columns — */
.columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 16px;
}

.column-card { padding: 14px; }

.column-card h4,
.playbook-item h4,
.newsletter h3 {
  font-family: "Archivo Expanded", sans-serif;
  text-transform: uppercase;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.column-card ul, .rail-card ul {
  margin: 8px 0 0;
  padding-left: 16px;
}

.column-card li, .rail-card li { margin-bottom: 8px; }

.column-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--deep-red);
  text-decoration: none;
}

.column-link:hover { text-decoration: underline; }

/* — Rail (sidebar on desktop) — */
.rail {
  display: grid;
  gap: 10px;
  align-content: start;
}

.rail-card {
  padding: 14px;
  height: fit-content;
}

.spotlight {
  background: linear-gradient(180deg, rgba(17,17,17,0.92), rgba(61,23,23,0.92));
}

.spotlight h3, .spotlight li, .spotlight .section-kicker { color: #f4e7c8; }

.playbook-item + .playbook-item {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.newsletter {
  background: linear-gradient(135deg, rgba(201,144,47,0.18), rgba(178,31,36,0.08));
}

.tip-clark {
  background: linear-gradient(135deg, rgba(178,31,36,0.12), rgba(17,17,17,0.06));
}

.tip-clark h3 {
  font-family: "Archivo Expanded", sans-serif;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.tip-clark .primary-link {
  margin-top: 12px;
  border-color: var(--deep-red);
  color: var(--deep-red);
}

.tip-clark .primary-link:hover {
  background: var(--deep-red);
  color: var(--paper);
}

/* — Footer — */
.footer-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.footer-note p { font-size: 0.84rem; }

/* — Scroll reveals — */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 350ms ease, transform 350ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   TABLET — 600px+
   ============================================================ */
@media (min-width: 600px) {
  .page-shell {
    width: calc(100% - 20px);
    margin: 12px auto;
    padding: 16px;
  }

  .masthead {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .edition-box { text-align: right; min-width: 220px; }

  .hero {
    flex-direction: row;
    align-items: start;
  }

  .hero-copy { flex: 1; min-width: 0; }

  .intelligence-panel {
    flex-shrink: 0;
    width: 260px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .story-stack {
    grid-template-columns: repeat(2, 1fr);
  }

  .columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   DESKTOP — 900px+
   ============================================================ */
@media (min-width: 900px) {
  .page-shell {
    width: calc(100% - 28px);
    padding: 18px;
  }

  .masthead h1 {
    font-size: clamp(3.2rem, 6vw, 4.8rem);
  }

  .hero-copy h2 {
    font-size: clamp(2rem, 3.5vw, 2.8rem);
  }

  .intelligence-panel {
    width: 300px;
    grid-template-columns: repeat(2, 1fr);
  }

  .layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 20px;
    align-items: start;
  }

  .columns {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   WIDE DESKTOP — 1200px+
   ============================================================ */
@media (min-width: 1200px) {
  .page-shell { padding: 22px; }

  .intelligence-panel { width: 340px; }

  .layout {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}
