:root {
  --bg: #f5f0e8;
  --bg-accent: #efe2cf;
  --surface: rgba(255, 252, 246, 0.82);
  --surface-strong: #fffaf2;
  --text: #1d2c2b;
  --muted: #576865;
  --line: rgba(29, 44, 43, 0.12);
  --brand: #1f5c52;
  --brand-soft: #d7ebe3;
  --shadow: 0 24px 60px rgba(34, 42, 40, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 92, 82, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(203, 139, 73, 0.18), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #f8f5ef 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(29, 44, 43, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 44, 43, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent);
  pointer-events: none;
}

.page-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 72px;
  position: relative;
}

.hero {
  padding: 32px 40px;
  border-radius: 36px;
  background: linear-gradient(145deg, rgba(255, 250, 242, 0.9), rgba(239, 226, 207, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 92, 82, 0.18), transparent 68%);
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: var(--brand);
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.hero-copy {
  max-width: 720px;
  margin: 10px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.stat-card {
  padding: 14px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(29, 44, 43, 0.08);
  backdrop-filter: blur(14px);
}

.stat-card strong {
  display: block;
  font-size: 1.15rem;
  margin-top: 6px;
}

.sections {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.category-section {
  padding: 28px;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.category-heading h2 {
  margin: 0;
  font-size: 1.75rem;
  font-family: Georgia, "Times New Roman", serif;
}

.category-heading p:last-child {
  margin: 0;
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.article-card {
  appearance: none;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(247, 241, 232, 0.95));
  border-radius: 24px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(31, 92, 82, 0.12);
  border-color: rgba(31, 92, 82, 0.24);
  outline: none;
}

.card-topline {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card-date {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.article-card h3 {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.35;
}

.card-summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  flex: 1;
}

.card-meta {
  padding-top: 10px;
  border-top: 1px solid rgba(29, 44, 43, 0.08);
}

.card-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(29, 44, 43, 0.06);
  padding: 4px 10px;
  border-radius: 999px;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 30;
}

.modal[data-open="true"] {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 23, 24, 0.55);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(960px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  overflow: hidden;
  border-radius: 30px;
  background: var(--surface-strong);
  box-shadow: 0 30px 80px rgba(15, 20, 19, 0.35);
  display: grid;
  grid-template-rows: auto 1fr;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px 18px;
  border-bottom: 1px solid rgba(29, 44, 43, 0.1);
}

.modal-header h2 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
  font-family: Georgia, "Times New Roman", serif;
}

.modal-title-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.modal-title-link:hover,
.modal-title-link:focus-visible {
  color: var(--brand);
  border-bottom-color: rgba(31, 92, 82, 0.4);
  outline: none;
}

.modal-meta,
.modal-status {
  margin: 10px 0 0;
  color: var(--muted);
}

.modal-url-row {
  margin: 10px 0 0;
}

.modal-url-label {
  display: block;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--brand);
}

.modal-url {
  color: var(--muted);
  word-break: break-word;
}

.modal-url:hover,
.modal-url:focus-visible {
  color: var(--brand);
  outline: none;
}

.modal-status {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-accent);
}

.modal-actions {
  display: flex;
  gap: 10px;
  align-items: start;
}

.modal-link,
.modal-close {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

.modal-link {
  background: var(--brand-soft);
  color: var(--brand);
}

.modal-close {
  background: rgba(29, 44, 43, 0.08);
  color: var(--text);
}

.modal-content {
  overflow: auto;
  padding: 12px 28px 36px;
  line-height: 1.72;
}

.modal-content h1,
.modal-content h2,
.modal-content h3,
.modal-content h4 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
}

.modal-content a {
  color: var(--brand);
}

.modal-content code {
  background: rgba(31, 92, 82, 0.08);
  padding: 0.12rem 0.35rem;
  border-radius: 0.35rem;
}

.modal-content blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 4px solid rgba(31, 92, 82, 0.35);
  color: var(--muted);
}

.modal-content ul,
.modal-content ol {
  padding-left: 1.25rem;
}

.table-wrap {
  overflow-x: auto;
}

.modal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.modal-content th,
.modal-content td {
  padding: 0.8rem;
  border: 1px solid rgba(29, 44, 43, 0.12);
  text-align: left;
  vertical-align: top;
}

.modal-content th {
  background: rgba(31, 92, 82, 0.08);
}

.modal-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 20px;
  }

  .hero,
  .category-section {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .category-heading,
  .modal-header {
    flex-direction: column;
    align-items: start;
  }

  .card-meta {
    padding-top: 8px;
  }

  .modal-panel {
    width: calc(100% - 12px);
    max-height: calc(100vh - 12px);
    margin: 6px auto;
    border-radius: 22px;
  }

  .modal-content {
    padding: 12px 18px 24px;
  }
}



.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 10px 4px;
}

.nav-mark {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

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

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(29, 44, 43, 0.08);
}

.nav-links a[aria-current="page"] {
  color: var(--brand);
  background: rgba(215, 235, 227, 0.9);
}

.hero-home {
  margin-bottom: 28px;
}

.hero-highlights-home .stat-card a,
.stat-card a {
  color: var(--brand);
  text-decoration: none;
}

.feature-article {
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 250, 242, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.article-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--brand);
}

.feature-article h2 {
  margin: 0;
  max-width: 780px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.article-body {
  max-width: 860px;
  margin-top: 22px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
}

.article-body p {
  margin: 0 0 18px;
}

.source-teaser {
  margin-top: 28px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(215, 235, 227, 0.9), rgba(255, 250, 242, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.source-teaser h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.source-teaser p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.source-actions {
  min-width: 240px;
}

.primary-link {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}

.source-note {
  margin-top: 10px;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .top-nav,
  .source-teaser {
    flex-direction: column;
    align-items: flex-start;
  }

  .feature-article,
  .source-teaser {
    padding: 22px;
    border-radius: 24px;
  }
}
