/* =========================================================
   VIVERE GLOBAL — Design System
   ---------------------------------------------------------
   A restrained, editorial luxury system:
   maroon anchors, gold elevates, ivory breathes.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Palette */
  --maroon: #8D0452;
  --maroon-deep: #5E0135;
  --maroon-tint: #A82872;
  --gold: #FEA103;
  --gold-soft: #F6C667;
  --champagne: #F7EFE6;
  --ivory: #FBF8F4;
  --white: #FFFFFF;
  --charcoal: #1E1A1D;
  --muted: #6B5F66;
  --line: rgba(141, 4, 82, 0.12);
  --gold-line: rgba(254, 161, 3, 0.35);

  /* Type */
  --font-serif: "Cormorant Garamond", "Playfair Display", "Cormorant", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Fluid type scale */
  --fs-xxl: clamp(3rem, 6vw + 1rem, 6rem);
  --fs-xl: clamp(2.25rem, 3.5vw + 1rem, 4.25rem);
  --fs-lg: clamp(1.75rem, 2vw + 1rem, 2.75rem);
  --fs-md: clamp(1.25rem, 0.6vw + 1rem, 1.5rem);
  --fs-body: clamp(1rem, 0.15vw + 0.95rem, 1.125rem);
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;

  /* Spacing */
  --space-xxs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-xxl: 8rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Layout */
  --max-w: 1240px;
  --max-w-text: 62ch;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-quick: 220ms;
  --dur-med: 480ms;
  --dur-slow: 900ms;

  /* Radius & shadow */
  --radius-sm: 4px;
  --radius: 8px;
  --shadow-card: 0 20px 40px -30px rgba(30, 26, 29, 0.35);
  --shadow-hover: 0 30px 60px -35px rgba(30, 26, 29, 0.45);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea, button { font-family: inherit; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.15; letter-spacing: -0.005em; margin: 0; color: var(--charcoal); }
p { margin: 0 0 1.1em; }
::selection { background: var(--maroon); color: var(--ivory); }

/* Screen-reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 1rem; background: var(--maroon); color: var(--ivory); padding: 0.65rem 1rem; z-index: 200; }
.skip-link:focus { left: 1rem; outline: 2px solid var(--gold); }

/* ---------- Utility ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--maroon);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--ivory { color: var(--gold-soft); }
.rule { height: 1px; width: 60px; background: var(--gold); margin: 1.25rem auto; border: 0; }
.rule--left { margin-left: 0; margin-right: 0; }
.center { text-align: center; }
.italic { font-style: italic; }
.serif { font-family: var(--font-serif); }
.section { padding-block: clamp(4rem, 8vw, 8rem); }
.section--ivory { background: var(--ivory); }
.section--champagne { background: var(--champagne); }
.section--maroon { background: var(--maroon-deep); color: var(--ivory); }
.section--maroon h1, .section--maroon h2, .section--maroon h3, .section--maroon h4 { color: var(--ivory); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); will-change: opacity, transform; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: background var(--dur-quick) var(--ease), color var(--dur-quick) var(--ease), border-color var(--dur-quick) var(--ease), transform var(--dur-quick) var(--ease);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
}
.btn--primary { background: var(--maroon); color: var(--ivory); }
.btn--primary:hover { background: var(--maroon-deep); box-shadow: inset 0 -2px 0 var(--gold); }
.btn--gold { background: var(--gold); color: var(--maroon-deep); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--outline { background: transparent; color: var(--charcoal); border-color: var(--charcoal); }
.btn--outline:hover { background: var(--charcoal); color: var(--ivory); }
.btn--ghost { background: transparent; color: var(--ivory); border-color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--maroon-deep); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn--sm { padding: 0.7rem 1.25rem; font-size: 0.7rem; }

/* Link with animated gold underline */
.ulink { position: relative; display: inline-block; padding-bottom: 3px; }
.ulink::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform var(--dur-med) var(--ease); }
.ulink:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 90;
  padding-block: 1.1rem;
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease), padding var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
  color: var(--ivory);
}
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(255,255,255,0.08); opacity: 0; transition: opacity var(--dur-med) var(--ease);
}
.site-header.is-solid { background: var(--ivory); color: var(--charcoal); padding-block: 0.75rem; box-shadow: 0 8px 24px -22px rgba(0,0,0,0.5); }
.site-header.is-solid::after { background: var(--line); opacity: 1; }
.site-header.on-light { color: var(--charcoal); }
.site-header.on-light.is-solid { background: var(--ivory); }

.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
/* -------------------------------------------------------------
   Brand logo — the source PNG has significant whitespace baked
   around the wordmark. We show the logo inside a fixed-size box
   with overflow:hidden and scale the image up so the WORDMARK
   itself is the visible size (whitespace gets clipped).
   ------------------------------------------------------------- */
