/* Laurel & Bone · laurelandbone.com
   RetroShapes shell (black, Tiny5, square orange actions) around the arena's own sand. */

@font-face {
  font-family: "Tiny5";
  src: url("fonts/Tiny5-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --black: #000;
  --plate: #171519;
  --rule: #34302d;
  --bone: #fff1e8;
  --ash: #c2c3c7;
  --sand: #e4a961;
  --sand-ink: #2a1708;
  --sand-quiet: #5a3410;
  --gold: #dbb04c;
  --orange: #ff6b00;
  --orange-deep: #b84a00;
  --red: #fe004b;
  --blue: #27adfe;
  --sign: "Tiny5", ui-monospace, "SF Mono", Menlo, monospace;
  --text: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --block: clamp(72px, 10vw, 144px);
  /* 4-pixel ordered dither, sparse at the top and dense at the bottom. */
  --dither: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='12' shape-rendering='crispEdges'%3E%3Cpath d='M0 0h4v4H0zM4 4h4v4H4zM12 4h4v4h-4zM0 8h4v4H0zM8 8h8v4H8z'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font: 18px/1.55 var(--text);
  overflow-wrap: break-word;
}

::selection { background: var(--orange); color: var(--black); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, dt, time, th, .button, .text-link, .site-nav a, .site-footer a, .strip span, .ladder-empty, .trailer-play, .preview-flag, .skip {
  font-family: var(--sign);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1, h2, h3 { margin: 0; line-height: 0.98; text-wrap: balance; }

p { margin: 0 0 1em; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--bone); outline-offset: 3px; }

.skip {
  position: absolute; left: 8px; top: -80px; z-index: 10;
  background: var(--orange); color: var(--black); padding: 10px 14px; font-size: 18px; text-decoration: none;
}
.skip:focus { top: 8px; }

.preview-flag {
  position: sticky; top: 0; z-index: 9; margin: 0; padding: 6px var(--gutter);
  background: var(--blue); color: var(--black); font-size: 18px;
}

/* Actions */

.button {
  display: inline-block;
  padding: 15px 22px 17px;
  background: var(--orange);
  color: var(--black);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  box-shadow: inset 0 -4px 0 var(--orange-deep);
}
.button:hover { background: var(--bone); box-shadow: inset 0 -4px 0 var(--ash); }
.button:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--orange-deep); }

.text-link {
  font-size: 18px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--orange); }

/* Navigation: a black bar like the game's letterbox, the nameplate hangs from it. */

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.site-nav a {
  display: block; padding: 17px 12px 15px; font-size: 18px; line-height: 1; text-decoration: none; white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--orange); color: var(--black); }

.nameplate { display: block; }

/* First viewport: the arena */

.arena {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  background: var(--sand);
  overflow: hidden;
}

.arena-view { position: absolute; inset: 0; }
.arena-view img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }

.arena-top {
  position: relative; z-index: 2;
  display: flex; justify-content: flex-end;
  background: var(--black);
  padding: 0 calc(var(--gutter) - 12px);
}
.arena-top .nameplate {
  position: absolute; left: var(--gutter); top: 14px;
  width: clamp(170px, 23vw, 350px);
}

.prompt {
  position: relative; z-index: 1; grid-row: 3;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end;
  background: var(--black);
  padding: 22px var(--gutter) 30px;
}
.prompt::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 12px;
  background: var(--dither) repeat-x left bottom / 16px 12px;
}
.prompt h1 { font-size: 44px; }
.prompt p { margin: 12px 0 0; max-width: 62ch; color: var(--ash); font-size: 17px; }
.prompt-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 4px; }

@media (prefers-reduced-motion: no-preference) {
  .prompt { animation: prompt-rise 360ms steps(6, end) both; }
  /* Starts in view: a stalled animation must never hide the call to action. */
  @keyframes prompt-rise { from { transform: translateY(24px); } }
}

/* Sections on black */

.intro { padding: var(--block) var(--gutter) clamp(48px, 7vw, 96px); }
.intro h2 { color: var(--gold); font-size: 40px; }
.lede { margin: 20px 0 0; max-width: 46ch; font-size: clamp(20px, 2.1vw, 27px); line-height: 1.4; }

