/* 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: #1F2A36; /* ink, same as the text */
  --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.05rem, 4.2vw + 1.4rem, 6rem);
  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);
}

/* The wordmark is drawn, not typed: Newsreader with a custom capital T. Sized in em so it scales with .brand. */
.wordmark {
  display: inline-block;
  vertical-align: top;
  height: 1em;
  width: 6.992em;
  overflow: visible;
}

.brand .name { display: inline-flex; align-items: flex-start; white-space: nowrap; }

.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;
  text-wrap: balance;
  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);
}

/* ---------- The chat: three voices, names as small mono labels ---------- */
.chat {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 34rem;
  margin: 8px 0 4px;
  padding-block: 22px;
  border-block: 1px solid var(--rule); /* brackets the thread top and bottom */
  text-align: left;
}
.msg {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  align-items: baseline;
}
.who {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
}
.said {
  font-family: var(--display);
  font-size: clamp(1rem, 0.2vw + 0.95rem, 1.125rem);
  line-height: 1.45;
  color: var(--ink);
  min-width: 0;
}
/* Timestamp as a thread divider: hairlines either side, so it belongs to the messages, not the page. */
.stamp {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 -6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}
.stamp::before,
.stamp::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--rule);
}
.burst { display: flex; flex-direction: column; gap: 6px; }
/* Message times sit with the name, quieter than the name itself. */
.who .t { color: var(--muted); opacity: .75; letter-spacing: 0.04em; }
.who .t::before { content: " · "; }
.msg-wt .who { color: var(--persimmon-text); }
.msg-wt .said { font-weight: 500; }

/* Wide screens: labels hang in the left margin so the messages sit centered under the tagline. */
@media (min-width: 1120px) {
  .chat { max-width: 40rem; }
  .msg { display: block; position: relative; }
  .who { position: absolute; right: calc(100% + 20px); top: 0.5em; white-space: nowrap; text-align: right; }
  .who .t { display: block; margin-top: 3px; }
  .who .t::before { content: none; }
}


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

.signup {
  --box: 284px; /* fits the sample address with a little room */
  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: var(--box);
}

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

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

button {
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 0;
  background: var(--action);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
}
button:hover { background: var(--persimmon-text); }
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);
}
.ast { position: relative; top: -0.2em; margin-left: 1px; }
.note .ast { color: var(--persimmon); margin-left: 0; margin-right: 1px; }
button .ast { color: var(--persimmon); }
button:hover .ast { color: var(--paper); } /* the button turns persimmon on hover */

/* The fine print sits under the button, next to the asterisk it explains. */
.note { padding-left: calc(var(--box) + 12px); }
.note.is-error, .note.is-done { padding-left: 0; }

.note.is-error { color: var(--persimmon-text); }
.note.is-done { color: var(--ink); }

/* Read aloud by screen readers, hidden on screen. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* What the app does: plain, muted, between the chat and the form. */
.what {
  margin: 10px 0 0;
  max-width: 34rem;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
}
.eyebrow {
  margin: 0;
  align-self: center;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

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

/* ---------- About the company (for people, and for D&B / Apple verification) ---------- */
.about {
  width: 100%;
  max-width: 34rem;
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--rule);
  text-align: center;
}
.about h2 {
  margin: 0 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.about p {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.about a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- 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%; max-width: 340px; margin-top: 6px; gap: 10px; }
  .msg { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .who { text-align: left; }
  .row { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .field { width: 100%; gap: 10px; }
  label { font-size: 11px; }
  input[type="email"] { height: 48px; padding: 0 16px; font-size: 18px; }
  button, .signup button { height: 48px; width: 100%; font-size: 13px; }
  .note { font-size: 12px; padding-left: 0; align-self: stretch; text-align: center; }

  .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; }
}
