/* Static Toad Labs: one stylesheet for every page.
   A riso print: cream paper with a halftone screen, ink outlines, hard offset shadows, and colour plates
   (Crosshue's red, yellow and blue, plus the toad's green) a little out of register. Night paper follows the
   device's dark mode. No web fonts: Apple devices get Futura Condensed and Charter (the faces Crosshue uses);
   everything else falls back to its own condensed sans and serif. */

:root {
  --paper: #f7f2e8; --sheet: #fffaf0; --text: #1d2340; --muted: #4b5170; --line: #1d2340; --dot: rgba(29, 35, 64, .07);
  --red: #e8483b; --red-text: #c0352a; --yellow: #f5c543; --blue: #2f6fdb; --green: #3fae6a; --purple: #8a4fc2; --orange: #f08a2c;
  --toad: #5f7f35;
  --display: "Futura-CondensedExtraBold", "Futura Condensed ExtraBold", "Avenir Next Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --r: 18px; --shadow: 6px 6px 0 var(--line);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #181b2c; --sheet: #23283f; --text: #eee6d3; --muted: #b9b3a3; --line: #070914; --dot: rgba(238, 230, 211, .05);
    --red-text: #ff7e70; --toad: #9cc46a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.3px, transparent 1.6px); background-size: 14px 14px;
  color: var(--text); font: 17px/1.6 var(--serif);
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-text); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; font-stretch: condensed; line-height: 1.02; margin: 0 0 .4em; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.8rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: 1.55rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.22rem; font-style: italic; color: var(--muted); max-width: 36em; }
.eyebrow { display: inline-block; font: 700 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1em; }
.eyebrow::before { content: ""; display: inline-block; width: 1.6em; height: .55em; margin-right: .6em; background: var(--red); border-radius: 99px; vertical-align: .05em; }
.slug { font: 600 .8rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* The wordmark, set as Crosshue's title screen sets it: ink over red, blue and yellow plates out of register. */
.wordmark { font-family: var(--display); font-weight: 800; font-stretch: condensed; color: var(--text); line-height: .95;
  text-shadow: .025em .02em 0 var(--red), .05em .04em 0 var(--blue), .075em .06em 0 var(--yellow); }
.lockup { display: flex; align-items: center; gap: .3em; font-size: clamp(3.2rem, 11vw, 6.4rem); margin: 0 0 .25em; }
.lockup .mark { width: 1.05em; height: 1.05em; flex: none; }

/* Header and navigation (a <details> menu on phones, so it needs no script). */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 3px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 800 1.35rem/1 var(--display); font-stretch: condensed; letter-spacing: .02em; text-transform: uppercase; }
.brand img { width: 42px; height: 42px; border-radius: 11px; border: 2px solid var(--line); }
.nav-links { display: flex; gap: 6px; }
.nav-links a { color: var(--text); text-decoration: none; font: 600 .95rem/1 var(--sans); padding: 10px 12px; border-radius: 10px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--sheet); box-shadow: inset 0 0 0 2px var(--line); }
.menu { display: none; }
@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font: 700 .9rem/1 var(--sans); padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; background: var(--sheet); }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--yellow); color: #1d2340; }
  .menu nav { position: absolute; right: 0; top: calc(100% + 10px); display: grid; min-width: 210px; padding: 8px;
    background: var(--sheet); border: 3px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
  .menu nav a { color: var(--text); text-decoration: none; font: 600 1rem/1 var(--sans); padding: 13px 12px; border-radius: 8px; }
  .menu nav a:hover { background: var(--paper); }
}

/* Buttons. */
.btn { display: inline-flex; align-items: center; gap: .5em; font: 700 1rem/1 var(--sans); text-decoration: none; color: #fffaf0;
  background: var(--red); border: 3px solid var(--line); border-radius: 14px; padding: 15px 22px; box-shadow: 4px 4px 0 var(--line);
  transition: transform .12s, box-shadow .12s; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); text-decoration: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--line); }
