/* Sortilège promo site — tavern-seer theme, mirrors the game's tokens
   (palette + fonts) so the page reads as an extension of the title. */

/* ---------- Fonts (self-hosted; same files the game ships) ---------- */
@font-face {
  font-family: "Cinzel";
  src: url("fonts/Cinzel.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel";
  src: url("fonts/Cinzel-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Decorative Cinzel — flourished serifs, reserved for the SORTILÈGE
   wordmark itself. Plain Cinzel still handles headings, buttons, eyebrows. */
@font-face {
  font-family: "Cinzel Decorative";
  src: url("fonts/CinzelDecorative.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  /* Surfaces (warm smoke-charcoal) */
  --void:        #0a0907;
  --base:        #14110c;
  --stone:       #1f1a14;
  --stone-raised:#2a241b;
  --stone-hover: #352d22;

  /* Antique gold ramp */
  --gold-deep:   #a68546;
  --gold:        #d4ae61;
  --gold-bright: #eac673;
  --gold-glow:   #f5dca0;

  /* Text on dark */
  --parchment:    #e8d9a8;
  --parchment-dim:#a89a7c;

  /* Parchment card (ink on paper) */
  --ink:        #3a2a1a;
  --ink-faint:  #60492d;
  --ink-gold:   #7a571c;
  --paper:      #e8d9a8;
  --paper-warm: #f3e8c6;
  --paper-shade:#d5c695;

  /* Semantic accents */
  --arcane:  #6f9fc8;
  --ember:   #c75440;
  --verdant: #9fbf6a;

  --maxw: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--base);
  color: var(--parchment);
  font-family: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: 20px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* very subtle warm vignette so the page edges aren't flat black */
  background-image:
    radial-gradient(1400px 800px at 50% -10%, rgba(212, 174, 97, 0.06), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(212, 174, 97, 0.04), transparent 60%);
  background-attachment: fixed;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-bright); text-decoration: none; }
a:hover { color: var(--gold-glow); }
a:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: 0.06em;
  margin: 0 0 0.5em;
  color: var(--parchment);
}
h2 {
  font-size: clamp(28px, 3.2vw, 40px);
  text-align: center;
  margin-bottom: 0.2em;
}
h3 {
  font-size: clamp(20px, 2vw, 24px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
p { margin: 0 0 1em; }
.lede {
  font-size: clamp(20px, 1.6vw, 24px);
  color: var(--parchment-dim);
  font-style: italic;
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 2em;
}

/* ---------- Flourish divider ---------- */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--gold-deep);
  margin: 1.6em auto 2.4em;
  max-width: 380px;
}
.flourish::before,
.flourish::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(166, 133, 70, 0.5),
    transparent);
}
.flourish__mark {
  font-family: "Cinzel", serif;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--gold);
  /* diamond glyph */
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section { padding: clamp(64px, 9vw, 120px) 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(640px, 92vh, 920px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px var(--gutter) clamp(80px, 12vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  /* The dice-beauty shot is mostly dice along the bottom with dark
     headroom above — perfect as a hero background: our CSS title floats
     in the dark band, dice anchor the lower third. */
  background-image: url("img/dice-beauty.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  filter: brightness(1.0) saturate(0.95);
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* darken top and bottom so the title and CTA pop, while the dice
     remain visible in the middle band */
  background:
    radial-gradient(ellipse at 50% 28%, rgba(20, 17, 12, 0.5), transparent 55%),
    linear-gradient(to bottom,
      rgba(10, 9, 7, 0.7) 0%,
      rgba(20, 17, 12, 0.25) 35%,
      rgba(20, 17, 12, 0.35) 60%,
      rgba(10, 9, 7, 0.92) 100%);
}

/* Gold-foil title — mirrors the in-game logo_foil shader (top→bottom
   gradient with a faint bevel shadow). Uses the decorative cut of Cinzel
   for the flourished serifs on the wordmark. */
.title {
  font-family: "Cinzel Decorative", "Cinzel", "Trajan Pro", serif;
  font-weight: 400;
  font-size: clamp(48px, 11vw, 148px);
  letter-spacing: 0.04em;
  margin: 0 0 0.15em;
  line-height: 1;
  background: linear-gradient(
    180deg,
    var(--gold-glow)   0%,
    var(--gold-bright) 45%,
    var(--gold)        62%,
    var(--gold-deep)   100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 24px rgba(245, 220, 160, 0.18));
}
.subtitle {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(18px, 2vw, 26px);
  color: var(--parchment-dim);
  letter-spacing: 0.04em;
  margin: 0 0 2.4em;
  max-width: 32ch;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 28px;
  font-family: "Cinzel", serif;
  font-weight: 400;
  letter-spacing: 0.14em;
  font-size: 15px;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(166, 133, 70, 0.55);
  border-radius: 0; /* parchment is rectangular in-game */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition:
    background-color 120ms ease,
    color 120ms ease,
    transform 120ms ease,
    box-shadow 120ms ease,
    border-color 120ms ease;
}
.btn:hover {
  background: var(--paper-warm);
  color: var(--ink-gold);
  border-color: var(--gold-bright);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5),
              0 0 18px rgba(234, 198, 115, 0.25);
}
.btn:active {
  background: var(--paper-shade);
  transform: translateY(0);
}
.btn:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}
.btn--ghost {
  background: transparent;
  color: var(--parchment);
  border: 1px solid rgba(212, 174, 97, 0.5);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(212, 174, 97, 0.08);
  color: var(--gold-glow);
  border-color: var(--gold-bright);
  box-shadow: 0 0 16px rgba(234, 198, 115, 0.15);
}
/* Disabled state: parchment fades to dim, ink desaturates, no lift. Used
   while the Steam page is pending approval. */
.btn:disabled,
.btn[aria-disabled="true"] {
  background: rgba(232, 217, 168, 0.18);
  color: rgba(168, 154, 124, 0.85);
  border-color: rgba(166, 133, 70, 0.3);
  box-shadow: none;
  cursor: not-allowed;
  filter: saturate(0.4);
}
.btn:disabled:hover,
.btn[aria-disabled="true"]:hover {
  background: rgba(232, 217, 168, 0.18);
  color: rgba(168, 154, 124, 0.85);
  border-color: rgba(166, 133, 70, 0.3);
  transform: none;
  box-shadow: none;
}
.btn__icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: -3px;
}

