/* ═══════════════════════════════════════════════════════════════════════
   BRIDE SOCIETY — editorial redesign (test)
   Design system: every theme-able value is a token on :root.
   A future theme overrides tokens only; layout below never changes.
   ═══════════════════════════════════════════════════════════════════════ */

/* Script faces for the theme previews — same faces the real themes use. */
@import url('https://fonts.googleapis.com/css2?family=Pinyon+Script&family=Parisienne&family=Great+Vibes&family=Cormorant+Garamond:wght@500;600&display=swap');

:root {
  /* type */
  --font-display: 'Bodoni Moda', 'Didot', 'Playfair Display', Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', 'Inter',
               'Segoe UI', Arial, sans-serif;
  /* The brand hand. Tiny x-height — needs ~1.5× the size of neighbouring
     text and generous line-height; never caps, never letter-spacing. */
  --font-script: 'Monsieur La Doulaise', 'Snell Roundhand', cursive;

  /* color */
  --bg: #fffdfa;            /* warm white */
  --bg-card: #fbf8f2;       /* slightly toned card ground */
  --ink: #1c1917;           /* near-black espresso */
  --ink-soft: #5c554d;      /* secondary text */
  --accent: #92a8bd;        /* muted powder blue — used sparingly */
  --rule: #e3dccf;          /* hairline dividers */
  --rule-dark: #1c1917;     /* strong dividers */

  /* shape */
  --radius: 2px;            /* almost square — stationery, not SaaS */

  /* rhythm */
  --measure: 34em;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-gap: clamp(5rem, 12vw, 9rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 0.6em 1.2em;
  z-index: 20;
}

.skip:focus { left: 0; }

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── small utilities ─────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.serif-note {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--ink-soft);
}

/* ── header ──────────────────────────────────────────────────────────── */

.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 3.75rem;
}

.wordmark {
  font-family: var(--font-script);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  align-items: center;
}

.site-nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.15s;
}

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

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 0.9em 2.2em;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

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

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

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

.site-nav .btn { padding: 0.7em 1.6em; }

.nav-links-collapse { display: contents; }

@media (max-width: 720px) {
  .nav-links-collapse { display: none; }
}

/* ── hero ────────────────────────────────────────────────────────────── */

.hero {
  padding-top: clamp(5rem, 14vh, 9rem);
  padding-bottom: clamp(4rem, 10vh, 7rem);
  text-align: center;
}

.hero-kicker {
  margin-bottom: 2.25rem;
}

.hero h1 {
  /* The brand hand at full size — joined letters, so no caps, no tracking,
     and roomy line-height so the flourished capitals don't clip. */
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.25rem, 9.5vw, 7.5rem);
  line-height: 1.35;
}

.hero-tag {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  margin-top: 1.75rem;
  color: var(--ink);
}

.hero-desc {
  max-width: 26em;
  margin: 1.5rem auto 0;
  color: var(--ink-soft);
}

.hero-cta {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.text-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.35em;
  transition: color 0.15s, border-color 0.15s;
}

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

.hero-rule {
  width: 3.5rem;
  height: 1px;
  background: var(--rule-dark);
  margin: 3.5rem auto 0;
  border: 0;
}

.hero-facts {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6em 0;
  margin-top: 2rem;
}

.hero-facts li {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.hero-facts li + li::before {
  content: '·';
  margin: 0 1.1em;
  color: var(--accent);
}

/* ── section scaffolding ─────────────────────────────────────────────── */

.section {
  margin-top: var(--section-gap);
  /* full-bleed chapter rule, edge to edge of the viewport */
  border-top: 1px solid var(--rule-dark);
  padding-top: 1.25rem;
}

/* paper-stock bands — full-bleed tinted sections; their color edge is the
   divider, so the rule is dropped and rhythm comes from the tone change */
.band {
  border-top: 0;
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}

.band-ecru {
  background: #f7f1e4;      /* cream */
  --bg-card: #fbf6ec;
  --rule: #e2d9c6;
}

.band-powder {
  background: #ecf1f3;
  --rule: #d3dde2;
}

.band-dark {
  background: #f5cdd5;      /* blush pink */
  color: #1c1917;
  --ink: #1c1917;
  --ink-soft: #6b4a52;
  --rule: #e8b4be;
  --rule-dark: #1c1917;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── how it works ────────────────────────────────────────────────────── */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; gap: 2.75rem; }
}

.steps li {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent);
  display: block;
  margin-bottom: 1rem;
}

.steps h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.steps p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}

/* ── game library ────────────────────────────────────────────────────── */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  border-top: 1px solid var(--rule);
  border-left: 1px solid var(--rule);
}

.game-card {
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 15rem;
  transition: background 0.2s;
}

.game-card:hover { background: var(--bg-card); }

.game-card .g-num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.game-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4375rem;
  line-height: 1.15;
}

.game-card p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  flex: 1;
}

.game-card .g-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
}