.brand {
  display: inline-block;
  position: relative;
  width: 262px;
  height: 95px;
  overflow: hidden;
  line-height: 0;
  transition: width var(--dur-med) var(--ease), height var(--dur-med) var(--ease);
}
.brand img {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  height: 370px;
  width: auto;
  display: block;
  transition: filter var(--dur-med) var(--ease);
}
.site-header:not(.is-solid) .brand img { filter: brightness(0) invert(1); }
.site-header.is-solid .brand { width: 228px; height: 84px; }
.site-header.is-solid .brand img { height: 323px; }
@media (max-width: 640px) {
  .brand { width: 204px; height: 78px; }
  .brand img { height: 294px; }
  .site-header.is-solid .brand { width: 186px; height: 70px; }
  .site-header.is-solid .brand img { height: 272px; }
}
.nav-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 2rem; align-items: center;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
}
.nav-list a { position: relative; padding-block: 0.5rem; }
.nav-list a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform var(--dur-med) var(--ease); }
.nav-list a:hover::after, .nav-list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-list a[aria-current="page"] { color: var(--gold); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid currentColor; border-radius: 2px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 1px; background: currentColor; position: relative; transition: transform var(--dur-med) var(--ease), opacity var(--dur-quick);
}
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; z-index: 101; }
  .nav-list {
    position: fixed; inset: 0;
    background: var(--maroon-deep); color: var(--ivory);
    flex-direction: column; justify-content: center; align-items: center; gap: 2rem;
    font-size: 1rem; letter-spacing: 0.28em;
    transform: translateX(100%); transition: transform var(--dur-med) var(--ease);
    padding: 4rem 1.5rem;
  }
  .nav-list.is-open { transform: none; }
  .nav-list a::after { background: var(--gold); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  color: var(--ivory);
  overflow: hidden;
  isolation: isolate;
  padding-block: 8rem 6rem;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 700px at 80% 20%, rgba(254, 161, 3, 0.14), transparent 60%),
    linear-gradient(140deg, var(--maroon-deep), var(--maroon) 55%, #6b0140);
}
.hero::after {
  /* subtle grain */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 4px 4px, 6px 6px; background-position: 0 0, 2px 3px;
  mix-blend-mode: overlay; opacity: 0.55;
}
.hero__inner { max-width: 900px; }
.hero__eyebrow { color: var(--gold-soft); }
.hero__title { font-size: var(--fs-xxl); font-style: italic; line-height: 1.02; letter-spacing: -0.01em; margin-bottom: 1.4rem; }
.hero__subtitle { font-size: var(--fs-md); max-width: 55ch; opacity: 0.92; margin-bottom: 2.25rem; font-weight: 300; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Page banner (smaller hero on subpages) */
.banner {
  position: relative;
  color: var(--ivory);
  padding: clamp(9rem, 15vw, 12rem) 0 clamp(4rem, 8vw, 6rem);
  isolation: isolate;
  overflow: hidden;
}
.banner::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(150deg, var(--maroon-deep), var(--maroon) 60%, #6b0140);
}
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 5px 5px; opacity: 0.4; pointer-events: none;
}
.banner h1 { font-size: var(--fs-xl); font-style: italic; max-width: 20ch; }
.banner p { max-width: 60ch; opacity: 0.9; margin-top: 1.25rem; }

/* ---------- Section headings ---------- */
.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-head--left { text-align: left; margin-inline: 0; }
.section-head h2 { font-size: var(--fs-xl); }
.section-head p { color: var(--muted); margin-top: 1rem; }

/* ---------- Video ---------- */
.video-wrap {
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #2b0116, var(--maroon-deep));
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gold-line);
}
/* Portrait variant — 9:16 YouTube Short. Centered, capped max-height on
   desktop so the frame is a portrait, not letterboxed; near-full-width on
   mobile where portrait already fits the viewport. */
.video-wrap--portrait {
  aspect-ratio: 9/16;
  max-height: min(78vh, 720px);
  max-width: min(420px, 92vw);
  margin: 0 auto;
}
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; z-index: 0; }
.video-play {
  position: absolute; inset: 0; display: grid; place-items: center; color: var(--ivory);
  background: linear-gradient(180deg, rgba(30, 26, 29, 0.15), rgba(30, 26, 29, 0.45));
  z-index: 1;
  transition: background var(--dur-med) var(--ease);
}
.video-play:hover { background: linear-gradient(180deg, rgba(30, 26, 29, 0.25), rgba(30, 26, 29, 0.55)); }
.video-play__btn {
  width: 84px; height: 84px; border-radius: 50%;
  background: rgba(254, 161, 3, 0.15); border: 1px solid var(--gold);
  display: grid; place-items: center; transition: transform var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
}
.video-play__btn::before {
  content: ""; width: 0; height: 0; border-left: 18px solid var(--gold); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px;
}
.video-play:hover .video-play__btn { transform: scale(1.05); background: rgba(254, 161, 3, 0.28); }
.video-caption { color: var(--gold-soft); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.75rem; margin-top: 1rem; }

/* The transparent full-cover button that captures the click-to-play
   intent. Inherits the poster + overlay as its visual children. */