.cta-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-hint {
  margin: 1.2em 0 0;
  font-style: italic;
  font-size: 15px;
  color: var(--parchment-dim);
  letter-spacing: 0.02em;
  text-align: center;
}

/* ---------- Sections ---------- */
.section-eyebrow {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: center;
  margin-bottom: 0.6em;
}

/* Pitch — two-column wide-screen, stacks on mobile */
.pitch {
  background: var(--void);
  position: relative;
}
.pitch::before,
.pitch::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent, rgba(166, 133, 70, 0.45), transparent);
}
.pitch::before { top: 0; }
.pitch::after  { bottom: 0; }

.pitch__body {
  max-width: 68ch;
  margin: 0 auto;
  font-size: clamp(19px, 1.4vw, 22px);
  color: var(--parchment);
}
.pitch__body p { margin-bottom: 1.1em; }
.pitch__body p:last-child { margin-bottom: 0; }
.pitch__body em { color: var(--gold-bright); font-style: italic; }

/* ---------- Feature grid (parchment cards) ---------- */
.features {
  background: var(--base);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: 2.4em;
}
.card {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid rgba(166, 133, 70, 0.55);
  padding: 28px 26px 26px;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.4),
    0 18px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.5),
    0 26px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(234, 198, 115, 0.35) inset;
}
.card__title {
  font-family: "Cinzel", serif;
  font-size: 19px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-gold);
  margin: 0 0 10px;
}
.card__body {
  font-family: "Cormorant Garamond", serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

/* ---------- Showcase (single big image with caption) ---------- */
.showcase {
  background: var(--stone);
  position: relative;
}
.showcase__frame {
  margin: 2em auto 0;
  max-width: 980px;
  border: 1px solid rgba(166, 133, 70, 0.5);
  padding: 10px;
  background: var(--void);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4) inset;
}
.showcase__frame img {
  width: 100%;
  height: auto;
  display: block;
}
.showcase__caption {
  text-align: center;
  font-style: italic;
  color: var(--parchment-dim);
  margin-top: 1em;
  font-size: 17px;
}

/* ---------- Coming-soon / wishlist CTA ---------- */
.coming-soon {
  text-align: center;
  background:
    radial-gradient(800px 400px at 50% 50%,
      rgba(212, 174, 97, 0.06), transparent 70%),
    var(--base);
}
.coming-soon h2 { margin-bottom: 0.5em; }
.coming-soon p {
  max-width: 56ch;
  margin: 0 auto 2em;
  color: var(--parchment-dim);
  font-style: italic;
}
.tag {
  display: inline-block;
  padding: 4px 14px;
  font-family: "Cinzel", serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold-glow);
  border: 1px solid rgba(212, 174, 97, 0.55);
  margin-bottom: 1.5em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--void);
  border-top: 1px solid rgba(166, 133, 70, 0.3);
  padding: 36px var(--gutter);
  text-align: center;
  color: var(--parchment-dim);
  font-size: 15px;
}
.site-footer a { color: var(--parchment-dim); }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer__brand {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  letter-spacing: 0.2em;
  color: var(--parchment);
  font-size: 14px;
  margin-bottom: 6px;
}
.site-footer__row {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- Small screens ---------- */
@media (max-width: 640px) {
  body { font-size: 18px; }
  .hero { min-height: 78vh; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* Reduce motion for users who ask */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  html { scroll-behavior: auto; }
}