.btn.alt { background: var(--sheet); color: var(--text); }
.btn.store { background: #000; color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 1.4em 0 .6em; }
.fine { font: .9rem/1.5 var(--sans); color: var(--muted); }

/* Printed cards. */
.print { background: var(--sheet); border: 3px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.pad { padding: clamp(20px, 3vw, 32px); }
section { padding: clamp(48px, 8vw, 92px) 0; }
.band { height: 22px; border-radius: 99px; margin: 0; }

/* Home: hero. */
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero h1 em { font-style: normal; color: var(--toad); }
.toad-card { position: relative; justify-self: center; width: min(100%, 420px); }
.toad-card::before, .toad-card::after { content: ""; position: absolute; inset: 0; border-radius: 28px; z-index: -1; }
.toad-card::before { background: var(--yellow); transform: translate(18px, 16px) rotate(2deg); }
.toad-card::after { background: var(--blue); transform: translate(-14px, 12px) rotate(-3deg); opacity: .9; }
.toad-card img { border-radius: 26px; border: 3px solid var(--line); box-shadow: var(--shadow); }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .toad-card { width: min(78%, 360px); } }

/* Home: the featured game. */
.feature { overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; }
.feature .art { background: #f7f2e8; border-right: 3px solid var(--line); }
.feature .art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; aspect-ratio: 16 / 11; }
.feature .body { padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.feature .lockup { font-size: clamp(2.8rem, 6vw, 4.4rem); }
.pill { display: inline-block; font: 700 .78rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px;
  background: var(--yellow); color: #1d2340; border: 2px solid var(--line); border-radius: 8px; margin-bottom: 1em; align-self: flex-start; }
@media (max-width: 820px) { .feature { grid-template-columns: 1fr; } .feature .art { border-right: 0; border-bottom: 3px solid var(--line); } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.cards .print { padding: 24px; }
.cards h3 { font-size: 1.45rem; }
.cards p { margin: 0; color: var(--muted); }
.cards .chip { width: 46px; height: 12px; border-radius: 99px; margin-bottom: 14px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

.contact { text-align: center; }
.contact .print { max-width: 760px; margin: 0 auto; }
.contact .actions { justify-content: center; }

/* Crosshue page. */
.game-hero { padding-bottom: 24px; }
.game-hero .tagline { font: italic 1.5rem/1.35 var(--serif); margin: 0 0 .3em; }
.phones-art { margin-top: 26px; overflow: hidden; }
.phones-art img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; margin-top: 30px; }
.steps .print { padding: 24px; position: relative; }
.steps .print::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 20px; width: 36px; height: 36px;
  display: grid; place-items: center; font: 800 1.2rem/1 var(--display); background: var(--yellow); color: #1d2340; border: 3px solid var(--line); border-radius: 50%; }
.steps svg { width: 100%; height: 120px; margin: 6px 0 12px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 34px; } }
.mixes { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.mixes li { display: inline-flex; align-items: center; gap: 6px; font: 600 .85rem/1 var(--sans); padding: 8px 12px; background: var(--sheet); border: 2px solid var(--line); border-radius: 99px; }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); display: inline-block; }
.sq { width: 14px; height: 14px; border-radius: 3px; border: 2px solid var(--line); display: inline-block; }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 26vw, 250px); gap: 22px; overflow-x: auto;
  scroll-snap-type: x mandatory; padding: 6px 20px 26px; margin: 26px auto 0; max-width: 1120px; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: center; }
.phone { border: 5px solid var(--line); border-radius: 30px; overflow: hidden; background: var(--line); box-shadow: 5px 5px 0 color-mix(in srgb, var(--line) 35%, transparent); }
.phone img { width: 100%; aspect-ratio: 1320 / 2868; object-fit: cover; }
.gallery figcaption { font: 600 .9rem/1.4 var(--sans); margin-top: 12px; color: var(--muted); }
.gallery figcaption b { display: block; color: var(--text); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split .phone { max-width: 290px; justify-self: center; transform: rotate(-2deg); }
.split.flip .phone { transform: rotate(2deg); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } .split .phone { max-width: 240px; } }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 34px; margin: 0 0 .7em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); background: var(--green); }
.ticks li:nth-child(3n+2)::before { background: var(--blue); }
.ticks li:nth-child(3n)::before { background: var(--yellow); }

