:root {
  --ink: #141210;
  --muted: #5a544a;
  --paper: #f7f3eb;
  --cream: #efe6d4;
  --rule: #d4ccbb;
  --crimson: #9f1c1c;
  --crimson-dark: #731414;
  --nav: #161412;
  --card: #fffcf6;
  --gold: #b0893a;
  --serif: "Liberation Serif", "DejaVu Serif", "Times New Roman", Times, serif;
  --sans: Inter, "Liberation Sans", "Noto Sans", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--crimson); }
button, input { font-family: inherit; }

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

/* Top bar */
.topbar {
  background: var(--nav);
  color: #ece6d8;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 36px;
  gap: 16px;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.topbar .dot { opacity: 0.4; }
.topbar a { color: #ece6d8; }
.topbar a:hover { color: #fff; }
.live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #e23b3b;
  box-shadow: 0 0 0 0 rgba(226, 59, 59, 0.6);
  animation: pulse 1.6s infinite;
  display: inline-block;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 6px rgba(226, 59, 59, 0); }
}

/* Masthead */
.masthead {
  background:
    linear-gradient(180deg, #f4ecda 0%, #efe6d4 48%, #eadfcb 100%);
  border-bottom: 3px solid var(--ink);
  padding: 18px 0 14px;
}
.masthead .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
.edition {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  line-height: 1.5;
}
.edition strong { display: block; color: var(--ink); letter-spacing: 0.12em; }
.brand {
  text-align: center;
  color: var(--ink);
}
.brand .mark {
  display: block;
  font-family: var(--serif);
  font-size: clamp(42px, 7vw, 78px);
  letter-spacing: 0.18em;
  line-height: 0.9;
  font-weight: 700;
}
.brand .mark span { color: var(--crimson); }
.brand .tag {
  display: block;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
}
.mast-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.btn {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-solid {
  background: var(--crimson);
  border-color: var(--crimson);
  color: #fff;
}
.btn-solid:hover { background: var(--crimson-dark); color: #fff; }

/* Nav */
.nav {
  background: var(--nav);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.nav a {
  display: block;
  color: #f3ecde;
  padding: 13px 14px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a.active {
  color: #fff;
  border-bottom-color: var(--crimson);
}
.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 12px 0;
  cursor: pointer;
}

/* Ticker */
.ticker {
  background: var(--crimson);
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--crimson-dark);
}
.ticker-inner {
  display: flex;
  align-items: center;
  min-height: 38px;
}
.ticker-label {
  flex: 0 0 auto;
  background: var(--crimson-dark);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 38px;
  display: flex;
  align-items: center;
  font-weight: 700;
}
.ticker-track-wrap { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-size: 14px;
  padding-left: 16px;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span::before {
  content: "●";
  margin-right: 10px;
  font-size: 8px;
  vertical-align: middle;
  opacity: 0.7;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Lead */
.lead-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 28px;
  padding: 28px 0 10px;
  border-bottom: 1px solid var(--rule);
}
.kicker {
  color: var(--crimson);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.lead h1 {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  font-weight: 700;
  margin: 0 0 12px;
}
.lede {
  font-size: 18px;
  color: #2b2722;
  margin: 0 0 14px;
}
.meta {
  color: var(--muted);
  font-size: 13px;
}
.meta a { text-decoration: underline; text-underline-offset: 2px; }
.photo {
  position: relative;
  background: #2a241c;
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.caption {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}
.secondary { display: flex; flex-direction: column; gap: 0; }
.secondary article {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.secondary article:first-child { padding-top: 0; }
.secondary h2 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  margin: 0 0 6px;
}
.secondary p { margin: 0; color: var(--muted); font-size: 14px; }
.secondary .thumb { aspect-ratio: 4/3; overflow: hidden; background: #2a241c; }
.secondary .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Bands */
.band {
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
}
.band-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 18px;
  padding-bottom: 6px;
}
.band-head h2 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 0;
}
.band-head a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--crimson);
}
.cards-4, .cards-3 {
  display: grid;
  gap: 22px;
}
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card h3 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.22;
  margin: 10px 0 6px;
}
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.card .photo { margin-bottom: 4px; }

/* Layout with sidebar */
.with-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  padding: 28px 0 40px;
}
.cat-block { margin-bottom: 32px; }
.cat-block h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--crimson);
  display: inline-block;
}
.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.story-row article h3 {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  margin: 8px 0 6px;
}
.list-stories { list-style: none; margin: 0; padding: 0; }
.list-stories li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.3;
}
.list-stories time {
  display: block;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
}

