@font-face {
  font-family: "Jersey 10";
  src: url("/fonts/jersey-10.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Jersey 15";
  src: url("/fonts/jersey-15.woff2") format("woff2");
  font-display: swap;
}

/* Palette. Only these colors are used anywhere on the site. */
:root {
  --cream: #F6E7C8;
  --ink: #0E0B1A;
  --red: #E8283A;
  --burgundy: #7A1C3A;
  --yellow: #FFF04A;

  --display: "Jersey 10", ui-monospace, Menlo, Consolas, monospace;
  --body: "Jersey 15", ui-monospace, Menlo, Consolas, monospace;

  /* The fox takes whatever height is left on a phone, so the page stays one screen. */
  --fox: clamp(150px, calc(100dvh - 400px), 340px);
}

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

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.15;
}

img { display: block; }

/* The red tube. Bright in the middle, darker toward the corners. */
.screen {
  position: relative;
  min-height: 100dvh;
  padding: max(12px, env(safe-area-inset-top)) 18px max(10px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: center;
  background:
    radial-gradient(ellipse 120% 90% at 50% 45%, rgba(122, 28, 58, 0) 55%, rgba(122, 28, 58, 0.85) 100%),
    var(--red);
}

/* Scan lines, drawn over everything and never in the way of taps. */
.scan {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgba(14, 11, 26, 0.13) 0 1px, rgba(14, 11, 26, 0) 1px 3px);
  box-shadow: inset 0 0 90px rgba(14, 11, 26, 0.55);
}

.logo {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* The logo mark is true pixel art. Whole number sizes only, hard square pixels. */
.mark {
  width: 44px;
  height: 42px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The dark frame around the fox, like the plastic around an arcade tube. */
.fox {
  padding: 6px;
  border-radius: 14px;
  background: var(--ink);
  margin-bottom: 10px;
}

.fox img {
  width: var(--fox);
  height: var(--fox);
  border-radius: 9px;
}

.tag,
.max,
h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
  line-height: 0.95;
}

.tag { font-size: 34px; }
.max {
  font-family: var(--body);
  text-transform: none;
  font-size: 18px;
  line-height: 1.15;
  margin-top: 3px;
}

.wait { width: 100%; max-width: 400px; }

h2 { font-size: 26px; }


form { display: grid; gap: 7px; }

input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  appearance: none;
}

input::placeholder { color: var(--ink); opacity: 0.45; }

.small {
  display: block;
  font-size: 16px;
  text-align: left;
  margin-bottom: 7px;
}

/* Phones keep the email box folded behind a small link until someone wants it. */
.sub { display: none; }
.wait h2 { margin-bottom: 9px; }
.email-part { display: none; }
.with-email .email-part { display: block; }
.with-email .more { display: none; }

.more {
  justify-self: center;
  width: auto;
  min-height: 0;
  padding: 4px 10px;
  background: none;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  text-transform: none;
  text-decoration: underline;
}

.more:active { background: none; }

button,
.follow {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 8px 14px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

/* The handle keeps its own capitals. */
.follow {
  text-transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

button:active,
.follow:active { background: var(--burgundy); }

button:disabled { opacity: 0.7; cursor: wait; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}

.trust { margin: 6px 0 0; font-size: 16px; }

.error {
  margin: 0;
  padding: 7px 10px;
  background: var(--yellow);
  color: var(--ink);
  border: 3px solid var(--ink);
  font-size: 17px;
  text-align: left;
}

#check:empty { display: none; }

#done h2 { font-size: 34px; margin: 18px 0 18px; }
#done h2:focus { outline: none; }

.note { max-width: 400px; font-size: 14px; line-height: 1.1; }
.note p { margin: 4px 0 0; }
.note summary {
  display: inline-block;
  padding: 4px 10px;
  cursor: pointer;
  text-decoration: underline;
  list-style: none;
}
.note summary::-webkit-details-marker { display: none; }
.note a { color: inherit; }

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

[hidden] { display: none !important; }

/* When the email box opens on a phone, the fox gives up a little room so it all still fits. */
@media (max-width: 899px) {
  :root:has(.with-email) { --fox: clamp(150px, calc(100dvh - 452px), 340px); }
}

/* Very narrow phones. */
@media (max-width: 350px) {
  .logo { font-size: 28px; gap: 8px; }
  .tag { font-size: 30px; }
  h2 { font-size: 23px; }
}

/* Wide screens put the fox on the left and the waitlist on the right. */
@media (min-width: 900px) and (min-height: 560px) {
  :root { --fox: clamp(260px, calc(100dvh - 330px), 520px); }
  body { font-size: 21px; }
  .screen {
    display: grid;
    grid-template-columns: auto minmax(340px, 430px);
    grid-template-rows: auto 1fr auto;
    column-gap: 80px;
    justify-content: center;
    align-items: center;
    padding: 26px 40px 18px;
  }
  .top,
  .note { grid-column: 1 / -1; justify-self: center; }
  .logo { font-size: 60px; gap: 18px; }
  .mark { width: 88px; height: 84px; }
  .wait { text-align: left; }
  .tag { font-size: 52px; }
  .max { font-size: 22px; }
  h2 { font-size: 40px; }
  .sub { display: block; margin: 6px 0 14px; font-size: 21px; }
  .wait h2 { margin-bottom: 0; }
  .email-part { display: block; }
  .more { display: none; }
  .small,
  .trust { font-size: 18px; }
  #done h2 { font-size: 48px; }
  .note { max-width: none; font-size: 16px; }
}


/* The page for addresses that do not exist. One column at every size. */
.lost { display: flex; }
.lost .wait { text-align: center; }
.lost .follow { text-transform: uppercase; }
