/* Self-hosted fonts (Fontsource builds of Cinzel / Work Sans, OFL-licensed).
   No external CDN request — avoids the Google Fonts IP-sharing issue,
   consistent with the fin-advisory site's approach. */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/cinzel-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/work-sans-latin-ext-400-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/work-sans-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/work-sans-latin-ext-500-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/work-sans-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/work-sans-latin-ext-600-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Work Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/work-sans-latin-600-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #15110c;
  --stone: #221a13;
  --stone-line: #3a2e22;
  --rune: #d9a441;
  --rune-dim: #a87e35;
  --parchment: #ede4d3;
  --ash: #9c9182;

  --font-display: 'Cinzel', serif;
  --font-body: 'Work Sans', sans-serif;
}

* { box-sizing: border-box; }

html {
  background: var(--ink);
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--parchment);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--rune);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
a:hover { border-color: var(--rune-dim); }
a:focus-visible {
  outline: 2px solid var(--rune);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 5.5rem 1.5rem 4rem;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  /* faint carved-grid texture, echoing the game's own box lines */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--stone-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--stone-line) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.16;
  mask-image: radial-gradient(ellipse at 50% 0%, black, transparent 70%);
  pointer-events: none;
}

.hero__runemark {
  color: var(--rune);
  margin-bottom: 1.25rem;
  position: relative;
}

.hero__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 6vw, 4rem);
  letter-spacing: 0.06em;
  margin: 0 0 1rem;
  color: var(--parchment);
  position: relative;
}

.hero__tagline {
  color: var(--ash);
  font-size: 1.0625rem;
  max-width: 32ch;
  margin: 0 auto;
  position: relative;
}

/* ---------- signature divider ---------- */

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 3px;
  background: var(--stone-line);
  position: relative;
}
.divider::after { order: 2; }
.divider__glyph {
  order: 1;
  color: var(--rune);
  flex-shrink: 0;
  display: flex;
}

/* ---------- game section ---------- */

main {
  max-width: 560px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.game {
  text-align: center;
}

.game__icon {
  color: var(--rune);
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0 0 0.5rem;
}

.game h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.875rem;
  letter-spacing: 0.02em;
  color: var(--parchment);
  margin: 0 0 1rem;
}

.game__desc {
  color: var(--ash);
  max-width: 44ch;
  margin: 0 auto 2rem;
}

.play-badge {
  display: inline-block;
  border-bottom: none;
  line-height: 0;
}
.play-badge img {
  height: 58px;
  width: auto;
}
.play-badge:focus-visible {
  outline-offset: 4px;
}

.game__links {
  margin-top: 1.75rem;
  color: var(--ash);
  font-size: 0.9375rem;
}
.game__links span {
  margin: 0 0.6em;
  color: var(--stone-line);
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--stone-line);
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  color: var(--ash);
  font-size: 0.875rem;
}
.site-footer p { margin: 0.3em 0; }
.site-footer__name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--parchment);
  font-size: 1.0625rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem !important;
}

/* ---------- motion & small screens ---------- */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (max-width: 420px) {
  .hero { padding: 4rem 1.25rem 3rem; }
  .hero__wordmark { font-size: 2.25rem; }
}
