/* laurelandbone.com. Built on the RetroShapes shop system: black ground, Tiny5 display type,
   square orange actions, one 1328px content column. */

@font-face {
  font-family: "Tiny5";
  src: url("fonts/Tiny5-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
/* Chinese pages: the pixel font of the game's Chinese UI, cut down to the characters in lang.json. */
@font-face {
  font-family: "Laurel CJK";
  src: url("fonts/LaurelCJKWeb-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+2E80-9FFF, U+FF00-FFEF;
}

:root {
  --black: #000;
  --surface: #0d0d0d;
  --white: #fff;
  --muted: #a3a3a3;
  --border: #252525;
  --orange: #ff6b00;
  --display: "Tiny5", "Laurel CJK", ui-monospace, Menlo, monospace;
  --body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --content: 1328px;
  --h2: clamp(36px, 4vw, 64px);
  --h3: 28px;
  color-scheme: dark;
  scrollbar-color: var(--border) var(--black);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: var(--black); scroll-padding-top: 120px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body { margin: 0; background: var(--black); color: var(--white); font: 16px/1.6 var(--body); -webkit-text-size-adjust: 100%; }

::selection { background: var(--orange); color: var(--black); }
a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; text-wrap: balance; }
h2 { font-size: var(--h2); }
:lang(zh-Hans) :is(h1, h2, h3) { line-height: 1.2; word-break: keep-all; overflow-wrap: anywhere; }
h3 { font-size: var(--h3); }
p, dd { max-width: 70ch; text-wrap: pretty; }

.wrap { width: min(calc(100% - 96px), var(--content)); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 30; padding: 12px 16px; background: var(--orange); color: var(--black); font: 20px var(--display); }
.skip:focus { left: 8px; }
.preview-flag { max-width: none; padding: 8px 16px; background: var(--orange); color: var(--black); font: 18px var(--display); text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--black); border-bottom: 1px solid var(--border); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 96px; }
.logo { flex: none; display: flex; align-items: center; min-height: 44px; }
.logo img { width: 124px; }
.site-nav ul { display: flex; gap: 8px 28px; }
.site-nav a { display: flex; align-items: center; min-height: 44px; font: 18px var(--display); white-space: nowrap; }
.site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.site-nav { margin-left: auto; }
.lang { position: relative; flex: none; font: 18px var(--display); }
.lang summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--border); cursor: pointer; list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; margin-top: 5px; border: 5px solid transparent; border-top-color: currentColor; }
.lang summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 5px; }
.lang ul { position: absolute; right: 0; top: calc(100% + 8px); min-width: 100%; padding: 8px 0; background: var(--black); border: 1px solid var(--border); }
.lang a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; white-space: nowrap; }
.lang a[aria-current] { color: var(--orange); }

/* Actions */
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font: 20px var(--display); text-decoration: underline; text-underline-offset: 6px; }
.button {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 56px; padding: 12px 24px;
  background: var(--orange); border: 1px solid var(--orange); color: var(--black); font: 22px/1.1 var(--display);
}
.arrow { flex: none; width: 14px; height: 14px; fill: currentColor; shape-rendering: crispEdges; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; max-width: none; }

@media (hover: hover) {
  .text-link:hover, .site-nav a:hover, .footer-legal a:hover, .lang summary:hover, .lang a:hover { color: var(--orange); }
  .button:hover, a:hover > .button { background: var(--white); border-color: var(--white); }
  .shots a:hover span { text-decoration: underline; text-underline-offset: 6px; }
}

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); align-items: center; gap: 24px; padding: 32px 0 20px; }
.hero h1 { margin-bottom: 24px; font-size: clamp(38px, 4.3vw, 62px); line-height: 0.94; letter-spacing: -0.025em; }
.hero h1 span { display: block; }
.description { max-width: 34ch; margin-bottom: 26px; font-size: 20px; line-height: 1.5; }
.usps { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 18px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.usps li { display: flex; align-items: center; gap: 12px; }
.usps li + li::before { content: ""; width: 1px; height: 12px; background: currentColor; opacity: 0.5; }
.hero-visual { display: block; background: var(--surface); border: 1px solid var(--border); }
.hero-visual img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; image-rendering: pixelated; }

/* Sections */
.section { padding-top: 80px; padding-bottom: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }

.editorial { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.editorial h2 { margin-bottom: 24px; }
.editorial h3 { margin-bottom: 16px; }
.lead { max-width: 52ch; font-size: 20px; line-height: 1.5; }

.facts { border-top: 1px solid var(--border); }
.facts > div { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.facts dt { font: 20px/1.3 var(--display); }
.facts dd { color: var(--muted); }
.facts-wide > div { grid-template-columns: 240px minmax(0, 70ch); }
.facts-wide dt { color: var(--muted); }
.facts-wide dd { color: var(--white); }

.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; margin-top: 64px; }
.features img, .shots img, .trailer-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); border: 1px solid var(--border); }
.features img[src$=".gif"] { object-fit: contain; image-rendering: pixelated; }
.features h3 { margin: 20px 0 8px; }
.features p { max-width: 60ch; color: var(--muted); }

.trailer-frame { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--surface); border: 1px solid var(--border); }
.trailer-frame img, .trailer-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trailer-frame .button { position: absolute; left: 24px; bottom: 24px; }
.trailer-frame + p { margin-top: 12px; }

