/* Technocratic Pig landing site. One stylesheet for every page. Colours: the game's palette (docs/art/style-guide.md).
   Type: the game's (src/view/fonts.ts). Our Technocratic Pig Sans Wide for titles, big numbers and buttons: one weight,
   capitals only, never bold. IBM Plex Sans for everything read: Regular, Medium for small labels, SemiBold for what leads. */
@font-face { font-family: "Technocratic Pig Sans Wide"; src: url(/fonts/TechnocraticPigSans-WideMedium.otf) format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Technocratic Pig Sans Wide Tracked"; src: url(/fonts/TechnocraticPigSans-WideMediumTracked.otf) format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/IBMPlexSans-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/IBMPlexSans-Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/IBMPlexSans-SemiBold.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url(/fonts/IBMPlexSans-Italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --navy: #0B0F2A; --teal: #38F0D0; --gold: #FFC94A; --pink: #FF5FA2; --paper: #F4F1EA;
  --bg: var(--paper); --ink: #0B0F2A; --muted: #4a4f6a; --line: #d9d4c7; --accent: #0a8f7a;
  --sans: "IBM Plex Sans", "Avenir Next", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --title: "Technocratic Pig Sans Wide", var(--sans); --label: "Technocratic Pig Sans Wide Tracked", var(--sans);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0B0F2A; --ink: #F4F1EA; --muted: #a9adc6; --line: #262d55; --accent: var(--teal); }
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { font-family: var(--title); font-weight: 400; text-transform: uppercase; }
.wrap { max-width: 1080px; margin: 0 auto; }

/* Top bar on inner pages (the home page puts it over the key art). */
.bar { background: var(--navy); color: var(--paper); }
nav.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; }
nav.top a { text-decoration: none; }
.word { font-family: var(--title); font-weight: 400; font-size: 15px; text-transform: uppercase; color: var(--paper); }
.word span { font: 500 11px var(--sans); letter-spacing: .14em; opacity: .75; margin-left: 12px; }
nav.top .link { color: var(--paper); opacity: .85; }

/* Inner pages: a readable column. */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 28px 72px; }
.doc h1 { font-size: clamp(24px, 4vw, 38px); line-height: 1.15; }
.doc h2 { font-size: 17px; line-height: 1.3; margin-top: 40px; }
.doc p, .doc li { margin-top: 12px; }
.doc ul { padding-left: 1.2em; }
.doc .kicker { color: var(--accent); margin-bottom: 14px; }
.btn { display: inline-block; font-family: var(--label); font-weight: 400; font-size: 14px; text-transform: uppercase; padding: 14px 20px; border-radius: 10px; background: var(--teal); color: var(--navy); text-decoration: none; margin-top: 24px; }

footer.site { border-top: 1px solid var(--line); padding: 28px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer.site a { color: var(--ink); }
footer.site .fls { flex-basis: 100%; font-size: 12.5px; font-style: italic; border-bottom: 1px solid var(--line); padding-bottom: 14px; }

@media (max-width: 760px) {
  nav.top { padding: 14px 16px; }
  .word span { display: none; }
  .doc { padding: 40px 16px 56px; }
  footer.site { padding: 24px 16px; }
}

/* Home: hero (key art with the headline in the sky above the pig). */
.hero { position: relative; color: var(--paper); background: var(--navy); }
.hero nav.top { position: absolute; z-index: 3; top: 0; left: 0; right: 0; }
.hero img.art { width: 100%; height: min(100vh, 56.25vw); min-height: 520px; object-fit: cover; object-position: 50% 60%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(11,15,42,.55), rgba(11,15,42,0) 38%, rgba(11,15,42,0) 75%, var(--navy)); pointer-events: none; }
.quote { position: absolute; z-index: 2; top: 9%; left: 0; right: 0; text-align: center; padding: 0 16px; }
.quote h1 { font-size: clamp(22px, 3.3vw, 50px); line-height: 1.15; text-shadow: 0 2px 24px rgba(11,15,42,.6); }
.quote h1 em { font-style: normal; color: var(--gold); }
.quote p { margin-top: 14px; opacity: .8; }

