/* Wrong Tuesday launch page: one screen, centred nameplate, tagline, notify-me form, footer. */
:root {
  --paper: #F4F3EE;
  --ink: #1F2A36;
  --muted: #5A6472;
  --persimmon: #E35A2B;
  --persimmon-text: #B9441B; /* darker persimmon for small text on paper */
  --action: #4A6A27;
  --field: #FFFFFF;
  --rule: rgba(31, 42, 54, 0.18);

  --display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono: 'Chivo Mono', Menlo, Consolas, monospace;

  color-scheme: light;
}

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

html, body { margin: 0; }
[hidden] { display: none !important; }

body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); }
a:hover { color: var(--persimmon); }
:focus-visible { outline: 2px solid var(--persimmon); outline-offset: 3px; }

/* ---------- Hero ---------- */

.hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 28px;
  padding: 48px 20px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.36em;
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 3.8vw + 1.8rem, 5.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

/* The crooked picture: always a little off, straightens only when you reach for it. */
.glyph {
  display: block;
  flex: none;
  width: 0.95em;
  height: 0.95em;
  border: 0.167em solid var(--persimmon);
  transform: rotate(-5deg);
  transition: transform .7s cubic-bezier(.3, 1.7, .4, 1);
}
.brand:hover .glyph {
  transform: rotate(0deg);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.brand sup {
  font-size: 0.36em;
  font-weight: 400;
  vertical-align: top;
  position: relative;
  top: 0.15em;
  margin-left: 4px;
}

.kicker {
  margin: -2px 0 0;
  font-family: var(--mono);
  font-size: clamp(0.6875rem, 0.29vw + 0.62rem, 0.875rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tagline {
  margin: 0;
  max-width: 900px;
  font-size: clamp(1.625rem, 1.33vw + 1.3rem, 2.5rem);
  line-height: 1.25;
  text-wrap: balance;
}
.tagline em {
  font-style: italic;
  font-weight: 500;
  color: var(--persimmon);
}

/* ---------- Form ---------- */

.signup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 12px;
  text-align: left;
}

.row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 380px;
}

label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

input[type="email"] {
  height: 56px;
  width: 100%;
  padding: 0 18px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: var(--field);
  font-family: var(--display);
  font-size: 19px;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
}
input[type="email"]::placeholder { color: #8A9099; }
input[type="email"][aria-invalid="true"] { border-color: var(--persimmon-text); }

button {
  height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: 0;
  background: var(--action);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
button:hover { background: var(--ink); }
button:disabled { opacity: .55; cursor: default; }
button:disabled:hover { background: var(--action); }

.note {
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.note.is-error { color: var(--persimmon-text); }
.note.is-done { color: var(--ink); }

/* Bot trap: off-screen, never seen by people. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Footer ---------- */

.foot {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding: 22px clamp(20px, 8vw, 120px) 26px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.foot a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 42, 54, 0.35);
}
.foot a:hover { color: var(--persimmon); border-bottom-color: var(--persimmon); }
.nowrap { white-space: nowrap; }

/* ---------- Phone ---------- */

@media (max-width: 640px) {
  .hero { gap: 18px; padding: 36px 20px 28px; }
  .brand { margin-bottom: 4px; }
  .kicker { margin-top: -6px; }
  .tagline { line-height: 1.3; }

  .signup { width: 100%; margin-top: 6px; gap: 10px; }
  .row { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .field { width: 100%; gap: 10px; }
  label { font-size: 11px; }
  input[type="email"] { height: 52px; padding: 0 16px; font-size: 18px; }
  button { height: 52px; width: 100%; font-size: 13px; }
  .note { font-size: 12px; }

  .foot {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 4px;
    padding: 16px 20px 20px;
    font-size: 11px;
  }
  .foot .sep { display: block; height: 0; overflow: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .glyph, .brand:hover .glyph { transition: none; }
}
