@font-face {
  font-family: STIX;
  src: url('/assets/stix-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: STIX;
  src: url('/assets/stix-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Red Hat Text;
  src: url('/assets/red-hat-text-regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Red Hat Text;
  src: url('/assets/red-hat-text-semibold.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #151813;
  --grove: #1c2018;
  --ivory: #f3eddd;
  --muted: #d2cbb8;
  --gold: #e0b876;
  --rule: #484a3b;
  --paper: #ede6d3;
  --paper-rule: #c7b99a;
  --umber: #745022;
  --serif: STIX, Georgia, serif;
  --sans: 'Red Hat Text', system-ui, sans-serif;
  --gutter: clamp(1.25rem, 6vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font: 1rem/1.6 var(--sans);
}

h1, h2, h3, p, dl, dd { margin: 0; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1;
}

a { color: inherit; text-underline-offset: .31em; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
a, button { touch-action: manipulation; }

.frame {
  width: min(100% - var(--gutter) * 2, 77rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  inset: .75rem auto auto .75rem;
  padding: .65rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(calc(-100% - 1rem));
}

.skip-link:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem 1.25rem;
}

.site-header {
  min-height: 4.875rem;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  min-height: 3rem;
  font-weight: 600;
  letter-spacing: .27em;
  line-height: 1.25;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark small {
  display: block;
  margin-top: .25rem;
  color: var(--gold);
  font-size: .61rem;
  font-weight: 400;
  letter-spacing: .26em;
}

.site-header nav { display: flex; gap: clamp(.85rem, 2vw, 2rem); }

.site-header nav a, .site-footer a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 3rem;
  text-decoration: none;
}

.site-header a:hover, .site-footer a:hover { color: var(--gold); }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; }

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
}

.hero-art {
  position: absolute;
  z-index: -1;
  inset: 0 0 4rem 23%;
}

.hero-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
}

.hero-art::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, var(--ink), transparent 25%, transparent 84%, var(--ink)),
    linear-gradient(90deg, var(--ink) 1%, rgb(21 24 19 / .91) 17%, rgb(21 24 19 / .6) 36%, transparent 65%);
  content: '';
}

.hero-copy {
  display: grid;
  align-content: end;
  justify-items: start;
  min-height: clamp(31rem, 46vw, 38rem);
  padding-block: 4rem clamp(2.25rem, 3.5vw, 3rem);
}

.eyebrow {
  color: var(--gold);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .23em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-label {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.hero-label::before {
  width: clamp(1.25rem, 3vw, 2.3rem);
  height: 1px;
  flex: none;
  background: currentColor;
  content: '';
}

.hero h1 {
  margin-block: 1.35rem 1.45rem;
  font-size: clamp(3rem, 7.5vw, 6.7rem);
  letter-spacing: -.04em;
  line-height: .94;
}

.hero h1 em { display: block; color: var(--gold); }

.hero-intro {
  max-width: 29rem;
  color: var(--ivory);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  min-height: 3.5rem;
  margin-top: 1.85rem;
  padding: .45rem .5rem .45rem 1.25rem;
  border-radius: 2rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 180ms cubic-bezier(.2,.7,.2,1);
}

.button span {
  display: grid;
  width: 2.4rem;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 100%;
  background: rgb(21 24 19 / .1);
}

.button:hover { background: #f3d297; }
.button:focus-visible { outline-color: var(--gold); }

.hero-caption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .3rem 1rem;
  padding-block: 1.5rem 1.65rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-caption > :first-child { color: var(--gold); }

.section-space { padding-block: clamp(3.5rem, 7vw, 6rem); }
.game { background: var(--grove); }

.game-heading {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: end;
  gap: 1rem 3.25rem;
  margin-top: .95rem;
}

.game h2, .company h2 {
  font-size: clamp(2.45rem, 5.45vw, 4.75rem);
  letter-spacing: -.042em;
}

.game-heading p {
  max-width: 31rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem clamp(1.25rem, 3.3vw, 3rem);
  margin: clamp(2rem, 5vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

.features li { border-top: 1px solid var(--rule); padding-top: 1.2rem; }
.feature-index { color: var(--gold); font-size: .75rem; font-weight: 600; }
.features h3 { margin-block: .7rem .45rem; font-size: clamp(1.5rem, 2.3vw, 2rem); }
.features p { max-width: 22rem; color: var(--muted); }

.company {
  background: var(--paper);
  color: var(--ink);
  color-scheme: light;
}

.company .eyebrow, .company dt { color: var(--umber); }
.company h2 { margin-top: .95rem; }

.company-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
  gap: min(8vw, 7rem);
}

.company-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem clamp(1.75rem, 6vw, 6rem);
  margin-top: 2rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--paper-rule);
}

.company dt {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.company dd { margin-top: .3rem; font-size: clamp(1rem, 1.55vw, 1.2rem); }

.seal {
  display: grid;
  width: min(100%, 23rem);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border: 1px solid var(--paper-rule);
  border-radius: 50%;
  outline: 1px solid var(--paper-rule);
  outline-offset: -.8rem;
}

.seal img { width: 76%; height: auto; }

.site-footer {
  flex-wrap: wrap;
  min-height: 5rem;
  padding-block: .75rem;
  color: var(--muted);
  font-size: .9rem;
}

.not-found { padding-block: clamp(5rem, 15vw, 12rem); }
.not-found h1 { margin-bottom: 1rem; font-size: clamp(2.5rem, 7vw, 5rem); }

@media (max-width: 48rem) {
  .hero-art { inset: 0 0 auto; height: clamp(16rem, 66vw, 27rem); }
  .hero-art img { object-position: 44% 43%; }
  .hero-art::after { background: linear-gradient(0deg, var(--ink) 1%, rgb(21 24 19 / .64) 23%, transparent 60%); }
  .hero-copy { min-height: 0; padding-top: clamp(13rem, 54vw, 22rem); }
  .hero h1 { font-size: clamp(2.65rem, 10.6vw, 5.5rem); }
  .game-heading, .features { grid-template-columns: 1fr; }
  .features li { display: grid; grid-template-columns: 2.1rem 1fr; }
  .feature-index { padding-top: .2rem; }
  .features h3 { margin-top: 0; }
  .features p { grid-column: 2; }
  .company-layout { grid-template-columns: 1fr; gap: 2.25rem; }
  .seal { justify-self: start; width: 9rem; outline-offset: -.35rem; }
}

@media (max-width: 25rem) {
  .site-header { flex-wrap: wrap; gap: 0 1rem; padding-block: .55rem .15rem; }
  .wordmark img { width: 2rem; height: 2rem; }
  .wordmark { font-size: .8rem; }
  .wordmark small { font-size: .52rem; }
  .site-header nav { font-size: .9rem; }
  .hero-caption { letter-spacing: .09em; }
}

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