/* Home: pitch band (gameplay loop + press-release pitch + signup). */
.pitch { background: var(--navy); color: var(--paper); padding: 8px 28px 72px; }
.pitch .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.screen { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid #2b3366; box-shadow: 0 20px 60px rgba(0,0,0,.45); background: #121838; }
.screen img, .screen video { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.screen .tag { position: absolute; right: 12px; top: 12px; background: rgba(11,15,42,.8); color: var(--teal); padding: 4px 8px; border-radius: 6px; pointer-events: none; }
.release { color: var(--teal); margin-bottom: 12px; }
.pitch h2 { font-family: var(--sans); font-weight: 600; text-transform: none; font-size: 25px; line-height: 1.3; }
.pitch .sub { margin-top: 12px; color: #c9cce0; }
.dateline { font-weight: 600; color: var(--paper); }
.signup { margin-top: 26px; }
.signup label { display: block; color: var(--gold); margin-bottom: 8px; }
.signup .row { display: flex; gap: 8px; }
.signup input { flex: 1; min-width: 0; font: inherit; padding: 13px 14px; border-radius: 10px; border: 1px solid #39407a; background: #121838; color: var(--paper); }
.signup input::placeholder { color: #7e84a8; }
.signup button { font: 400 14px var(--label); text-transform: uppercase; padding: 14px 20px; border: 0; border-radius: 10px; background: var(--teal); color: var(--navy); cursor: pointer; white-space: nowrap; }
.fine { margin-top: 10px; font-size: 13px; color: #a9adc6; }
.unconnected { color: var(--pink); }

/* Home: key performance indicators. */
.kpis { padding: 72px 28px; }
.kpis header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.kpis h2 { font-size: 22px; line-height: 1.2; }
.kpis header .mono { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.kpi { padding: 26px 22px 6px 0; border-right: 1px solid var(--line); margin-right: 22px; }
.kpi:last-child { border-right: 0; margin-right: 0; }
.kpi .n { font-family: var(--title); font-size: 44px; line-height: 1; }
.kpi .n small { font-size: 20px; color: var(--accent); margin-left: 4px; }
.kpi .l { margin-top: 10px; font-weight: 600; }
.kpi .c { margin-top: 4px; color: var(--muted); font-size: 15px; }

@media (max-width: 760px) {
  .hero img.art { height: 110vw; min-height: 0; object-position: 50% 100%; }
  .hero::after { background: linear-gradient(to bottom, var(--navy), rgba(11,15,42,0) 30%, rgba(11,15,42,0) 75%, var(--navy)); }
  .quote { position: relative; top: 0; padding: 64px 16px 18px; background: var(--navy); }
  .quote h1 { font-size: clamp(17px, 5.2vw, 30px); }
  .pitch { padding: 0 16px 56px; }
  .pitch .wrap { grid-template-columns: 1fr; gap: 28px; }
  .signup .row { flex-direction: column; }
  .kpis { padding: 56px 16px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .kpi { margin-right: 0; padding-right: 14px; border-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .kpi .n { font-size: 34px; }
}

/* Privacy: "Very important!" then everything that comes first, each line smaller, until it snaps back. */
.doc .shrink { list-style: none; padding: 0; margin-top: 8px; font-weight: 600; line-height: 1.2; }
.shrink li { margin-top: .35em; }
.shrink li:nth-child(1) { font-size: 40px; }
.shrink li:nth-child(2) { font-size: 34px; }
.shrink li:nth-child(3) { font-size: 29px; }
.shrink li:nth-child(4) { font-size: 25px; }
.shrink li:nth-child(5) { font-size: 21px; }
.shrink li:nth-child(6) { font-size: 18px; }
.shrink li:nth-child(7) { font-size: 15px; }
.shrink li:nth-child(8) { font-size: 13px; }
.shrink li:nth-child(9) { font-size: 11px; }
.shrink li:nth-child(10) { font-size: 9px; }
.shrink li:nth-child(11) { font-size: 7px; }
.shrink li:nth-child(12) { font-size: 5.5px; }
.shrink li:nth-child(13) { font-size: 4px; }
.shrink li:nth-child(14) { font-size: 3px; }
.snap { margin-top: 40px; padding: 18px 20px; border-left: 4px solid var(--gold); font-weight: 600; }
.facts dt { font-weight: 600; font-size: 20px; margin-top: 28px; }
.facts dd { margin: 6px 0 0; }
.updated { margin-top: 40px; color: var(--muted); font-size: 14px; }

/* Press kit. */
.doc.wide { max-width: 1080px; }
.facts-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.facts-table th, .facts-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.facts-table th { width: 34%; padding-right: 16px; font-weight: 600; }
.facts-table th .mono { display: block; color: var(--muted); font-weight: 500; margin-top: 2px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.shots a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.downloads li { margin-top: 8px; }
@media (max-width: 760px) {
  .shots { grid-template-columns: 1fr 1fr; }
  .facts-table th, .facts-table td { display: block; width: auto; }
  .facts-table th { border-bottom: 0; padding-bottom: 0; }
  .facts-table td { padding-top: 4px; overflow-wrap: anywhere; }
}
