:root {
  --ink: #17211f;
  --muted: #63706b;
  --paper: #f7f3ec;
  --panel: #fffdf8;
  --line: #ddd4c7;
  --accent: #c83b31;
  --accent-dark: #992b24;
  --green: #0b6b57;
  --gold: #d99a23;
  --blue: #214d73;
  --shadow: 0 18px 45px rgba(23, 33, 31, 0.12);
  --radius: 8px;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.84), rgba(247, 243, 236, 0.96)),
    url("https://images.unsplash.com/photo-1543286386-713bdd548da4?auto=format&fit=crop&w=1800&q=80") center top / cover fixed;
  line-height: 1.55;
}

a,
button,
input {
  font: inherit;
}

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

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(221, 212, 199, 0.85);
  background: rgba(255, 253, 248, 0.94);
  backdrop-filter: blur(16px);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.primary-nav a {
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.primary-nav a:hover {
  background: #efe6d8;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 800;
}

main {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(44px, 7vw, 86px) 0 clamp(28px, 5vw, 58px);
}

.hero-copy h1 {
  max-width: 790px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 7vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin: 24px 0 0;
  color: #3b4944;
  font-size: clamp(1.04rem, 1.6vw, 1.28rem);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.text-button,
.post-footer button,
.tag-cloud button,
.filter-chip,
.footer-link,
.most-read button {
  border: 0;
  background: none;
  color: inherit;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 11px 18px;
  font-weight: 900;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(200, 59, 49, 0.2);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
}

.hero-card {
  overflow: hidden;
  border: 1px solid rgba(221, 212, 199, 0.95);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-card-image {
  min-height: 260px;
  background-position: center;
  background-size: cover;
}

.hero-card-body {
  padding: 24px;
}

.hero-card h2,
.section-heading h2,
.toolbar h2,
.side-panel h2,
.briefing h2,
.site-footer h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.hero-card h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.02;
}

.hero-card p {
  color: var(--muted);
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 14px;
  border-top: 1px solid rgba(221, 212, 199, 0.8);
}

.toolbar h2,
.section-heading h2,
.briefing h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.search-box {
  display: grid;
  gap: 6px;
  min-width: min(360px, 100%);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-box input,
.subscribe-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--ink);
  outline: none;
  padding: 0 16px;
}

.search-box input:focus,
.subscribe-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 59, 49, 0.12);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 12px 0 30px;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  padding: 9px 13px;
  color: #3d4945;
  font-size: 0.9rem;
  font-weight: 850;
}

.filter-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
  padding-bottom: 58px;
}

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

.text-button {
  color: var(--accent);
  font-weight: 900;
}

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

