@font-face {
  font-family: Inter;
  src: url("fonts/Inter-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Cinzel;
  src: url("fonts/Cinzel-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #242c2a;
  --muted: #544f43;
  --night: #101d25;
  --paper: #f4ecdc;
  --rust: #873c2b;
  --gold: #efc984;
  --pale: #f6eedc;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, sans-serif;
  --label: 0.72rem;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 500 1rem/1.6 var(--sans); color: var(--ink); background: var(--night); }
h1, h2, p, figure, dl, dd { margin: 0; }
h2 { font-family: var(--serif); font-weight: 400; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
section[id] { scroll-margin-top: 1.25rem; }

.shell { width: min(1180px, calc(100% - clamp(2.5rem, 12vw, 11rem))); margin-inline: auto; }
.eyebrow, .section-index, .hero-location, figcaption, .footer {
  font-size: var(--label);
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.skip-link {
  position: absolute; z-index: 3; top: .5rem; left: .75rem; padding: .6rem 1rem;
  color: var(--night); background: var(--pale); transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.masthead {
  color: var(--pale);
  background: var(--night);
  border-bottom: 1px solid #ffffff21;
}
.masthead-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.25rem;
  align-items: center;
}
.masthead a { text-decoration: none; }
.brand { width: fit-content; display: inline-flex; align-items: center; gap: .65rem; }
.brand span { font: 700 .9rem/1 Cinzel, var(--serif); letter-spacing: .08em; white-space: nowrap; }
.masthead nav { display: flex; gap: clamp(1.1rem, 3.4vw, 3.2rem); font-size: .86rem; }
.masthead nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: .28em; }
.masthead-play {
  justify-self: end; display: flex; align-items: center; gap: .8rem;
  border: 1px solid #d2a66983; color: var(--gold); padding: .45rem .78rem;
  font-size: .76rem; white-space: nowrap;
}
.masthead-play:hover { background: #efc98418; }

.hero {
  position: relative; display: grid; isolation: isolate; align-items: center;
  overflow: hidden; color: #fff7e7; background: #192e3e; min-height: clamp(580px, 49vw, 760px);
  border-bottom: 3px solid #bc9661;
}
.hero-art, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > picture { position: absolute; inset: 0; z-index: -2; }
.hero-art { object-fit: cover; object-position: center 57%; }
.hero::after {
  content: ""; z-index: -1;
  background:
    linear-gradient(90deg, #101b24f2, #101b24dc 19%, #101b2499 40%, #101b2426 67%, transparent 88%),
    linear-gradient(0deg, #0b1723b8, transparent 38%);
}
.hero-inner { padding-block: 3.7rem 5.2rem; }
.hero-copy { max-width: 560px; }
.hero-kicker { color: var(--gold); display: flex; align-items: center; gap: .75rem; font-size: .75rem; letter-spacing: .22em; }
.hero-kicker span {
  width: 6px; height: 6px; transform: rotate(45deg); background: currentColor;
  box-shadow: 0 0 14px .5px #ffc97385;
}
.hero h1 { margin: 1.3rem 0 1.15rem -.34rem; }
.hero h1 img { width: clamp(290px, 38vw, 550px); height: auto; }
.hero-line { font: 400 clamp(1.95rem, 3.7vw, 3.4rem)/1.03 var(--serif); letter-spacing: -.035em; }
.hero-line em { color: #f3d39f; }
.hero-description { max-width: 380px; margin-top: 1.05rem; color: #eee6d8; font-size: .96rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .95rem 1.55rem; margin-top: 1.7rem; }
.play-link {
  display: inline-flex; align-items: center; gap: .55rem; width: fit-content;
  min-height: 49px; padding: .65rem .9rem; text-decoration: none;
  background: #efcc8b; color: #242521; border: 1px solid #efcc8b;
  font-size: .82rem; font-weight: 600; white-space: nowrap;
  transition: background-color .18s ease;
}
.play-link:hover { background: #ffe1a9; }
.play-link svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linejoin: round; }
.play-link span:last-child { margin-left: .55rem; }
.hero .play-link:focus-visible { outline-color: var(--pale); }
.gameplay-link { display: inline-flex; gap: .5em; align-items: center; min-height: 44px; text-decoration: none; font-size: .82rem; }
.gameplay-link:hover { text-decoration: underline; text-underline-offset: .3em; }
.gameplay-link span { color: var(--gold); }
.hero-location {
  position: absolute; right: max(calc((100% - 1180px)/2), 6vw); bottom: 1.6rem;
  display: flex; gap: .6rem; align-items: center; color: #f0d4a8;
  letter-spacing: .21em;
}
.hero-location span { display: block; width: 14px; height: 1px; background: currentColor; opacity: .8; }

.paper {
  background:
    radial-gradient(ellipse at 9% 15%, #d6aa7120, transparent 60%),
    radial-gradient(ellipse at 88% 88%, #e0c48c32, transparent 60%),
    var(--paper);
}
.section-index {
  display: flex; align-items: center; gap: .8rem; min-width: 0;
  font-size: .72rem; color: #e4ba7a; letter-spacing: .17em;
}
.index-rule { flex: auto; height: 1px; background: currentColor; opacity: .42; }

.gameplay { background: #14272d; color: var(--pale); padding-block: clamp(3.4rem, 7vw, 6.4rem); }
.gameplay-grid {
  display: grid; grid-template-columns: .95fr 1.05fr; align-items: center;
  gap: clamp(2rem, 6vw, 6rem); margin-top: clamp(2rem, 4.5vw, 3.75rem);
}
.gameplay h2 { font-size: clamp(3.25rem, 6vw, 5.7rem); letter-spacing: -.069em; line-height: .93; }
.gameplay h2 em { color: #edc98d; }
.gameplay-intro { max-width: 365px; color: #dedbd0; margin-top: 1.3rem; }
.mechanics { max-width: 400px; margin-top: 1.75rem; }
.mechanics > div { padding-block: .65rem; border-top: 1px solid #e8c38a42; }
.mechanics dt { color: #f6e9cf; font: 400 1.3rem/1.2 var(--serif); }
.mechanics dt span { color: #edc98d; font-size: .9rem; display: inline-block; width: 1.4rem; }
.mechanics dd { margin: .34rem 0 .2rem 1.4rem; color: #dedbd0; font-size: .85rem; }
.captures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(.75rem, 2.2vw, 1.7rem); }
.capture:nth-child(2) { margin-top: clamp(1.1rem, 4vw, 3.85rem); }
.capture a { display: block; border: 1px solid #cbb28d79; padding: .38rem; background: #0c171c; }
.capture a:hover { border-color: var(--gold); }
.capture img { width: 100%; height: auto; }
.capture figcaption { margin-top: .6rem; color: #f6e9cf; font-size: .62rem; }

.departure { padding-block: clamp(2.5rem, 6vw, 4.75rem); border-top: 3px solid #c29c67; }
.departure-inner {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: clamp(1rem, 3.8vw, 3.4rem);
}
.departure-emblem { width: clamp(82px, 11vw, 136px); height: auto; }
.departure .eyebrow { color: var(--rust); }
.departure h2 { font-size: clamp(2.5rem, 5.6vw, 5.15rem); line-height: .98; letter-spacing: -.055em; margin-block: .22em .12em; }
.departure p:not(.eyebrow) { color: var(--muted); }
.departure .play-link { background: #873c2b; border-color: #873c2b; color: #fff6e4; }
.departure .play-link:hover { background: #6f2e20; }

.footer { background: var(--night); color: #e7dbc2; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 78px; }
.footer p { display: flex; gap: .7rem; align-items: center; }
.footer img { object-fit: contain; background: #ece5d8; width: 98px; height: auto; padding: .32rem .35rem; }
.footer a { text-decoration: none; }
.footer a span { color: var(--gold); }

@media (max-width: 950px) {
  .gameplay-grid { gap: 2.1rem; }
}

@media (max-width: 730px) {
  .shell { width: calc(100% - 2.5rem); }
  .masthead-inner { grid-template-columns: 1fr auto; gap: .15rem 1rem; padding-block: .7rem .4rem; min-height: 0; }
  .masthead nav { grid-row: 2; grid-column: 1 / -1; gap: 1.35rem; }
  .masthead nav a { display: flex; align-items: center; min-height: 40px; }
  .masthead-play { grid-row: 1; grid-column: 2; min-height: 39px; }
  .hero { min-height: 585px; }
  .hero h1 img { width: min(100%, 420px); }
  .hero-inner { padding-top: 4rem; padding-bottom: 6.6rem; }
  .hero-art { object-position: 65% 56%; }
  .hero::after {
    background:
      linear-gradient(90deg, #111e28e8, #101b248c 58%, #13232b19),
      linear-gradient(0deg, #0e1d27c7, transparent 27%);
  }
  .hero-location { right: 1.25rem; bottom: 1rem; }
  .gameplay-grid { grid-template-columns: 1fr; gap: 1.65rem; }
  .captures { max-width: 510px; }
  .departure-inner { grid-template-columns: auto 1fr; }
  .departure-inner .play-link { grid-column: 2; }
}

@media (max-width: 475px) {
  .hero-line { font-size: clamp(2rem, 8vw, 2.5rem); }
  .hero-copy { max-width: 390px; }
  .hero-description { font-size: .9rem; }
  .hero-actions { gap: .28rem 1.1rem; }
  .hero-location { font-size: .59rem; }
  .departure-inner { grid-template-columns: 1fr; }
  .departure-inner .play-link { grid-column: 1; }
  .departure-emblem { width: 66px; }
  .footer { font-size: .6rem; }
  .footer p { gap: .35rem; }
  .footer img { width: 69px; }
}

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