:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #4a4a4a;
  --accent: #0b5cad;
  --accent-dark: #084684;
  --code-bg: #f4f5f7;
  --border: #d9dce1;
  --max: 46rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121417;
    --fg: #ececec;
    --muted: #b8bcc4;
    --accent: #7db7ff;
    --accent-dark: #a9cfff;
    --code-bg: #1d2127;
    --border: #343a42;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  background: var(--fg);
  color: var(--bg);
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0.5rem; }

a { color: var(--accent); text-underline-offset: 0.15em; }
a:hover { color: var(--accent-dark); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.site-header { border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
.brand { margin: 0; font-weight: 700; }

h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.2; margin: 2rem 0 1rem; }
h2 { font-size: 1.35rem; margin: 2.5rem 0 0.75rem; }

.lead { font-size: 1.15rem; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: center; margin: 1.5rem 0; }

.button {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
}
.button:hover { background: var(--accent-dark); color: #ffffff; }
@media (prefers-color-scheme: dark) {
  .button, .button:hover { color: #0b1420; }
}

ul { padding-left: 1.25rem; }
li { margin: 0.35rem 0; }

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.45;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
p code, li code { background: var(--code-bg); padding: 0.05rem 0.3rem; border-radius: 4px; font-size: 0.92em; }

.price { border-top: 1px solid var(--border); }
.amount { font-size: 2rem; font-weight: 700; margin: 0.25rem 0; }
.amount span { font-size: 1rem; font-weight: 400; color: var(--muted); }

details { border: 1px solid var(--border); border-radius: 6px; padding: 0.6rem 0.9rem; margin: 0.6rem 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.6rem 0 0.2rem; }

ol { padding-left: 1.4rem; }

.site-footer { border-top: 1px solid var(--border); margin-top: 3rem; padding: 1.25rem 0; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 420px) {
  body { font-size: 1rem; }
  pre { font-size: 0.8rem; }
  .button { width: 100%; text-align: center; }
}
