:root {
  --bg: #f5f1e8;
  --bg-soft: #fbf8f2;
  --paper: rgba(255, 250, 242, 0.9);
  --paper-strong: rgba(255, 252, 247, 0.96);
  --text: #1d1813;
  --muted: #675d52;
  --line: rgba(52, 40, 28, 0.14);
  --line-strong: rgba(52, 40, 28, 0.24);
  --accent: #8a5a32;
  --accent-soft: rgba(138, 90, 50, 0.12);
  --shadow: 0 24px 60px rgba(50, 37, 24, 0.08);
  --shadow-tight: 0 10px 24px rgba(50, 37, 24, 0.06);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: "Manrope", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(188, 164, 132, 0.18), transparent 34%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

.page-shell {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 90px;
}

.glass-panel {
  background: linear-gradient(180deg, var(--paper-strong), var(--paper));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-header,
.resource-card,
.filter-bar,
.pill-card,
.showcase-card,
.trust-band,
.hero-metric,
.editorial-lead,
.editorial-note,
.archive-aside {
  border-radius: var(--radius);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: sticky;
  top: 16px;
  z-index: 10;
  border: 1px solid var(--line-strong);
  background: rgba(251, 248, 242, 0.88);
  backdrop-filter: blur(12px);
}

.brand-mark,
.site-header nav a {
  text-decoration: none;
}

.brand-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
}

.site-header nav a {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
}

.hero-premium {
  min-height: 72vh;
  padding: 80px 0 54px;
}

.hero-copy h1,
.archive-header h1,
.section-heading h2,
.editorial-lead h2,
.resource-card h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.hero-copy h1,
.archive-header h1 {
  font-size: clamp(3.3rem, 6vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  margin: 0 0 16px;
  max-width: 11ch;
}

.archive-header {
  padding: 46px 0 20px;
}

.archive-header p {
  color: var(--muted);
  max-width: 58ch;
}

.archive-header-premium {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: end;
}

.archive-aside {
  padding: 26px 28px;
  position: relative;
  overflow: hidden;
}

.archive-aside::before,
.hero-metric::before,
.resource-card::before,
.editorial-lead::before,
.editorial-note::before,
.showcase-card::before,
.filter-bar::before,
.trust-band::before,
.pill-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(94, 68, 41, 0.08);
  border-radius: calc(var(--radius) - 10px);
  pointer-events: none;
}

.archive-aside strong {
  display: block;
  font-size: 1.2rem;
  line-height: 1.3;
}

.browse-results {
  padding-top: 10px;
}

.hero-body {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.eyebrow,
.showcase-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-size: 0.72rem;
}

.cta-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.cta-button {
  background: #241a13;
  color: #fff8ef;
  box-shadow: var(--shadow-tight);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(255, 252, 247, 0.82);
  color: var(--text);
}

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

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-metric {
  position: relative;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(250, 245, 236, 0.92));
  box-shadow: var(--shadow-tight);
}

.metric-value {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: -0.05em;
  margin-bottom: 6px;
}

.metric-caption {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-showcase {
  position: relative;
  min-height: 450px;
}

.showcase-card {
  position: absolute;
  padding: 24px;
  width: min(320px, 76%);
  transform-style: preserve-3d;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.97), rgba(250, 245, 236, 0.9));
}

.showcase-card strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  line-height: 1;
  margin-bottom: 10px;
}

.showcase-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.showcase-card-primary { top: 28px; right: 18px; }
.showcase-card-secondary { left: 22px; bottom: 46px; }

.showcase-orb {
  position: absolute;
  inset: 90px 60px 36px 60px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(165, 136, 98, 0.18), rgba(165, 136, 98, 0.03) 62%),
    radial-gradient(circle at 30% 35%, rgba(255,255,255,0.76), transparent 44%);
  filter: blur(12px);
}

.editorial-band {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
}

.editorial-lead,
.editorial-note {
  position: relative;
  padding: 30px;
}

.editorial-lead h2 {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin: 0 0 14px;
}

.editorial-lead p:last-child,
.editorial-note strong,
.section-note,
.resource-card p,
.filter-copy strong,
.site-footer,
.trust-band p {
  color: var(--muted);
}

.editorial-lead p:last-child {
  margin-bottom: 0;
  max-width: 52ch;
  line-height: 1.7;
}

.editorial-side {
  display: grid;
  gap: 20px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.resource-card {
  position: relative;
  padding: 22px;
  min-height: 250px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  transform-style: preserve-3d;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(249, 243, 233, 0.92));
}

.resource-card-image {
  margin: -22px -22px 18px;
  overflow: hidden;
  border-radius: 22px 22px 16px 16px;
  aspect-ratio: 16 / 10;
  background: rgba(34, 26, 20, 0.05);
}

.resource-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.resource-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.resource-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.resource-card h2 {
  font-size: 1.7rem;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 12px;
}

.resource-card h2 a {
  text-decoration: none;
}

.resource-card p {
  margin: 0;
  line-height: 1.62;
}

.home-section {
  padding: 34px 0;
}

.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  letter-spacing: -0.05em;
  margin: 0 0 10px;
  line-height: 0.98;
}

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

.section-note {
  max-width: 33ch;
  margin: 0 0 10px;
  line-height: 1.6;
}

.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.pill-grid-large .pill-card {
  padding: 18px 22px;
}

.pill-card {
  position: relative;
  padding: 14px 18px;
  text-decoration: none;
  color: var(--text);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(247, 240, 229, 0.88));
}

.trust-band {
  position: relative;
  padding: 28px 32px;
  margin-top: 16px;
  text-align: center;
}

.trust-band p {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.reveal-up {
  opacity: 0;
  transform: translateY(14px);
  animation: revealUp 560ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.filter-bar {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 18px;
  margin: 24px 0;
  align-items: center;
}

.filter-copy {
  min-width: 240px;
}

.filter-copy strong {
  display: block;
  font-weight: 500;
  line-height: 1.6;
}

.filter-input-group {
  display: flex;
  gap: 12px;
  flex: 1;
}

.filter-bar input {
  flex: 1;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 14px 16px;
  background: rgba(255, 252, 247, 0.98);
  color: var(--text);
  font: inherit;
}

.filter-bar input:focus {
  outline: none;
  border-color: rgba(138, 90, 50, 0.45);
  box-shadow: 0 0 0 4px rgba(138, 90, 50, 0.08);
}

.ambient-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(110px);
  pointer-events: none;
}

.ambient-glow-a {
  width: 360px;
  height: 360px;
  top: -70px;
  right: 8%;
  background: rgba(210, 187, 153, 0.22);
}

.ambient-glow-b {
  width: 280px;
  height: 280px;
  bottom: 8%;
  left: 4%;
  background: rgba(165, 136, 98, 0.12);
}

.site-footer {
  padding-top: 28px;
  font-size: 0.94rem;
}

.empty-state {
  color: var(--muted);
  padding: 20px 4px;
}

@media (max-width: 840px) {
  .hero,
  .editorial-band,
  .section-heading-split,
  .archive-header-premium,
  .filter-bar {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-metrics,
  .filter-input-group {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-showcase {
    min-height: 390px;
  }

  .showcase-card {
    width: min(100%, 320px);
  }

  .page-shell {
    width: min(1180px, calc(100% - 24px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