.video-play-btn {
  position: absolute; inset: 0;
  border: 0; padding: 0; margin: 0; background: transparent;
  cursor: pointer;
  width: 100%; height: 100%;
}
.video-play-btn:focus-visible .video-play__btn {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
.video-play--overlay { pointer-events: none; } /* the button itself is the click target */

/* ---------- Mission / pull-quote ---------- */
.mission { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.4vw + 0.5rem, 2.35rem); line-height: 1.35; max-width: 32ch; margin-inline: auto; }
.pullquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 2.4vw + 0.5rem, 2.5rem);
  line-height: 1.35;
  max-width: 34ch; margin-inline: auto;
  position: relative;
  padding: 2rem 1rem;
}
.pullquote::before {
  content: "\201C";
  position: absolute; top: -0.6rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-serif); font-size: 5rem; color: var(--gold); line-height: 1;
}
.pullquote--left { max-width: 44ch; margin-inline: 0; text-align: left; }
.pullquote--left::before { left: 0; transform: none; }
.pullquote cite { display: block; margin-top: 1.25rem; font-style: normal; font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--maroon); }
.section--maroon .pullquote cite { color: var(--gold-soft); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--dur-med) var(--ease), box-shadow var(--dur-med) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__media {
  aspect-ratio: 4/5; background: linear-gradient(135deg, var(--champagne), #eadfd0);
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.card:hover .card__media img { transform: scale(1.03); }

/* What Is Coming cards — image gets a maroon gradient overlay so it stays
   brand-consistent and any overlaid text / adjacent eyebrow reads clearly.
   Pseudo-element sits above the background image but below any child
   elements (badge, etc.), and does not intercept clicks. */
.card__media--overlay::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(
    170deg,
    rgba(94, 1, 53, 0.30) 0%,
    rgba(94, 1, 53, 0.55) 55%,
    rgba(30, 0, 20, 0.80) 100%
  );
  pointer-events: none;
  z-index: 1;
}
/* The overlay must sit ABOVE the injected <img> but BELOW small
   overlays like a badge. Explicit z-order: img → overlay → badge. */
.card__media--overlay > img { position: relative; z-index: 0; }
.card__media--overlay > .card__badge { position: absolute; z-index: 2; }

/* Program tag — the "Coming Soon" pill on coming-soon.html program
   sections. Sits above the eyebrow, on brand, obviously toggleable. */
.program-tag {
  display: inline-flex; align-items: center;
  padding: 0.35rem 0.75rem;
  background: var(--gold);
  color: var(--maroon-deep);
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-radius: 2px;
  margin-bottom: 0.85rem;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.program-tag[hidden] { display: none; }
.card__badge {
  position: absolute; top: 0.85rem; right: 0.85rem;
  background: var(--gold); color: var(--maroon-deep);
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.3rem 0.55rem;
  font-weight: 500; border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  /* Sits inside the media area (above the image only) so it can never overlap the title in the body. */
  z-index: 2;
}
.card__body { padding: 1.75rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__eyebrow { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); }
.card__title { font-family: var(--font-serif); font-size: 1.6rem; }
.card__desc { color: var(--muted); font-size: 0.95rem; }
.card__foot { margin-top: auto; padding-top: 1rem; }
.card__price { font-family: var(--font-serif); font-size: 1.25rem; color: var(--maroon); }

/* Book grid — tighter, portrait covers */
.book-card .card__media { aspect-ratio: 2/3; background: linear-gradient(160deg, #efe4d3, #d7c8b0); }
.book-card .card__title { font-size: 1.25rem; }

/* ---------- Feature (alternating) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(4rem, 8vw, 7rem); }
.feature--reverse .feature__media { order: 2; }
.feature__media {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(140deg, var(--champagne), #e6d7c1);
  overflow: hidden;
  border-radius: 4px;
}
.feature__media::after {
  /* thin gold frame */
  content: ""; position: absolute; inset: 14px; border: 1px solid var(--gold); pointer-events: none;
}
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body h3 { font-size: var(--fs-lg); margin-bottom: 1rem; }
.feature__tag { font-family: var(--font-serif); font-style: italic; color: var(--maroon); margin-top: 1.25rem; font-size: 1.15rem; }
@media (max-width: 780px) {
  .feature { grid-template-columns: 1fr; }
  .feature--reverse .feature__media { order: 0; }
}

/* ---------- Split (about page) ---------- */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.split__media { aspect-ratio: 4/5; background: linear-gradient(140deg, #ecdccb, #cdb99f); position: relative; overflow: hidden; border-radius: 4px; }
.split__media::after { content: ""; position: absolute; inset: 16px; border: 1px solid var(--gold); pointer-events: none; z-index: 2; }
.split__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

/* ---------- Revamp (service) block ---------- */
.revamp {
  position: relative;
  color: var(--ivory);
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  overflow: hidden;
}
.revamp::after {
  content: ""; position: absolute; inset: 24px; border: 1px solid var(--gold-line); pointer-events: none;
}
.revamp .container { position: relative; z-index: 1; }
.revamp h2 { font-size: var(--fs-xl); }
.revamp p { max-width: 55ch; opacity: 0.9; }
.revamp__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* ---------- Forms ---------- */
.form {
  display: grid; gap: 1.25rem;
  background: var(--white);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.form__group { display: flex; flex-direction: column; gap: 0.4rem; }
.form__group label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--maroon); font-weight: 500; }
.form__group input, .form__group select, .form__group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--charcoal);
  font-size: 1rem;
  transition: border-color var(--dur-quick) var(--ease), background var(--dur-quick) var(--ease);
}
.form__group textarea { min-height: 120px; resize: vertical; }
.form__group input:focus, .form__group select:focus, .form__group textarea:focus {
  outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 3px rgba(254,161,3,0.15);
}
.form__group .hint { color: var(--muted); font-size: 0.78rem; text-transform: none; letter-spacing: 0; }
.form__error { color: var(--maroon); font-size: 0.8rem; min-height: 1em; }
.form__submit { justify-self: start; }
.form__status { margin-top: 1rem; padding: 1rem; border: 1px solid var(--gold); color: var(--maroon); display: none; }
.form__status.is-visible { display: block; }
.form__status.is-error { border-color: var(--maroon); color: var(--maroon-deep); background: #fff4f4; }

/* Size chart */
.size-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-top: 0.5rem; }
.size-option { display: block; cursor: pointer; }
.size-option input { position: absolute; opacity: 0; pointer-events: none; }
.size-option__card {
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--ivory);
  text-align: center;
  transition: all var(--dur-quick) var(--ease);
  border-radius: 2px;
}
.size-option__card strong { display: block; font-family: var(--font-serif); font-size: 1.15rem; color: var(--maroon); }
.size-option__card span { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.size-option input:checked + .size-option__card { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 2px var(--gold); }
.size-option input:focus-visible + .size-option__card { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Testimonials ----------
   Text-only premium cards. The .testi-track scrolls horizontally
   (never the viewport — see main.js initTestimonials). Cards are
   equal height regardless of quote length because they are flex
   items (align-items: stretch, the default) and their interior
   is a flex column that pushes the name to the bottom. */
.testimonials { position: relative; }
.testi-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 2rem; padding: 1rem 0.25rem 2rem; scrollbar-width: none; align-items: stretch; }
.testi-track::-webkit-scrollbar { display: none; }
.testi {
  flex: 0 0 min(680px, 90%);
  scroll-snap-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem);
  padding-top:   clamp(3rem, 5vw, 4.25rem); /* room for the decorative " */
  border-radius: var(--radius);
  position: relative;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  min-height: clamp(320px, 32vh, 460px);   /* baseline so short quotes still feel premium */
}
.testi::before {
  content: "\201C";
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: clamp(3.5rem, 5vw, 5rem);
  position: absolute; top: 0.25rem; left: 1.5rem; line-height: 1;
  opacity: 0.9;
}
.testi__quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.15rem, 1.3vw + 0.65rem, 1.45rem);
  line-height: 1.55;
  color: var(--charcoal);
  margin: 0;
  padding: 0;
  border: 0;
  quotes: none;
  flex: 1 1 auto;         /* the quote expands to fill; footer pinned to bottom */
  display: flex;
  align-items: center;    /* short quotes float visually centered */
}
.testi__foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.25rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--gold-line, rgba(254,161,3,0.35));
  flex: 0 0 auto;         /* footer never shrinks */
}
.testi__name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--maroon);
  letter-spacing: 0.02em;
}
.testi__name::before {
  content: "\2014"; /* em dash */
  color: var(--gold);
  margin-right: 0.5rem;
}
.testi-controls { display: flex; gap: 0.75rem; justify-content: center; margin-top: 1.5rem; }
.testi-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: transparent; border: 1px solid var(--maroon);
  transition: background var(--dur-quick) var(--ease);
  padding: 0; cursor: pointer;
}
.testi-dot.is-active { background: var(--gold); border-color: var(--gold); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--gold-line);
  padding: 1.5rem 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--charcoal);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 14px; height: 14px;
  border-right: 1px solid var(--maroon); border-bottom: 1px solid var(--maroon);
  transform: rotate(45deg) translateY(-3px);
  transition: transform var(--dur-med) var(--ease);
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq__body { padding-top: 1rem; color: var(--muted); max-width: 62ch; }

