:root {
  --bg: #fbfaf7;
  --fg: #1d2428;
  --muted: #55606a;
  --line: #d6d9dc;
  --card: #ffffff;
  --accent: #2f4858;
  --accent-fg: #ffffff;
  --focus: #1b6ec2;
  --danger: #a32020;
  --banner-bg: #fff1c7;
  --banner-fg: #3d2e00;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14181b;
    --fg: #e8ebed;
    --muted: #a3adb5;
    --line: #333c43;
    --card: #1c2226;
    --accent: #9cc3dc;
    --accent-fg: #10181d;
    --focus: #7db7f0;
    --danger: #ff9a9a;
    --banner-bg: #4a3a00;
    --banner-fg: #ffeeb5;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 1rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2 { line-height: 1.25; margin: 1.4em 0 0.5em; }
h1 { font-size: 2rem; margin-top: 0.4em; }
h2 { font-size: 1.25rem; }
p, ul { margin: 0 0 1em; }
ul { padding-left: 1.3em; }
li { margin-bottom: 0.5em; }
strong { font-weight: 650; }

.skip {
  position: absolute; left: 16px; top: -100px; background: var(--card); color: var(--fg);
  padding: 10px 14px; border: 2px solid var(--focus); border-radius: 6px; z-index: 10;
}
.skip:focus { top: 8px; }

.banner {
  background: var(--banner-bg); color: var(--banner-fg); padding: 12px 16px; text-align: center; font-weight: 600;
}
.banner a { color: inherit; }

.site-header, .main, .site-footer { width: 100%; max-width: 44rem; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.site-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.site-header a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--fg); text-decoration: none; padding-left: 0 !important; }
.main { padding-top: 24px; padding-bottom: 48px; }
.site-footer { padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; padding-right: 16px; }

.lead { font-size: 1.2rem; color: var(--muted); }
.note { color: var(--muted); font-size: 0.9rem; }
.price { padding: 12px 16px; border-left: 4px solid var(--accent); background: var(--card); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin: 0 0 20px; }
.card > :last-child { margin-bottom: 0; }
.card h2 { margin-top: 0; }
.notice { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }

label { display: block; font-weight: 600; margin: 0 0 6px; }
input[type="text"], input[type="email"], textarea {
  display: block; width: 100%; max-width: 100%; min-height: 44px; padding: 10px 12px; margin: 0 0 14px;
  font: inherit; font-size: 16px; color: var(--fg); background: var(--bg);
  border: 1px solid var(--muted); border-radius: 8px;
}
textarea { resize: vertical; }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 18px;
  font: inherit; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer;
  color: var(--accent-fg); background: var(--accent); border: 2px solid var(--accent); border-radius: 8px;
}
.button.secondary { color: var(--accent); background: transparent; }
.button.secondary[aria-pressed="true"] { color: var(--accent-fg); background: var(--accent); }
.button.danger { color: var(--accent-fg); background: var(--danger); border-color: var(--danger); }
.button:disabled { opacity: 0.55; cursor: not-allowed; }
.button:hover:not(:disabled) { filter: brightness(1.08); }

.choices, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 16px; }
.status { min-height: 1.6em; margin-top: 12px; }
.status:empty { min-height: 0; margin: 0; }

.offscreen { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 480px) {
  h1 { font-size: 1.7rem; }
  .choices .button, .card > .button, form .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
