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

:root {
  --ink: #1d2b53;
  --cream: #f6f1e7;
  --white: #ffffff;
  --green: #22b573;
  --yellow: #ffc93c;
  --muted: #5b6688;
  --pixel: "Press Start 2P", ui-monospace, monospace;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }

h1, h2, h3, .pixel {
  font-family: var(--pixel);
  font-weight: normal;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

h1 { font-size: 22px; margin: 8px 0 4px; }
h2 { font-size: 13px; margin: 36px 0 12px; }
h3 { font-size: 11px; margin: 24px 0 8px; }

img.art { image-rendering: pixelated; image-rendering: crisp-edges; }

.back { display: inline-block; margin-bottom: 20px; font-size: 15px; }

.updated { color: var(--muted); font-size: 15px; margin-top: 0; }

.card {
  background: var(--white);
  border: 4px solid var(--ink);
  padding: 20px;
  margin: 20px 0;
}

.email {
  font-size: 19px;
  font-weight: 600;
  word-break: break-all;
}

.hero { text-align: center; }

.hero .icon {
  width: 96px;
  height: 96px;
  border: 4px solid var(--ink);
}

.hero .title { font-size: 30px; margin: 20px 0 6px; }

.hero .subtitle { font-size: 12px; color: var(--muted); margin: 0 0 24px; }

.hero .island {
  width: 100%;
  max-width: 672px;
  aspect-ratio: 2 / 1;
  border: 4px solid var(--ink);
  display: block;
  margin: 0 auto;
}

.tagline { font-size: 20px; font-weight: 600; margin: 24px 0 8px; }

.badge {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  font-family: var(--pixel);
  font-size: 11px;
  padding: 14px 18px;
  margin-top: 12px;
}

ul.features { padding-left: 20px; }
ul.features li { margin: 8px 0; }

footer {
  border-top: 4px solid var(--ink);
  margin-top: 48px;
  padding-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

footer a { margin-right: 16px; }

/* ---------- landing page ---------- */

.landing main { max-width: 1040px; }

.landing h2 { font-size: 16px; margin: 0 0 16px; }

.landing section { padding: 48px 0; border-bottom: 4px solid var(--ink); }
.landing section:last-of-type { border-bottom: 0; }

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 820px) {
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split.flip > :first-child { order: 2; }
}

.lead { font-size: 19px; }

.hero-text .title { font-size: 34px; margin: 16px 0 6px; }
.hero-text .subtitle { font-size: 12px; color: var(--muted); margin: 0 0 20px; }
.hero-text .icon { width: 88px; height: 88px; border: 4px solid var(--ink); }

@media (max-width: 819px) {
  .hero-text { text-align: center; }
}

.phones {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.phone {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 720 / 1565;
  border: 10px solid #111;
  border-radius: 40px;
  overflow: hidden;
  background: #111;
  box-shadow: 8px 8px 0 var(--ink);
  flex: 1 1 0;
  min-width: 0;
}

.phone img { width: 100%; height: 100%; display: block; object-fit: cover; }

.phones.two .phone { max-width: 230px; }

.homes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
}

@media (min-width: 820px) {
  .homes { grid-template-columns: repeat(9, 1fr); }
}

.homes figure { margin: 0; }
.homes img { width: 100%; aspect-ratio: 2 / 1; border: 3px solid var(--ink); display: block; }
.homes figcaption { font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.3; }

.eras {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.eras li {
  font-family: var(--pixel);
  font-size: 11px;
  background: var(--white);
  border: 3px solid var(--ink);
  padding: 8px 10px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(3, 1fr); } }

.grid .card { margin: 0; }
.grid .card h3 { margin-top: 0; }
.grid .card p { margin-bottom: 0; }

.cta { text-align: center; }
.cta .badge { font-size: 13px; padding: 18px 22px; }

/* ---------- waitlist ---------- */

.waitlist { margin-top: 20px; max-width: 520px; }
.cta .waitlist { margin: 20px auto 0; text-align: left; }

.waitlist .label { display: block; font-size: 11px; margin-bottom: 10px; }

.waitlist .row { display: flex; flex-wrap: wrap; gap: 8px; }

.waitlist input[type=email] {
  flex: 1 1 220px;
  min-width: 0;
  font: 17px var(--body);
  padding: 14px;
  border: 4px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}

.waitlist input[type=email]:focus { outline: 4px solid var(--yellow); outline-offset: 0; }

.waitlist .btn {
  flex: 0 0 auto;
  font: 11px var(--pixel);
  padding: 14px 16px;
  border: 4px solid var(--ink);
  border-radius: 0;
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer;
}

.waitlist .btn:active { transform: translateY(4px); box-shadow: none; }
.waitlist .btn:disabled { opacity: 0.7; cursor: default; }

@media (max-width: 480px) { .waitlist .btn { flex: 1 1 100%; } }

.waitlist .fine { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

.decoy {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form-status { margin: 12px 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status[data-state=done] {
  background: var(--white);
  border: 4px solid var(--green);
  padding: 14px;
}
.form-status[data-state=trouble] { color: #c0392b; }
