:root {
  --ink: #151515;
  --muted: #626262;
  --line: #e7e2dc;
  --paper: #f7f5f1;
  --surface: #ffffff;
  --accent: #b51f2a;
  --accent-dark: #871923;
  --gold: #d8a23c;
  --soft-red: #fff1f2;
  --shadow: 0 18px 40px rgba(21, 21, 21, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.breaking-strip {
  align-items: center;
  background: var(--accent-dark);
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 18px;
  justify-content: center;
  min-height: 32px;
  text-transform: uppercase;
}

.breaking-strip span + span::before {
  color: var(--gold);
  content: "/";
  margin-right: 18px;
}

.topbar {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  margin: 0 auto;
  max-width: 1180px;
  padding: 18px 20px;
}

.brand {
  align-items: center;
  color: var(--accent);
  display: inline-flex;
  gap: 10px;
  line-height: 1;
  min-width: 0;
}

.brand img {
  flex: 0 0 auto;
  height: 46px;
  object-fit: contain;
  width: 46px;
}

.brand span {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  min-width: 0;
  white-space: nowrap;
}

.main-nav,
.account-links {
  align-items: center;
  display: flex;
  gap: 14px;
}

.main-nav {
  flex-wrap: wrap;
}

.account-links {
  flex-wrap: nowrap;
}

.main-nav a,
.account-links a,
.logout-form button {
  color: #333;
  font-size: 14px;
  font-weight: 700;
  position: relative;
}

.main-nav a::after {
  background: var(--accent);
  bottom: -8px;
  content: "";
  height: 3px;
  left: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 0.2s ease, width 0.2s ease;
  width: 100%;
}

.main-nav a:hover::after {
  opacity: 1;
}

.account-links {
  justify-content: flex-end;
}

.account-links a,
.logout-form button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  padding: 7px 10px;
}

.logout-form {
  margin: 0;
}

.account-links a:hover,
.logout-form button:hover {
  background: var(--soft-red);
  border-color: #f0c3c8;
  color: var(--accent);
}

.hero {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  margin: 0 auto;
  max-width: 1180px;
  padding: 42px 20px 30px;
}

.home-hero {
  align-items: start;
  background: linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  max-width: none;
  padding-left: max(20px, calc((100vw - 1180px) / 2 + 20px));
  padding-right: max(20px, calc((100vw - 1180px) / 2 + 20px));
}

.lead-story {
  align-items: stretch;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.05fr);
  overflow: hidden;
}

.lead-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 34px;
}

.lead-copy h1 {
  font-size: 52px;
  margin: 12px 0 16px;
}

.lead-copy h1 a:hover {
  color: var(--accent);
}

.lead-copy p {
  color: var(--muted);
  font-size: 19px;
}

.lead-image {
  background: #e9e4dc;
  min-height: 360px;
  overflow: hidden;
}

.lead-image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.lead-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  font-weight: 800;
  margin-top: 16px;
}

.lead-meta a {
  color: var(--accent);
}

.headline-rail {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.headline-rail article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.headline-rail h2 {
  font-size: 20px;
  margin-top: 8px;
}

.headline-rail h2 a:hover {
  color: var(--accent);
}

.hero-copy {
  align-self: center;
  border-left: 5px solid var(--accent);
  padding-left: 22px;
}

.eyebrow,
.category {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0 0 10px;
}

.hero h1 {
  color: var(--ink);
  font-size: 64px;
}

.hero p,
.section-heading p,
.story-card p,
.article-header p {
  color: var(--muted);
}

.lead-grid,
.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.story-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(21, 21, 21, 0.05);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.story-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.story-media {
  background: #e9e4dc;
  display: block;
  overflow: hidden;
}

.story-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.25s ease;
  width: 100%;
}

.story-card:hover img {
  transform: scale(1.03);
}

.story-card .story-body {
  padding: 16px;
}

.story-card h2,
.story-card h3 {
  font-size: 22px;
  margin-top: 6px;
}

.story-card h2 a:hover,
.story-card h3 a:hover {
  color: var(--accent);
}

.story-card-large {
  grid-row: span 2;
}

.story-card-large h2 {
  font-size: 32px;
}

.content-band {
  margin: 0 auto;
  max-width: 1180px;
  padding: 42px 20px;
}

.content-band.muted {
  border-top: 1px solid var(--line);
}

.page-shell {
  margin: 0 auto;
  max-width: 860px;
  padding: 44px 20px;
}

.page-shell h1 {
  font-size: 44px;
}

.page-shell h2 {
  font-size: 26px;
  margin-top: 26px;
}

.page-shell p {
  color: var(--muted);
  font-size: 18px;
}

.info-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 20px 0;
  padding: 16px;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: 38px;
}

