:root {
  color-scheme: dark;
  --ink: #201b16;
  --paper: #e8dfcc;
  --paper-dim: #bfb5a2;
  --line: #52483d;
  --rust: #a94e32;
  --rust-dark: #873b27;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.65;
  max-width: 100%;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--content);
  padding: 22px 24px;
}

.wordmark,
.site-header nav,
.eyebrow,
.section-number,
.button,
.case-notes dt,
.link-list span,
footer {
  font-family: Arial, Helvetica, sans-serif;
}

.wordmark {
  border: 2px solid var(--paper);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  padding: 8px 9px 7px 11px;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  font-size: 13px;
  gap: 24px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav a {
  text-decoration-color: transparent;
  text-underline-offset: 5px;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  text-decoration-color: var(--rust);
}

.hero {
  margin: 0 auto;
  max-width: 1440px;
  position: relative;
}

.hero::after {
  background: linear-gradient(90deg, rgba(32, 27, 22, 0.88), rgba(32, 27, 22, 0) 62%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero img {
  display: block;
  height: auto;
  width: 100%;
}

.hero-caption {
  bottom: 11%;
  left: max(24px, calc((100% - var(--content)) / 2));
  max-width: 460px;
  position: absolute;
  z-index: 1;
}

.eyebrow,
.section-number {
  color: #d5cbb8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin-bottom: 30px;
}

h2 {
  font-size: clamp(34px, 4.5vw, 60px);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 0;
}

.button {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 18px;
  text-decoration: none;
}

.button-primary {
  background: var(--rust);
  color: #fff8e9;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--rust-dark);
}

.section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: clamp(36px, 8vw, 110px);
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  margin: 0 auto;
  max-width: var(--content);
  padding: 100px 24px;
}

.story-copy,
.game-copy {
  max-width: 620px;
}

.story-copy p,
.game-copy p {
  color: var(--paper-dim);
}

.story-copy .lead {
  color: var(--paper);
  font-size: 24px;
  line-height: 1.45;
}

.story-copy .last-line {
  color: var(--rust);
  font-size: 38px;
  font-style: italic;
  margin-bottom: 0;
}

.game {
  align-items: start;
}

.case-notes {
  margin: 0;
}

.case-notes div {
  border-bottom: 1px solid var(--line);
  padding: 0 0 24px;
}

.case-notes div + div {
  padding-top: 24px;
}

.case-notes dt {
  color: var(--paper);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.case-notes dd {
  color: var(--paper-dim);
  margin: 6px 0 0;
}

.links {
  padding-bottom: 120px;
}

.link-list {
  border-top: 1px solid var(--line);
}

.link-list a {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 19px 2px;
  text-decoration: none;
}

.link-list a::after {
  color: var(--rust);
  content: "↗";
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  margin-left: 20px;
}

.link-list a[href^="/play/"]::after {
  content: "→";
}

.link-list a:hover span,
.link-list a:focus-visible span {
  color: #d87955;
}

.link-list span {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  min-width: 155px;
}

.link-list small {
  color: var(--paper-dim);
  flex: 1;
  font-size: 15px;
}

footer {
  background: #17130f;
  color: #9d9382;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  letter-spacing: 0.06em;
  padding: 25px max(24px, calc((100% - var(--content)) / 2));
  text-transform: uppercase;
}

footer p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid #d87955;
  outline-offset: 4px;
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  .site-header nav {
    display: none;
  }

  .hero {
    min-height: 520px;
    overflow: hidden;
  }

  .hero img {
    height: 520px;
    object-fit: cover;
    object-position: 57% center;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(32, 27, 22, 0.97) 0%, rgba(32, 27, 22, 0.2) 75%);
  }

  .hero-caption {
    bottom: 30px;
    left: 24px;
    max-width: calc(100% - 48px);
    right: auto;
    width: calc(100% - 48px);
  }

  h1 {
    font-size: 42px;
    margin-bottom: 24px;
  }

  .section {
    gap: 34px;
    grid-template-columns: 1fr;
    padding-bottom: 72px;
    padding-top: 72px;
  }

  .story-copy .lead {
    font-size: 21px;
  }

  .link-list a {
    align-items: flex-start;
  }

  .link-list a > span {
    min-width: 120px;
  }

  footer {
    display: block;
  }

  footer p + p {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