/* ---------- Frames · Orientation chooser (Step 1) ---------- */
.orientation-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}
@media (max-width: 480px) { .orientation-choice { grid-template-columns: 1fr; } }
.orientation-option { display: block; cursor: pointer; position: relative; }
.orientation-option input {
  position: absolute; opacity: 0; pointer-events: none;
}
.orientation-option__card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--ivory);
  border-radius: 2px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  transition: all var(--dur-quick) var(--ease);
}
.orientation-option__card strong {
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--maroon);
}
.orientation-option__card span {
  font-size: 0.75rem; color: var(--muted); letter-spacing: 0.05em;
}
.orientation-option input:checked + .orientation-option__card {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 2px var(--gold);
}
.orientation-option input:focus-visible + .orientation-option__card {
  outline: 2px solid var(--gold); outline-offset: 3px;
}
.orientation-option__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  color: var(--maroon);
}
.orientation-icon--portrait::before,
.orientation-icon--landscape::before {
  content: "";
  display: block;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.orientation-icon--portrait::before { width: 22px; height: 30px; }
.orientation-icon--landscape::before { width: 30px; height: 22px; }
.orientation-option input:checked + .orientation-option__card .orientation-option__icon { color: var(--gold); }

/* Ensure the native [hidden] attribute always wins */
[hidden] { display: none !important; }

/* ---------- Frames · Size guide (real images) + lightbox ---------- */
.size-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 0.75rem;
}
@media (max-width: 640px) {
  .size-guide { grid-template-columns: 1fr; gap: 1rem; }
}
/* When only one guide is shown at a time (post-orientation choice) */
.size-guide--single {
  display: flex;
  justify-content: center;
}
.size-guide--single .size-guide__item {
  width: 100%;
  max-width: 480px;
}
.size-guide__item {
  margin: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
}
.size-guide__btn {
  padding: 0;
  background: var(--ivory);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  cursor: zoom-in;
  overflow: hidden;
  position: relative;
  transition: border-color var(--dur-quick) var(--ease), transform var(--dur-quick) var(--ease), box-shadow var(--dur-quick) var(--ease);
  aspect-ratio: 4/5;
  display: block;
  width: 100%;
}
.size-guide__btn:hover { border-color: var(--gold); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.size-guide__btn img { width: 100%; height: 100%; object-fit: contain; padding: 0.5rem; background: var(--ivory); }
.size-guide__item figcaption {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--maroon);
}

/* Simple hide/show hook for the size selector when Table Top is chosen */
.size-selector-wrap.is-hidden,
.size-guide-wrap.is-hidden { display: none; }
.tabletop-note[hidden] { display: none; }

/* Delivery address grid — 2 columns with street + country spanning full width */
.address-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.35rem;
}
.address-grid > input:first-child,   /* Street Address */
.address-grid > input:last-child {   /* Country */
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .address-grid { grid-template-columns: 1fr; }
}

/* Price shown on each size / material card */
.size-option__price {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-top: 0.35rem;
  text-transform: none;
}
.size-option input:checked + .size-option__card .size-option__price { color: var(--maroon); font-weight: 500; }

/* Material selector — 2 columns on desktop, 1 on narrow */
.size-chart--material {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-width: 480px;
}