.worlds { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; padding: 0; list-style: none; }
.worlds li { font: 600 .85rem/1 var(--sans); padding: 8px 11px; background: var(--sheet); border: 2px solid var(--line); border-radius: 9px; }
.worlds li:nth-child(4n+1) { box-shadow: inset 0 -4px 0 var(--red); }
.worlds li:nth-child(4n+2) { box-shadow: inset 0 -4px 0 var(--yellow); }
.worlds li:nth-child(4n+3) { box-shadow: inset 0 -4px 0 var(--blue); }
.worlds li:nth-child(4n) { box-shadow: inset 0 -4px 0 var(--green); }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.plans .print { padding: 28px; }
.plans .price { font: 800 2.6rem/1 var(--display); margin: .1em 0 .3em; }
.plans .pro { background: color-mix(in srgb, var(--yellow) 22%, var(--sheet)); }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* FAQ (support and the game page). */
.faq details { background: var(--sheet); border: 3px solid var(--line); border-radius: 14px; margin: 0 0 14px; box-shadow: 4px 4px 0 var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font: 700 1.05rem/1.35 var(--sans); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center;
  font: 800 1.1rem/1 var(--sans); border: 2px solid var(--line); border-radius: 50%; background: var(--yellow); color: #1d2340; }
.faq details[open] summary::after { content: "–"; background: var(--blue); color: #fff; }
.faq details > div { padding: 0 20px 18px; }
.faq details > div p:last-child { margin: 0; }

/* Legal and press: readable long text. */
.doc { padding-top: clamp(36px, 6vw, 64px); }
.doc h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.doc h2 { font-size: 1.7rem; margin-top: 1.6em; }
.doc table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font: .92rem/1.45 var(--sans); background: var(--sheet); border: 3px solid var(--line); border-radius: 12px; overflow: hidden; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 25%, transparent); }
.doc th { background: color-mix(in srgb, var(--yellow) 30%, var(--sheet)); }
.doc li { margin-bottom: .5em; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 0; font: .98rem/1.45 var(--sans); }
.facts dt, .facts dd { margin: 0; padding: 11px 14px; border-bottom: 1px solid color-mix(in srgb, var(--line) 22%, transparent); }
.facts dt { font-weight: 700; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } .facts dt { border-bottom: 0; padding-bottom: 0; } }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 22px 0; }
.assets figure { margin: 0; }
.assets .thumb { aspect-ratio: 4 / 3; display: grid; place-items: center; background: #f7f2e8; border: 3px solid var(--line); border-radius: 14px; overflow: hidden; padding: 14px; }
.assets .thumb img { max-height: 100%; object-fit: contain; }
.assets figcaption { font: .88rem/1.4 var(--sans); margin-top: 8px; }
blockquote { margin: 0 0 1.2em; padding: 16px 20px; background: var(--sheet); border-left: 8px solid var(--red); border-radius: 0 12px 12px 0; }

/* 404. */
.lost { text-align: center; padding: 14vh 0; }
.lost .blank { width: 180px; height: 180px; margin: 0 auto 28px; border: 3px dashed var(--line); border-radius: 26px; display: grid; place-items: center; font: 800 4rem/1 var(--display); }

/* Footer. */
.site-footer { border-top: 3px solid var(--line); background: var(--sheet); padding: 34px 0; font: .92rem/1.6 var(--sans); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--text); }
.plates { display: flex; gap: 6px; }
.plates span { width: 26px; height: 10px; border-radius: 99px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--sheet); padding: 10px 14px; border: 3px solid var(--line); border-radius: 10px; }
