/* ============================================================================
   LIBERO PENSIERO — Design System
   Premium editorial hub (ANSA / NYT / Reuters digital aesthetic)
   ----------------------------------------------------------------------------
   Palette     : Obsidian #111 · Editorial Blue #0056B3 · Cadmium Red #C00000
   Typography  : Serif (Georgia) for editorial · Sans (Inter/system) for UI
   Discipline  : extreme whitespace · 1px #EAEAEA rules · uppercase microcopy
   ========================================================================== */

:root {
  --obsidian:   #111111;
  --ink:        #1a1a1a;
  --ink-soft:   #555555;
  --ink-faint:  #8a8a8a;
  --blue:       #0056B3;
  --red:        #C00000;
  --white:      #FFFFFF;
  --milk:       #FDFDFB;
  --line:       #EAEAEA;
  --line-strong:#111111;

  --serif: Georgia, "Times New Roman", Garamond, "Iowan Old Style", serif;
  --sans:  Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  --maxw: 1240px;
  --gutter: 28px;
}

/* ----------------------------- Reset ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--milk);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.12; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Utility microcopy --------------------------------------------------------*/
.kicker, .micro {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
}
.micro { font-weight: 600; letter-spacing: .1em; }

/* ============================ MASTHEAD ==================================== */
.utility-strip {
  background: var(--obsidian);
  color: #d9d9d9;
}
.utility-strip .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px;
}
.utility-strip .micro { color: #c7c7c7; }
.utility-strip .util-right { display: flex; gap: 18px; align-items: center; }
.utility-strip a { color: #c7c7c7; }
.utility-strip a:hover { color: #fff; }
.live-dot {
  display: inline-flex; align-items: center; gap: 7px;
  color: #fff;
}
.live-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 0 0 rgba(192,0,0,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(192,0,0,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(192,0,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(192,0,0,0); }
}

.masthead {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 22px 0 14px;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.02em;
  color: var(--obsidian);
  line-height: 1;
}
.wordmark .pensiero { font-style: italic; }
.masthead .tagline {
  margin-top: 8px;
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .34em;
  font-size: 10.5px;
  color: var(--ink-faint);
}

/* Category nav -------------------------------------------------------------*/
.topnav {
  position: sticky; top: 0; z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 var(--line);
}
.topnav .container {
  display: flex; align-items: stretch; justify-content: center;
  flex-wrap: wrap;
}
.topnav a {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 20px;
  border-left: 1px solid var(--line);
  position: relative;
}
.topnav a:first-child { border-left: none; }
.topnav a:hover { color: var(--blue); }
.topnav a.active { color: var(--blue); }
.topnav a.active::after {
  content: ""; position: absolute; left: 20px; right: 20px; bottom: -1px;
  height: 3px; background: var(--blue);
}

/* ============================ HOMEPAGE GRID =============================== */
.section-divider {
  display: flex; align-items: center; gap: 16px;
  margin: 34px 0 18px;
}
.section-divider h2 {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 13px;
  color: var(--obsidian);
  white-space: nowrap;
}
.section-divider .rule { flex: 1; height: 2px; background: var(--obsidian); }
.section-divider.thin .rule { height: 1px; background: var(--line); }

.hub-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  margin-top: 26px;
}
.lead-col { min-width: 0; }
.rail { min-width: 0; border-left: 1px solid var(--line); padding-left: 28px; }

/* Signature hero -----------------------------------------------------------*/
.hero {
  border-top: 4px solid var(--obsidian);
  padding-top: 18px;
  margin-bottom: 30px;
}
.series-flag {
  display: inline-block;
  background: var(--obsidian); color: #fff;
  font-family: var(--sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; font-size: 10.5px;
  padding: 5px 10px; margin-bottom: 14px;
}
.hero-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 48px);
  letter-spacing: -0.018em;
  color: var(--obsidian);
  margin-bottom: 14px;
}
.hero-title a:hover { color: var(--blue); }
.hero-dek {
  font-family: var(--serif);
  font-size: 19px; line-height: 1.45; color: var(--ink-soft);
  margin-bottom: 14px; max-width: 60ch;
}
.byline {
  font-family: var(--sans);
  font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-faint);
}
.byline .author { color: var(--obsidian); font-weight: 700; }

/* Secondary editorial cards ------------------------------------------------*/
.card-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  border-top: 1px solid var(--line); padding-top: 22px;
}
.card { min-width: 0; }
.cat-badge {
  display: inline-block;
  font-family: var(--sans); font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; font-size: 10.5px;
  color: var(--blue);
  margin-bottom: 8px;
}
.cat-badge.red { color: var(--red); }
.card h3 {
  font-family: var(--serif);
  font-size: 22px; line-height: 1.18; letter-spacing: -0.01em;
  color: var(--obsidian); margin-bottom: 8px;
}
.card h3 a:hover { color: var(--blue); }
.card p {
  font-family: var(--serif); color: var(--ink-soft);
  font-size: 15.5px; line-height: 1.45; margin: 0 0 10px;
}
.card .byline { font-size: 11px; }

