/* Dark Monday: the game's noir look. Charcoal ground, cream paper, vermilion for what can be pressed. */

@font-face { font-family: "League Gothic"; src: url("fonts/LeagueGothic.woff2") format("woff2"); font-weight: 400; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/Archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("fonts/CourierPrime-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #121212;
  --ink-2: #1a1a19;
  --graphite: #33322d;
  --paper: #c4b9a6;
  --cream: #f0e6d6;
  --cream-dim: #b9b1a2;
  --vermilion: #ff5424;
  --vermilion-dark: #d8401a;
  --teal: #3fb7b0;

  --display: "League Gothic", "Oswald", Impact, "Arial Narrow", sans-serif;
  --text: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --type: "Courier Prime", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { background: var(--ink); color-scheme: dark; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cream); text-decoration-color: var(--vermilion); text-underline-offset: 0.2em; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--vermilion); outline-offset: 4px; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(3rem, 8vw, 6.5rem); }
.hero__inner { max-width: 760px; margin-inline: auto; text-align: center; }

.kicker {
  margin: 0 0 0.75rem;
  font-family: var(--type);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--cream-dim);
}
.title {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(4.5rem, 16vw, 10rem);
  line-height: 0.88;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--cream);
}
.lede {
  margin: 1.5rem 0 0.25rem;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  font-weight: 500;
}
.motto {
  margin: 0;
  font-style: italic;
  font-variation-settings: "wdth" 90;
  color: var(--cream-dim);
}

/* The ticket: the game's pressable shape, notched at both ends with a perforation. */
.cta { margin-top: 2.25rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.cta__note { margin: 0; font-family: var(--type); font-size: 0.85rem; color: var(--cream-dim); }

.ticket {
  --notch: 9px;
  position: relative;
  display: inline-block;
  padding: 0.65rem 2.1rem 0.6rem 2.9rem;
  background: var(--vermilion);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  -webkit-mask:
    radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask:
    radial-gradient(circle var(--notch) at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
    radial-gradient(circle var(--notch) at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  transition: background-color 120ms ease, transform 120ms ease;
}
.ticket::before {           /* the perforation */
  content: "";
  position: absolute;
  left: 1.6rem; top: 0.45rem; bottom: 0.45rem;
  border-left: 3px dotted var(--ink);
}
.ticket[href]:hover { background: #ff6a3d; color: var(--ink); transform: translateY(-1px); }
.ticket[href]:active { background: var(--vermilion-dark); transform: none; }
.ticket[aria-disabled="true"] { cursor: default; }

.hero__shot { margin-top: clamp(2.5rem, 6vw, 4rem); margin-bottom: 0; }
.hero__shot img, .shot img {
  border: 1px solid #2a2a28;
  box-shadow: 0 24px 60px -20px #000;
}

/* ---------- Sections ---------- */
main > section { margin-top: clamp(4rem, 9vw, 7rem); }

.label {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.4rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.label::after {             /* the underline from the year cards */
  content: "";
  display: block;
  width: 2.2em;
  height: 4px;
  margin-top: 0.4rem;
  background: var(--cream);
}

.pitch { max-width: 720px; }
.pitch p { margin: 0 0 1rem; color: #e2d9c9; }

/* Screenshots */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.shot { margin: 0; }
.shot--wide { grid-column: 1 / -1; }
.shot figcaption {
  margin-top: 0.6rem;
  font-family: var(--type);
  font-size: 0.9rem;
  color: var(--cream-dim);
}

/* The cases, as cream file folders */
.cases__intro { margin: -0.25rem 0 1.5rem; font-family: var(--type); color: var(--cream-dim); }
.files {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.25rem 1.25rem;
}
.file {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 11rem;
  padding: 1rem 1.1rem 1.1rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 6px 6px 0 #000;
}
.file::before {             /* the folder's tab */
  content: "";
  position: absolute;
  left: 0.9rem; top: -0.85rem;
  width: 34%; height: 0.9rem;
  background: var(--paper);
}
.file__year {
  font-family: var(--display);
  font-size: 4.2rem;
  line-height: 0.9;
}
.file__place {
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.file__what {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #8d8474;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Closing */
.closing { text-align: center; }
.closing__line {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  text-transform: uppercase;
}

/* Footer */
.foot {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding: 2.5rem 0 3rem;
  border-top: 1px solid #2a2a28;
  background: var(--ink-2);
  font-size: 0.95rem;
}
.foot__inner { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-items: baseline; }
.foot p { margin: 0; }
.foot__small { flex-basis: 100%; font-size: 0.8rem; color: #8c857a; }

/* ---------- Small screens ---------- */
@media (max-width: 820px) {
  .files { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .shots { grid-template-columns: 1fr; }
  .files { grid-template-columns: 1fr; gap: 2rem; }
  .file { min-height: 0; }
  .ticket { font-size: 1.5rem; }
}

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