/* Tokens copied from the website (src/styles/site.css) so this page matches www.libraryofcode.org.
   Every text color meets WCAG AAA contrast on the background it sits on. */
@font-face { font-family: "Figtree Variable"; src: url(/payments/figtree.woff2) format("woff2-variations"); font-weight: 300 900; font-display: swap; }
:root {
  --bg: #FAF8FF; --surface: #FFFFFF; --ink: #262338; --muted: #48456A; --line: #E3DFF5;
  --blue: #2C3FB8; --on-blue: #FFFFFF; --pink: #80206A; --lilac: #EEEBFF;
  --font: "Figtree Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #17161F; --surface: #211F2C; --ink: #E6E3EF; --muted: #B4B0C7; --line: #33303F;
    --blue: #9AAAFF; --on-blue: #17161F; --pink: #F2A0D6; --lilac: #1D1B27; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-text-size-adjust: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 6px; }
h1 { font-size: clamp(2rem, 6vw, 2.75rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; margin: 4px 0 12px; }
.wrap { max-width: 560px; margin-inline: auto; padding-inline: 16px; }
.site { border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 64px; font-weight: 700; font-size: 1.125rem; text-decoration: none; }
main { padding-block: 32px 48px; }
.eyebrow { font-family: var(--mono); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); margin: 0; }
.lede { color: var(--muted); margin: 0 0 24px; }
.card { display: grid; gap: 14px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend, label { font-weight: 600; margin-bottom: 8px; padding: 0; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.presets button { min-height: 44px; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 1rem var(--font); cursor: pointer; }
.presets button[aria-pressed="true"] { border-color: var(--blue); background: var(--lilac); }
.money { display: flex; align-items: center; gap: 8px; min-height: 48px; padding-inline: 14px; border: 2px solid var(--line); border-radius: 12px; font-size: 1.25rem; font-weight: 600; }
.money:focus-within { border-color: var(--blue); }
.money input { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; outline: none; }
.hint, .fine { margin: 0; color: var(--muted); font-size: .9rem; }
.status:empty { display: none; }
.status { margin: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--pink); color: var(--ink); }
.btn { min-height: 48px; border: 0; border-radius: 999px; background: var(--blue); color: var(--on-blue); font: 700 1.0625rem var(--font); cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: .6; cursor: progress; }
footer.fine { margin-top: 24px; line-height: 1.8; }
/* The seal's text is white (DigiCert setting), so it always sits on a dark tile, in light and dark mode alike. */
.seal { display: inline-block; margin-top: 12px; padding: 6px 10px; border-radius: 10px; background: #262338; }
.seal:not(:has(img, svg, canvas)) { display: none; } /* no empty dark box if the seal script is blocked or slow */
@media (max-width: 360px) { .presets { grid-template-columns: repeat(2, 1fr); } .card { padding: 16px; } }
@media (forced-colors: active) { .btn, .presets button, .money { border: 2px solid ButtonText; } }