/* Glass add-on — friendly checkbox card */
.glass-addon {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: border-color var(--dur-quick) var(--ease), background var(--dur-quick) var(--ease);
}
.glass-addon:hover { border-color: var(--gold); }
.glass-addon input {
  width: 20px; height: 20px; accent-color: var(--maroon);
  flex-shrink: 0;
}
.glass-addon__label {
  display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap;
  font-family: var(--font-sans);
}
.glass-addon__label strong {
  font-family: var(--font-serif); font-size: 1.05rem; color: var(--maroon);
  font-weight: 500;
}
.glass-addon__price {
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.glass-addon:has(input:checked) { border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 1px var(--gold); }

/* Live order total */
.order-total {
  display: grid;
  gap: 0.4rem;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, var(--champagne), var(--ivory));
  border: 1px solid var(--gold);
  border-radius: 4px;
}
.order-total__label {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--maroon); font-weight: 500;
}
.order-total__amount {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.2vw + 0.4rem, 2.1rem);
  color: var(--maroon);
  line-height: 1;
}
.order-total__breakdown {
  color: var(--muted);
  font-size: 0.85rem;
  min-height: 1em;
}

/* Upload status (Cloudinary progress + preview link) */
.upload-field {
  display: grid; gap: 0.5rem;
}
.upload-status {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  background: var(--ivory);
  border-left: 2px solid var(--gold);
}
.upload-status a { color: var(--maroon); text-decoration: underline; }

/* Success state after a successful frame order */
.form-success {
  display: grid; gap: 0.5rem;
  padding: 0.5rem 0.25rem;
}
.form-success code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--white);
  padding: 0.1rem 0.35rem;
  border-radius: 2px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 210;
  background: rgba(30, 26, 29, 0.88);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  animation: modalFade 220ms var(--ease);
}
.lightbox__inner {
  max-width: 96vw; max-height: 92vh;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  position: relative;
}
.lightbox img {
  max-width: 100%; max-height: 82vh; object-fit: contain;
  background: var(--ivory);
  border: 1px solid var(--gold);
  border-radius: 4px;
  padding: clamp(0.5rem, 1vw, 1rem);
}
.lightbox__caption {
  color: var(--ivory);
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.9;
}
.lightbox__close {
  position: absolute; top: -1rem; right: -0.5rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ivory); color: var(--maroon);
  border: 1px solid var(--gold);
  display: grid; place-items: center;
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
}
.lightbox__close:hover { background: var(--gold); color: var(--maroon-deep); }

