:root {
  --bg: #f2ecdf;
  --bg-strong: #e7dcc7;
  --paper: #fffdf8;
  --paper-soft: rgba(255, 251, 244, 0.88);
  --text: #1f1915;
  --muted: #63564c;
  --line: rgba(45, 29, 18, 0.12);
  --accent: #8f1d22;
  --accent-dark: #6b1116;
  --accent-soft: #f5dfd5;
  --shadow: 0 22px 60px rgba(58, 37, 24, 0.12);
  --shadow-soft: 0 12px 26px rgba(58, 37, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(143, 29, 34, 0.12), transparent 24%),
    linear-gradient(180deg, #efe4d1 0%, #f4eee4 40%, #ece3d5 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-wrap {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 18px 16px 48px;
}

.site-header,
.hero-panel,
.side-panel,
.search-panel,
.section-block,
.news-card,
.editorial-note,
.newsletter-panel,
.site-footer,
.article-body,
.article-shell .site-header {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.site-header,
.hero-panel,
.side-panel,
.search-panel,
.section-block,
.news-card,
.editorial-note,
.newsletter-panel,
.site-footer,
.article-body {
  background: var(--paper-soft);
  backdrop-filter: blur(8px);
}

.site-header {
  border-radius: 28px;
  overflow: hidden;
}

.utility-bar,
.brand-bar,
.main-nav,
.site-footer {
  padding-left: 18px;
  padding-right: 18px;
}

.utility-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  background: rgba(255, 255, 255, 0.24);
  border-bottom: 1px solid var(--line);
}

.utility-copy,
.utility-link,
.brand-summary,
.search-copy p,
.news-card p,
.section-block p,
.editorial-note p,
.newsletter-panel p,
.footer-copy,
.article-meta,
.article-lead,
.article-body p {
  font-family: Arial, Helvetica, sans-serif;
}

.utility-copy,
.utility-link,
.kicker,
.section-label,
.card-category,
.footer-brand,
.status-dot,
.main-nav a,
.search-results {
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.utility-copy,
.utility-link {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.brand-bar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 22px;
  padding-bottom: 20px;
}

.kicker,
.section-label,
.card-category,
.footer-brand {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
}

.brand-bar h1,
.hero-panel h2,
.search-copy h2,
.editorial-note h2,
.newsletter-panel h2,
.article-header h1,
.news-card h3,
.section-block h3 {
  margin: 0;
  line-height: 1.02;
}

.brand-bar h1 {
  font-size: clamp(2.3rem, 10vw, 5rem);
}

.brand-summary {
  max-width: 42rem;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 1rem;
}

.live-badge,
.button-primary,
.button-secondary,
.card-link,
.main-nav a,
.editorial-note a,
.section-header a,
.back-link {
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.live-badge,
.button-primary,
.card-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff7f3;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  color: #fffaf6;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}

.main-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 12px;
  padding-bottom: 14px;
  border-top: 1px solid var(--line);
  background: rgba(250, 246, 238, 0.94);
}

.main-nav a {
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-layout,
.featured-sections,
.editorial-band {
  display: grid;
  gap: 16px;
}

.hero-layout {
  margin-top: 18px;
}

.hero-panel {
  position: relative;
  padding: 26px 20px;
  border-radius: 30px;
  min-height: 400px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(17, 17, 16, 0.06), rgba(17, 17, 16, 0.72)),
    radial-gradient(circle at top right, rgba(255, 235, 219, 0.28), transparent 28%),
    linear-gradient(160deg, #8f1d22 0%, #532018 52%, #1b1714 100%);
  color: #fff8f4;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 232, 215, 0.08);
  filter: blur(4px);
}

.hero-panel h2 {
  max-width: 11ch;
  font-size: clamp(2rem, 8vw, 4.6rem);
}

.hero-text {
  max-width: 38rem;
  margin: 16px 0 0;
  color: rgba(255, 248, 241, 0.88);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.side-panel,
.search-panel,
.section-block,
.news-card,
.editorial-note,
.newsletter-panel,
.article-body {
  border-radius: 28px;
}

.side-panel {
  padding: 20px;
}

.panel-head,
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(143, 29, 34, 0.12);
}

.ticker-list {
  margin: 14px 0 0;
  padding-left: 18px;
}

.ticker-list li {
  margin-bottom: 14px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.55;
  color: #342b25;
}

.search-panel,
.newsletter-panel {
  display: grid;
  gap: 20px;
  margin-top: 18px;
  padding: 22px 18px;
}

.search-copy h2,
.editorial-note h2,
.newsletter-panel h2 {
  font-size: clamp(1.7rem, 6vw, 3rem);
}

.search-tools {
  display: grid;
  gap: 14px;
}

.search-field {
  display: grid;
  gap: 8px;
}

.search-field span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.search-field input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
}

.search-field input:focus {
  outline: 2px solid rgba(143, 29, 34, 0.16);
  border-color: rgba(143, 29, 34, 0.4);
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff7f3;
}

.search-results {
  margin: 0;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
}

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

.section-block,
.news-card,
.editorial-note {
  padding: 20px 18px;
}

.section-block h3,
.news-card h3 {
  font-size: 1.6rem;
}

.section-block p,
.section-header a,
.editorial-note a {
  color: var(--muted);
  line-height: 1.6;
}

.section-header a,
.editorial-note a,
.back-link {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}

.news-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card[hidden] {
  display: none;
}

.story-link {
  display: block;
}

.card-category {
  margin-bottom: 12px;
}

.news-card p {
  margin: 14px 0 0;
  line-height: 1.6;
  color: #463a32;
  font-size: 1rem;
}

.card-link {
  align-self: flex-start;
  margin-top: 20px;
}

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

.editorial-note {
  background:
    radial-gradient(circle at top right, rgba(143, 29, 34, 0.08), transparent 30%),
    var(--paper-soft);
}

.newsletter-panel {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(143, 29, 34, 0.06), rgba(143, 29, 34, 0)),
    var(--paper-soft);
}

.site-footer {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-radius: 28px;
}

.footer-brand {
  margin-bottom: 8px;
}

.footer-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.article-shell {
  width: min(100%, 900px);
  margin: 0 auto;
  padding: 18px 16px 48px;
}

.article-header {
  padding: 24px 2px 20px;
}

.article-meta {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article-header h1 {
  font-size: clamp(2.1rem, 9vw, 4.4rem);
}

.article-lead {
  max-width: 50rem;
  margin: 16px 0 0;
  color: #3d312a;
  font-size: 1.12rem;
  line-height: 1.7;
}

.article-body {
  padding: 24px 18px;
}

.article-body p {
  margin: 0 0 18px;
  color: #2d241f;
  font-size: 1.08rem;
  line-height: 1.82;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
}

.live-badge:hover,
.button-primary:hover,
.button-secondary:hover,
.card-link:hover,
.main-nav a:hover,
.editorial-note a:hover,
.section-header a:hover,
.back-link:hover,
.utility-link:hover {
  transform: translateY(-1px);
}

@media (min-width: 760px) {
  .site-wrap,
  .article-shell {
    padding: 24px 24px 60px;
  }

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

  .hero-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
  }

  .search-panel,
  .newsletter-panel,
  .site-footer,
  .featured-sections,
  .editorial-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 1040px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-bar {
    padding-top: 28px;
  }
}
