/* Fonts are served from this site (no third-party requests). SIL Open Font License; licences in fonts/. */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/fonts/bricolage-grotesque.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/ibm-plex-sans.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-500.woff2") format("woff2"); }

/* Layout: an ink page with a live Game of Life field behind the opening; the grass photography carries the colour below it.
   One deliberate dark look, taken from the logo (phosphor on ink). */
:root {
  --ink: #161a14;        /* logo ground */
  --ink-2: #1c2119;      /* raised panels */
  --line: #2c3429;
  --text: #e3e9dd;
  --muted: #9ba693;
  --phosphor: #3ec24a;   /* logo green */
  --phosphor-dim: #2a7d32;
  --straw: #d8b866;      /* savanna straw, used once for status */

  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Menlo, monospace;

  --measure: 64ch;
  --wrap: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--phosphor); text-underline-offset: 0.2em; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--phosphor); outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.label {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.35rem; font-weight: 500; }
p { margin: 0; max-width: var(--measure); }

/* ---------- header ---------- */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink);
}
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 0.6rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  color: var(--text); text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: 1.85rem; letter-spacing: -0.01em;
}
.brand img { width: auto; height: 72px; display: block; }   /* the mark, cropped to the ship: no dark square */
.site-head nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.site-head nav a {
  color: var(--muted); text-decoration: none;
  font-family: var(--f-mono); font-size: 1.05rem; letter-spacing: 0.04em;
}
.site-head nav a:hover { color: var(--phosphor); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 35%, #000 70%);
          mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 35%, #000 70%);
}
.hero .wrap { position: relative; padding-block: clamp(4rem, 11vw, 8.5rem); }
.hero-copy { display: grid; gap: 1.4rem; max-width: 40rem; }
.hero-copy p { font-size: 1.2rem; color: var(--text); }
.hero-copy .label { color: var(--phosphor); }
.hero-note {
  font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted);
}

/* ---------- sections ---------- */
section { padding-block: clamp(3.5rem, 8vw, 6rem); }
section + section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 0.8rem; margin-bottom: 2.5rem; }

/* product */
.product {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
}
.product figure { margin: 0; }
.product figure img {
  width: 100%; height: auto; display: block;
  border-radius: 10px; border: 1px solid var(--line);
}
.product-body { display: grid; gap: 1.2rem; min-width: 0; }
.status {
  justify-self: start;
  font-family: var(--f-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--straw); border: 1px solid color-mix(in srgb, var(--straw) 45%, transparent);
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  margin: 0;
}
.facts div { background: var(--ink-2); padding: 0.85rem 1rem; }
.facts dt {
  font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; line-height: 1.1;
  color: var(--phosphor); font-variant-numeric: tabular-nums;
}
.facts dd { margin: 0.15rem 0 0; font-size: 0.92rem; color: var(--muted); }
.product-body ul { margin: 0; padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.product-body li::marker { color: var(--phosphor); }

.gallery {
  margin-top: 2.5rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem;
}
.gallery figure { margin: 0; display: grid; gap: 0.4rem; min-width: 0; }
.gallery img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block;
  border-radius: 8px; border: 1px solid var(--line);
}
.gallery figcaption { font-family: var(--f-mono); font-size: 0.78rem; color: var(--muted); }

/* roadmap: a real sequence, drawn as a track with one stop per pack */
.roadmap {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.5rem;
}
.roadmap li { display: grid; gap: 0.7rem; align-content: start; min-width: 0; padding-top: 1.6rem; position: relative; }
.roadmap li::before {             /* the track */
  content: ""; position: absolute; top: 0.45rem; left: 0; right: -1.5rem;
  border-top: 2px solid var(--line);
}
.roadmap li:last-child::before { right: 0; border-top-style: dashed; }
.roadmap li::after {              /* the stop */
  content: ""; position: absolute; top: 0; left: 0;
  width: 1rem; height: 1rem; border-radius: 4px;
  background: var(--ink); border: 2px solid var(--muted);
}
.roadmap li.now::after { background: var(--straw); border-color: var(--straw); }
.roadmap li.dev::after { background: var(--phosphor); border-color: var(--phosphor); }
.roadmap p { font-size: 0.97rem; color: var(--muted); }
.pill {
  justify-self: start;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 999px; border: 1px solid var(--line); color: var(--muted);
}
.now .pill { color: var(--straw); border-color: color-mix(in srgb, var(--straw) 45%, transparent); }
.dev .pill { color: var(--phosphor); border-color: color-mix(in srgb, var(--phosphor) 45%, transparent); }
.roadmap-note { margin-top: 2.5rem; color: var(--muted); }

/* about: one column of plain paragraphs */
.about { display: grid; gap: 1.2rem; }

/* support */
.support { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.support > div {
  display: grid; gap: 0.6rem; align-content: start; min-width: 0;
  padding: 1.3rem; border: 1px solid var(--line); border-radius: 10px;
}
.support p { font-size: 0.97rem; color: var(--muted); }
.email {
  font-family: var(--f-mono); font-size: 1rem; color: var(--text);
  user-select: all; overflow-wrap: anywhere;
}
.placeholder { color: var(--straw); }

footer { border-top: 1px solid var(--line); }
footer .wrap {
  padding-block: 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem 2rem; justify-content: space-between;
  font-family: var(--f-mono); font-size: 0.8rem; color: var(--muted);
}

@media (max-width: 860px) {
  .product, .support { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .roadmap { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .roadmap li { padding: 0 0 1.8rem 2rem; }
  .roadmap li::before { top: 1rem; bottom: 0; left: 0.45rem; right: auto; border-top: 0; border-left: 2px solid var(--line); }
  .roadmap li:last-child::before { display: none; }
}
@media (max-width: 520px) {
  .site-head .wrap { flex-wrap: wrap; row-gap: 0.4rem; }
  .brand { font-size: 1.45rem; }
  .brand img { height: 52px; }
  .site-head nav { gap: 1.1rem; }
  .site-head nav a { font-size: 0.95rem; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .hero canvas { opacity: 0.55; -webkit-mask-image: none; mask-image: none; }
}

/* Work-in-progress strip under the roadmap: three across until phone width. */
.wip { margin-top: 4.5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
.wip-head { display: grid; gap: 0.8rem; justify-items: start; }
.wip .pill { color: var(--phosphor); border-color: color-mix(in srgb, var(--phosphor) 45%, transparent); }
.wip .gallery { margin-top: 1.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 72ch; }
@media (max-width: 860px) { .wip .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wip .gallery { grid-template-columns: minmax(0, 1fr); } }

/* Footer links and the plain text pages (privacy, 404). */
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.page { padding-block: 3.5rem 4.5rem; }
.page .prose { max-width: var(--measure); }
.page .prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0.4rem 0 1.2rem; }
.page .prose h2 { font-size: 1.3rem; margin: 2.2rem 0 0.5rem; }
.page .prose p, .page .prose li { color: var(--text); }
.page .prose ul { padding-left: 1.2rem; }