/* ---------- Newsletter popup (timed, one-time) ---------- */
.news-popup {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(30, 26, 29, 0.72);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  animation: modalFade 300ms var(--ease);
}
.news-popup__card {
  background: var(--ivory);
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  max-width: 480px; width: 100%;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.55);
  border: 1px solid var(--gold);
  position: relative;
  transform: scale(1);
  animation: newsIn 400ms var(--ease);
  text-align: left;
  max-height: 92vh; overflow-y: auto;
}
@keyframes newsIn { from { transform: scale(0.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.news-popup__close {
  position: absolute; top: 0.85rem; right: 0.85rem;
  width: 34px; height: 34px;
  border-radius: 50%; background: transparent;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 1.25rem; line-height: 1; color: var(--maroon);
  cursor: pointer;
  transition: all var(--dur-quick) var(--ease);
}
.news-popup__close:hover { background: var(--maroon); color: var(--ivory); border-color: var(--maroon); }
.news-popup .eyebrow { color: var(--gold); }
.news-popup h3 { font-size: clamp(1.75rem, 2vw + 0.6rem, 2.25rem); margin: 0.5rem 0 0.75rem; font-style: italic; }
.news-popup p { color: var(--muted); margin-bottom: 1.25rem; max-width: 40ch; }
.news-popup .news-popup__form { display: flex; gap: 0; margin-top: 0.75rem; }
.news-popup .news-popup__form input {
  flex: 1; padding: 0.9rem 1rem;
  border: 1px solid var(--line); border-right: 0;
  background: var(--white); border-radius: 2px 0 0 2px;
  font-size: 1rem;
}
.news-popup .news-popup__form input:focus { outline: none; border-color: var(--gold); }
.news-popup .news-popup__form button {
  padding: 0 1.5rem;
  background: var(--maroon); color: var(--ivory);
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  border-radius: 0 2px 2px 0;
  transition: background var(--dur-quick) var(--ease);
}
.news-popup .news-popup__form button:hover { background: var(--maroon-deep); }
.news-popup__note {
  color: var(--muted); font-size: 0.72rem;
  margin-top: 0.75rem; opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .news-popup, .news-popup__card { animation: none; }
}

/* ---------- Checkout modal (Paystack) ---------- */
.checkout-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(30, 26, 29, 0.72);
  display: grid; place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
  animation: modalFade 260ms var(--ease);
}
@keyframes modalFade { from { opacity: 0 } to { opacity: 1 } }
.checkout-modal__card {
  background: var(--ivory);
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--radius);
  max-width: 480px; width: 100%;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.55);
  position: relative;
  border: 1px solid var(--gold);
  max-height: 92vh; overflow-y: auto;
}
.checkout-modal__close {
  position: absolute; top: 0.85rem; right: 0.85rem;
  width: 34px; height: 34px;
  border-radius: 50%; background: transparent;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 1.25rem; line-height: 1; color: var(--maroon);
  cursor: pointer;
  transition: all var(--dur-quick) var(--ease);
}
.checkout-modal__close:hover { background: var(--maroon); color: var(--ivory); border-color: var(--maroon); }
.checkout-modal h3 { font-size: clamp(1.6rem, 2vw + 0.5rem, 2rem); margin: 0.4rem 0 0.35rem; }
.checkout-modal__price {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--maroon);
  margin: 0.75rem 0 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gold-line);
}
.checkout-modal .form__group { margin-bottom: 1rem; }
.checkout-form__submit { width: 100%; margin-top: 0.5rem; }
.checkout-modal__note {
  color: var(--muted); font-size: 0.78rem; margin-top: 1rem;
  padding-top: 1rem; border-top: 1px solid var(--line);
  line-height: 1.5;
}
.checkout-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--gold);
  animation: spin 900ms linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .checkout-modal { animation: none; }
  .checkout-spinner { animation: none; }
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--maroon); color: var(--gold);
  display: grid; place-items: center;
  border: 1px solid var(--gold);
  box-shadow: 0 20px 40px -18px rgba(0,0,0,0.4);
  transition: transform var(--dur-med) var(--ease), background var(--dur-med) var(--ease);
}
.wa-float:hover { transform: translateY(-3px); background: var(--maroon-deep); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.site-foot {
  background: linear-gradient(180deg, var(--maroon-deep), #430025);
  color: var(--ivory);
  padding: clamp(4rem, 8vw, 6rem) 0 2rem;
  position: relative;
}
.site-foot::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--gold-line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
/* Footer logo — same crop-and-zoom technique so the wordmark
   is the visible size rather than a small mark on lots of whitespace. */
.foot-brand {
  display: inline-block;
  position: relative;
  width: 100%;
  max-width: 266px;
  aspect-ratio: 280 / 130;
  overflow: hidden;
  line-height: 0;
  margin-bottom: 0.75rem;
}
.foot-brand img {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  height: 300%;
  width: auto;
  display: block;
  /* Deep-maroon footer — invert the maroon logo to an ivory/gold-warm silhouette */
  filter: brightness(0) invert(1) sepia(0.1) saturate(1.2) hue-rotate(-8deg);
}
.foot-tag { margin-top: 0.75rem; max-width: 32ch; opacity: 0.85; }
.foot-italic { font-family: var(--font-serif); font-style: italic; margin-top: 1rem; color: var(--gold-soft); }
.foot-head { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.foot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.foot-list a:hover { color: var(--gold); }
.foot-social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.foot-social a {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--gold-line);
  display: grid; place-items: center; color: var(--gold);
  transition: background var(--dur-med) var(--ease), color var(--dur-med) var(--ease);
}
.foot-social a:hover { background: var(--gold); color: var(--maroon-deep); }
.foot-social svg { width: 16px; height: 16px; }
.foot-news { display: flex; gap: 0; margin-top: 0.75rem; }
.foot-news input {
  flex: 1; padding: 0.75rem 0.9rem; background: rgba(255,255,255,0.06); color: var(--ivory);
  border: 1px solid var(--gold-line); border-right: 0; font-size: 0.9rem;
}
.foot-news input::placeholder { color: rgba(251, 248, 244, 0.6); }
.foot-news input:focus { outline: none; border-color: var(--gold); }
.foot-news button {
  padding: 0 1rem; background: var(--gold); color: var(--maroon-deep);
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
}
.foot-news button:hover { background: var(--gold-soft); }
.foot-bottom {
  border-top: 1px solid var(--gold-line);
  margin-top: 3rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.8rem;
}
.foot-bottom > * { opacity: 0.75; }
.foot-credit {
  color: var(--gold-soft);
  letter-spacing: 0.02em;
  opacity: 1;
}
.foot-credit a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(254, 161, 3, 0.4);
  padding-bottom: 1px;
  margin-left: 0.15em;
  transition: color var(--dur-quick) var(--ease), border-color var(--dur-quick) var(--ease);
}
.foot-credit a:hover,
.foot-credit a:focus-visible { color: var(--gold-soft); border-bottom-color: var(--gold); }
.foot-credit a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.foot-credit em {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.95rem;
}

/* ---------- Book cards (Vivere Reads) — equal height ---------- */
.card-grid--books { grid-auto-rows: 1fr; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.card-grid--books .card { height: 100%; }
.book-card .card__media { aspect-ratio: 2/3; background: linear-gradient(160deg, #efe4d3, #d7c8b0); }
.book-card .card__body { padding: 1.5rem 1.5rem 1.5rem; gap: 0.6rem; }
.book-card .card__title { font-size: 1.35rem; line-height: 1.2; }
.book-card .card__desc {
  color: var(--muted); font-size: 0.92rem;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  min-height: 4.2em;
}
.book-card .card__foot {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.book-card .price {
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--maroon); letter-spacing: 0.02em;
}
.book-card .btn-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap;
}
.book-card .btn-row .ulink { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--maroon); }
.book-card .btn--disabled {
  opacity: 0.55; pointer-events: none;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
}

/* ---------- Book detail ---------- */
.book-detail-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 820px) { .book-detail-grid { grid-template-columns: 1fr; } }
.book-detail__cover {
  aspect-ratio: 2/3;
  background: linear-gradient(160deg, #efe4d3, #cdb99f);
  position: relative;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 40px 60px -40px rgba(30,26,29,0.55);
}
.book-detail__cover::after { content:""; position:absolute; inset: 12px; border: 1px solid var(--gold); pointer-events: none; }
.book-detail__cover img { width: 100%; height: 100%; object-fit: cover; }
.book-detail__body h1 { font-size: var(--fs-xl); margin-bottom: 0.25rem; font-style: italic; }
.book-detail__author { font-family: var(--font-sans); font-size: 0.78rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--maroon); }
.book-detail__summary { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.1rem, 0.6vw + 0.9rem, 1.35rem); color: var(--muted); margin: 1rem 0 2rem; max-width: 60ch; }
.book-detail__writeup { max-width: 62ch; font-size: 1.02rem; }
.book-detail__writeup p { margin-bottom: 1.15em; }
.book-detail__price-row {
  display: flex; align-items: center; gap: 1.5rem; margin-top: 2.25rem; flex-wrap: wrap;
  padding-top: 1.75rem; border-top: 1px solid var(--gold-line);
}
.book-detail__price { font-family: var(--font-serif); font-size: 1.7rem; color: var(--maroon); }
.book-back { display: inline-block; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--maroon); margin-bottom: 1.5rem; }

