@font-face {
  font-family: "Press Start 2P";
  src: url("/assets/PressStart2P-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --panel: #131316;
  --panel-2: #1a1a1e;
  --line: #2a2a30;
  --text: #e0dcd0;
  --muted: #8e8a80;
  --accent: #e8b23a;
  --accent-dim: #7a6a3a;
  --link: #f4a024;
  --max: 940px;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }

a { color: var(--link); text-decoration: none; border-bottom: 1px solid var(--accent-dim); }
a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- pixel type ---------- */
.pixel { font-family: var(--pixel); font-weight: 400; letter-spacing: 0.02em; line-height: 1.5; }

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--line);
  background: rgba(11, 11, 12, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}
.wordmark {
  font-family: var(--pixel);
  font-size: 13px;
  color: var(--text);
  border: 0;
  white-space: nowrap;
}
.wordmark:hover { color: var(--accent); }
.wordmark .dot { color: var(--accent); }
nav.site { display: flex; gap: 20px; flex-wrap: wrap; }
nav.site a {
  font-size: 14px;
  color: var(--muted);
  border: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--accent); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 56px; border-bottom: 1px solid var(--line); }
.hero h1 {
  font-family: var(--pixel);
  font-size: 25px;
  line-height: 1.6;
  margin: 0 0 22px;
  max-width: 22em;
}
.hero h1 .dot { color: var(--accent); }
.hero p.lede { font-size: 20px; color: var(--muted); margin: 0; max-width: 40em; }

/* pixel bar motif */
.bar {
  display: flex;
  gap: 3px;
  margin: 0 0 34px;
  height: 18px;
  max-width: 460px;
}
.bar span { flex: 1; background: var(--cell, #101c1e); }

/* ---------- sections ---------- */
main { padding: 8px 0 20px; }
section { padding: 52px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

h2 {
  font-family: var(--pixel);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 0 24px;
  color: var(--accent);
}
h3 {
  font-family: var(--pixel);
  font-size: 13px;
  line-height: 1.6;
  margin: 34px 0 12px;
  color: var(--text);
}
p { margin: 0 0 18px; max-width: 42em; }
p:last-child { margin-bottom: 0; }
ul, ol { max-width: 42em; padding-left: 22px; margin: 0 0 18px; }
li { margin-bottom: 9px; }
strong { color: #f2eee2; }
small { color: var(--muted); font-size: 15px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); }
.card {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 24px;
}
.card h3 { margin-top: 0; }
.card p { font-size: 16px; }
.card.soon { opacity: 0.62; }
.tag {
  display: inline-block;
  font-family: var(--pixel);
  font-size: 9px;
  padding: 5px 8px;
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.tag.muted { color: var(--muted); border-color: var(--line); }

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

/* App Store badge. Apple supplies the artwork; do not recolour or redraw it.
   Minimum onscreen height is 40px and clear space is a quarter of the height. */
.badge { display: inline-block; border: 0; margin-top: 26px; }
.badge:hover { border: 0; }
.badge img { height: 48px; width: auto; }
.card .badge { margin-top: 18px; }

/* Screenshot gallery. Sits on .grid for its columns and reflow. */
.shots figure { margin: 0; }
.shots img { border: 1px solid var(--line); background: var(--panel); }
.shots figcaption {
  color: var(--muted);
  font-size: 15px;
  text-align: center;
  margin-top: 12px;
}

/* ---------- detail rows (company info) ---------- */
dl.facts { margin: 0; display: grid; grid-template-columns: minmax(150px, auto) 1fr; gap: 12px 26px; }
dl.facts dt {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--muted);
  padding-top: 5px;
  letter-spacing: 0.05em;
}
dl.facts dd { margin: 0; }

.todo {
  border-left: 3px solid var(--accent);
  background: var(--panel-2);
  padding: 3px 12px;
  color: var(--accent);
  font-family: ui-monospace, monospace;
  font-size: 15px;
}

/* ---------- prose pages ---------- */
.prose { padding: 56px 0 68px; }
.prose h1 { font-family: var(--pixel); font-size: 21px; line-height: 1.55; margin: 0 0 10px; }
.prose .updated { color: var(--muted); font-size: 15px; margin: 0 0 40px; }
.prose h2 { font-size: 14px; margin-top: 44px; }
.prose h2:first-of-type { margin-top: 0; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--line);
  padding: 42px 0 56px;
  color: var(--muted);
  font-size: 15px;
}
footer.site .cols {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin-bottom: 34px;
}
footer.site h4 {
  font-family: var(--pixel);
  font-size: 10px;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: 0.05em;
}
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 8px; }
footer.site a { color: var(--muted); border: 0; }
footer.site a:hover { color: var(--accent); }
footer.site .legal { border-top: 1px solid var(--line); padding-top: 26px; line-height: 1.7; }

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 52px 0 42px; }
  .hero h1 { font-size: 19px; }
  .hero p.lede { font-size: 18px; }
  h2 { font-size: 15px; }
  .prose h1 { font-size: 17px; }
  dl.facts { grid-template-columns: 1fr; gap: 4px; }
  dl.facts dd { margin-bottom: 14px; }
}
