:root {
  --navy: #0B1F3A;
  --navy-star: #0F2547;   /* tone-on-tone star, barely lighter than the page */
  --red: #B22234;         /* Old Glory Red */
  --red-dark: #941B2B;
  --white: #FFFFFF;
  --soft: #C8D1DF;        /* lede, 11:1 on navy */
  --muted: #8E9BB2;       /* small print, 6:1 on navy */
  --ink: #0B1F3A;
  --ok: #8FD6A4;
  --error: #FF9C9C;

  --gutter: clamp(22px, 6vw, 88px);
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--navy); }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--navy);
  color: var(--white);
  font: 400 20px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  border-top: 4px solid var(--red);
}

/* One large star, cropped off the right edge, tone on tone.
   The .bg layer clips it so the page never scrolls sideways. */
.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-star {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: -14vmin;
  width: min(92vmin, 880px);
  height: min(92vmin, 880px);
  transform: translateY(-50%) rotate(-8deg);
  fill: var(--navy-star);
  pointer-events: none;
}

header, main, footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: calc(760px + var(--gutter) * 2);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

header { padding-top: 36px; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.brand svg { width: 18px; height: 18px; fill: var(--red); flex: none; }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 64px;
  padding-bottom: 72px;
}

h1 {
  margin: 0 0 24px;
  font-weight: 700;
  font-size: clamp(44px, 6.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  max-width: 13ch;
  text-wrap: balance;
}
.lede {
  margin: 0 0 44px;
  max-width: 30em;
  font-size: clamp(20px, 2.1vw, 23px);
  line-height: 1.5;
  color: var(--soft);
}

/* Signup form */
.signup { max-width: 600px; }
.field-label {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 600;
}
.row { display: flex; gap: 10px; }
.row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 60px;
  padding: 0 18px;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--white);
  border-radius: 4px;
}
.row input::placeholder { color: #6B778C; }
.row input:focus { outline: 3px solid var(--red); outline-offset: 2px; }
.row input[aria-invalid="true"] { border-color: var(--red); }
.row button {
  flex: none;
  height: 60px;
  padding: 0 30px;
  font: 600 20px/1 var(--sans);
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}
.row button:hover { background: var(--red-dark); }
.row button:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }
.row button[disabled] { opacity: 0.75; cursor: progress; }

.status {
  margin: 14px 0 0;
  min-height: 1.6em;
  font-size: 19px;
  font-weight: 600;
}
.status:empty { margin-top: 0; min-height: 0; }
.status.error { color: var(--error); }
.status.ok { color: var(--ok); }
.fine {
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--muted);
}

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

footer {
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 16px;
  color: var(--muted);
}

/* Social links: icon plus a visible name, 44px+ tap targets */
.social {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
  margin-bottom: 8px;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--soft);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}
.social a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.social a:focus-visible { outline: 3px solid var(--white); outline-offset: 4px; border-radius: 2px; }
.social svg { width: 24px; height: 24px; flex: none; }
.social .fill { fill: currentColor; }
.social .stroke { fill: none; stroke: currentColor; stroke-width: 2; }
.social .knock { fill: var(--navy); }
.copyright { margin: 0; }

a.text-link { color: var(--white); font-weight: 600; }

@media (max-width: 560px) {
  header { padding-top: 26px; }
  main { justify-content: flex-start; padding-top: 56px; }
  h1 { max-width: none; font-size: clamp(36px, 10.6vw, 44px); }
  .bg-star { top: 4%; right: -38vw; width: 100vw; height: 100vw; transform: rotate(-8deg); }
  .row { flex-direction: column; }
  .row input, .row button { flex: none; width: 100%; }
}
