/* Landing page (email and access code) mock-ups, 22 Nov 2026. Shared by options a to d.
   The palette and type are the site's Paper look (content/story-outline/styles.css, section "Paper"), copied here
   because the real landing page has to stand on its own outside the protected site. */
:root {
  --p-paper: #f3ead9; --p-paper-light: #faf5e9; --p-paper-deep: #ebdfc8; --p-tan: #e6d3b0;
  --p-ink: #2c352e; --p-ink-green: #293d36; --p-blue: #174d69; --p-sky: #b8d7e3; --p-sky-light: #d6e7ec;
  --p-ochre: #d6a34a; --p-rust: #a4472e; --p-line: #c9bb9c; --p-body: #3a443c; --p-muted: #555c4f; --p-alert: #9b4029;
  --p-on-dark: #f3ead9; --p-on-dark-soft: #dce8ea;
  --font-display: 'Instrument Sans', 'DM Sans', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-accent: Georgia, 'Times New Roman', serif;
  --slab-shadow: 4px 5px 0 rgba(23, 77, 105, 0.2);
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  --ease-spring: cubic-bezier(0.34, 1.45, 0.5, 1);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper-grain), var(--p-paper); color: var(--p-body); font: 400 1.0625rem/1.55 var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* The review strip: only on the mock-ups, never on the real page. */
.mock-strip { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center;
  padding: 7px 16px; background: var(--p-ink-green); color: var(--p-on-dark-soft); font: 500 0.8125rem/1.3 var(--font-body); }
.mock-strip a { color: var(--p-on-dark); }
.mock-strip b { color: var(--p-on-dark); font-weight: 600; }

/* The title, as on Home. */
.gate-title { margin: 0; color: var(--p-ink); font: 550 clamp(2.5rem, 5.2vw, 5rem)/0.96 var(--font-display); letter-spacing: -0.06em; text-wrap: balance; }
.gate-accent { display: block; font: italic 400 1.05em/1.02 var(--font-accent); color: var(--p-blue); letter-spacing: -0.045em; margin-top: 0.06em; }
.gate-sub { margin: 0.7em 0 0; font: 400 1.25rem/1.3 var(--font-body); color: var(--p-ink); }
.gate-draft { margin: 0; font: 500 0.875rem/1.35 var(--font-body); color: var(--p-muted); }

/* The form. */
.gate-form { display: grid; gap: 6px; }
.gate-lede { margin: 0 0 8px; color: var(--p-body); font-size: 1rem; max-width: 38ch; }
.gate-form label { font: 600 0.9375rem/1.3 var(--font-body); color: var(--p-ink); margin-top: 6px; }
.gate-form input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #8f8670; border-radius: 0; background: #fffdf7; color: var(--p-ink);
  font: 400 1.0625rem/1.2 var(--font-body); box-shadow: inset 0 2px 0 rgba(44, 53, 46, 0.06); }
.gate-form input#g-code { letter-spacing: 0.12em; font-weight: 600; text-transform: uppercase; }
.gate-form input:focus-visible { outline: 3px solid var(--p-blue); outline-offset: 2px; border-color: var(--p-blue); }
.gate-form input[aria-invalid="true"] { border-color: var(--p-alert); }
.gate-error { margin: 4px 0 0; padding: 8px 10px; background: #fbe9e1; color: #7f3320; font: 500 0.9375rem/1.4 var(--font-body); border-left: 4px solid var(--p-alert); }
.gate-go { margin-top: 14px; justify-self: start; min-height: 48px; padding: 12px 26px 13px; border: 0; cursor: pointer; color: var(--p-paper-light);
  background: var(--paper-grain), var(--p-blue); font: 600 1.0625rem/1 var(--font-body); clip-path: var(--g-tear-soft);
  transition: transform 0.18s ease, background-color 0.18s ease; }
.gate-go:hover { transform: translateY(-1px) rotate(-0.6deg); }
.gate-go:focus-visible { outline: 3px solid var(--p-ochre); outline-offset: 3px; clip-path: none; }
.gate-go[disabled] { cursor: progress; opacity: 0.85; }
.gate-help { margin: 10px 0 0; font-size: 0.9375rem; color: var(--p-muted); }

/* A paper slip: the form's usual home. */
.slip { position: relative; padding: 24px 24px 22px; background: var(--paper-grain), var(--p-paper-light); clip-path: var(--g-tear); filter: drop-shadow(var(--slab-shadow)); }
.slip-wrap { filter: drop-shadow(4px 5px 0 rgba(23, 77, 105, 0.18)); }
.slip-wrap > .slip { filter: none; }

/* Tape. */
.tape { position: absolute; z-index: 3; width: 110px; height: 30px; background: rgba(236, 222, 186, 0.82); clip-path: polygon(1% 8%, 7% 2%, 12% 7%, 19% 0, 27% 6%, 34% 2%, 42% 6%, 49% 0, 56% 5%, 63% 2%, 70% 6%, 78% 0, 86% 4%, 94% 1%, 99% 7%, 100% 90%, 94% 99%, 88% 93%, 81% 98%, 73% 94%, 65% 100%, 59% 95%, 52% 99%, 45% 94%, 38% 100%, 29% 95%, 21% 99%, 14% 93%, 8% 98%, 1% 93%);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05); pointer-events: none; }

/* Pause, for everything that moves. */
.gate-pause { position: fixed; z-index: 40; left: 14px; bottom: 46px; min-height: 36px; padding: 7px 12px; border: 1.5px solid var(--p-ink); border-radius: 0; cursor: pointer;
  background: var(--paper-grain), var(--p-paper-light); color: var(--p-ink); font: 600 0.8125rem/1 var(--font-body); }
.gate-pause:focus-visible { outline: 3px solid var(--p-blue); outline-offset: 2px; }
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }
@media (max-width: 760px) { .gate-pause { bottom: 64px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
/* The live front page (make.py live, body.is-live) has no mock strip: the pause button sits at the foot on wide
   screens and over the top of the picture on phones, clear of the form. */
body.is-live .gate-pause { bottom: 14px; }
@media (max-width: 760px) { body.is-live .gate-pause { position: absolute; top: 12px; bottom: auto; } }
