/* ---------- fonts (self-hosted) ---------- */

@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/pixelify-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/pixelify-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/pixelify-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Pixelify Sans';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("assets/fonts/pixelify-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #F4EFE6;
  --ink: #17171B;
  --cobalt: #2440B8;
  --vermillion: #E5484D;
  --bevel-light: #E8E0CC;
  --bevel-dark: #B9AE98;
  --pixel: "Pixelify Sans", "Courier New", monospace;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background-color: var(--paper);
  background-image: radial-gradient(rgba(23, 23, 27, 0.05) 1px, transparent 1px);
  background-size: 14px 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.5;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

/* ---------- header ---------- */

.welcome {
  text-align: center;
  font-family: var(--pixel);
  font-size: 13px;
  letter-spacing: 2px;
  margin: 0 0 4px;
  color: var(--cobalt);
}

h1 {
  text-align: center;
  font-family: var(--pixel);
  font-size: 44px;
  line-height: 1.1;
  margin: 0 0 16px;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(36, 64, 184, 0.25);
}

.rainbow {
  height: 6px;
  background: repeating-linear-gradient(90deg,
    #E5484D 0 32px, #F5A623 32px 64px, #F7E04B 64px 96px,
    #38B26C 96px 128px, #2440B8 128px 160px, #7B5ED7 160px 192px);
  border: 1px solid var(--ink);
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  border: 1px solid var(--ink);
  background: #fff;
  font-family: var(--pixel);
  font-size: 12px;
  padding: 6px 0;
  margin: 14px 0;
}

.track {
  display: inline-block;
  animation: scroll 22s linear infinite;
}

.track span { padding-right: 2rem; }

@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- main box ---------- */

.box {
  background: #fff;
  border: 1px solid var(--ink);
  box-shadow:
    inset -3px -3px 0 var(--bevel-dark),
    inset 3px 3px 0 var(--bevel-light),
    3px 3px 0 rgba(23, 23, 27, 0.15);
  padding: 20px 22px;
}

.under {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.under img {
  image-rendering: pixelated;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: inset -2px -2px 0 var(--bevel-dark), inset 2px 2px 0 var(--bevel-light);
  flex: 0 0 auto;
}

.tagline {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.tagline em { color: var(--vermillion); font-style: normal; }

.blurb { margin: 0; color: #3a3a41; }

/* ---------- form ---------- */

.join {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 2px dashed var(--bevel-dark);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
}

.join label {
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: 1px;
}

.join input[type="email"] {
  font-family: var(--serif);
  font-size: 16px;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  box-shadow: inset 2px 2px 0 var(--bevel-dark);
  min-width: 0;
}

.join input[type="email"]:focus {
  outline: 2px solid var(--cobalt);
  background: #fff;
}

.join button {
  font-family: var(--pixel);
  font-size: 14px;
  letter-spacing: 1px;
  color: #fff;
  background: var(--cobalt);
  border: 1px solid var(--ink);
  box-shadow: inset -3px -3px 0 #17308A, inset 3px 3px 0 #5A76E0;
  padding: 10px 14px;
  cursor: pointer;
  white-space: nowrap;
}

.join button:hover { background: var(--vermillion); box-shadow: inset -3px -3px 0 #A02E33, inset 3px 3px 0 #F07A7E; }
.join button:active { transform: translate(1px, 1px); }

.join .note {
  grid-column: 2 / -1;
  margin: 0;
  font-size: 13px;
  color: #55555e;
  font-family: var(--pixel);
  letter-spacing: 0.5px;
}

.honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- counter ---------- */

.counter {
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--pixel);
  font-size: 12px;
  background: #0a0a0d;
  color: #39ff7a;
  border: 1px solid var(--ink);
  padding: 7px 14px;
  width: fit-content;
  box-shadow: 3px 3px 0 rgba(23, 23, 27, 0.15);
}

.counter b { font-weight: normal; letter-spacing: 2px; }
.counter-note { color: #6b6b73; }

/* ---------- footer badges ---------- */

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
}

.badge {
  width: 88px;
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--ink);
  box-shadow: inset -2px -2px 0 var(--bevel-dark), inset 2px 2px 0 #fff;
  font-family: var(--pixel);
  font-size: 9px;
  line-height: 1.2;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: 0.5px;
  background: #fff;
  transition: transform 0.15s;
}

.badge:hover { transform: scale(1.08); z-index: 1; position: relative; }

.badge.b-paper { background: var(--paper); }
.badge.b-blue { background: var(--cobalt); color: #fff; box-shadow: inset -2px -2px 0 #17308A, inset 2px 2px 0 #5A76E0; }
.badge.b-yellow { background: #F7E04B; }
.badge.b-red { background: var(--vermillion); color: #fff; box-shadow: inset -2px -2px 0 #A02E33, inset 2px 2px 0 #F07A7E; }
.badge.b-dark { background: #0a0a0d; color: #39ff7a; }

.foot {
  text-align: center;
  font-family: var(--pixel);
  font-size: 11px;
  color: #55555e;
  margin: 14px 0 0;
}

.foot a { color: var(--cobalt); }

/* ---------- small screens ---------- */

@media (max-width: 560px) {
  h1 { font-size: 30px; }
  .join { grid-template-columns: 1fr; }
  .join .note { grid-column: auto; }
}
