:root {
  --bg: #edf1f5;
  --surface: #ffffff;
  --surface-alt: #ffffff;
  --surface-strong: #d5dde6;
  --text: #1d2530;
  --muted: #617082;
  --primary: #24303d;
  --primary-soft: #445364;
  --accent: #7f8fa1;
  --accent-soft: #c7d1db;
  --border: rgba(36, 48, 61, 0.12);
  --shadow: 0 20px 45px rgba(28, 38, 50, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --ad-width: 300px;
  --ad-gap: 1.25rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(199, 209, 219, 0.45), transparent 26%),
    linear-gradient(180deg, #f5f8fb 0%, #edf1f5 100%);
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
}

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin: 0 auto;
}

.narrow {
  max-width: 840px;
}

.topbar {
  grid-area: topbar;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #18202a;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
}

.topbar a {
  color: #d3dbe5;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(28, 38, 50, 0.05);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(213, 221, 230, 0.92));
  border: 1px solid rgba(36, 48, 61, 0.1);
  box-shadow: 0 14px 28px rgba(28, 38, 50, 0.08);
}

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

.brand__text {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
}

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

.site-nav a {
  position: relative;
  color: var(--text);
  font-weight: 600;
}

.site-nav a.is-active::after,
.site-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

.hero,
.page-hero {
  padding: 4rem 0 3rem;
}

.hero-grid,
.split-panel,
.two-column,
.contact-grid,
.article-shell {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.9fr);
  align-items: stretch;
}

.hero-copy,
.hero-panel__card,
.feature-card,
.info-card,
.archive-item,
.search-card,
.contact-form,
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 2rem;
}

.hero-copy h1,
.page-hero h1,
.section-heading h2,
.sidebar-card h2,
.info-card h2,
.info-card h3,
.feature-card h3,
.archive-item h2,
.search-card h2,
.site-footer h2,
.site-footer h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--primary);
}

.hero-copy h1,
.page-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
}

.hero-copy__lead,
.page-hero__lede {
  max-width: 62ch;
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-actions,
.meta-pill-row,
.year-chip-row,
.search-card__links,
.feature-card__footer,
.sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  display: grid;
  gap: 1rem;
}

.hero-panel__card,
.info-card,
.feature-card,
.search-card,
.sidebar-card {
  padding: 1.25rem;
}

.hero-panel__label,
.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-panel__card strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.8rem;
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.btn:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.btn-full {
  width: 100%;
}

.text-link {
  font-weight: 700;
}

.section {
  padding: 1.2rem 0 3rem;
}

.section--tight {
  padding-top: 0.5rem;
}

.section--alt {
  background: linear-gradient(180deg, rgba(213, 221, 230, 0.52), rgba(248, 251, 255, 0));
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.home-hero__grid,
.story-grid,
.discovery-grid,
.newsletter-grid,
.image-trio {
  display: grid;
  gap: 1.5rem;
}

.home-hero__grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  align-items: start;
}

.home-hero__copy {
  display: grid;
  gap: 1rem;
}

.home-hero__copy p {
  margin: 0;
  color: var(--muted);
}

.home-hero__dates {
  margin: -0.5rem 0 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent);
}

.home-hero__media {
  display: grid;
  gap: 1rem;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.figure-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.figure-card img {
  width: 100%;
  height: auto;
}

.search-teaser {
  display: grid;
  gap: 0.75rem;
}

.section-intro {
  max-width: 72ch;
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.story-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.6rem;
}

.story-panel h2 {
  margin: 0 0 0.9rem;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.2;
  color: var(--primary);
}

.story-panel p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.story-panel p:last-child {
  margin-bottom: 0;
}

.bullet-list--strong {
  display: grid;
  gap: 0.65rem;
}

.bullet-list--strong li strong {
  color: var(--primary);
}

.discovery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.discover-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.discover-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary);
}

.discover-card p {
  margin: 0;
  color: var(--muted);
}

.feature-story {
  align-items: center;
}

.feature-story__copy {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.feature-story__copy h2,
.feature-story__copy p {
  margin: 0;
}

.newsletter-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
}

