:root {
  --cream: #f3ece2;
  --cream-deep: #e8ddd0;
  --paper: #fffcf7;
  --paper-soft: #f7f1e8;
  --ink: #2b2724;
  --ink-soft: #5c554e;
  --ink-faint: #8a8176;
  --line: #e0d5c6;
  --line-strong: #cfc2b0;
  --blush: #c9897a;
  --blush-soft: #ead9d3;
  --pine: #3f4f45;
  --pine-deep: #2c3932;
  --berry: #8b3e3a;
  --khaki: #b7a48a;
  --navy: #2a3140;
  --shadow: 0 10px 30px rgba(43, 39, 36, 0.06);
  --radius: 18px;
  --font-serif: "Cormorant Garamond", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-sans: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -80px, #fffaf3 0%, var(--cream) 62%, #eadfcf 100%);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--pine);
  text-underline-offset: 0.16em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(243, 236, 226, 0.82);
  border-bottom: 1px solid rgba(224, 213, 198, 0.8);
}

.header-inner,
.hero-inner,
.band,
.footer-inner,
.page-main {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark:hover {
  color: var(--ink);
}

.header-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
}

.header-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--ink);
}

.hero {
  padding: 3.2rem 0 2.2rem;
}

.kicker {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--berry);
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.35rem, 6.4vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.hero-sub {
  margin: 0.4rem 0 0;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 500;
  font-size: clamp(2.05rem, 5.5vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 16em;
}

.lede {
  max-width: 38rem;
  margin: 1.25rem 0 0;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.hero-copy {
  min-width: 0;
}

.hero-art {
  margin-top: 1.25rem;
}

.hero-art img {
  width: min(100%, 24rem);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.trust {
  margin: 1.35rem 0 0;
  padding: 0.95rem 1.1rem;
  background: rgba(255, 252, 247, 0.7);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 44rem;
}

.trust strong {
  color: var(--ink);
  font-weight: 700;
}

.filters {
  position: sticky;
  top: 4.25rem;
  z-index: 40;
  padding: 0.75rem 0 0.9rem;
  background: linear-gradient(to bottom, rgba(243, 236, 226, 0.94), rgba(243, 236, 226, 0.86) 70%, rgba(243, 236, 226, 0));
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.48rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover {
  border-color: var(--pine);
  transform: translateY(-1px);
}

.filter-btn:focus-visible {
  outline: 2px solid var(--pine);
  outline-offset: 2px;
}

.filter-btn[aria-pressed="true"] {
  background: var(--pine-deep);
  border-color: var(--pine-deep);
  color: var(--paper);
}

.filter-btn.toggle[aria-pressed="true"] {
  background: var(--berry);
  border-color: var(--berry);
}

.filter-note {
  margin: 0.7rem 0 0;
  color: var(--ink-faint);
  font-size: 0.84rem;
}

.section {
  padding: 0.5rem 0 2.6rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1.15rem;
}

.section h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.section-intro {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
  max-width: 36rem;
}

.count {
  color: var(--ink-faint);
  font-size: 0.9rem;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.grid.featured {
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 100%;
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  flex: 0 0 auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f4eee6 0%, #efe6da 100%);
}

.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.85rem;
}

.badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  background: rgba(255, 252, 247, 0.92);
  color: var(--berry);
  border: 1px solid var(--blush-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}

.card-tag {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}

.card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.42rem;
  line-height: 1.2;
  font-weight: 600;
}

.why {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  flex: 1;
}

.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.72rem 0.9rem;
  background: var(--pine-deep);
  color: var(--paper);
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cta:hover {
  background: var(--navy);
  color: var(--paper);
  transform: translateY(-1px);
}

.cta:focus-visible {
  outline: 2px solid var(--blush);
  outline-offset: 3px;
}

.card.is-hidden,
.section.is-hidden {
  display: none;
}

.empty {
  display: none;
  padding: 2rem 0 3rem;
  color: var(--ink-soft);
}

.empty.is-visible {
  display: block;
}

.divider-ornament {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 0.4rem 0 2rem;
}

.legal-page {
  padding: 2.5rem 0 4rem;
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 0.4rem;
}

.legal-page .updated {
  color: var(--ink-faint);
  margin: 0 0 1.8rem;
}

.legal-page h2 {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  margin: 1.8rem 0 0.5rem;
}

.legal-page p,
.legal-page li {
  color: var(--ink-soft);
  max-width: 42rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #efe6d8;
  padding: 2.2rem 0 2.6rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.2rem;
}

.footer-links a {
  color: var(--ink);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.disclosure {
  margin: 0;
  max-width: 46rem;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 720px) {
  .hero-inner {
    display: grid;
    grid-template-columns: minmax(16.5rem, 1fr) minmax(0, 1.15fr);
    align-items: stretch;
    column-gap: clamp(1.25rem, 4vw, 3rem);
  }

  .hero-art {
    margin-top: 0;
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    min-width: 0;
  }

  .hero-art img {
    width: auto;
    height: 0;
    min-height: 100%;
    max-width: 100%;
    min-width: 0;
    object-fit: contain;
    object-position: center right;
  }
}

@media (min-width: 980px) {
  .hero {
    padding: 4.4rem 0 2.8rem;
  }

  .hero-inner {
    grid-template-columns: minmax(18rem, 1fr) minmax(0, 1.4fr);
  }

  .header-inner,
  .hero-inner,
  .band,
  .footer-inner,
  .page-main {
    width: min(var(--max), calc(100% - 3.5rem));
  }

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

  .trust {
    padding: 1rem 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .filter-btn,
  .cta { transition: none; }
  .filter-btn:hover,
  .cta:hover { transform: none; }
}
