:root {
  --bg: #f7f0e7;
  --bg-soft: #fffaf4;
  --surface: rgba(255, 250, 244, 0.9);
  --surface-strong: #fffdf9;
  --text: #1f2330;
  --muted: #6b6f7b;
  --line: rgba(31, 35, 48, 0.1);
  --brand: #cc5c32;
  --brand-deep: #7a2f18;
  --accent: #0a6f73;
  --accent-soft: #d7f0ef;
  --gold: #f2b544;
  --shadow: 0 24px 60px rgba(42, 32, 23, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --max: 1180px;
  --nav-height: 84px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(204, 92, 50, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(10, 111, 115, 0.18), transparent 30%),
    linear-gradient(180deg, #fffaf5 0%, #f6ecdf 52%, #f8f3eb 100%);
  min-height: 100vh;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

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

main {
  display: block;
}

.page-shell {
  position: relative;
  overflow: hidden;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.page-shell::before {
  top: -8rem;
  left: -8rem;
  background: rgba(204, 92, 50, 0.18);
}

.page-shell::after {
  right: -10rem;
  bottom: 4rem;
  background: rgba(10, 111, 115, 0.12);
}

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 50;
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(247, 240, 231, 0.84);
  border-bottom: 1px solid rgba(31, 35, 48, 0.06);
}

.site-header-inner {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-ad-band {
  position: relative;
  z-index: 2;
  padding: 1rem 0 0;
}

.header-ad-frame {
  width: min(100%, 348px);
  margin: 0 auto;
  padding: 0.9rem;
  border: 1px solid rgba(31, 35, 48, 0.08);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.95), rgba(247, 240, 231, 0.92));
  box-shadow: 0 18px 40px rgba(42, 32, 23, 0.08);
}

.header-ad-label {
  margin: 0 0 0.7rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--brand-deep);
}

.header-ad-slot {
  width: 300px;
  max-width: 100%;
  min-height: 250px;
  margin: 0 auto;
  display: block;
  overflow: hidden;
}

.header-ad-slot > div,
.header-ad-slot iframe {
  display: block;
  margin: 0 auto;
  max-width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(204, 92, 50, 0.95), rgba(122, 47, 24, 0.95));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px rgba(122, 47, 24, 0.24);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
}

.brand-copy small,
.eyebrow,
.article-meta,
.stat-label,
.chip,
.meta-line {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--brand-deep);
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 1.6rem;
  height: 2px;
  background: var(--text);
  margin: 0.3rem 0;
  border-radius: 999px;
}

.pill-link,
.button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.pill-link:hover,
.button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.pill-link {
  padding: 0.9rem 1.25rem;
  background: rgba(31, 35, 48, 0.04);
  color: var(--text);
}

.button {
  padding: 1rem 1.4rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 18px 30px rgba(122, 47, 24, 0.18);
}

.secondary-button {
  padding: 1rem 1.4rem;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.48);
}

.hero,
.page-hero {
  padding: 4.8rem 0 2.6rem;
}

.hero-grid,
.page-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero-card,
.premium-panel,
.category-card,
.article-card,
.page-panel,
.profile-panel,
.legal-card,
.contact-card,
.feature-strip,
.article-shell,
.footer-panel,
.timeline-card,
.search-panel,
.cta-panel {
  border: 1px solid rgba(31, 35, 48, 0.08);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 2.35rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.9rem, 5vw, 5.1rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 3.3rem);
}

h3 {
  font-size: 1.55rem;
}

.lede,
.page-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 44rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.6rem 0 1.6rem;
}

.hero-stats,
.insight-grid,
.category-grid,
.article-grid,
.footer-grid,
.contact-grid,
.timeline-grid,
.legal-grid {
  display: grid;
  gap: 1rem;
}

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

.stat {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(31, 35, 48, 0.08);
}

.stat strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 0.15rem;
}

.premium-panel {
  padding: 1.8rem;
  background:
    linear-gradient(145deg, rgba(10, 111, 115, 0.92), rgba(31, 35, 48, 0.95)),
    linear-gradient(135deg, rgba(242, 181, 68, 0.25), transparent);
  color: #f8fbfb;
  position: relative;
  overflow: hidden;
}

.premium-panel::after {
  content: "";
  position: absolute;
  inset: auto -3.5rem -4.5rem auto;
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.premium-panel h2 {
  font-size: 2rem;
}

.premium-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.premium-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.premium-list li::before,
.article-body ul li::before,
.page-copy ul li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  margin-top: 0.55rem;
  flex: 0 0 auto;
  background: var(--gold);
}

