:root {
  --ivory: #f4efe6;
  --paper: #fffaf3;
  --ink: #1c1915;
  --ink-soft: #3f3a33;
  --muted: #6f675c;
  --line: #e4dcd0;
  --gold: #8f6b3e;
  --gold-deep: #734f28;
  --gold-pale: #eadcc7;
  --forest: #24352f;
  --error: #8b3a2f;
  --success: #2f5d45;
  --shadow: 0 18px 40px rgba(28, 25, 21, 0.06);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.65;
  min-height: 100vh;
}

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

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1rem; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.8rem;
  z-index: 100;
}

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

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.85rem;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 42rem;
}

.muted { color: var(--muted); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

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

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

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 400;
}

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

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--gold);
}

.nav-cta {
  border: 1px solid var(--ink);
  padding: 0.45rem 0.9rem;
  color: var(--ink) !important;
}

.nav-cta:hover {
  background: var(--ink);
  color: var(--paper) !important;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  margin: 6px auto;
}

/* Footer */
.site-footer {
  background: var(--forest);
  color: #e7e1d6;
  margin-top: 5rem;
  padding: 3.5rem 0 1.5rem;
}

.site-footer a { color: #eadcc7; }
.site-footer a:hover { color: #fff; }

.footer-inner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1.4fr 0.8fr 0.8fr;
  gap: 2rem;
}

.footer-wordmark {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #fffaf3;
  margin-bottom: 0.6rem;
}

.footer-lede { color: #cfc6b8; }

.footer-col h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c4a574;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.4rem; }

.footer-bottom {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(231, 225, 214, 0.18);
  font-size: 0.88rem;
  color: #b7aea0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
}

.btn-solid:hover {
  background: var(--gold-deep);
  color: var(--paper);
}

.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-gold {
  background: var(--gold);
  color: #fffaf3;
}

.btn-gold:hover {
  background: var(--gold-deep);
  color: #fffaf3;
}

.text-link {
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}

.text-link:hover { border-bottom-color: var(--ink); }

/* Hero variants */
.hero-editorial {
  padding: 4.5rem 0 2rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: end;
}

.hero-editorial .caption {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.hero-editorial img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-page {
  padding: 3.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.5rem;
}

.hero-page h1 { max-width: 18ch; }

.figure-frame img {
  width: 100%;
  object-fit: cover;
}

/* Layout blocks */
.band {
  padding: 4rem 0;
}

.band-paper {
  background: var(--paper);
}

.band-ink {
  background: var(--ink);
  color: #e7e1d6;
}

.band-ink h2, .band-ink h3 { color: #fffaf3; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.trio, .quad, .duo {
  display: grid;
  gap: 1.5rem;
}

.duo { grid-template-columns: 1fr 1fr; }
.trio { grid-template-columns: repeat(3, 1fr); }
.quad { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.5rem;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.card h3 { margin-bottom: 0.4rem; }

.stat {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--ink);
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.quote {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.35;
  color: var(--ink);
}

.quote-sm {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.4;
}

.cite {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.stars {
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.avatar {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 50%;
}

.meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.chip {
  display: inline-block;
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-right: 0.35rem;
  margin-bottom: 0.35rem;
}

.module {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}

.module b {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--ink);
}

.faq p { margin-top: 0.7rem; }

.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 2rem 1.6rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.price-card.featured {
  border-color: var(--ink);
  background: #fff;
}

.price-card .amount {
  font-family: var(--serif);
  font-size: 2.4rem;
  margin: 0.4rem 0 1rem;
}

.price-card ul {
  padding-left: 1.1rem;
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  flex: 1;
}

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

table.plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.plain th,
table.plain td {
  text-align: left;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.plain th {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Forms */
form[data-mock-form] {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1.75rem;
}

.field { margin-bottom: 1rem; }

.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--ink-soft);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.7rem 0.8rem;
}

.field textarea { min-height: 140px; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold-pale);
  border-color: var(--gold);
}

.field-error,
.inline-error,
.form-status.is-error,
.chrome-error,
.nav-error,
.cookie-error {
  color: var(--error);
  font-size: 0.88rem;
  margin: 0.35rem 0 0;
}

.form-status.is-success {
  color: var(--success);
  margin-top: 0.8rem;
}

.legal h2 { margin-top: 2rem; }
.legal ul { color: var(--ink-soft); }

.article {
  max-width: 42rem;
}

.article img.cover {
  width: 100%;
  height: 360px;
  object-fit: cover;
  margin: 0 0 1.5rem;
}

.case {
  background: var(--paper);
  border-left: 3px solid var(--gold);
  padding: 1.5rem 1.6rem;
  margin: 1.5rem 0;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.3rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  justify-content: space-between;
  max-width: 920px;
  margin: 0 auto;
}

.cookie-copy { margin: 0; max-width: 40rem; }
.cookie-copy p { margin: 0; }
.cookie-actions { display: flex; gap: 0.6rem; flex-shrink: 0; }

.page-404 {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1.25rem;
}

.page-404 .code {
  font-family: var(--serif);
  font-size: 6rem;
  color: var(--gold);
  line-height: 1;
}

@media (max-width: 960px) {
  .hero-editorial,
  .split,
  .footer-inner,
  .trio,
  .quad,
  .duo {
    grid-template-columns: 1fr;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 1.25rem 1.4rem;
    gap: 0.85rem;
  }

  .site-nav.is-open { display: flex; }

  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 640px) {
  .wrap, .header-inner, .footer-inner, .footer-bottom {
    width: calc(100% - 1.5rem);
  }

  .hero-editorial img { height: 260px; }
  .article img.cover { height: 220px; }
}
