/* Small single-card pages (thanks.html, account.html). Matches the landing page. */
@font-face { font-family: "D-DIN"; src: url("fonts/D-DIN-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }

:root {
  --bg: #faf9f6;
  --ink: #15140f;
  --muted: #6b6860;
  --line: #e4e1d9;
  --card: #ffffff;
  --bad: #a3271b;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
.card { width: 100%; max-width: 460px; padding: 40px 36px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 20px 50px -28px rgba(40, 36, 20, 0.35); }
.brand { display: inline-block; font: 700 17px/1 "D-DIN", var(--sans); letter-spacing: 0.34em; text-transform: uppercase; color: inherit; text-decoration: none; }
h1 { margin: 26px 0 0; font-size: 36px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; }
p { margin: 14px 0 0; }
.muted { color: var(--muted); font-size: 15px; }
.bad { color: var(--bad); font-size: 15px; }
form { display: grid; gap: 12px; margin-top: 22px; }
input { height: 50px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: inherit; font: inherit; }
input:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
button { height: 52px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 16px var(--sans); cursor: pointer; }
button:disabled { opacity: 0.5; cursor: default; }
[hidden] { display: none !important; }

/* Long-form page (legal.html). */
body.long { display: block; padding: 56px 20px 80px; }
.doc { max-width: 700px; margin: 0 auto; }
.doc h1 { font-size: 40px; }
.doc h2 { margin: 0; padding-top: 44px; font-size: 27px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.doc h3 { margin: 28px 0 0; font-size: 17px; font-weight: 600; }
.doc section { margin-top: 20px; border-top: 1px solid var(--line); }
.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc a { color: inherit; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc .brand { text-decoration: none; }
.doc .jump { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 22px; font-size: 15px; }
.doc .back { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