.game-card .g-format {
  font-size: 0.6563rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.game-card h3 a { text-decoration: none; }
.game-card h3 a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.2em; }

.game-card .g-free {
  font-size: 0.6563rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

/* ── themes ──────────────────────────────────────────────────────────── */

.themes-intro {
  max-width: 30em;
  color: var(--ink-soft);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* theme tabs */

.theme-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-bottom: 2rem;
}

.theme-tab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  cursor: pointer;
  border-bottom: 1px solid transparent;
}

/* A mini circle of each theme's own ground: the doily, the stripes, the
   lace, the ink drawing. Shared with the theme pages (pages.css). */
.t-swatch {
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  outline: 1px solid var(--rule);
  outline-offset: 2px;
  background: var(--sw, #fdfaf4) center / cover no-repeat;
}
.t-swatch[data-pt="classic"]   { --sw: #fdfaf4; background-image: linear-gradient(135deg, #fffdfa, #f3e9dc); }
.t-swatch[data-pt="victorian"] { background-image: url('/themes/victorian/doily.jpg'); background-size: 100% auto; background-position: center 40%; }
.t-swatch[data-pt="unwind"]    { background-image: url('/themes/unwind/tile.jpg'); background-size: 130px auto; }
.t-swatch[data-pt="rodeo"]     { --sw: #ffffff; background-image: url('/themes/rodeo/hat.png'); background-size: 80%; }
.t-swatch[data-pt="lace"]      { background-image: url('/themes/lace/tile.jpg'); background-size: 150px auto; }
.t-swatch[data-pt="garden"]    { background-image: linear-gradient(135deg, #f1f3e6, #d8ddc4); }
.t-swatch[data-pt="riviera"]   { --sw: #e3ecf0; background-image: none; }
.theme-tab.is-active .t-swatch { outline-color: var(--rule-dark); }

.theme-tab .t-name {
  font-family: var(--font-body);
  font-size: 0.6563rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.theme-tab.is-active { border-bottom-color: var(--rule-dark); }
.theme-tab.is-active .t-name { color: var(--ink); }

/* the preview stage — each theme swaps only these --p- tokens */

.theme-stage {
  --p-bg: var(--bg-card);
  --p-ink: var(--ink);
  --p-soft: var(--ink-soft);
  --p-rule: var(--rule);
  --p-accent: var(--accent);
  --p-display: var(--font-display);
  --p-script: var(--font-script);
  --p-radius: 2px;
  --p-border: 1px solid var(--rule);
  --p-question-style: normal;
}

.theme-stage[data-pt="victorian"] {
  --p-bg: #fdf9f5;
  --p-ink: #3a2c2c;
  --p-soft: #7d6666;
  --p-rule: #dfcdc9;
  --p-accent: #b8636f;
  --p-display: 'Bodoni Moda', Georgia, serif;
  --p-script: 'Parisienne', 'Snell Roundhand', 'Apple Chancery', cursive;
  --p-radius: 4px;
  --p-border: 3px double #dfcdc9;
  --p-question-style: italic;
}
.theme-stage[data-pt="victorian"] .ps-screen {
  background-image: url('/themes/victorian/doily.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}
/* the doily is busy: float the screen's text on a sheer ivory panel, the
   lace showing around its edges */
.theme-stage[data-pt="victorian"] .ps-screen::before {
  content: '';
  position: absolute;
  inset: clamp(0.9rem, 2.5vw, 1.75rem);
  background: rgba(255, 253, 251, 0.8);
  border: 1px solid rgba(58, 44, 44, 0.12);
  border-radius: 4px;
}
.theme-stage[data-pt="victorian"] .ps-screen > * { position: relative; }

.theme-stage[data-pt="unwind"] {
  --p-bg: #f9f7f1;
  --p-ink: #33414c;
  --p-soft: #6f7d88;
  --p-rule: #cddbe5;
  --p-accent: #6f93ad;
  --p-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --p-script: 'Great Vibes', 'Snell Roundhand', 'Apple Chancery', cursive;
  --p-radius: 18px;
  --p-border: 1px solid #cddbe5;
  --p-question-style: italic;
}
.theme-stage[data-pt="unwind"] .ps-screen {
  background-image: url('/themes/unwind/tile.jpg');
  background-size: 420px auto;
}

.theme-stage[data-pt="rodeo"] {
  --p-bg: #ffffff;
  --p-ink: #141414;
  --p-soft: #5c5c57;
  --p-rule: #d5d5d0;
  --p-accent: #141414;
  --p-display: 'EB Garamond', Baskerville, Georgia, serif;
  --p-radius: 0;
  --p-border: 1.5px solid #141414;
}

.theme-stage[data-pt="lace"] {
  --p-bg: #fbf8f2;
  --p-ink: #3d3125;
  --p-soft: #7b6b56;
  --p-rule: #dccfb8;
  --p-accent: #a78654;
  --p-display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --p-script: 'Pinyon Script', 'Snell Roundhand', 'Apple Chancery', cursive;
  --p-radius: 14px;
  --p-border: 1px solid #dccfb8;
  --p-question-style: italic;
}
.theme-stage[data-pt="lace"] .ps-screen {
  background-image: url('/themes/lace/tile.jpg');
  background-size: 420px auto;
}

.theme-stage[data-pt="garden"] {
  --p-bg: #eef0e4;
  --p-ink: #41552f;
  --p-soft: #74855f;
  --p-rule: #ccd3ba;
  --p-accent: #8a5a68;
  --p-display: 'EB Garamond', Baskerville, Georgia, serif;
  --p-question-style: italic;
  --p-radius: 10px;
  --p-border: 1px solid #b9c3a2;
}

.theme-stage[data-pt="riviera"] {
  --p-bg: #e3ecf0;
  --p-ink: #274a5e;
  --p-soft: #5e7d8e;
  --p-rule: #bfd2da;
  --p-accent: #b3552e;
  --p-display: 'Bodoni Moda', Georgia, serif;
  --p-border: 1px solid #274a5e;
}

.ps-screen {
  background: var(--p-bg);
  color: var(--p-ink);
  border: var(--p-border);
  border-radius: var(--p-radius);
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 6vw, 4rem);
  text-align: center;
  transition: background 0.35s, color 0.35s, border 0.35s;
}

.ps-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--p-rule);
  padding-bottom: 1rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.75rem);
}

.ps-brand {
  font-family: var(--p-script);
  font-size: var(--p-brand-size, 1.6rem);
  line-height: 1.3;
}

.ps-room, .ps-foot, .ps-kicker {
  font-family: var(--font-body);
  font-size: 0.6563rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--p-soft);
}

.ps-motif[hidden] { display: none; }

.ps-motif {
  display: block;
  margin: 0 auto 1.25rem;
  height: 72px;
  width: auto;
}

.ps-question {
  font-family: var(--p-display);
  font-style: var(--p-question-style);
  font-size: clamp(1.5rem, 3.6vw, 2.375rem);
  line-height: 1.25;
  max-width: 18em;
  margin: 1.25rem auto 0;
}

.ps-options {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.ps-option {
  border: 1px solid var(--p-rule);
  border-radius: var(--p-radius);
  padding: 0.85em 1.6em;
  font-size: 0.875rem;
}

.ps-option em {
  font-family: var(--p-display);
  font-style: normal;
  color: var(--p-accent);
  margin-right: 0.7em;
}

.ps-foot {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.ps-caption {
  text-align: center;
  margin-top: 1.5rem;
}

.themes-note {
  margin-top: 2rem;
  text-align: center;
}

/* ── pricing ─────────────────────────────────────────────────────────── */

.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule-dark);
  border-bottom: 1px solid var(--rule-dark);
}

@media (max-width: 780px) {
  .pricing { grid-template-columns: 1fr; }
  .price-col + .price-col { border-left: 0; border-top: 1px solid var(--rule); }
}

.price-col {
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.price-col + .price-col { border-left: 1px solid var(--rule); }

.price-col h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1;
}

.price-amount small {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-left: 0.6em;
}

.price-col p {
  font-size: 0.9063rem;
  color: var(--ink-soft);
  flex: 1;
}

.price-col .btn, .price-col .text-link { align-self: flex-start; }

/* ── testimonial ─────────────────────────────────────────────────────── */

.testimonial {
  text-align: center;
  max-width: 34em;
  margin-left: auto;
  margin-right: auto;
}

.testimonial blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.6vw, 2.375rem);
  line-height: 1.3;
}

.testimonial cite {
  display: block;
  margin-top: 1.75rem;
  font-style: normal;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.faq { max-width: 42rem; }

.faq details { border-bottom: 1px solid var(--rule); }

.faq summary {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  padding: 1.4rem 2.5rem 1.4rem 0;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.25rem;
  color: var(--ink-soft);
}

.faq details[open] summary::after { content: '–'; }

.faq details p {
  padding: 0 0 1.6rem;
  max-width: var(--measure);
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

/* ── closing / footer ────────────────────────────────────────────────── */

.closing {
  margin-top: var(--section-gap);
  border-top: 1px solid var(--rule-dark);
  padding: clamp(5rem, 12vw, 8rem) 0;
  text-align: center;
}

.closing h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.25rem, 7vw, 5rem);
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.closing h2 em {
  font-style: italic;
  text-transform: none;
  letter-spacing: 0;
}

.closing .btn { margin-top: 3rem; }

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 3rem 0 4rem;
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem 3rem;
}

.foot-brand .wordmark { font-size: 1.5rem; }

.closing-brand {
  font-family: var(--font-script);
  font-size: 2rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.foot-brand .serif-note {
  display: block;
  font-size: 0.9375rem;
  margin-top: 0.35rem;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.75rem;
}

.foot-links a {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}

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