/* Rail — Ultime letture -----------------------------------------------------*/
.rail-head {
  display: flex; align-items: center; gap: 8px;
  border-bottom: 2px solid var(--obsidian); padding-bottom: 8px; margin-bottom: 4px;
}
.rail-head h2 {
  font-family: var(--sans); text-transform: uppercase;
  letter-spacing: .12em; font-size: 13px; color: var(--obsidian);
}
.rail-head .live-tag {
  margin-left: auto; color: var(--red); font-weight: 700;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.rail-head .live-tag::before {
  content:""; width:6px; height:6px; border-radius:50%; background:var(--red);
  animation: pulse 1.8s infinite;
}
.stream { list-style: none; margin: 0; padding: 0; }
.stream li { border-bottom: 1px solid var(--line); padding: 13px 0; }
.stream .t {
  font-family: var(--sans); font-size: 11px; color: var(--red);
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  display:block; margin-bottom: 4px;
}
.stream a {
  font-family: var(--serif); font-size: 15.5px; line-height: 1.3;
  color: var(--obsidian); display: block;
}
.stream a:hover { color: var(--blue); }
.stream .meta { font-size: 11px; color: var(--ink-faint); margin-top: 4px; text-transform: uppercase; letter-spacing:.06em;}

/* Rail PDF promo -----------------------------------------------------------*/
.pdf-promo {
  margin-top: 26px; border: 1px solid var(--line-strong);
  background: #fff; padding: 18px;
}
.pdf-promo .kicker { color: var(--red); margin-bottom: 8px; display:block; }
.pdf-promo h3 { font-family: var(--serif); font-size: 19px; margin-bottom: 8px; }
.pdf-promo p { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 14px; }

/* ============================ GENERIC GRID LIST ========================== */
.feed-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.feed-grid .card { border-left: 1px solid var(--line); padding-left: 20px; }
.feed-grid .card:first-child,
.feed-grid .card:nth-child(3n+1) { border-left: none; padding-left: 0; }

/* ============================ BUTTONS / BADGES =========================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 11px 18px; border: 1px solid var(--obsidian);
  background: var(--obsidian); color: #fff; transition: .15s;
}
.btn:hover { background: #000; }
.btn.ghost { background: transparent; color: var(--obsidian); }
.btn.ghost:hover { background: var(--obsidian); color: #fff; }
.btn.blue { background: var(--blue); border-color: var(--blue); }
.btn.blue:hover { background: #00468f; }
.btn.sm { padding: 8px 13px; font-size: 11.5px; }
.btn.red { background: var(--red); border-color: var(--red); }

.pill {
  display:inline-block; font-family: var(--sans); font-size: 10.5px;
  font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  padding: 3px 9px; border: 1px solid var(--line-strong); color: var(--obsidian);
}
.pill.pub { color: #0a7a33; border-color:#0a7a33; }
.pill.draft { color: var(--ink-faint); border-color: var(--ink-faint); }

/* ============================ ARTICLE VIEW =============================== */
.article-wrap { max-width: 760px; margin: 40px auto; }
.article-wrap .cat-badge { font-size: 12px; }
.article-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -0.018em;
  color: var(--obsidian); margin: 10px 0 16px;
}
.article-dek {
  font-family: var(--serif); font-size: 20px; line-height: 1.45;
  color: var(--ink-soft); margin-bottom: 20px;
}
.article-meta {
  display: flex; gap: 16px; align-items: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 12px 0; margin-bottom: 28px;
}
.article-body {
  font-family: var(--serif); font-size: 18px; line-height: 1.62;
  color: var(--ink);
}
.article-body p { margin: 0 0 1.15em; }
.article-body h2, .article-body h3 {
  font-family: var(--serif); margin: 1.4em 0 .5em; letter-spacing: -0.01em;
}
.article-body blockquote {
  margin: 1.4em 0; padding: 6px 0 6px 22px;
  border-left: 3px solid var(--blue);
  font-style: italic; color: var(--obsidian); font-size: 21px;
}
.tag-row { margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line); display:flex; gap:10px; flex-wrap:wrap;}

/* ============================ ARCHIVE / TABLES ========================== */
.page-head { border-bottom: 3px solid var(--obsidian); padding-bottom: 16px; margin: 36px 0 8px; }
.page-head h1 {
  font-family: var(--serif); font-size: clamp(28px,4vw,40px);
  letter-spacing: -0.02em; color: var(--obsidian);
}
.page-head p { color: var(--ink-soft); max-width: 70ch; margin: 10px 0 0; }

