/* =======================================================================
   Wigs, Gowns and Ambition — shared design system
   Brand: art deco · luxurious. Drawn from the book cover: warm ivory,
   deep wine red, antique gold. The name/logo uses the cover's display
   serif; cursive script (.wordmark) is kept for accents only.
   ======================================================================= */

:root {
  /* Palette ---------------------------------------------------------- */
  --ivory:        #F4ECDB;   /* warm paper background, matches cover */
  --ivory-soft:   #EFE4CF;
  --ivory-deep:   #E7D9BE;
  --wine:         #7C1A22;   /* primary brand red (deep crimson-burgundy) */
  --wine-deep:    #561119;
  --wine-bright:  #9C2630;   /* accent crimson */
  --gold:         #C2A15B;   /* antique gold for art-deco detailing */
  --gold-light:   #DCC487;
  --gold-deep:    #9C7E3F;
  --ink:          #221A17;   /* warm near-black */
  --ink-soft:     #4A3C36;

  /* Typography ------------------------------------------------------- */
  --font-script:  "Pinyon Script", "Parisienne", cursive;   /* wordmark */
  --font-display: "Cormorant Garamond", Georgia, serif;      /* headings */
  --font-body:    "Jost", "Century Gothic", system-ui, sans-serif; /* text */

  /* Layout ----------------------------------------------------------- */
  --maxw: 1100px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --radius: 2px;
  --shadow: 0 18px 50px -22px rgba(34, 26, 23, 0.55);
}

/* Reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.1; }

/* Reusable bits ----------------------------------------------------- */
.wordmark {
  font-family: var(--font-script);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.01em;
}
/* Primary brand logo — the cover's display serif with an italic "and". */
.logo {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.005em;
}
.logo em { font-style: italic; font-weight: 500; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  /* Scales down on narrow screens so long letterspaced lines don't overflow */
  letter-spacing: clamp(0.22em, 0.12em + 0.55vw, 0.42em);
  font-size: 0.72rem;
  font-weight: 400;
}
.display {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}
.display em { font-style: italic; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }

/* Art-deco divider: thin gold rule with a centred diamond ----------- */
.deco-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--gold);
}
.deco-divider::before,
.deco-divider::after {
  content: "";
  height: 1px;
  width: clamp(40px, 12vw, 120px);
  background: linear-gradient(90deg, transparent, currentColor);
}
.deco-divider::after { transform: scaleX(-1); }
.deco-divider span {
  width: 9px; height: 9px;
  transform: rotate(45deg);
  border: 1px solid currentColor;
  position: relative;
}
.deco-divider span::after {
  content: ""; position: absolute; inset: 2px;
  background: currentColor;
}

/* Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.8rem;
  padding: 1rem 2.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--wine-deep);
  box-shadow: 0 10px 30px -14px rgba(124, 26, 34, 0.7);
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border-color: var(--gold);
}
.btn-outline:hover { background: rgba(194, 161, 91, 0.14); transform: translateY(-2px); }
.btn-dark {
  background: var(--wine);
  color: var(--ivory);
}
.btn-dark:hover { background: var(--wine-bright); transform: translateY(-2px); }

/* Gold art-deco corner frame (applied to .deco-frame) --------------- */
.deco-frame { position: relative; }
.deco-frame .corner {
  position: absolute;
  width: 38px; height: 38px;
  border: 1.5px solid var(--gold);
  opacity: 0.85;
  pointer-events: none;
}
.deco-frame .corner.tl { top: 18px; left: 18px; border-right: 0; border-bottom: 0; }
.deco-frame .corner.tr { top: 18px; right: 18px; border-left: 0; border-bottom: 0; }
.deco-frame .corner.bl { bottom: 18px; left: 18px; border-right: 0; border-top: 0; }
.deco-frame .corner.br { bottom: 18px; right: 18px; border-left: 0; border-top: 0; }

/* Accessibility ----------------------------------------------------- */
:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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