/* Write In Yellow — landing page.
   Colours are provisional until the brand hex values are fixed. The paper
   matches the cream baked into the Fitz artwork, so the page is light only. */
:root {
  color-scheme: light;
  --paper: #f2ecdd;
  --paper-deep: #e9e1cd;
  --ink: #2a2620;
  --ink-soft: #5c5548;
  --yellow: #e5c13f;
  --yellow-soft: rgba(229, 193, 63, 0.55);
  --rule: #d8cfb9;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --wrap: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.muted { color: var(--ink-soft); }

/* The highlighter stroke from the series opening. */
.highlight {
  background-image: linear-gradient(transparent 58%, var(--yellow-soft) 58%, var(--yellow-soft) 92%, transparent 92%);
  background-repeat: no-repeat;
  background-size: 0% 100%;
  animation: sweep 900ms 300ms cubic-bezier(.6, 0, .2, 1) forwards;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@keyframes sweep { to { background-size: 100% 100%; } }
@media (prefers-reduced-motion: reduce) {
  .highlight { animation: none; background-size: 100% 100%; }
  html { scroll-behavior: auto; }
}

/* Masthead */
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.masthead-cta {
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 1px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 56px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 72px;
}
.hero-figure img {
  width: 168px;
  margin-left: auto;
}
h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  max-width: 16ch;
}
.lede {
  margin: 0 0 32px;
  font-size: 1.3rem;
  color: var(--ink-soft);
  max-width: 34ch;
}

/* Sign-up */
.signup { max-width: 520px; }
.signup-row {
  display: flex;
  gap: 8px;
}
.signup input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1.05rem;
  padding: 14px 16px;
  color: var(--ink);
  background: #fbf8f0;
  border: 1.5px solid var(--rule);
  border-radius: 6px;
}
.signup input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--yellow-soft);
}
.signup input[aria-invalid="true"] { border-color: #a4452c; }
button, .button {
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 22px;
  color: var(--ink);
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
button:hover, .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 0 var(--ink);
}
button:focus-visible, .button:focus-visible, a:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.signup-note {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.signup-error {
  margin: 10px 0 0;
  font-size: 0.95rem;
  color: #a4452c;
}
.signup-done {
  max-width: 520px;
  padding: 18px 20px;
  border-left: 4px solid var(--yellow);
  background: #fbf8f0;
  border-radius: 0 6px 6px 0;
}
.signup-done p { margin: 0; }
.signup-done-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 4px !important;
}

/* Trailer */
.trailer { padding-bottom: 88px; }
.trailer-frame {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.trailer-placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}
.trailer-placeholder p { margin: 0; font-size: 1.15rem; }
.trailer-placeholder .muted { color: #b9b09c; }
.play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--yellow);
  position: relative;
}
.play::after {
  content: "";
  position: absolute;
  left: 26px; top: 20px;
  border-left: 18px solid var(--ink);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
}

/* Reads, remembers, asks */
.three { padding-bottom: 96px; }
.section-title, .founding h2, .live h2 {
  margin: 0 0 32px;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  font-weight: 500;
  line-height: 1.2;
}
.three-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.three-grid article { border-top: 1.5px solid var(--ink); padding-top: 16px; }
.three-num {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.three-grid h3 {
  margin: 4px 0 8px;
  font-size: 1.5rem;
  font-weight: 500;
}
.three-grid p:last-child { margin: 0; color: var(--ink-soft); }
.promise {
  margin: 56px 0 0;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  max-width: 30ch;
}

/* Write along */
.live {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 0;
}
.live .eyebrow { color: #b9b09c; }
.live-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.live h2 { margin-bottom: 16px; }
.live p { max-width: 50ch; }
.live-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill {
  text-decoration: none;
  font-size: 0.98rem;
  padding: 10px 18px;
  border: 1.5px solid var(--paper);
  border-radius: 999px;
}
.pill:hover { background: var(--paper); color: var(--ink); }
.pill-yellow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); font-weight: 600; }
.pill-yellow:hover { background: var(--paper); border-color: var(--paper); }
.countdown {
  border: 1.5px solid var(--yellow);
  border-radius: 10px;
  padding: 28px;
  text-align: center;
}
.countdown p { margin: 0 auto; }
.countdown-label {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b9b09c;
}
.countdown-value {
  margin: 8px auto !important;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  color: var(--yellow);
  font-variant-numeric: tabular-nums;
}
.countdown-sub { font-size: 0.95rem; color: #d8cfb9; }

/* Founding */
.founding {
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: center;
}
.founding h2 { margin-bottom: 12px; }
.founding p {
  margin: 0 auto 28px;
  max-width: 44ch;
  color: var(--ink-soft);
}
.founding .signup, .founding .signup-done {
  margin: 0 auto;
  text-align: left;
}
.founding .signup p, .founding .signup-done p { margin: 10px 0 0; max-width: none; }
.founding .signup-done p { margin: 0; color: inherit; }
.hero-cta { margin: 0; }

/* Footer */
.footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 40px;
  font-size: 0.95rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}
