@font-face {
  font-family: Inter;
  src: url("./assets/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: Unbounded;
  src: url("./assets/unbounded.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --page: #14100e;
  --ink: #f8ecd8;
  --muted: #c9baab;
  --gold: #ffc17d;
  --line: #493629;
  --display: Georgia, "Times New Roman", serif;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p, h1, h2, h3 { margin: 0; }
:is(a, summary):focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }

.wrap {
  width: min(75rem, 100% - clamp(2rem, 10vw, 10rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 3;
  top: .75rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--page);
  transform: translateY(-180%);
}

.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #100e0c;
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.75rem;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 2.75rem;
  font: 650 .95rem/1 Unbounded, system-ui, sans-serif;
  letter-spacing: .095em;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .875rem;
  font-weight: 550;
  text-decoration: none;
  color: var(--muted);
}

nav a:hover { color: var(--gold); }

.language {
  position: relative;
  z-index: 2;
  flex: none;
}

.language summary {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding-inline: .7rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  color: var(--ink);
  cursor: pointer;
  font-size: .875rem;
  font-weight: 550;
  list-style: none;
}

.language summary::-webkit-details-marker { display: none; }

.language summary::after {
  width: .35rem;
  height: .35rem;
  margin-top: -.2rem;
  border-right: 1px solid;
  border-bottom: 1px solid;
  content: "";
  transform: rotate(45deg);
}

.language[open] summary::after {
  margin-top: .2rem;
  transform: rotate(225deg);
}

.language summary:hover, .language[open] summary { color: var(--gold); }

.language ul {
  position: absolute;
  inset-block-start: calc(100% + .4rem);
  inset-inline-end: 0;
  width: max-content;
  max-width: calc(100vw - 2rem);
  max-height: calc(100dvh - 9rem);
  overflow-y: auto;
  margin: 0;
  padding: .3rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #191310;
  box-shadow: 0 .65rem 2rem #0008;
  list-style: none;
}

.language a {
  display: flex;
  padding-inline: .75rem;
  border-radius: .3rem;
}

.language a:hover, .language a[aria-current="page"] {
  background: #2b2018;
  color: var(--gold);
}

.language a:focus-visible { outline-offset: -2px; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(34rem, 52vw, 45rem);
  overflow: hidden;
  background: #0b0a08;
}

.hero-art,
.hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  z-index: -2;
  object-fit: cover;
  object-position: 58% 53%;
}

.hero::after {
  z-index: -1;
  content: "";
  background:
    linear-gradient(0deg, var(--page) 0%, transparent 26%),
    linear-gradient(90deg, rgba(10, 8, 7, .9) 0%, rgba(10, 8, 7, .76) 26%, rgba(10, 8, 7, .36) 48%, transparent 68%);
}

.hero-inner { padding-block: 4rem 5rem; }

.eyebrow {
  margin-bottom: 1.1rem;
  color: var(--gold);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.6;
  text-transform: uppercase;
}

h1, h2, h3 { font-family: var(--display); }

h1 {
  font-size: clamp(3.6rem, 7.4vw, 7rem);
  line-height: .97;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.hero-copy {
  max-width: 28rem;
  margin-top: 1.45rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.65;
}

.release {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  margin-top: 1.9rem;
  padding: .65rem 1.25rem .65rem .68rem;
  border: 1px solid #896144;
  border-radius: .65rem;
  background: #211813;
  color: var(--ink);
  text-decoration: none;
}

a.release:hover { border-color: var(--gold); }
.release img { flex: none; border-radius: .55rem; }
.release span { display: block; color: var(--gold); font-size: .875rem; }
.release strong { font-size: 1.2rem; font-weight: 650; line-height: 1.45; }

.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-intro { max-width: 36rem; margin-bottom: 1.85rem; }
.section-intro p, .section li p, .mode p { color: var(--muted); line-height: 1.65; }
.section-intro p { margin-top: .9rem; }

h2 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -.045em;
}

.face-grid,
.mode-grid {
  display: grid;
  gap: .9rem;
}

.face-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.face-grid li {
  padding: clamp(1rem, 2.3vw, 1.7rem);
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #1d1613;
}

.face {
  display: inline-grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid #b78f65;
  border-radius: .7rem;
  background: linear-gradient(145deg, #f2ddb6, #bd9266);
  box-shadow: inset 0 -4px 0 #795132, inset 0 1px 0 #fff0d3;
}

.face img { filter: brightness(0); opacity: .77; }
.face-grid h3 { margin-block: .8rem .3rem; font-size: 1.55rem; }
.chain-example { margin-top: 1.3rem; color: var(--muted); line-height: 1.6; }
.chain-example strong { color: var(--gold); }

.modes {
  border-block: 1px solid var(--line);
  background: #191310;
}

.mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.mode {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: #211814;
}

.mode-art {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.4rem;
  height: 9.5rem;
  border-bottom: 1px solid var(--line);
  background:
    repeating-linear-gradient(135deg, transparent 0 20px, #f9dec408 20px 21px),
    radial-gradient(ellipse, #4c281a, #231613 78%);
}

.campaign .mode-art {
  background:
    repeating-linear-gradient(135deg, transparent 0 20px, #f9dec408 20px 21px),
    radial-gradient(ellipse, #35403a, #191e1a 78%);
}

.mode-art .face {
  width: 4.35rem;
  height: 4.35rem;
  box-shadow: 0 9px 15px #0007, inset 0 -6px 0 #795132, inset 0 1px 0 #fff0d3;
  transform: rotate(-14deg) translateY(-.25rem);
}

.mode-art .face + .face { transform: rotate(12deg) translateY(.25rem); }
.mode-copy { padding: clamp(1.15rem, 3vw, 2rem); }
.mode h3 { margin-bottom: .5rem; font-size: clamp(1.75rem, 3vw, 2.6rem); line-height: 1.05; }

.site-footer { color: var(--muted); font-size: .875rem; }
.site-footer .wordmark { color: var(--ink); font-size: .8rem; }

@media (max-width: 62rem) {
  .face-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 45rem) {
  .hero-art { height: clamp(16rem, 66vw, 25rem); object-position: 87% 53%; }
  .hero::after {
    background: linear-gradient(0deg, var(--page) 8%, transparent 68%);
    height: clamp(16.5rem, 67vw, 25.5rem);
  }
  .hero { min-height: auto; background: var(--page); }
  .hero-inner { padding-block: clamp(13.8rem, 58vw, 23rem) 2.65rem; }
  h1 { font-size: clamp(2.75rem, 10.6vw, 4.65rem); }
  .hero-copy { margin-top: 1rem; }
  .mechanics { padding-top: 2rem; }
}

@media (max-width: 34rem) {
  .header-inner { flex-wrap: wrap; padding-block: .55rem; gap: .15rem .85rem; }
  nav { flex: 1 1 100%; column-gap: .8rem; }
  .language { margin-inline-start: auto; }
  .mode-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-wrap: wrap; justify-content: flex-start; gap: .25rem 1rem; padding-block: .65rem; }
}

@media (max-width: 23rem) {
  .face-grid { grid-template-columns: 1fr; }
}
