/* ===== Pawnarch — one page: the title, the trailer, the ask =====
   Palette and type follow the game: the trailer's dusk backdrop, the gold
   title, Alegreya (the house face), and one slip of printed paper. */
:root {
  --night:      #0d0a14;
  --dusk-plum:  #2a1638;
  --dusk-ember: #3b1d17;
  --ink:        #231c16;   /* the press's key ink */
  --paper:      #e9dfc6;   /* cream stock */
  --paper-edge: #cdbf9d;
  --bone:       #efe6d2;
  --bone-dim:   #a99d8e;
  --gold:       #ffeb8c;
  --gold-glow:  rgba(255, 107, 26, 0.55);
  --maxw:       1120px;
}

* { box-sizing: border-box; }

html { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  font-family: "Alegreya", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--bone);
  background:
    radial-gradient(1100px 620px at 18% -8%, rgba(110, 58, 32, 0.50), transparent 62%),
    radial-gradient(1000px 760px at 92% 6%, rgba(72, 34, 110, 0.50), transparent 58%),
    radial-gradient(1200px 900px at 50% 118%, rgba(16, 28, 84, 0.60), transparent 62%),
    linear-gradient(170deg, var(--night), var(--dusk-plum) 58%, var(--dusk-ember));
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.page {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(1.5rem, 5vh, 3.5rem) 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----- the title, as the trailer ends on it ----- */
.masthead { text-align: center; margin-bottom: clamp(1.25rem, 3.5vh, 2.25rem); }

.title {
  margin: 0;
  font-family: "Alegreya", Georgia, serif;   /* ExtraBold: the game's title face and the Steam wordmark */
  font-weight: 800;
  font-size: clamp(2.6rem, 9vw, 5.5rem);
  line-height: 1;
  letter-spacing: 0.03em;
  color: var(--gold);
  text-shadow:
    0 0 2px #2a1205,
    0 2px 0 #2a1205,
    0 0 26px var(--gold-glow),
    0 0 60px rgba(255, 107, 26, 0.28);
}

.kind {
  margin: 0.55rem 0 0;
  font-family: "Alegreya SC", "Alegreya", serif;
  font-weight: 500;
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  letter-spacing: 0.22em;
  text-transform: lowercase;
  color: var(--bone-dim);
}

/* ----- the trailer ----- */
.trailer {
  margin: 0;
  width: 100%;
  /* Title, trailer and the ask share one screen: the frame gives up width
     before it pushes the slip below the fold (never under 560px wide). */
  max-width: max(min(100%, 560px), calc((100vh - 24rem) * 16 / 9));
  border-radius: 6px;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 235, 140, 0.16),
    0 24px 70px rgba(0, 0, 0, 0.65);
}

.trailer video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #000;
}

/* ----- the word, and the ask ----- */
.word {
  margin-top: clamp(1.5rem, 4.5vh, 2.75rem);
  text-align: center;
}

/* One slip of house paper, set down a hair out of true: the trailer's end card. */
.slip {
  display: inline-block;
  margin: 0;
  padding: 0.5rem 1.9rem 0.6rem;
  font-family: "Alegreya SC", "Alegreya", serif;
  font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  background:
    radial-gradient(120% 160% at 30% 20%, rgba(255, 255, 255, 0.35), transparent 60%),
    var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 3px var(--paper),
    inset 0 0 0 4px rgba(201, 160, 38, 0.75),
    2px 3px 0 rgba(0, 0, 0, 0.35),
    0 10px 26px rgba(0, 0, 0, 0.45);
  transform: rotate(-0.6deg);
}

a.slip { text-decoration: none; transition: transform 0.15s cubic-bezier(.3, 1.6, .5, 1); }
a.slip:hover, a.slip:focus-visible { transform: rotate(-0.6deg) scale(1.05); }
a.slip:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.terms {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--bone-dim);
}

/* ----- colophon ----- */
.colophon {
  padding: 1.25rem 1.25rem 1.75rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--bone-dim);
}
.colophon p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  a.slip { transition: none; }
}
