/* yawl.works, the public landing page (crates/server/src/landing.rs).
   Josh's pick, 2 Dec: ops/design/landing-2026-12-02/a-fraunces-1-as-now.html,
   with the button swapped for the waitlist form. The app's look v1 tokens
   (web/src/tokens.css) are repeated here: oat paper, ink, deep teal, clay
   only in the logo. Inter for everything; Fraunces 600 (opsz 144, SOFT 100,
   WONK 0) for the headline only. Every file is self-hosted: Inter is the web
   app's (/fonts/), Fraunces is the server's own (/landing/), and the CSP
   allows nothing from elsewhere. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); }
/* Google Fonts' Latin instance of Fraunces at exactly the headline's
   settings (opsz 144, wght 600, SOFT 100, WONK 0): 18 KB instead of the
   whole variable font. SIL OFL 1.1 (/landing/Fraunces-OFL.txt). */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap; src: url("/landing/Fraunces-SemiBold-Soft.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bg: #f6f1e7;
  --surface: #fcf9f3;
  --hairline: #e2d9c8;
  --control-border: #877c6a;
  --control-border-hover: #665d4f;
  --ink: #18202e;
  --ink-soft: #3b3934;
  --graphite: #5c5850;
  --interactive: #1d5660;
  --primary: #1b4b54;
  --primary-strong: #143a41;
  --primary-on: #fbf6ec;
  --danger: #991b33;
  --r-control: 7px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-text); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--interactive); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

header.top { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.lockup { display: block; height: 32px; width: auto; }
.signin {
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink);
  padding: 8px 14px; border-radius: var(--r-control); border: 1px solid transparent;
}
.signin:hover { background: rgba(60, 45, 20, 0.05); }

/* The hero: one sentence, then the waitlist. */
.hero { min-height: calc(100vh - 88px - 120px); display: flex; flex-direction: column; justify-content: center; padding-top: 48px; padding-bottom: 96px; }
.hero h1 {
  font-family: "Fraunces", Georgia, serif; font-weight: 600;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 0;
  font-size: clamp(44px, 7.4vw, 104px); line-height: 1.02; letter-spacing: -0.008em;
  margin: 0; max-width: 13.5ch; text-wrap: balance;
}
.hero h1 .figure { display: inline-block; width: 0.62em; height: 0.62em; margin-left: 0.12em; vertical-align: -0.02em; }
.hero p.sub {
  margin: 36px 0 0; max-width: 36em; font-size: 20px; line-height: 1.55; color: var(--ink-soft);
}
.cta { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cta .aside { font-size: 15px; color: var(--graphite); }

/* The waitlist: an email field and its button, in the button's place. */
.waitlist { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.email {
  height: 52px; width: 320px; max-width: 100%; padding: 0 16px;
  border: 1px solid var(--control-border); border-radius: var(--r-control);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 17px;
}
.email::placeholder { color: var(--graphite); opacity: 1; }
.email:hover { border-color: var(--control-border-hover); }
.email:focus-visible { outline-offset: 1px; border-color: var(--interactive); }
.email[aria-invalid="true"] { border-color: var(--danger); }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 26px; border-radius: var(--r-control); border: 0;
  background: var(--primary); color: var(--primary-on);
  font: inherit; font-size: 17px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--primary-strong); }
.button[aria-disabled="true"] { cursor: progress; }
.note { flex-basis: 100%; margin: 0; font-size: 15px; color: var(--danger); }
.note[hidden] { display: none; }
.thanks { margin: 0; min-height: 52px; display: flex; align-items: center; font-size: 17px; font-weight: 500; color: var(--ink); }
.thanks:focus { outline: none; }
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Below the fold: what's in it, as plain sentences. */
.inside { border-top: 1px solid var(--hairline); padding-top: 64px; padding-bottom: 72px; }
.inside dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 48px; }
.inside dt { font-weight: 600; font-size: 16px; }
.inside dd { margin: 6px 0 0; color: var(--graphite); font-size: 15.5px; line-height: 1.55; max-width: 30ch; }

footer { border-top: 1px solid var(--hairline); }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: 36px; font-size: 14px; color: var(--graphite); }
footer nav { display: flex; gap: 24px; }
footer nav a { text-decoration: none; }
footer nav a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  header.top { padding-top: 16px; padding-bottom: 16px; }
  .lockup { height: 28px; }
  .hero { min-height: 0; padding-top: 48px; padding-bottom: 64px; }
  .hero h1 { font-size: 44px; line-height: 1.06; }
  .hero p.sub { margin-top: 24px; font-size: 18px; }
  .cta { margin-top: 32px; }
  .waitlist { width: 100%; }
  .email, .button { width: 100%; }
  .inside { padding-top: 48px; padding-bottom: 56px; }
  .inside dl { grid-template-columns: 1fr; gap: 28px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