/* ---------- Feature — dark variant (Revamp) ---------- */
.feature--dark h3, .feature--dark h2, .feature--dark h4 { color: var(--ivory); }
.feature--dark .feature__body { color: var(--ivory); }
.feature--dark .feature__body p { opacity: 0.9; }
.feature--dark .feature__tag { color: var(--gold-soft); }
.feature--dark .feature__media::after { border-color: rgba(254, 161, 3, 0.55); }
.feature__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.section--revamp {
  background:
    radial-gradient(1000px 500px at 90% 0%, rgba(254, 161, 3, 0.10), transparent 60%),
    linear-gradient(135deg, var(--maroon-deep), var(--maroon));
  color: var(--ivory);
}

/* ---------- Blog ---------- */
.blog-hero { display: block; margin-bottom: clamp(3rem, 5vw, 4.5rem); }
.blog-hero__inner {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center;
}
@media (max-width: 820px) { .blog-hero__inner { grid-template-columns: 1fr; } }
.blog-hero__media {
  aspect-ratio: 4/3; position: relative; overflow: hidden; border-radius: 4px;
  background: linear-gradient(140deg, var(--champagne), #d5c1a6);
}
.blog-hero__media::after { content: ""; position: absolute; inset: 14px; border: 1px solid var(--gold); pointer-events: none; }
.blog-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.blog-hero__body h2 { font-size: var(--fs-xl); font-style: italic; line-height: 1.05; margin-bottom: 1rem; }
.blog-hero__excerpt { color: var(--muted); max-width: 55ch; font-size: 1.05rem; }
.blog-hero__meta { font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-top: 1.25rem; }
.blog-hero__meta strong { color: var(--maroon); font-weight: 500; }

.blog-grid { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); grid-auto-rows: 1fr; }
.blog-card { display: flex; flex-direction: column; height: 100%; background: transparent; border: 0; }
.blog-card__media {
  aspect-ratio: 4/3; position: relative; overflow: hidden; border-radius: 4px;
  background: linear-gradient(140deg, var(--champagne), #d5c1a6);
}
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.02); }
.blog-card__body { padding: 1.25rem 0.25rem 0; display: flex; flex-direction: column; flex: 1; gap: 0.5rem; }
.blog-card__category { font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.blog-card__title { font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.2; }
.blog-card__excerpt {
  color: var(--muted); font-size: 0.95rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card__meta { margin-top: auto; padding-top: 1rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); }

/* ---------- Post detail ---------- */
/* Post banner — a designed title card (text baked into the image).
   NEVER crop. Let the image dictate its aspect; contain within a
   sensible viewport cap. Container has no background gradient anymore
   because the image itself carries the design. */
.post__hero {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  padding: 0 1rem;
  margin: 0 auto;
  max-width: 100%;
}
.post__hero img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(90vh, 900px);
  object-fit: contain;
  border-radius: 4px;
  margin: 0 auto;
}
.post__header { text-align: center; padding: clamp(3rem, 5vw, 5rem) 0 clamp(2rem, 3vw, 3rem); }
.post__header h1 { font-size: var(--fs-xl); font-style: italic; max-width: 22ch; margin: 1rem auto 1.25rem; }
.post__meta { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.post__body {
  max-width: 68ch;
  font-family: var(--font-sans);
  font-size: 1.075rem;
  line-height: 1.75;
}
.post__body h2, .post__body h3 { font-family: var(--font-serif); margin: 2.25rem 0 1rem; color: var(--charcoal); }
.post__body h2 { font-size: clamp(1.6rem, 2vw + 0.7rem, 2rem); }
.post__body h3 { font-size: clamp(1.3rem, 1vw + 0.7rem, 1.6rem); }
/* Justified body text — better inter-word spacing avoids river gaps;
   hyphens fill short lines gracefully so justification stays even. */
.post__body p {
  margin-bottom: 1.35em;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
}
.post__body blockquote {
  border-left: 2px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2rem 0;
  font-family: var(--font-serif); font-style: italic; font-size: 1.35rem; color: var(--charcoal);
}
.post__body ul, .post__body ol { padding-left: 1.35rem; margin-bottom: 1.35em; }
.post__body li { margin-bottom: 0.5em; }
.post__body img { margin: 2rem auto; border-radius: 4px; }

/* ---------- Vivere Reads — title/author search bar ---------- */
.books-search { max-width: 520px; margin: 0 auto 2.5rem; }
.books-search__field {
  position: relative;
  display: flex; align-items: center;
  background: var(--ivory);
  border: 1px solid var(--gold-line);
  border-radius: 40px;
  padding: 0.35rem 1rem 0.35rem 3rem;
  transition: border-color var(--dur-quick) var(--ease), box-shadow var(--dur-quick) var(--ease);
}
.books-search__field:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(254,161,3,0.15);
}
.books-search__icon {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; color: var(--maroon);
  pointer-events: none;
}
.books-search input[type="search"] {
  flex: 1;
  padding: 0.75rem 0;
  border: 0; background: transparent; outline: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--charcoal);
  -webkit-appearance: none;
}
.books-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.books-search__clear {
  border: 0; background: transparent; color: var(--muted);
  font-size: 1.3rem; line-height: 1;
  cursor: pointer; padding: 0 0.35rem;
  border-radius: 50%;
}
.books-search__clear:hover { color: var(--maroon); background: rgba(141,4,82,0.08); }
.books-empty {
  padding: 3rem 1rem;
  color: var(--muted);
}
.books-empty .eyebrow { color: var(--gold); }
/* In-body images produced by the ![alt](url) parser. Break out of the
   68ch measure so photography feels editorial; capped so tall images
   don't dominate the reading flow. Includes a subtle gold hairline
   frame consistent with the rest of the brand's image treatments. */