.section-heading a,
.pagination a,
button,
.social-logins a {
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-weight: 800;
  padding: 10px 14px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-list a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
  padding: 9px 14px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.category-list a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.location-list {
  margin-bottom: 22px;
}

.location-line {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: -4px 0 8px;
}

.location-line a,
.text-link {
  color: var(--accent);
  font-weight: 800;
}

.article-taxonomy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.location-chip {
  background: #fff1f1;
  border-radius: 999px;
  padding: 5px 9px;
}

.article-page {
  margin: 0 auto;
  max-width: 920px;
  padding: 52px 20px 42px;
}

.article-header h1 {
  color: #111;
  font-size: 54px;
  margin-top: 10px;
}

.article-header > p {
  font-size: 22px;
  line-height: 1.7;
}

.byline {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
}

.share-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.share-btn {
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  padding: 13px 18px;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.share-btn:hover {
  filter: brightness(0.94);
  transform: translateY(-1px);
}

.share-btn.whatsapp {
  background: #128c7e;
}

.share-btn.facebook {
  background: #1877f2;
}

.share-btn.twitter {
  background: #111;
}

.share-btn.copy-link {
  background: var(--accent);
}

.article-figure {
  margin: 28px 0;
}

.article-image {
  border-radius: 8px;
  height: auto;
  margin: 0;
  width: 100%;
}

.article-figure figcaption {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

.article-content {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  box-shadow: 0 10px 30px rgba(21, 21, 21, 0.04);
  font-size: 20px;
  line-height: 1.85;
  padding: 10px 26px;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  margin-top: 24px;
}

.article-content img {
  border-radius: 8px;
  height: auto !important;
  margin: 18px auto;
  max-width: 100%;
}

.article-content figure {
  margin: 22px 0;
}

.article-content figcaption {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.article-content table {
  border-collapse: collapse;
  display: block;
  max-width: 100%;
  overflow-x: auto;
  width: 100%;
}

.article-content th,
.article-content td {
  border: 1px solid var(--line);
  padding: 10px;
}

.article-content blockquote {
  border-left: 4px solid var(--gold);
  color: #333;
  margin: 20px 0;
  padding: 4px 0 4px 18px;
}

.source,
time {
  color: var(--muted);
  font-size: 14px;
}

.pagination {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 42px auto;
  max-width: 520px;
  padding: 24px;
}

.auth-panel.wide {
  max-width: 760px;
}

.auth-panel input,
.auth-panel textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  margin-top: 6px;
  padding: 10px;
  width: 100%;
}

.social-logins {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.messages {
  margin: 18px auto 0;
  max-width: 1180px;
  padding: 0 20px;
}

.message {
  background: #fff7d8;
  border: 1px solid #efd47e;
  border-radius: 6px;
  padding: 10px 12px;
}

.message-error {
  background: #fff1f1;
  border-color: #ef9a9a;
  color: #8a1f1f;
  margin-bottom: 14px;
}

.site-footer {
  background: #171717;
  border-top: 4px solid var(--accent);
  color: #d8d8d8;
  margin-top: 34px;
  padding: 34px 20px;
  text-align: center;
}

.footer-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 8px;
}

.footer-brand img {
  filter: brightness(0) invert(1);
  height: 42px;
  object-fit: contain;
  width: 42px;
}

.footer-brand span {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
  margin: 0 6px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  justify-content: center;
}

@media (max-width: 840px) {
  .hero,
  .lead-grid,
  .card-grid,
  .lead-story,
  .headline-rail {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: center;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    max-width: 100%;
    padding: 18px 16px 0;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    height: 42px;
    width: 42px;
  }

  .brand span {
    font-size: clamp(26px, 7.5vw, 36px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-nav {
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: nowrap;
    gap: 22px;
    grid-column: 1 / -1;
    margin: 0 -16px;
    overflow-x: auto;
    padding: 14px 16px 14px;
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    font-size: 18px;
  }

  .account-links {
    grid-column: 2;
    grid-row: 1;
    gap: 6px;
    justify-content: flex-end;
  }

  .account-links a,
  .logout-form button {
    background: var(--soft-red);
    border: 1px solid #f0c3c8;
    color: var(--accent-dark);
    font-size: 13px;
    line-height: 1;
    padding: 9px 10px;
    white-space: nowrap;
  }

  .article-page {
    padding: 34px 16px;
  }

  .hero h1,
  .article-header h1 {
    font-size: clamp(36px, 10.5vw, 48px);
  }

  .home-hero {
    padding-top: 34px;
  }

  .lead-copy {
    padding: 24px;
  }

  .lead-copy h1 {
    font-size: clamp(34px, 10.5vw, 48px);
  }

  .lead-image {
    min-height: 260px;
    order: -1;
  }

  .hero-copy {
    padding-left: 16px;
  }

  .article-header > p {
    font-size: 19px;
  }

  .article-content {
    font-size: 18px;
    padding: 8px 18px;
  }

  .story-card-large h2 {
    font-size: 24px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 430px) {
  .breaking-strip {
    font-size: 11px;
    gap: 10px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 16px;
    white-space: nowrap;
  }

  .breaking-strip span + span::before {
    margin-right: 10px;
  }

  .brand img {
    height: 36px;
    width: 36px;
  }

  .brand span {
    font-size: clamp(22px, 6.4vw, 30px);
  }

  .account-links {
    gap: 5px;
  }

  .account-links a,
  .logout-form button {
    font-size: 12px;
    padding: 8px 8px;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 17px;
  }

  .share-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .share-bar::-webkit-scrollbar {
    display: none;
  }

  .share-btn {
    flex: 0 0 auto;
  }
}
