/* Tred waitlist pages (/waitlist/*): vellum colours of the home page's Book
   look. Caddy's CSP here allows no web fonts, so the serif is a system one.
   The home page has its own stylesheet, docs/public-home/home.css. */
:root {
  color-scheme: light dark;
  --ink: #2b2318; --muted: #6f5f45; --paper: #f5ecd7; --card: #fbf5e6; --line: #e2d3b0;
  --field: #fbf5e6; --field-line: #d4c299; --accent: #a8321e; --button: #a8321e; --button-hover: #8c2918; --button-ink: #fbf5e6;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f1e6cc; --muted: #c4b490; --paper: #2a241a; --card: #1d1a14; --line: #3a3122;
    --field: #1d1a14; --field-line: #4a3f2b; --accent: #f08a5c; --button: #f08a5c; --button-hover: #f6a07a; --button-ink: #1a140c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Iowan Old Style", Palatino, Georgia, serif; line-height: 1.6; font-size: 17px; }
a { color: inherit; text-decoration-color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
header, main, footer { max-width: 1000px; margin: auto; padding: 0 32px; }
header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); text-decoration: none; font-size: 32px; font-weight: 750; letter-spacing: -2px; }
.wordmark span { color: var(--accent); }
.tag { font-size: 13px; color: var(--muted); }
h1 { font-family: "Iowan Old Style", Palatino, Georgia, serif; font-size: clamp(34px, 5vw, 54px); font-weight: 400; letter-spacing: -.04em; line-height: 1.1; margin: 0 0 24px; text-wrap: balance; }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 14px; max-width: 60ch; }

/* Forms */
form { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 26px; display: grid; gap: 14px; }
form h2 { font-size: 20px; font-weight: 600; margin: 0; }
label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; }
label small { font-weight: 400; color: var(--muted); }
input, textarea { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--field-line); border-radius: 4px; background: var(--field); color: var(--ink); width: 100%; }
textarea { min-height: 76px; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
button { font: inherit; font-size: 15px; font-weight: 600; background: var(--button); color: var(--button-ink); border: 0; border-radius: 4px; padding: 13px 18px; cursor: pointer; }
button:hover { background: var(--button-hover); }
.note { font-size: 13px; color: var(--muted); margin: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Waitlist pages */
.intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 56px; padding: 64px 0 56px; align-items: start; }


footer { padding-top: 20px; padding-bottom: 32px; font-size: 13px; color: var(--muted); display: flex; justify-content: flex-end; gap: 16px; }
@media (max-width: 800px) {
  header, main, footer { padding-left: 16px; padding-right: 16px; }
  header { min-height: 68px; }
  .intro { grid-template-columns: 1fr; gap: 28px; padding: 36px 0 40px; }
  form { padding: 20px; }
}