.post-card {
  overflow: hidden;
  border: 1px solid rgba(221, 212, 199, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 12px 30px rgba(23, 33, 31, 0.08);
}

.post-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.post-card-content {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.post-meta span:not(:last-child)::after {
  width: 4px;
  height: 4px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.post-card h3 {
  min-height: 3.7em;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.28rem, 2vw, 1.65rem);
  line-height: 1.12;
}

.post-card p {
  min-height: 5.8em;
  margin: 0;
  color: var(--muted);
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 850;
}

.post-footer button {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #efe6d8;
  padding: 8px 11px;
  color: var(--ink);
  font-weight: 900;
}

.post-footer button:hover {
  background: var(--gold);
  color: #1f1605;
}

.sidebar {
  position: sticky;
  top: 94px;
  display: grid;
  gap: 18px;
}

.side-panel {
  border: 1px solid rgba(221, 212, 199, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.94);
  padding: 20px;
  box-shadow: 0 12px 30px rgba(23, 33, 31, 0.08);
}

.side-panel h2 {
  font-size: 1.6rem;
}

.signal-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.signal-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.signal-list span {
  color: var(--muted);
}

.signal-list strong {
  color: var(--green);
  font-size: 1.25rem;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag-cloud button {
  border-radius: 999px;
  background: #efe6d8;
  padding: 7px 10px;
  color: #37423e;
  font-size: 0.82rem;
  font-weight: 850;
}

.tag-cloud button:hover {
  background: var(--green);
  color: #fff;
}

.most-read ol {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.most-read li::marker {
  color: var(--accent);
  font-weight: 900;
}

.most-read button {
  text-align: left;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  line-height: 1.25;
}

.most-read button span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--font-sans, Inter, sans-serif);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.briefing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 28px;
  align-items: center;
  margin-bottom: 64px;
  border: 1px solid rgba(221, 212, 199, 0.95);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(23, 33, 31, 0.93), rgba(11, 107, 87, 0.88)),
    url("https://images.unsplash.com/photo-1520607162513-77705c0f0d4a?auto=format&fit=crop&w=1400&q=80") center / cover;
  color: #fff;
  padding: clamp(24px, 4vw, 44px);
}

.briefing .eyebrow,
.briefing p {
  color: #f1dcc4;
}

.briefing p {
  max-width: 630px;
}

.subscribe-form {
  display: grid;
  gap: 12px;
}

.subscribe-form label {
  display: grid;
  gap: 7px;
  color: #f1dcc4;
  font-size: 0.82rem;
  font-weight: 850;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(150px, 1fr));
  gap: 28px;
  padding: 44px clamp(18px, 4vw, 48px) 26px;
  background: #17211f;
  color: #fffdf8;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #f1dcc4;
  font-size: 1.15rem;
}

.site-footer a,
.footer-link {
  display: block;
  width: fit-content;
  margin: 8px 0;
  color: #d5ddd8;
  text-align: left;
}

.site-footer a:hover,
.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-brand {
  align-items: flex-start;
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  color: #d5ddd8;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(255, 253, 248, 0.18);
  padding-top: 22px;
  color: #aebbb6;
  font-size: 0.88rem;
}

.article-dialog {
  width: min(900px, calc(100% - 28px));
  max-height: min(86vh, 980px);
  overflow: auto;
  border: 0;
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  padding: 0;
}

.article-dialog::backdrop {
  background: rgba(23, 33, 31, 0.68);
  backdrop-filter: blur(6px);
}

.close-dialog {
  position: sticky;
  top: 12px;
  z-index: 2;
  float: right;
  margin: 12px;
  border: 1px solid rgba(255, 253, 248, 0.58);
  border-radius: 999px;
  background: rgba(23, 33, 31, 0.78);
  color: #fff;
  padding: 8px 12px;
  font-weight: 900;
}

.dialog-hero {
  min-height: 310px;
  background-position: center;
  background-size: cover;
}

.dialog-body {
  padding: clamp(24px, 5vw, 52px);
}

.dialog-body h2 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.dialog-body p {
  color: #3d4945;
  font-size: 1.04rem;
}

.source-box {
  display: grid;
  gap: 5px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.source-box span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.source-box a {
  color: var(--accent);
  font-weight: 900;
}

.empty-state {
  grid-column: 1 / -1;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.84);
  padding: 30px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.skeleton-line,
.skeleton-title,
.skeleton-copy {
  display: block;
  margin: 20px;
  border-radius: 999px;
  background: #efe6d8;
}

.skeleton-line {
  width: 40%;
  height: 12px;
}

.skeleton-title {
  width: 78%;
  height: 34px;
}

.skeleton-copy {
  width: 64%;
  height: 16px;
}

@media (max-width: 980px) {
  .hero,
  .layout,
  .briefing {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .most-read {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    border-radius: var(--radius);
    background: #efe6d8;
  }

  .toolbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .post-grid,
  .sidebar,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .post-card h3,
  .post-card p {
    min-height: auto;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 16vw, 4.6rem);
  }

  .site-footer {
    padding-bottom: 28px;
  }
}

@media (max-width: 460px) {
  main {
    width: min(100% - 24px, var(--max));
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .hero-card-body,
  .post-card-content,
  .side-panel {
    padding: 16px;
  }

  .post-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .button,
  .post-footer button {
    width: 100%;
  }
}