.brand-small { font-size: 1rem; }
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.socials a { text-decoration: none; color: var(--ink-soft); }
.socials a:hover { color: var(--ink); text-decoration: underline; }
.fine { width: 100%; margin: 0; color: var(--ink-soft); font-size: 0.88rem; }

@media (max-width: 960px) {
  .three-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Phone */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .masthead-cta { display: none; }
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 16px;
    padding-bottom: 56px;
  }
  .hero-figure img { width: 96px; margin: 0; }
  .lede { font-size: 1.15rem; }
  .signup-row { flex-direction: column; }
  .trailer { padding-bottom: 64px; }
  .three { padding-bottom: 72px; }
  .three-grid { grid-template-columns: 1fr; gap: 28px; }
  .live { padding: 56px 0; }
  .live-inner { grid-template-columns: 1fr; gap: 32px; }
  .founding { padding-top: 72px; padding-bottom: 72px; }
}

.trailer-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--paper);
}

/* The forms' bot trap: off screen, never seen or tabbed to by people. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* A video that can't be missed: a dark screen frame, and a big play button over the
   first frame (the pitch opens on cream, which otherwise melts into the page). video.js
   hides the button once it plays. Used on index.html and beta.html. */
.video-card {
  position: relative;
  padding: 10px;
  border-radius: 16px;
  background: var(--ink);
  box-shadow: 0 2px 4px rgba(40, 35, 25, .12), 0 40px 80px -36px rgba(40, 35, 25, .6);
}
.video-card video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: var(--ink);
}
.video-play {
  position: absolute;
  inset: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: rgba(42, 38, 32, .68);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  box-shadow: none;
  transform: none;
}
.video-play:hover { background: rgba(42, 38, 32, .55); transform: none; box-shadow: none; }
.video-play-icon {
  position: relative;
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 50%;
  background: var(--yellow);
  border: 3px solid var(--ink);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5);
}
.video-play-icon::after {
  content: "";
  position: absolute;
  left: 33px;
  top: 24px;
  border-left: 28px solid var(--ink);
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
}
.video-play-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  font-weight: 600;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5);
  text-align: left;
}
.video-play-text small { font-size: 0.95rem; font-weight: 400; opacity: .9; }
.video-card.playing .video-play { display: none; }
@media (max-width: 560px) {
  .video-play { flex-direction: column; gap: 10px; }
  .video-play-icon { width: 64px; height: 64px; }
  .video-play-icon::after { left: 24px; top: 17px; border-left-width: 20px; border-top-width: 13px; border-bottom-width: 13px; }
  .video-play-text { align-items: center; text-align: center; }
}

/* Beta round two (1-8 Dec 2026) */
.b-yellow { color: var(--yellow); }
.hero-alt { margin-left: 14px; color: var(--ink-soft); }
.countdown-sub a { color: var(--yellow); }
.beta-clock { display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 0; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: .95rem; }
.beta-clock[hidden] { display: none; }
.beta-clock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); animation: beta-pulse 1.6s ease-in-out infinite; }
@keyframes beta-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .beta-clock-dot { animation: none; } }