.trailer { padding: 0 var(--gutter) clamp(48px, 7vw, 96px); }
.trailer-frame { position: relative; display: block; max-width: 1200px; aspect-ratio: 16 / 9; background: var(--plate); }
.trailer-frame img, .trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.trailer-play {
  position: absolute; left: 20px; bottom: 20px; padding: 15px 22px 17px;
  background: var(--orange); color: var(--black); font-size: 22px; line-height: 1; box-shadow: inset 0 -4px 0 var(--orange-deep);
}
.trailer-frame:hover .trailer-play { background: var(--bone); box-shadow: inset 0 -4px 0 var(--ash); }

.pillar {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center;
  margin-bottom: clamp(40px, 6vw, 96px);
}
.pillar img { width: 100%; }
.pillar-copy { padding: 0 var(--gutter); }
.pillar-flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.pillar-flip img { order: 2; }
.pillar h3 { font-size: 32px; }
.pillar p { margin: 16px 0 0; max-width: 44ch; color: #e3dbd1; }

.screens { padding: var(--block) 0 clamp(56px, 8vw, 112px); }
.screens h2 { padding: 0 var(--gutter); color: var(--gold); font-size: 40px; }
.strip {
  list-style: none; margin: 28px 0 0; padding: 0 var(--gutter) 22px;
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-color: var(--orange) var(--plate); scrollbar-width: thin;
}
.strip::-webkit-scrollbar { height: 8px; }
.strip::-webkit-scrollbar-track { background: var(--plate); }
.strip::-webkit-scrollbar-thumb { background: var(--orange); }
.strip li { flex: 0 0 min(84vw, 920px); scroll-snap-align: start; }
.strip a { display: block; }
.strip img { width: 100%; }
.strip span { display: block; margin-top: 12px; color: var(--ash); font-size: 18px; line-height: 1.1; }

.wardrobe {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: center;
  padding: var(--block) var(--gutter);
}
.wardrobe img { width: min(100%, 420px); image-rendering: pixelated; justify-self: center; }
.wardrobe h2 { font-size: 40px; }
.wardrobe p { margin: 18px 0 22px; max-width: 48ch; color: #e3dbd1; }

/* Sections on sand: the edge into and out of the black is dithered. */

.bill, .forum { position: relative; background: var(--sand); color: var(--sand-ink); padding: var(--block) var(--gutter); }
.bill::before, .forum::before, .bill::after, .forum::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background: var(--dither) repeat-x left bottom / 16px 12px;
}
.bill::before, .forum::before { top: 0; transform: scaleY(-1); }
.bill::after, .forum::after { bottom: 0; }
.bill :focus-visible, .forum :focus-visible, .closing :focus-visible { outline-color: var(--black); }

.bill h2 { font-size: 48px; }
.bill dl { margin: 32px 0 0; border-top: 4px solid var(--black); }
.bill dl div {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 32px; align-items: center;
  padding: 18px 0 20px; border-bottom: 4px solid var(--black);
}
.bill dt { font-size: 36px; line-height: 1; }
.bill dd { margin: 0; font-size: 20px; }

.forum { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.herald h2 { font-size: 40px; }
.herald ol { list-style: none; margin: 24px 0 0; padding: 0; }
.herald li { padding: 16px 0 6px; border-top: 4px solid var(--black); }
.herald time { display: block; color: var(--sand-quiet); font-size: 18px; line-height: 1.1; }
.herald h3 { margin: 6px 0 8px; font-size: 28px; }
.quiet { color: var(--sand-quiet); }

.ladder { background: var(--plate); color: var(--bone); padding: clamp(22px, 3vw, 36px); }
.ladder h2 { color: var(--gold); font-size: 40px; }
.ladder > p { margin: 12px 0 0; color: var(--ash); }
.ladder table { width: 100%; margin-top: 20px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ladder th, .ladder td { padding: 11px 8px 9px; text-align: left; font-size: 22px; line-height: 1.1; font-family: var(--sign); font-weight: 400; text-transform: uppercase; }
.ladder thead th { color: var(--ash); font-size: 16px; }
.ladder td:first-child, .ladder thead th:first-child { width: 3.5em; }
.ladder td:nth-child(n+3), .ladder thead th:nth-child(n+3) { text-align: right; width: 5em; }
.ladder tbody tr { border-top: 2px solid var(--rule); }
.ladder tbody tr:first-child { color: var(--gold); }
.ladder-empty { margin: 20px 0 0; padding: 44px 12px; border-block: 2px solid var(--rule); text-align: center; font-size: 28px; line-height: 1.1; }
.fine { margin: 16px 0 0; color: var(--ash); font-size: 14px; }

/* Close */

.closing {
  background: var(--orange); color: var(--black);
  padding: clamp(64px, 9vw, 128px) var(--gutter);
  display: grid; gap: 28px; justify-items: start;
}
.closing h2 { font-size: 48px; }
.closing .button { background: var(--black); color: var(--bone); box-shadow: inset 0 -4px 0 var(--rule); }
.closing .button:hover { background: var(--bone); color: var(--black); box-shadow: inset 0 -4px 0 var(--ash); }

/* Footer */

.site-footer {
  position: relative; padding: 52px var(--gutter) 40px; background: var(--black);
  display: grid; gap: 22px;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px;
  background: linear-gradient(to bottom, var(--red) 0 4px, var(--orange) 4px 8px, var(--blue) 8px 12px);
}
.studio img { height: 26px; width: auto; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; }
.site-footer a { font-size: 18px; text-decoration: none; }
.site-footer ul a:hover { color: var(--orange); }
.site-footer p { margin: 0; color: var(--ash); font-size: 14px; }

/* Inner pages */

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 calc(var(--gutter) - 12px) 0 var(--gutter); border-bottom: 4px solid var(--plate); }
.masthead .nameplate { width: 150px; padding: 10px 0; flex: none; }

.document { max-width: 940px; padding: clamp(48px, 7vw, 96px) var(--gutter) var(--block); }
.document h1 { color: var(--gold); font-size: 44px; }
.document h2 { margin-top: 64px; font-size: 30px; }
.document h2 + p { margin-top: 14px; }
.document p { max-width: 68ch; }
.document .lede { max-width: 54ch; }
.document .button { margin-top: 8px; }

.facts { margin: 40px 0 0; border-top: 2px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 2px solid var(--rule); }
.facts dt { color: var(--ash); font-size: 18px; line-height: 1.5; }
.facts dd { margin: 0; }

.kit { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 16px; }
.kit a { display: block; text-decoration: none; }
.kit img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--plate); }
.kit span { display: block; margin-top: 8px; font-size: 15px; color: var(--ash); }
.kit a:hover span { color: var(--orange); }