.filters { display:flex; gap:8px; flex-wrap:wrap; margin: 22px 0; }
.filters a {
  font-family: var(--sans); font-size: 12px; font-weight:600;
  text-transform: uppercase; letter-spacing:.08em;
  padding: 8px 14px; border: 1px solid var(--line-strong); color: var(--obsidian);
}
.filters a.active, .filters a:hover { background: var(--obsidian); color:#fff; }

.data-table { width: 100%; border-collapse: collapse; margin: 14px 0 40px; }
.data-table thead th {
  font-family: var(--sans); text-transform: uppercase; letter-spacing:.1em;
  font-size: 11px; color: var(--ink-faint); text-align: left;
  border-bottom: 2px solid var(--obsidian); padding: 10px 12px;
}
.data-table tbody td {
  font-size: 14px; padding: 14px 12px; border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tbody tr:hover { background: #fff; }
.data-table .t-title { font-family: var(--serif); font-size: 16px; color: var(--obsidian); }
.data-table .t-id { font-family: var(--sans); font-weight: 700; color: var(--blue); }
.data-table .muted { color: var(--ink-faint); font-size: 12px; text-transform:uppercase; letter-spacing:.06em;}

/* ============================ BOOKS ===================================== */
.books-hero {
  margin: 38px 0 10px;
  padding: 28px 0 24px;
  border-top: 5px solid var(--obsidian);
  border-bottom: 1px solid var(--line);
}

.books-hero h1 {
  max-width: 760px;
  margin: 8px 0 14px;
  color: var(--obsidian);
  font-family: var(--serif);
  font-size: clamp(40px, 5.8vw, 72px);
  letter-spacing: -0.035em;
}

.books-hero p {
  max-width: 78ch;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.5;
}

.books-stats {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.books-stats span {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  color: var(--obsidian);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 48px;
}

.book-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--obsidian);
  transition: border-color .15s ease, box-shadow .18s ease, transform .18s ease;
}

.book-card:hover {
  transform: translateY(-3px);
  border-color: #b8b8b1;
  box-shadow: 0 18px 38px rgba(17,17,17,.07);
}

.book-card a {
  min-height: 100%;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
}

.book-spine {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 12px;
  background: var(--obsidian);
  color: #fff;
}

.book-spine span {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.book-spine strong {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.book-copy {
  min-width: 0;
  padding: 20px 20px 18px;
}

.book-copy h2 {
  margin: 4px 0 8px;
  color: var(--obsidian);
  font-family: var(--serif);
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: -0.018em;
}

.book-subtitle {
  color: var(--obsidian);
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.35;
}

.book-copy p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15.5px;
  line-height: 1.45;
}

.book-copy dl {
  margin: 16px 0 18px;
  display: grid;
  gap: 8px;
}

.book-copy dl div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}

.book-copy dt,
.book-copy dd {
  margin: 0;
  font-family: var(--sans);
  font-size: 11.5px;
  line-height: 1.35;
}

.book-copy dt {
  flex: 0 0 auto;
  color: var(--ink-faint);
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.book-copy dd {
  color: var(--ink);
  text-align: right;
}

/* ============================ ADMIN SUITE =============================== */
.admin-shell { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 34px); }
.admin-side {
  background: var(--obsidian); color: #cfcfcf; padding: 26px 20px;
}
.admin-side .brand { font-family: var(--serif); color:#fff; font-size: 22px; margin-bottom: 4px; }
.admin-side .brand .pensiero { font-style: italic; }
.admin-side .role { font-size: 10.5px; text-transform: uppercase; letter-spacing:.14em; color:#888; margin-bottom: 28px; }
.admin-side nav a {
  display:block; padding: 11px 12px; margin-bottom: 4px;
  font-family: var(--sans); font-size: 13px; font-weight: 600; color:#cfcfcf;
  border-radius: 2px;
}
.admin-side nav a:hover { background:#1e1e1e; color:#fff; }
.admin-side nav a.active { background:#fff; color: var(--obsidian); }
.admin-side .sep { height:1px; background:#2a2a2a; margin: 18px 0; }
.admin-side .logout { color:#e98; }

.admin-main { background: var(--milk); padding: 28px 34px; }
.admin-h {
  display:flex; align-items:flex-end; justify-content:space-between;
  border-bottom: 2px solid var(--obsidian); padding-bottom: 14px; margin-bottom: 24px;
}
.admin-h h1 { font-family: var(--serif); font-size: 28px; letter-spacing:-0.01em; }
.admin-h p { color: var(--ink-faint); font-size: 12.5px; text-transform:uppercase; letter-spacing:.08em; margin: 4px 0 0;}

.stat-row { display:grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.stat {
  background:#fff; border: 1px solid var(--line); padding: 16px 18px;
  border-top: 3px solid var(--obsidian);
}
.stat .n { font-family: var(--serif); font-size: 30px; color: var(--obsidian); }
.stat .l { font-size: 11px; text-transform: uppercase; letter-spacing:.1em; color: var(--ink-faint); }
.stat.blue { border-top-color: var(--blue); }
.stat.red  { border-top-color: var(--red); }

.panel { background:#fff; border:1px solid var(--line); padding: 24px; margin-bottom: 26px; }
.panel > h2 {
  font-family: var(--sans); font-size: 13px; text-transform: uppercase;
  letter-spacing:.12em; color: var(--obsidian); margin-bottom: 18px;
  border-bottom: 1px solid var(--line); padding-bottom: 10px;
}

/* Forms */
.field { margin-bottom: 16px; }
.field label {
  display:block; font-family: var(--sans); font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing:.09em; color: var(--ink-soft);
  margin-bottom: 6px;
}
.field input[type=text],
.field input[type=password],
.field select,
.field textarea {
  width: 100%; font-family: var(--sans); font-size: 14px;
  padding: 11px 12px; border: 1px solid #cfcfcf; background:#fff; color: var(--ink);
}
.field textarea { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; line-height:1.55; resize: vertical; min-height: 280px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,86,179,.12);
}
.field .hint { font-size: 11.5px; color: var(--ink-faint); margin-top: 6px; }
.form-2col { display:grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-actions { display:flex; gap: 12px; margin-top: 8px; align-items:center; }

/* Compiler matrix */
.matrix { width:100%; border-collapse: collapse; }
.matrix thead th {
  font-family: var(--sans); font-size: 11px; text-transform: uppercase;
  letter-spacing:.09em; color: var(--ink-faint); text-align:left;
  border-bottom: 2px solid var(--obsidian); padding: 10px 10px;
}
.matrix tbody td { padding: 10px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
.matrix tbody tr.checked { background: #f3f8ff; }
.matrix .m-title { font-family: var(--serif); font-size: 15px; color: var(--obsidian); }
.matrix input[type=number] { width: 64px; padding: 6px 8px; border:1px solid #cfcfcf; font-family: var(--sans); }
.matrix input[type=checkbox] { width:18px; height:18px; accent-color: var(--blue); }
.matrix select { padding: 6px 8px; border:1px solid #cfcfcf; font-family: var(--sans); font-size: 12.5px;}

.compile-bar {
  position: sticky; bottom: 0; background: var(--obsidian); color:#fff;
  display:flex; align-items:center; gap: 20px; padding: 16px 22px; margin-top: 18px;
}
.compile-bar .count { font-family: var(--serif); font-size: 17px; }
.compile-bar .count b { color: #fff; }
.compile-bar .warn { color: #ffb3b3; font-size: 12.5px; }
.compile-bar .spacer { flex: 1; }

.flash {
  padding: 13px 16px; margin-bottom: 18px; font-size: 14px;
  border-left: 4px solid var(--blue); background: #eef4fb; color:#0a3d75;
}
.flash.error { border-left-color: var(--red); background:#fbeeee; color:#7a0000; }
.flash.ok { border-left-color:#0a7a33; background:#eef9f0; color:#0a5223; }

/* ============================ LOGIN ===================================== */
.login-screen {
  min-height: 100vh; display:flex; align-items:center; justify-content:center;
  background: var(--obsidian);
}
.login-card { background:#fff; width: 380px; max-width: 92vw; padding: 36px; border-top: 5px solid var(--blue); }
.login-card .wordmark { font-size: 30px; text-align:center; }
.login-card .sub { text-align:center; color: var(--ink-faint); font-size: 11px; text-transform: uppercase; letter-spacing:.2em; margin: 6px 0 26px; }

/* ============================ FOOTER + LEGAL ============================ */
.site-footer { background: var(--obsidian); color:#bdbdbd; margin-top: 60px; }
.site-footer .container { padding-top: 40px; padding-bottom: 40px; }
.footer-top { display:flex; justify-content:space-between; gap: 30px; flex-wrap: wrap; border-bottom: 1px solid #2a2a2a; padding-bottom: 24px; margin-bottom: 22px;}
.footer-top .wordmark { color:#fff; font-size: 26px; }
.footer-nav { display:flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 12px; text-transform: uppercase; letter-spacing:.08em; color:#bdbdbd; }
.footer-nav a:hover { color:#fff; }
.legal-notice {
  font-family: var(--sans);
  font-size: 11.5px; line-height: 1.7; color: #9a9a9a;
  text-align: justify; max-width: 100%;
}
.legal-notice .legal-label {
  display:block; color:#cfcfcf; font-weight:700; text-transform: uppercase;
  letter-spacing:.1em; font-size: 10.5px; margin-bottom: 6px;
}
.copyline { margin-top: 18px; font-size: 11px; color:#6f6f6f; text-transform: uppercase; letter-spacing:.08em; }

/* ============================ RESPONSIVE =============================== */
@media (max-width: 980px) {
  .hub-grid { grid-template-columns: 1fr; }
  .rail { border-left: none; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .books-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feed-grid { grid-template-columns: 1fr 1fr; }
  .feed-grid .card { border-left: none; padding-left: 0; }
  .admin-shell { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .form-2col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .card-row, .feed-grid, .books-grid { grid-template-columns: 1fr; }
  .book-card a { grid-template-columns: 46px minmax(0, 1fr); }
  .book-copy { padding: 18px 16px 16px; }
  .book-copy h2 { font-size: 23px; }
  .book-copy dl div { display: block; }
  .book-copy dd { margin-top: 2px; text-align: left; }
  .topnav .container { justify-content: flex-start; overflow-x: auto; }
}

/* ============================ EDITORIAL MOTION =========================== */
:root {
  --motion-fast: 160ms;
  --motion-med: 420ms;
  --motion-slow: 760ms;
  --ease-editorial: cubic-bezier(.2, .8, .2, 1);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(17,17,17,.018) 1px, transparent 1px) 0 0 / 80px 80px,
    radial-gradient(circle at 50% 0, rgba(0,86,179,.045), transparent 32rem);
}

.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
}
.read-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--red));
  transition: width 80ms linear;
}

.utility-strip { animation: stripReveal var(--motion-slow) var(--ease-editorial) both; }
.masthead {
  position: relative;
  overflow: hidden;
  animation: mastheadDrop var(--motion-slow) var(--ease-editorial) 80ms both;
}
.masthead::before,
.masthead::after {
  content: "";
  position: absolute;
  left: 50%;
  width: min(520px, 74vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(17,17,17,.32), transparent);
  transform: translateX(-50%) scaleX(.1);
  opacity: 0;
  animation: ruleDraw 900ms var(--ease-editorial) 220ms both;
}
.masthead::before { top: 12px; }
.masthead::after { bottom: 8px; }
.masthead .container { position: relative; z-index: 1; }
.masthead .wordmark {
  display: inline-block;
  transition: transform var(--motion-med) var(--ease-editorial), letter-spacing var(--motion-med) var(--ease-editorial);
}
.masthead .wordmark:hover {
  transform: translateY(-1px);
  letter-spacing: -0.012em;
}

.topnav {
  transition: box-shadow var(--motion-med) var(--ease-editorial), background var(--motion-fast) ease;
}
.topnav.is-scrolled {
  box-shadow: 0 12px 30px rgba(17,17,17,.08), 0 1px 0 var(--line);
}
.topnav a {
  transition: color var(--motion-fast) ease, background var(--motion-fast) ease;
}
.topnav a:hover { background: #fafafa; }
.topnav a::after {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--motion-med) var(--ease-editorial);
}
.topnav a:hover::after,
.topnav a.active::after { transform: scaleX(1); }

.hub-grid { animation: pageRise var(--motion-slow) var(--ease-editorial) 120ms both; }
.section-divider .rule {
  transform-origin: left center;
  transition: transform 900ms var(--ease-editorial);
}
.section-divider[data-reveal] .rule { transform: scaleX(.16); }
.section-divider.in-view .rule { transform: scaleX(1); }

.hero {
  position: relative;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 32%;
  height: 4px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left center;
  animation: heroRule 900ms var(--ease-editorial) 380ms both;
}
.series-flag {
  transition: transform var(--motion-med) var(--ease-editorial), background var(--motion-fast) ease;
}
.series-flag:hover {
  transform: translateY(-1px);
  background: #000;
}

.hero-title a,
.card h3 a,
.stream a,
.data-table .t-title a {
  background-image: linear-gradient(var(--blue), var(--blue));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: color var(--motion-fast) ease, background-size var(--motion-med) var(--ease-editorial);
}
.hero-title a:hover,
.card h3 a:hover,
.stream a:hover,
.data-table .t-title a:hover {
  background-size: 100% 2px;
}

.card {
  position: relative;
  transition: transform var(--motion-med) var(--ease-editorial), opacity var(--motion-med) ease;
}
.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--blue);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform var(--motion-med) var(--ease-editorial);
}
.card:hover {
  transform: translateY(-3px);
}
.card:hover::before {
  transform: scaleY(1);
}
.feed-grid .card::before { left: -20px; }
.feed-grid .card:first-child::before,
.feed-grid .card:nth-child(3n+1)::before { left: 0; }

.stream li {
  transform: translateX(0);
  transition: transform var(--motion-med) var(--ease-editorial), border-color var(--motion-fast) ease;
}
.stream li:hover {
  transform: translateX(5px);
  border-color: rgba(0,86,179,.24);
}

.pdf-promo {
  position: relative;
  overflow: hidden;
  transition: transform var(--motion-med) var(--ease-editorial), box-shadow var(--motion-med) var(--ease-editorial);
}
.pdf-promo::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(var(--red), var(--blue));
}
.pdf-promo:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 48px rgba(17,17,17,.08);
}

.btn {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0 35%, rgba(255,255,255,.22) 50%, transparent 65% 100%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease-editorial);
}
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(1px); }

.article-wrap { animation: articleEnter var(--motion-slow) var(--ease-editorial) both; }
.article-body > p:first-of-type::first-letter {
  float: left;
  font-size: 4.2em;
  line-height: .82;
  padding: .08em .12em 0 0;
  color: var(--obsidian);
  font-weight: 700;
}
.article-body h2 { position: relative; }
.article-body h2::before {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: 0 0 10px;
  background: var(--blue);
  transform: scaleX(.45);
  transform-origin: left center;
  transition: transform var(--motion-med) var(--ease-editorial);
}
.article-body h2:hover::before { transform: scaleX(1); }
.article-body a {
  color: var(--blue);
  background-image: linear-gradient(rgba(0,86,179,.18), rgba(0,86,179,.18));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% .28em;
  transition: background-size var(--motion-med) var(--ease-editorial), color var(--motion-fast) ease;
}
.article-body a:hover {
  color: #003f85;
  background-size: 100% .7em;
}

.data-table tbody tr {
  transition: background var(--motion-fast) ease, transform var(--motion-med) var(--ease-editorial);
}
.data-table tbody tr:hover { transform: translateX(3px); }
.site-footer {
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity var(--motion-slow) var(--ease-editorial),
    transform var(--motion-slow) var(--ease-editorial);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes stripReveal {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mastheadDrop {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pageRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes articleEnter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes ruleDraw {
  from { opacity: 0; transform: translateX(-50%) scaleX(.1); }
  to { opacity: 1; transform: translateX(-50%) scaleX(1); }
}
@keyframes heroRule {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .read-progress span { transition: none; }
}

/* ============================ NEWSPAPER FRONT PAGE ======================= */
:root {
  --paper: #fffefa;
  --paper-warm: #fbfaf6;
  --editorial-red: #b40000;
  --editorial-red-dark: #8f0000;
  --editorial-rule: #d8d8d3;
}

body {
  background: var(--paper);
  padding-bottom: 58px;
}

body::before {
  background:
    linear-gradient(90deg, rgba(17,17,17,.012) 1px, transparent 1px) 0 0 / 96px 96px,
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(251,250,246,.86));
}

.breaking-strip {
  background: #050505;
  color: #f5f1eb;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
  animation: stripReveal var(--motion-slow) var(--ease-editorial) both;
}

.breaking-strip .container {
  max-width: 100%;
  height: 36px;
  padding: 0 14px 0 0;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.breaking-label {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--editorial-red);
  color: #fff;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 100%, 0 100%);
}

.breaking-headline {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1;
  color: #eee;
}

.breaking-headline span {
  color: #bcbcbc;
  padding-left: 10px;
}

.breaking-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.breaking-links a {
  color: #f0f0f0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.breaking-links a:hover,
.breaking-headline:hover {
  color: #fff;
}

.breaking-links .social-link {
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0;
}

.masthead {
  background: var(--paper);
  padding: 30px 0 22px;
  border-bottom: none;
}

.masthead .container {
  max-width: 1580px;
}

.masthead::before,
.masthead::after {
  display: none;
}

.masthead-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 220px;
  align-items: center;
  gap: 22px;
}

.edition-card {
  text-align: left;
  color: var(--obsidian);
  font-family: var(--serif);
  text-transform: uppercase;
  letter-spacing: .04em;
  line-height: 1.15;
}

.edition-card span,
.edition-card strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
}

.edition-card::after {
  content: "";
  display: block;
  width: 58px;
  height: 3px;
  margin-top: 18px;
  background: var(--editorial-red);
}

.brand-stack {
  text-align: center;
  min-width: 0;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(14px, 2vw, 26px);
  width: 100%;
  color: #050505;
  font-family: var(--serif);
  font-size: clamp(44px, 5.1vw, 72px);
  font-weight: 700;
  line-height: .9;
  letter-spacing: .13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark .pensiero {
  font-style: normal;
}

.brand-seal {
  flex: 0 0 auto;
  width: clamp(32px, 3.9vw, 48px);
  height: clamp(58px, 6.9vw, 86px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, #d41414, var(--editorial-red-dark));
  clip-path: polygon(50% 0, 100% 26%, 72% 100%, 28% 100%, 0 26%);
  font-family: var(--serif);
  font-size: clamp(12px, 1.1vw, 16px);
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(180,0,0,.14);
}

.masthead .tagline {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: #303030;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: .36em;
  line-height: 1.2;
}

.masthead .tagline span {
  display: block;
  height: 1px;
  background: var(--editorial-rule);
}

.masthead-quote {
  margin: 0;
  text-align: left;
  font-family: var(--serif);
  color: #242424;
}

.masthead-quote p {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  line-height: 1.35;
}

.masthead-quote cite {
  display: block;
  margin-top: 10px;
  color: var(--editorial-red);
  font-size: 13px;
  font-style: normal;
}

.masthead-quote cite::before {
  content: "— ";
  color: #777;
}

.topnav {
  position: sticky;
  top: 0;
  background: rgba(255,254,250,.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--editorial-rule);
  border-bottom: 1px solid var(--editorial-rule);
}

.topnav .container {
  max-width: 1580px;
  min-height: 54px;
  gap: clamp(14px, 3vw, 36px);
  align-items: center;
  justify-content: center;
}

.topnav a {
  border-left: none;
  padding: 17px 0 15px;
  color: #171717;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
}

.topnav a:hover,
.topnav a.active {
  color: #111;
  background: transparent;
}

.topnav a.active::after,
.topnav a:hover::after {
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--editorial-red);
}

.nav-search {
  width: 34px;
  height: 34px;
  overflow: hidden;
  white-space: nowrap;
  text-indent: 999px;
  border: 1px solid transparent;
}

.nav-search::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 14px;
  height: 14px;
  border: 2px solid #333;
  border-radius: 999px;
}

.nav-search::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  width: 10px;
  height: 2px;
  background: #333;
  transform: rotate(45deg) scaleX(1);
}

.front-page {
  max-width: 1580px;
}

.front-hero {
  display: grid;
  grid-template-columns: minmax(520px, 1.18fr) minmax(350px, .86fr) minmax(260px, .56fr);
  gap: 34px;
  align-items: stretch;
  padding: 28px 0 18px;
  animation: pageRise var(--motion-slow) var(--ease-editorial) 120ms both;
}

.front-lead {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.front-kicker {
  color: var(--editorial-red);
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.front-lead h1 {
  max-width: 12.8em;
  font-family: var(--serif);
  font-size: clamp(40px, 3.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  color: #020202;
  text-wrap: balance;
}

.front-lead h1 a {
  background-image: linear-gradient(var(--editorial-red), var(--editorial-red));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 3px;
  transition: background-size var(--motion-med) var(--ease-editorial);
}

.front-lead h1 a:hover {
  background-size: 100% 3px;
}

.front-lead p {
  max-width: 38rem;
  margin: 22px 0 32px;
  color: #565656;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.42;
}

.read-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 9px;
  border-bottom: 3px solid var(--editorial-red);
  color: #111;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.read-link span {
  font-family: var(--sans);
  font-size: 25px;
  line-height: 1;
  transition: transform var(--motion-med) var(--ease-editorial);
}

.read-link:hover span {
  transform: translateX(7px);
}

.front-art {
  position: relative;
  min-height: 470px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #f5f3ed;
  isolation: isolate;
}

.front-art img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .88;
  transform: scale(1.015);
  transition: transform 900ms var(--ease-editorial);
}

.front-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 50% 48%, transparent 0 38%, rgba(255,254,250,.25) 58%, rgba(255,254,250,.72));
}

.front-art:hover img {
  transform: scale(1.045);
}

.monogram {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  font-family: var(--serif);
  font-size: clamp(116px, 11vw, 178px);
  line-height: .78;
  letter-spacing: -.18em;
  text-shadow: 0 12px 22px rgba(0,0,0,.08);
}

.monogram b {
  color: #020202;
  font-weight: 700;
}

.monogram i {
  color: var(--editorial-red);
  font-style: normal;
  font-weight: 700;
  transform: translateX(-.02em);
}

.art-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  text-align: center;
  color: #2f2f2f;
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.latest-rail {
  min-width: 0;
  border-left: 1px solid var(--editorial-rule);
  padding-left: 28px;
}

.latest-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.latest-head h2,
.section-title h2 {
  color: #151515;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.latest-head span,
.section-title span {
  flex: 1;
  height: 1px;
  background: var(--editorial-rule);
}

.latest-rail .stream li {
  position: relative;
  padding: 10px 26px 10px 0;
}

.latest-rail .stream li::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 10px;
  width: 14px;
  height: 2px;
  background: #111;
}

.latest-rail .stream a {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.22;
}

.latest-rail .stream .meta {
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--serif);
  font-size: 12px;
}

.see-all {
  float: right;
  margin-top: 14px;
  color: #333;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.featured-band {
  margin-top: 28px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-title h2 {
  position: relative;
  padding-bottom: 10px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--editorial-red);
}

.featured-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.feature-card {
  min-width: 0;
  border: 1px solid var(--editorial-rule);
  background: rgba(255,255,255,.62);
  transition: transform var(--motion-med) var(--ease-editorial), box-shadow var(--motion-med) var(--ease-editorial), border-color var(--motion-fast) ease;
}

.feature-card a {
  position: relative;
  min-height: 144px;
  display: grid;
  grid-template-columns: 48px 1fr 18px;
  grid-template-rows: auto 1fr auto;
  gap: 5px 14px;
  padding: 22px 18px;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #b8b8b1;
  box-shadow: 0 18px 38px rgba(17,17,17,.07);
}

.feature-icon {
  grid-row: 1 / 4;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #555;
  color: #555;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.feature-card .cat-badge {
  grid-column: 2 / 4;
  grid-row: 1;
  margin: 0;
  font-family: var(--serif);
  font-size: 11px;
}

.feature-card h3 {
  grid-column: 2 / 4;
  grid-row: 2;
  margin: 0;
  font-size: 17px;
  line-height: 1.24;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feature-card small {
  grid-column: 2;
  grid-row: 3;
  color: #626262;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.feature-card b {
  grid-column: 3;
  grid-row: 3;
  color: var(--editorial-red);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.section-divider.thin {
  margin: 42px 0 22px;
}

.section-divider.thin h2 {
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: .46em;
}

.section-divider.thin::before,
.section-divider.thin::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--editorial-rule);
}

.section-divider.thin .rule {
  display: none;
}

.issue-strip {
  margin: 36px 0 0;
  padding: 18px 20px;
  border-top: 1px solid var(--editorial-rule);
  border-bottom: 1px solid var(--editorial-rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255,255,255,.46);
}

.issue-strip h2 {
  font-family: var(--serif);
  font-size: 22px;
}

.issue-strip p {
  margin: 4px 0 0;
  color: #5b5b5b;
}

.reading-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  height: 52px;
  display: grid;
  grid-template-columns: auto auto minmax(120px, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 0 max(24px, calc((100vw - var(--maxw)) / 2));
  background: rgba(255,254,250,.96);
  border-top: 1px solid var(--editorial-rule);
  box-shadow: 0 -10px 30px rgba(17,17,17,.05);
  backdrop-filter: blur(12px);
}

.reading-dock span,
.reading-dock strong,
.reading-dock b {
  color: #2b2b2b;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reading-dock strong {
  color: var(--editorial-red);
}

.reading-dock b {
  font-size: 22px;
  line-height: 1;
  text-transform: none;
}

.dock-progress {
  height: 4px;
  overflow: hidden;
  background: #d7d7d2;
}

.dock-progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: var(--editorial-red);
  transition: width 80ms linear;
}

@media (max-width: 1120px) {
  .breaking-links {
    gap: 14px;
  }

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

  .masthead-quote {
    display: none;
  }

  .front-hero {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
  }

  .latest-rail {
    grid-column: 1 / -1;
    border-left: none;
    border-top: 1px solid var(--editorial-rule);
    padding: 22px 0 0;
  }

  .latest-rail .stream {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 22px;
  }

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

@media (max-width: 780px) {
  html,
  body {
    overflow-x: hidden;
  }

  body {
    padding-bottom: 0;
  }

  .breaking-strip .container {
    grid-template-columns: 112px minmax(0, 1fr);
    padding-right: 10px;
    gap: 10px;
  }

  .breaking-links {
    display: none;
  }

  .breaking-headline span {
    display: none;
  }

  .masthead {
    padding: 22px 0 16px;
  }

  .masthead-grid {
    display: block;
  }

  .edition-card {
    display: none;
  }

  .wordmark {
    gap: 12px;
    font-size: clamp(31px, 10.5vw, 48px);
    letter-spacing: .12em;
  }

  .brand-seal {
    width: 28px;
    height: 50px;
    font-size: 10px;
  }

  .masthead .tagline {
    margin-top: 12px;
    gap: 9px;
    font-size: 10px;
    letter-spacing: .18em;
  }

  .topnav .container {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    gap: 26px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topnav .container::-webkit-scrollbar {
    display: none;
  }

  .topnav a {
    flex: 0 0 auto;
    font-size: 13px;
  }

  .front-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 24px;
  }

  .front-lead h1 {
    max-width: 100%;
    font-size: clamp(36px, 12vw, 48px);
  }

  .front-art {
    min-height: 270px;
  }

  .latest-rail .stream,
  .featured-row {
    grid-template-columns: 1fr;
  }

  .feature-card a {
    min-height: 120px;
  }

  .section-divider.thin h2 {
    letter-spacing: .16em;
    text-align: center;
  }

  .issue-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .reading-dock {
    display: none;
  }
}

/* ============================ POLISH PASS ================================ */
.front-page {
  padding-bottom: 0;
}

.front-hero {
  align-items: center;
  min-height: 0;
  padding-bottom: 10px;
}

.front-lead {
  justify-content: center;
}

.front-lead h1 {
  max-width: 12.6em;
}

.front-art {
  min-height: 430px;
  box-shadow: 0 1px 0 rgba(17,17,17,.04);
}

.latest-rail {
  align-self: center;
}

.featured-band {
  margin-top: 18px;
}

.featured-row {
  gap: 16px;
}

.feature-card {
  background: rgba(255,255,255,.78);
}

.feature-card a {
  min-height: 150px;
  grid-template-columns: 42px minmax(0, 1fr) 22px;
  grid-template-rows: auto 1fr auto;
  padding: 20px 18px 18px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  font-size: 16px;
}

.feature-card h3 {
  max-width: 100%;
  font-size: 16px;
  line-height: 1.22;
  -webkit-line-clamp: 3;
}

.feature-card b {
  align-self: end;
  justify-self: end;
}

@media (min-width: 781px) {
  body:has(.front-page) {
    padding-bottom: 0;
  }
}

/* ============================ CLASSIC EDITORIAL RESTORE ================== */
body {
  background: var(--milk);
}

body:has(.classic-hub),
body:has(.archive-hero) {
  padding-bottom: 0;
}

.masthead-classic {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 34px 0 24px;
  text-align: center;
}

.masthead-classic .container {
  max-width: var(--maxw);
}

.masthead-classic .wordmark {
  display: inline-block;
  width: auto;
  color: var(--obsidian);
  font-family: var(--serif);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: none;
  white-space: normal;
}

.masthead-classic .wordmark .pensiero {
  font-style: italic;
}

.masthead-classic .tagline {
  margin-top: 12px;
  display: block;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: .34em;
  line-height: 1.3;
  text-transform: uppercase;
}

.edition-line {
  margin-top: 16px;
  display: inline-flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.edition-line span + span::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--red);
  vertical-align: 1px;
}

.topnav {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.96);
  border-top: 0;
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 var(--line);
}

.topnav .container {
  max-width: var(--maxw);
  min-height: 56px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.topnav a {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  border-left: 1px solid var(--line);
  padding: 0 22px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.topnav a:first-child {
  border-left: none;
}

.topnav a:hover,
.topnav a.active {
  color: var(--blue);
  background: #fbfbfb;
}

.topnav a.active::after,
.topnav a:hover::after {
  left: 22px;
  right: 22px;
  bottom: -1px;
  height: 3px;
  background: var(--blue);
}

.classic-hub {
  grid-template-columns: minmax(0, 2fr) minmax(300px, .95fr);
  gap: 36px;
  margin-top: 34px;
}

.classic-hero {
  border-top: 5px solid var(--obsidian);
  padding-top: 24px;
  margin-bottom: 34px;
}

.classic-hero::before {
  background: var(--blue);
}

.classic-hero .series-flag {
  background: var(--obsidian);
  color: #fff;
  margin-bottom: 22px;
}

.classic-hero .hero-title {
  font-size: clamp(40px, 5.7vw, 76px);
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.classic-hero .hero-dek {
  max-width: 68ch;
  margin-top: 20px;
  color: #3f3f3f;
  font-size: 21px;
  line-height: 1.48;
}

.classic-rail {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.classic-rail .rail-head {
  border-bottom: 3px solid var(--obsidian);
}

.classic-rail .rail-head h2 {
  font-size: 14px;
  letter-spacing: .16em;
}

.classic-rail .stream li {
  padding: 18px 0;
}

.classic-rail .stream a {
  font-size: 18px;
}

.rail-pdf-callout {
  margin-top: 22px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--red);
}

.rail-pdf-callout .kicker {
  color: var(--red);
}

.rail-pdf-callout h3 {
  margin: 7px 0 10px;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.18;
}

.rail-pdf-callout p {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.42;
}

.classic-secondary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
  padding-top: 28px;
}

.classic-secondary .card h3 {
  font-size: 28px;
}

.pdf-feature,
.pdf-vault {
  margin: 38px 0 34px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-top: 5px solid var(--red);
  box-shadow: 0 16px 40px rgba(17,17,17,.05);
}

.pdf-feature h2,
.pdf-vault h2 {
  margin: 4px 0 10px;
  color: var(--obsidian);
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -0.025em;
}

.pdf-feature p,
.pdf-vault p {
  max-width: 72ch;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
}

.pdf-feature-panel {
  min-height: 168px;
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: start;
  padding: 20px;
  background:
    linear-gradient(90deg, rgba(17,17,17,.04) 1px, transparent 1px) 0 0 / 16px 16px,
    #f8f8f6;
  border: 1px solid var(--line);
}

.pdf-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 42px;
  background: var(--red);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
}

.pdf-feature-panel strong {
  color: var(--obsidian);
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.1;
}

.pdf-feature-panel span:not(.pdf-mark) {
  color: var(--ink-faint);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pdf-vault {
  grid-template-columns: minmax(0, 1fr) auto;
}

.archive-hero {
  margin-top: 36px;
}

.site-footer .wordmark {
  display: inline-block;
  width: auto;
  color: #fff;
  font-size: 26px;
  letter-spacing: -0.02em;
  text-transform: none;
}

@media (max-width: 980px) {
  .classic-hub,
  .pdf-feature,
  .pdf-vault {
    grid-template-columns: 1fr;
  }

  .classic-rail {
    border-left: none;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 22px;
  }

  .classic-hero .hero-title {
    font-size: clamp(36px, 8vw, 56px);
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  main {
    overflow-x: clip;
  }

  .masthead-classic {
    padding: 26px 0 18px;
  }

  .masthead-classic .wordmark {
    font-size: clamp(36px, 12.4vw, 50px);
    line-height: .96;
    letter-spacing: -0.035em;
  }

  .masthead-classic .tagline {
    max-width: 28em;
    margin-left: auto;
    margin-right: auto;
    font-size: 10px;
    letter-spacing: .12em;
    line-height: 1.45;
  }

  .edition-line {
    margin-top: 12px;
    flex-direction: column;
    gap: 6px;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: .12em;
  }

  .topnav {
    overflow: hidden;
  }

  .topnav::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.98));
  }

  .topnav .container {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 16px;
    scroll-padding: 16px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .topnav .container::-webkit-scrollbar {
    display: none;
  }

  .topnav a {
    flex: 0 0 auto;
    min-height: 50px;
    padding: 0 16px;
    font-size: 12px;
    letter-spacing: .11em;
  }

  .topnav a.active::after,
  .topnav a:hover::after {
    left: 16px;
    right: 16px;
  }

  .classic-hub {
    margin-top: 28px;
  }

  .classic-hero {
    padding-top: 20px;
    margin-bottom: 30px;
    border-top-width: 4px;
  }

  .classic-hero .series-flag,
  .article-wrap .series-flag {
    display: block;
    width: 100%;
    padding: 8px 10px;
    font-size: 10px;
    line-height: 1.35;
    text-align: left;
  }

  .classic-hero .hero-title {
    font-size: clamp(34px, 10.8vw, 43px);
    line-height: 1.05;
    letter-spacing: -0.03em;
  }

  .classic-hero .hero-dek {
    margin-top: 16px;
    font-size: 18px;
    line-height: 1.48;
  }

  .byline {
    line-height: 1.45;
  }

  .classic-secondary {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .classic-secondary .card h3,
  .feed-grid .card h3 {
    font-size: 24px;
    line-height: 1.18;
  }

  .article-wrap {
    max-width: 100%;
    margin: 32px auto;
  }

  .article-title {
    font-size: clamp(34px, 10.6vw, 42px);
    line-height: 1.08;
    letter-spacing: -0.028em;
  }

  .article-dek {
    font-size: 18px;
    line-height: 1.48;
  }

  .article-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding: 12px 0;
  }

  .article-body {
    font-size: 18px;
    line-height: 1.68;
  }

  .article-body > p:first-of-type::first-letter {
    font-size: 3.3em;
    line-height: .86;
    padding-right: .1em;
  }

  .article-body blockquote {
    padding-left: 16px;
    font-size: 19px;
    line-height: 1.5;
  }

  .page-head {
    margin-top: 30px;
  }

  .page-head h1 {
    font-size: clamp(31px, 10vw, 39px);
    line-height: 1.08;
  }

  .page-head p,
  .pdf-feature p,
  .pdf-vault p {
    font-size: 17px;
    line-height: 1.5;
  }

  .pdf-feature,
  .pdf-vault {
    margin: 30px 0;
    padding: 22px 18px;
    gap: 20px;
  }

  .pdf-feature h2,
  .pdf-vault h2 {
    font-size: clamp(28px, 9vw, 36px);
    line-height: 1.08;
  }

  .pdf-feature-panel {
    width: 100%;
    min-height: 0;
    padding: 18px;
  }

  .section-divider {
    gap: 12px;
    margin: 30px 0 16px;
  }

  .section-divider h2 {
    min-width: 0;
    white-space: normal;
    line-height: 1.35;
  }

  .data-table {
    display: block;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 14px 0 34px;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tbody tr {
    margin: 0 0 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--obsidian);
    box-shadow: 0 10px 24px rgba(17,17,17,.04);
  }

  .data-table tbody tr:hover {
    transform: none;
  }

  .data-table tbody td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    text-align: right;
    overflow-wrap: anywhere;
  }

  .data-table tbody td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .data-table tbody td::before {
    content: attr(data-label);
    flex: 0 0 34%;
    color: var(--ink-faint);
    font-family: var(--sans);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .1em;
    line-height: 1.3;
    text-align: left;
    text-transform: uppercase;
  }

  .data-table .t-title {
    display: block;
    font-size: 18px;
    line-height: 1.22;
    text-align: left;
  }

  .data-table .t-title::before {
    display: block;
    margin-bottom: 5px;
  }

  .data-table tbody td[data-label="Focus"],
  .data-table tbody td[data-label="Tag"] {
    display: block;
    text-align: left;
  }

  .data-table tbody td[data-label="Focus"]::before,
  .data-table tbody td[data-label="Tag"]::before {
    display: block;
    margin-bottom: 6px;
  }

  .data-table .pill {
    max-width: 100%;
    margin: 2px 4px 2px 0;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  .data-table .btn {
    margin-left: auto;
  }

  .filters {
    gap: 8px;
  }

  .filters a {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .site-footer .container {
    padding-top: 32px;
    padding-bottom: 34px;
  }

  .footer-top {
    gap: 18px;
  }

  .footer-nav {
    gap: 10px 14px;
  }

  .footer-nav a {
    font-size: 11px;
    line-height: 1.35;
  }

  .legal-notice {
    font-size: 12px;
    line-height: 1.58;
  }
}

@media (max-width: 380px) {
  :root {
    --gutter: 18px;
  }

  .masthead-classic .wordmark {
    font-size: clamp(34px, 12vw, 45px);
  }

  .classic-hero .hero-title,
  .article-title {
    font-size: clamp(32px, 10.4vw, 39px);
  }

  .topnav a {
    padding: 0 14px;
  }

  .data-table tbody td {
    gap: 12px;
  }

  .data-table tbody td::before {
    flex-basis: 32%;
  }
}