.image-trio {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.quote-card {
  margin: 1.25rem 0 0;
  padding: 1.5rem;
  background: linear-gradient(135deg, #2b3542, #56677a);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: rgba(255, 255, 255, 0.85);
}

.quote-card p {
  margin: 0 0 0.8rem;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.35;
}

.quote-card footer {
  display: grid;
  gap: 0.2rem;
  font-style: normal;
}

.quote-card footer strong {
  color: #fff;
}

.quote-card footer span {
  color: rgba(255, 255, 255, 0.72);
}

.card-grid,
.three-up {
  display: grid;
  gap: 1.25rem;
}

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

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

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-card p,
.archive-item p,
.search-card p,
.info-card p,
.sidebar-card p,
.contact-form p {
  margin: 0;
  color: var(--muted);
}

.feature-card__footer {
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.split-panel,
.two-column,
.contact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.year-chip-row {
  margin-top: 1rem;
}

.year-chip,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(22, 38, 63, 0.06);
  border: 1px solid rgba(22, 38, 63, 0.08);
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.archive-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 1rem;
  margin-bottom: 1rem;
}

.archive-toolbar--triple {
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(160px, 220px));
}

.field {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--primary);
}

.field span {
  font-size: 0.92rem;
}

.field input,
.field select,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text);
  font: inherit;
}

.field input:focus,
.field select:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(155, 106, 24, 0.28);
  border-color: rgba(155, 106, 24, 0.45);
}

.results-summary {
  margin: 0 0 1rem;
  color: var(--muted);
}

.archive-list,
.search-results,
.contact-stack,
.search-shell {
  display: grid;
  gap: 1rem;
}

.archive-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
  gap: 1rem;
  padding: 1.25rem;
}

.archive-item__meta {
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.archive-item__body h2,
.search-card h2 {
  margin-bottom: 0.4rem;
  font-size: 1.25rem;
}

.archive-item__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.search-card__links {
  margin-top: 0.85rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--primary);
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.page-hero--post {
  padding-bottom: 1.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.article-shell {
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.85fr);
  align-items: start;
}

.article-main {
  padding: 1.5rem 1.7rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.article-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 6rem;
}

.meta-list {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 0.5rem 0.8rem;
  margin: 0;
}

.meta-list dt {
  font-weight: 700;
  color: var(--primary);
}

.meta-list dd {
  margin: 0;
  color: var(--muted);
}

.link-list,
.footer-links,
.bullet-list {
  margin: 0;
  padding-left: 1.2rem;
}

.link-list li,
.footer-links li,
.bullet-list li {
  margin-bottom: 0.5rem;
}

.markdown-body {
  color: var(--text);
}

.markdown-body > :first-child {
  margin-top: 0;
}

.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  margin: 1.8rem 0 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--primary);
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol {
  margin: 0 0 1rem;
}

.markdown-body hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

.comments-shell {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.comments-shell__header h2 {
  margin: 0 0 0.35rem;
}

.comments-shell__header p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 3rem;
  padding: 2.4rem 0 3rem;
  background: #1b2430;
  color: rgba(255, 255, 255, 0.8);
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
}

.site-footer a {
  color: #d3dbe5;
}

.site-content-shell {
  width: min(100% - 2rem, calc(var(--max-width) + var(--ad-width) + var(--ad-gap)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, var(--ad-width));
  gap: var(--ad-gap);
  align-items: start;
}

.site-content-shell main {
  min-width: 0;
  width: 100%;
}

.site-content-shell main .container {
  width: min(100%, var(--max-width));
}

.site-ad-rail {
  align-self: start;
  position: sticky;
  top: 6.75rem;
  width: var(--ad-width);
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.ad-slot {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.ad-slot--box {
  aspect-ratio: 6 / 5;
}

.ad-slot--tall {
  aspect-ratio: 1 / 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.5rem;
}

@media (max-width: 980px) {
  .home-hero__grid,
  .story-grid,
  .discovery-grid,
  .newsletter-grid,
  .hero-grid,
  .split-panel,
  .two-column,
  .contact-grid,
  .article-shell,
  .footer-grid,
  .card-grid,
  .three-up,
  .archive-item {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 1320px) {
  .site-content-shell {
    width: min(100% - 2rem, var(--max-width));
    grid-template-columns: 1fr;
  }

  .site-ad-rail {
    position: static;
    width: min(100%, 620px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-self: center;
    margin: 0 auto 2rem;
  }
}

@media (max-width: 720px) {
  .image-trio,
  .topbar__inner,
  .site-header__inner,
  .section-heading,
  .archive-toolbar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .site-nav {
    gap: 0.8rem;
  }

  .hero,
  .page-hero {
    padding: 3rem 0 2rem;
  }

  .hero-copy,
  .article-main,
  .hero-panel__card,
  .feature-card,
  .info-card,
  .archive-item,
  .search-card,
  .contact-form,
  .sidebar-card {
    padding: 1.1rem;
  }

  .site-ad-rail {
    width: min(100% - 2rem, var(--ad-width));
    grid-template-columns: 1fr;
  }
}