.legal { margin-top: 28px; color: #e3dbd1; }

/* Larger screens: the sign type steps up in whole sizes. */

@media (min-width: 760px) {
  .prompt h1 { font-size: 64px; }
  .intro h2, .screens h2, .herald h2, .ladder h2, .wardrobe h2 { font-size: 56px; }
  .pillar h3 { font-size: 40px; }
  .bill h2, .closing h2 { font-size: 72px; }
  .bill dt { font-size: 48px; }
  .document h1 { font-size: 64px; }
}

@media (min-width: 1280px) {
  .prompt h1 { font-size: 88px; }
  .intro h2, .screens h2 { font-size: 72px; }
  .bill h2, .closing h2 { font-size: 96px; }
  .button { font-size: 24px; }
}

/* Small screens: one column, the arena keeps the top of the screen. */

@media (max-width: 759px) {
  .arena-top { justify-content: flex-start; padding: 0; }
  .arena-top .site-nav { padding: 0 8px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .arena-top .site-nav::-webkit-scrollbar { display: none; }
  .arena-top .nameplate { top: 62px; left: var(--gutter); width: 168px; }
  .prompt { grid-template-columns: minmax(0, 1fr); padding-bottom: 26px; }
  .prompt-actions { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
  .button { font-size: 20px; max-width: 100%; }
  .pillar, .pillar-flip { grid-template-columns: minmax(0, 1fr); }
  .pillar-flip img { order: 0; }
  .pillar-copy { padding-top: 22px; }
  .bill dl div { grid-template-columns: minmax(0, 1fr); }
  .forum, .wardrobe { grid-template-columns: minmax(0, 1fr); }
  .wardrobe img { justify-self: start; width: min(100%, 300px); }
  .masthead { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
  .masthead .nameplate { margin-left: var(--gutter); }
  .masthead .site-nav { overflow-x: auto; scrollbar-width: none; border-top: 4px solid var(--plate); padding: 0 8px; }
  .masthead .site-nav::-webkit-scrollbar { display: none; }
  .facts div { grid-template-columns: minmax(0, 1fr); }
  .kit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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