/* The Essence — site styles. British English, ivory and ink with a blush accent. */

@font-face {
  font-family: 'Grillages';
  src: url('/assets/fonts/Grillages.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Grillages';
  src: url('/assets/fonts/GrillagesThin.woff2') format('woff2');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Grillages';
  src: url('/assets/fonts/GrillagesSemibold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Stara';
  src: url('/assets/fonts/Stara-Medium.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Stara';
  src: url('/assets/fonts/Stara-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #fbf8f5;
  --ivory-deep: #f4ede7;
  --blush: #f7e8e6;
  --rose: #c98f8f;
  --rose-deep: #a96f6f;
  --ink: #17140f;
  --ink-soft: #4d463d;
  --line: rgba(23, 20, 15, 0.12);
  --max: 68rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Stara', Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .wordmark {
  font-family: 'Grillages', Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

a { color: inherit; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ---------- Nav ---------- */

.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.75rem;
}
.nav .wordmark {
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--ink);
}
.nav nav { display: flex; gap: 1.6rem; align-items: center; }
.nav nav a {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  opacity: 0.85;
}
.nav nav a:hover { opacity: 1; }
.nav nav a.btn { opacity: 1; }

.nav--solid { position: static; background: var(--ivory); border-bottom: 1px solid var(--line); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  font-family: 'Stara', Georgia, serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(251,248,245,0.18) 0%, rgba(251,248,245,0.05) 45%, rgba(251,248,245,0.85) 100%);
}
.hero .hero-inner { position: relative; z-index: 2; padding: 0 1.25rem; }
.hero .hero-mark {
  font-family: 'Grillages', Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  color: var(--ink);
}
.hero .hero-tag {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}
.hero .hero-cta { margin-top: 2.2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */

.section { padding: 5rem 0; }
.section--blush { background: var(--blush); }
.section--deep { background: var(--ivory-deep); }

.kicker {
  font-family: 'Stara', Georgia, serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 0.9rem;
}
.section h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 1.2rem; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 44rem; }

/* ---------- Game cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.card {
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(23,20,15,0.35); }
.card h3 { font-size: 1.9rem; }
.card p { color: var(--ink-soft); flex: 1; }
.card .card-meta { font-weight: 600; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--rose-deep); }
.card .btn { align-self: flex-start; }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: var(--blush);
  padding: 6.5rem 0 4rem;
  text-align: center;
}
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); }
.page-hero p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.15rem; }

/* ---------- Detail rows ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}
.fact {
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.4rem 1.5rem;
  background: var(--ivory);
}
.fact .fact-label { font-weight: 600; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rose-deep); }
.fact .fact-value { font-family: 'Grillages', Georgia, serif; font-size: 1.5rem; margin-top: 0.35rem; }

.steps { margin: 2rem 0 0; padding-left: 0; list-style: none; counter-reset: step; max-width: 44rem; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.1rem 0 1.1rem 3.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.steps li strong { color: var(--ink); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0; top: 1.15rem;
  font-family: 'Grillages', Georgia, serif;
  font-size: 1.4rem;
  color: var(--rose);
}

/* ---------- Forms ---------- */

.form-card {
  max-width: 32rem;
  margin: 0 auto;
  background: var(--ivory);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2.5rem 2.25rem;
}
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
}
.field .hint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.35rem; }
.field input, .field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--rose);
  outline-offset: 1px;
  border-color: var(--rose);
}
.form-msg { margin-top: 1.2rem; padding: 0.9rem 1.1rem; border-radius: 0.6rem; display: none; }
.form-msg.ok { display: block; background: #eaf3ea; color: #23531f; }
.form-msg.err { display: block; background: #f7e2e2; color: #7c2323; }
.hp { position: absolute; left: -5000px; opacity: 0; pointer-events: none; }

/* ---------- Coming soon ---------- */

.soon {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.soon .kicker { margin-bottom: 1.2rem; }
.soon h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); max-width: 20ch; }
.soon p { margin-top: 1.2rem; color: var(--ink-soft); max-width: 40rem; }
.soon .btn { margin-top: 2.2rem; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  background: var(--ivory);
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
footer .wordmark { font-size: 1.2rem; color: var(--ink); text-decoration: none; }

@media (max-width: 40rem) {
  .nav { padding: 1.1rem 1.15rem; }
  .nav nav { gap: 1rem; }
  .nav nav a:not(.btn) { display: none; }
  .section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card:hover { transition: none; transform: none; }
}

/* Fix: nav pill button keeps ivory text (the .nav nav a rule outranks .btn) */
.nav nav a.btn { color: var(--ivory); }
.nav nav a.btn:hover { color: var(--ink); }