.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.shots li:first-child { grid-column: span 2; grid-row: span 2; }
.shots a { display: block; }
.shots span { display: block; padding-top: 12px; font: 18px/1.2 var(--display); }
.kit li:first-child { grid-column: auto; grid-row: auto; }
.kit .kit-logo { object-fit: contain; padding: 12%; }

/* Ladder */
.scores { border-top: 1px solid var(--border); padding-top: 32px; }
.scores h2 { margin-bottom: 16px; }
.scores table { width: 100%; margin-top: 24px; border-collapse: collapse; table-layout: fixed; font: 20px/1.3 var(--display); font-variant-numeric: tabular-nums; }
.scores th, .scores td { padding: 16px 12px; border-bottom: 1px solid var(--border); font-weight: 400; text-align: left; overflow-wrap: anywhere; }
.scores thead th { color: var(--muted); }
.scores tr > :first-child { width: 56px; padding-left: 0; }
.scores tr > :nth-child(n+3) { width: 16%; padding-right: 0; text-align: right; }
.scores tr > :nth-child(3) { padding-right: 12px; }
.scores-empty { margin-top: 24px; padding: 40px 24px; border: 1px dashed #666; font: 28px/1.1 var(--display); max-width: none; }
.scores .small { margin-top: 16px; }

/* News */
.news { border-top: 1px solid var(--border); }
.news li { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.news time { font: 18px/1.6 var(--display); color: var(--muted); }
.news h3 { margin-bottom: 8px; }
.news p + p { margin-top: 12px; }
.feed-head { margin: 56px 0 24px; }
.feed li { grid-template-columns: 240px minmax(0, 1fr) 132px; }
.feed p { max-width: 62ch; }
.feed-image img { width: 132px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface); border: 1px solid var(--border); }

/* RetroShapes */
.brand { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 40px; margin-block: 96px 32px; padding-block: 32px; border-block: 1px solid var(--border); }
.brand h2 { max-width: 18ch; margin-bottom: 20px; font-size: clamp(32px, 4vw, 48px); }
.brand-copy p { max-width: 55ch; margin-bottom: 16px; }
.brand-media { background: var(--surface); border: 1px solid var(--border); padding: 32px; }
.brand-media img { width: 100%; image-rendering: pixelated; }

/* Documents */
.page-top { padding: 40px 0 32px; }
.page-title { font-size: clamp(48px, 6vw, 88px); }
.page-lead { margin-top: 24px; max-width: 60ch; color: var(--muted); }
.page-top .actions { margin-top: 32px; }
.section > p + .actions, .section > p + p { margin-top: 24px; }
.kit { margin-top: 32px; }
.legal { padding-bottom: 32px; }
.legal p { margin-bottom: 16px; overflow-wrap: anywhere; }
.legal a { text-decoration: underline; text-underline-offset: 4px; }

/* Footer */
.footer { margin-top: 96px; border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; }
.footer h2 { max-width: 680px; margin-bottom: 12px; font-size: 48px; }
.footer .actions { margin-top: 24px; }
.footer-links { flex: none; display: grid; grid-template-columns: auto auto; column-gap: 40px; justify-items: start; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.footer-bottom p { flex: 1; min-width: 240px; }
.studio img { width: 140px; }
.footer-legal { display: flex; gap: 8px 24px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1023px) {
  .wrap { width: calc(100% - 48px); }
  .editorial { gap: 32px; }
  .shots { gap: 16px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-wide > div { grid-template-columns: 160px minmax(0, 1fr); }
  .news li { grid-template-columns: 160px minmax(0, 1fr); }
  .feed li { grid-template-columns: 160px minmax(0, 1fr) 132px; }
}

@media (max-width: 767px) {
  html { scroll-padding-top: 140px; }
  .wrap { width: calc(100% - 40px); }
  .bar { flex-wrap: wrap; gap: 0 16px; min-height: 80px; padding-top: 12px; }
  .logo img { width: 104px; }
  .site-nav { order: 2; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .lang { margin-left: auto; }
  .site-nav ul { gap: 24px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px 0 0; }
  .hero h1 { margin-bottom: 16px; font-size: clamp(38px, 11vw, 52px); }
  .description { max-width: 42ch; margin-bottom: 20px; font-size: 18px; }
  .button { font-size: 20px; }
  .usps { flex-direction: column; gap: 2px; }
  .usps li + li::before { content: none; }
  .section { padding-top: 64px; }
  .section-head { flex-direction: column; align-items: start; gap: 8px; margin-bottom: 24px; }
  .editorial, .features, .brand { grid-template-columns: minmax(0, 1fr); }
  .features { gap: 40px; margin-top: 48px; }
  .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shots span { font-size: 16px; }
  .scores table { font-size: 18px; }
  .scores th, .scores td { padding: 14px 8px; }
  .scores tr > :first-child { width: 36px; }
  .scores tr > :nth-child(n+3) { width: 22%; }
  .scores-empty { padding: 32px 20px; font-size: 24px; }
  .news li, .facts-wide > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .feed-head { margin-top: 40px; }
  .feed-image { margin-top: 12px; }
  .brand { gap: 24px; margin-block: 64px 24px; padding-block: 24px; }
  .footer { margin-top: 64px; }
  .footer-top { flex-direction: column; gap: 24px; }
  .footer h2 { font-size: 36px; }
  .page-top { padding: 32px 0 24px; }
}

@media (max-width: 389px) {
  .wrap { width: calc(100% - 32px); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
