@font-face { font-family: "Newsreader"; font-weight: 500; font-display: swap; src: url("/fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-weight: 600; font-display: swap; src: url("/fonts/newsreader-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url("/fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url("/fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url("/fonts/public-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  --paper: #fbf8f2;
  --card: #ffffff;
  --ink: #1d2433;
  --muted: #4f5868;
  --line: #d9d2c4;
  --accent: #23407a;
  --accent-deep: #182e59;
  --neutral-tint: #eeeae2;
  --green: #1f6b45;
  --green-tint: #e3f1e8;
  --amber: #8a5a00;
  --amber-tint: #fbefd6;
  --red: #a32a24;
  --red-tint: #f8e3e0;

  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Public Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --motion-enter: 220ms ease-out;
  --motion-press: 100ms ease-out;
  --motion-focus: 140ms ease-out;
  --motion-error: 320ms cubic-bezier(0.3, 0, 0.2, 1);
  --motion-stamp: 360ms cubic-bezier(0.2, 0, 0, 1);
  --motion-highlight: 160ms ease-out;
  --motion-changed: 600ms ease-out;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
.wrap { max-width: 960px; margin: 0 auto; padding: 32px 20px 0; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin: 0 0 12px; line-height: 1.2; }
.display { font-size: 44px; }
h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 20px; }
p { margin: 0 0 12px; }
.small { font-size: 16px; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: 16px; letter-spacing: .02em; }
a { color: var(--accent); text-underline-offset: 3px; }
.btn { display: inline-block; font: 600 17px/1 var(--font-body); padding: 14px 22px; border-radius: 8px; border: 2px solid var(--accent); cursor: pointer; text-decoration: none; min-height: 48px; }
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-secondary { background: var(--card); color: var(--accent); }
@media (max-width: 700px) { .display { font-size: 36px; } }

header.top { display: flex; justify-content: flex-end; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.landing { padding-top: 40px; }
.landing .display { max-width: 760px; }
.lede { font-size: 20px; max-width: 680px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.landing section { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
ol.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; counter-increment: s; }
ol.steps li::before { content: counter(s); display: block; font-family: var(--font-mono); font-size: 24px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }
.card.limits { border-left: 4px solid var(--muted); }
@media (max-width: 700px) { ol.steps, .row2 { grid-template-columns: 1fr; } }

.wrap.narrow { max-width: 760px; }
.legal h1 { margin-bottom: 16px; }
.legal h2 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
.legal p, .legal li { max-width: 68ch; }
.back { display: inline-block; font-size: 16px; margin-bottom: 24px; }
.intro { font-size: 18px; margin-bottom: 24px; }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 8px 28px; margin-bottom: 20px; }
.doc section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.doc section:last-child { border-bottom: 0; }
.rights { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 28px; }
.rights p:last-child { margin-bottom: 0; }
ul.terms { margin: 0; padding-left: 22px; }
ul.terms li { margin-bottom: 8px; }
.legal [data-motion~="focus"]:focus-visible { border-radius: 4px; }
.legal .btn[data-motion~="focus"]:focus-visible { border-radius: 8px; }

footer { margin-top: 56px; border-top: 1px solid var(--line); padding: 24px 20px 40px; color: var(--muted); font-size: 16px; }
footer .in { max-width: 960px; margin: 0 auto; }
.narrow + footer .in { max-width: 760px; }
footer p { margin: 0 0 8px; }
[data-frame="privacy"] footer .support { font-weight: 600; }
footer nav a, footer nav span { margin-right: 16px; }
footer nav [aria-current] { color: var(--ink); font-weight: 600; }

@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes nudge {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  55% { transform: translateX(4px); }
  80% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}
@keyframes stamp { from { opacity: 0; transform: scale(1.14) rotate(-3deg); } to { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes changed { from { background-color: var(--amber-tint); } to { background-color: var(--card); } }

[data-motion~="enter"] { animation: fadein var(--motion-enter) 1 both; }
[data-motion~="press"] { transition: transform var(--motion-press), background-color var(--motion-press); }
[data-motion~="press"]:active { transform: scale(0.98); background-color: var(--accent-deep); border-color: var(--accent-deep); color: var(--paper); }
[data-motion~="focus"] { transition: box-shadow var(--motion-focus); }
[data-motion~="focus"]:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent); }
[data-motion~="error"] { animation: nudge var(--motion-error) 1 both; }
[data-motion~="stamp"] { animation: stamp var(--motion-stamp) 1 both; }
[data-motion~="highlight"] { transition: background-color var(--motion-highlight); }
[data-motion~="highlight"]:hover, [data-motion~="highlight"]:focus-within { background-color: var(--neutral-tint); }
[data-motion~="changed"] { animation: changed var(--motion-changed) 1; }

@media (prefers-reduced-motion: reduce) {
  [data-motion~="enter"] { animation: none; opacity: 1; }
  [data-motion~="press"] { transition: none; }
  [data-motion~="press"]:active { transform: none; background-color: var(--accent-deep); }
  [data-motion~="focus"] { transition: none; }
  [data-motion~="error"] { animation: none; transform: none; }
  [data-motion~="stamp"] { animation: none; opacity: 1; transform: none; }
  [data-motion~="highlight"] { transition: none; }
  [data-motion~="changed"] { animation: none; }
}