.sidebar { display: flex; flex-direction: column; gap: 24px; }
.box {
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 16px 16px 8px;
}
.box h2 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ink);
}
.rank { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.rank li {
  counter-increment: n;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.35;
}
.rank li::before {
  content: counter(n);
  font-family: var(--serif);
  font-size: 22px;
  color: var(--crimson);
  line-height: 1;
}
.comment {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.comment q { font-family: var(--serif); font-size: 16px; }
.comment .who { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.weather {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 16px;
}
.weather .deg {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1;
}
.ad {
  background:
    repeating-linear-gradient(-45deg, #efe8d8, #efe8d8 8px, #eadfcb 8px, #eadfcb 16px);
  border: 1px dashed #b9b09a;
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Article */
.article-hero { padding: 28px 0 8px; max-width: 760px; }
.article-hero h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  margin: 0 0 14px;
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 40px;
  padding-bottom: 48px;
}
.prose {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.7;
  color: #1d1a16;
}
.prose p { margin: 0 0 18px; }
.prose p:first-of-type::first-letter {
  float: left;
  font-size: 68px;
  line-height: 0.78;
  padding: 8px 10px 0 0;
  font-weight: 700;
  color: var(--crimson);
}
.pull {
  border-left: 3px solid var(--crimson);
  margin: 24px 0;
  padding: 4px 0 4px 18px;
  font-size: 26px;
  line-height: 1.25;
  color: var(--ink);
}
.breadcrumbs {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.breadcrumbs a { color: var(--crimson); }

/* Section page */
.section-lead {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  padding: 24px 0 8px;
}

/* Footer */
.footer {
  background: var(--nav);
  color: #ddd4c4;
  padding: 36px 0 20px;
  margin-top: 12px;
}
.footer a { color: #ddd4c4; }
.footer a:hover { color: #fff; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #3a342c;
}
.footer .mark {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: 0.16em;
  color: #fff;
}
.footer p { font-size: 13px; color: #b6ad9d; }
.footer h3 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 10px;
}
.footer ul { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.footer li { margin: 6px 0; }
.imprint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #9c9486;
  padding-top: 16px;
}

/* Overlays */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 12, 8, 0.62);
  display: none;
  place-items: start center;
  padding: 10vh 16px;
  z-index: 40;
}
.overlay.open { display: grid; }
.panel {
  background: var(--card);
  width: min(560px, 100%);
  padding: 22px;
  border: 1px solid var(--ink);
}
.panel h2 { font-family: var(--serif); margin: 0 0 12px; }
.panel input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  background: #fff;
  font-size: 16px;
}
.search-hits { list-style: none; margin: 14px 0 0; padding: 0; }
.search-hits li { padding: 8px 0; border-bottom: 1px solid var(--rule); }

@media (max-width: 980px) {
  .masthead .wrap, .lead-grid, .with-side, .article-layout, .section-lead, .foot-grid {
    grid-template-columns: 1fr;
  }
  .cards-4, .cards-3, .story-row { grid-template-columns: 1fr 1fr; }
  .edition, .mast-actions { display: none; }
  .menu-toggle { display: block; }
  .nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    background: var(--nav);
  }
  .nav.open ul { display: flex; }
  .nav { flex-wrap: wrap; }
  .nav .wrap { flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .cards-4, .cards-3, .story-row, .secondary article {
    grid-template-columns: 1fr;
  }
  .lead h1 { font-size: 28px; }
}