.section {
  padding: 1.1rem 0 2.2rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.25rem;
  margin-bottom: 1.4rem;
}

.section-head p {
  max-width: 34rem;
  color: var(--muted);
  margin: 0;
}

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

.feature-strip {
  padding: 1.2rem;
}

.feature-strip strong {
  display: block;
  margin-bottom: 0.35rem;
}

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

.category-card,
.article-card,
.page-panel,
.profile-panel,
.legal-card,
.contact-card,
.timeline-card,
.search-panel,
.cta-panel {
  padding: 1.4rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 16rem;
}

.category-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(10, 111, 115, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.category-card p,
.article-card p,
.legal-card p,
.contact-card p,
.page-copy p,
.article-body p,
.profile-panel p,
.timeline-card p {
  color: var(--muted);
  margin: 0;
}

.category-link,
.article-card a,
.text-link {
  color: var(--brand-deep);
  font-weight: 600;
}

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

.article-card {
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 0.25rem;
  background: linear-gradient(90deg, var(--brand), var(--gold), var(--accent));
}

.article-card h3 {
  font-size: 1.42rem;
  margin-top: 0.5rem;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: var(--accent);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.chip {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(10, 111, 115, 0.1);
  color: var(--accent);
  letter-spacing: 0.14em;
}

.search-panel {
  margin-bottom: 1.4rem;
  display: grid;
  gap: 1rem;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.search-row input {
  flex: 1 1 18rem;
  min-width: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  padding: 1rem 1rem 1rem 1.1rem;
  border-radius: 16px;
  font: inherit;
  color: var(--text);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.filter-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  padding: 0.78rem 1rem;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.filter-button.is-active,
.filter-button:hover {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  transform: translateY(-1px);
}

.results-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.page-hero-grid,
.contact-grid,
.timeline-grid,
.legal-grid,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-panel,
.profile-panel,
.contact-card {
  min-height: 100%;
}

.page-copy ul,
.article-body ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: grid;
  gap: 0.75rem;
}

.article-shell {
  padding: 2rem;
}

.article-shell .meta-line {
  margin-bottom: 1.15rem;
}

.article-shell h1 {
  font-size: clamp(2.3rem, 3.8vw, 4.1rem);
  margin-bottom: 1rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: 1.2rem;
}

.article-body h2 {
  font-size: 1.8rem;
  margin-top: 2rem;
}

.article-body h3 {
  font-size: 1.3rem;
  margin-top: 1.5rem;
}

.sidebar-card {
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(31, 35, 48, 0.03);
  border: 1px solid rgba(31, 35, 48, 0.08);
  margin-bottom: 1rem;
}

.sidebar-card strong {
  display: block;
  margin-bottom: 0.45rem;
}

.sidebar-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.sidebar-card li a {
  color: var(--brand-deep);
  font-weight: 600;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.92), rgba(215, 240, 239, 0.7));
}

.site-footer {
  padding: 2rem 0 2.8rem;
}

.footer-panel {
  padding: 1.6rem;
}

.footer-grid {
  align-items: start;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.1rem;
  justify-content: flex-end;
}

.footer-note {
  color: var(--muted);
  margin: 0.45rem 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  :root {
    --nav-height: 76px;
  }

  .hero-grid,
  .page-hero-grid,
  .article-layout,
  .insight-grid,
  .category-grid,
  .article-grid,
  .contact-grid,
  .timeline-grid,
  .legal-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    position: fixed;
    inset: var(--nav-height) 1rem auto 1rem;
    background: rgba(255, 250, 244, 0.98);
    border: 1px solid rgba(31, 35, 48, 0.08);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    transform: translateY(-1rem);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.menu-open .site-nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .menu-toggle {
    display: inline-block;
  }

  .header-actions .pill-link {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .hero,
  .page-hero,
  .section,
  .site-footer {
    padding-top: 2.6rem;
  }

  .hero-card,
  .premium-panel,
  .article-shell,
  .page-panel,
  .profile-panel,
  .legal-card,
  .contact-card,
  .timeline-card,
  .search-panel,
  .cta-panel,
  .footer-panel {
    padding: 1.2rem;
    border-radius: 22px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero-actions,
  .search-row {
    flex-direction: column;
  }

  .button,
  .secondary-button,
  .pill-link {
    width: 100%;
  }
}