/* In-body photos (Images 2 & 3 in the founder's post) — plain photos,
   no baked-in text. Centered inside the 68ch text column with a gold
   hairline frame + subtle shadow. Constrained so they never exceed the
   text width; height caps prevent tall images from dominating. */
.post__body .post-body__img {
  display: block;
  width: 100%;
  max-width: 100%;      /* parent .post__body is already 68ch — image fits within */
  max-height: 70vh;     /* soft cap for very tall images */
  height: auto;
  object-fit: contain;
  margin: 2.5rem auto;
  border-radius: 4px;
  border: 1px solid var(--gold-line);
  box-shadow: 0 12px 32px -20px rgba(30, 0, 20, 0.35);
  background: var(--ivory);
}
/* On small screens, ease the shadow + relax the height cap so portrait
   photos aren't awkwardly boxed. */
@media (max-width: 640px) {
  .post__body .post-body__img { max-height: none; margin: 2rem auto; }
}
.post__body hr { border: 0; height: 1px; background: var(--gold-line); margin: 3rem 0; }
.post__body a { color: var(--maroon); border-bottom: 1px solid var(--gold-line); }
.post__body a:hover { border-color: var(--gold); }
.post__related { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--gold-line); }
.post__related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }

/* ---------- Contact grid ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Studio (admin) ---------- */
.studio-body { background: var(--ivory); }
.studio-head {
  background: var(--maroon-deep); color: var(--ivory);
  padding: 1.25rem 0; border-bottom: 1px solid var(--gold-line);
}
.studio-head .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.studio-tabs { display: flex; gap: 0.5rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.studio-tabs button {
  padding: 0.85rem 1.25rem; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid transparent; transition: all var(--dur-quick);
}
.studio-tabs button[aria-selected="true"] { color: var(--maroon); border-bottom-color: var(--gold); }
.studio-panel { display: none; padding: 2rem 0; }
.studio-panel.is-active { display: block; }
.studio-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; margin-bottom: 1rem;
  display: grid; gap: 0.85rem;
  min-width: 0;
}
.studio-item > * { min-width: 0; }
.studio-item .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (max-width: 640px) { .studio-item .row { grid-template-columns: 1fr; } }
.studio-item label { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--maroon); }
.studio-item input, .studio-item select, .studio-item textarea {
  width: 100%; padding: 0.6rem 0.75rem; border: 1px solid var(--line);
  background: var(--ivory); border-radius: 2px; font-size: 0.95rem;
  max-width: 100%;
}
.studio-item textarea { min-height: 80px; }

/* Item head — title + actions.
   Uses CSS Grid so title and actions live in DIFFERENT cells
   and cannot overlap regardless of content width or user CSS. */
.studio-item .item-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem 1.25rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.studio-item .item-head strong {
  font-family: var(--font-serif); font-size: 1.2rem; color: var(--maroon);
  line-height: 1.3;
  min-width: 0; word-break: break-word;
}
.studio-actions {
  display: flex; align-items: center; gap: 0.75rem;
  flex-wrap: wrap;
  justify-self: end;
}
.studio-actions .toggle {
  white-space: nowrap;
  padding: 0.25rem 0;
}
.studio-actions button {
  padding: 0.5rem 0.9rem;
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--line); border-radius: 2px;
  background: var(--white); color: var(--charcoal);
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--dur-quick), color var(--dur-quick), border-color var(--dur-quick);
}
.studio-actions button:hover { background: var(--ivory); }
.studio-actions button.danger { color: var(--maroon); border-color: var(--maroon); background: transparent; }
.studio-actions button.danger:hover { background: var(--maroon); color: var(--ivory); }

/* At narrow widths the actions drop to their own row underneath the title,
   still contained by their own grid cell — no overlap possible. */
@media (max-width: 640px) {
  .studio-item .item-head { grid-template-columns: minmax(0, 1fr); }
  .studio-actions { justify-self: start; }
}
.studio-add { margin-bottom: 1rem; }
.studio-toolbar { position: sticky; top: 0; z-index: 5; background: var(--ivory); padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.studio-toolbar .msg { color: var(--muted); font-size: 0.85rem; align-self: center; margin-left: auto; }

/* Swatch controls */
.swatch-row { display: flex; gap: 0.5rem; align-items: center; }
.swatch {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid transparent; cursor: pointer;
}
.swatch.is-active { border-color: var(--charcoal); }

/* Studio image upload widget */
.studio-upload { display: grid; gap: 0.5rem; }
.studio-upload__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 640px) {
  .studio-upload__row { grid-template-columns: 1fr; }
}
.studio-upload__preview {
  width: 120px; height: 120px;
  border: 1px dashed var(--line);
  border-radius: 4px;
  background: var(--ivory);
  display: grid; place-items: center;
  overflow: hidden;
}
.studio-upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.studio-upload__empty { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; text-align: center; padding: 0 0.5rem; }
.studio-upload__controls { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.studio-upload__controls input[type="url"] { width: 100%; }
.studio-upload__status {
  font-size: 0.8rem; color: var(--maroon);
  min-height: 1em;
}
.studio-upload__btn { display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Helpers / spacing utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }
.stack > * + * { margin-top: 1rem; }

/* Print — courtesy */
@media print {
  .site-header, .site-foot, .wa-float { display: none; }
}
