/* Same palette as the popup: night blue with edelweiß gold; light follows the system. */
:root {
  color-scheme: dark;
  --bg: #0d1f33;
  --surface: #12293f;
  --border: #2b4b6b;
  --text: #f0f6f8;
  --muted: #9db2c6;
  --accent: #f0c050;
  --accent-ink: #13263b;
  --accent-text: #f0c050;
  --nav: rgb(13 31 51 / 72%);
  --shadow: rgb(2 10 20 / 45%);
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f3f6f9;
    --surface: #ffffff;
    --border: #bfcdda;
    --text: #0d1f33;
    --muted: #4b6177;
    --accent-text: #845900;
    --nav: rgb(243 246 249 / 72%);
    --shadow: rgb(13 31 51 / 16%);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 100%/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-underline-offset: 0.15em; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
main, .nav-inner, footer { width: min(68rem, 100% - 2rem); margin-inline: auto; }

/* Translucent bar; content scrolls under it. */
.nav { position: sticky; top: 0; z-index: 1; background: var(--nav); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 1.25rem; height: 3.5rem; }
.brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 650; color: var(--text); text-decoration: none; margin-right: auto; }
.nav a:not(.brand) { color: var(--muted); text-decoration: none; font-size: 0.9375rem; }
.nav a:not(.brand):hover { color: var(--text); }
@media (max-width: 40rem) { .nav .optional { display: none; } }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.5rem, 7vw, 4.25rem); letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }

section { padding-block: clamp(3rem, 8vw, 6rem); }
.hero { text-align: center; padding-top: clamp(3rem, 10vw, 7rem); }
.hero .lead { font-size: clamp(1.125rem, 2.4vw, 1.375rem); color: var(--muted); max-width: 36rem; margin: 0 auto 2rem; line-height: 1.45; }
.hero-icon { width: 6rem; margin: 0 auto 1.5rem; filter: drop-shadow(0 12px 24px var(--shadow)); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.button {
  display: inline-block; padding: 0.75rem 1.5rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  border: 1px solid var(--border); color: var(--text);
  transition: transform 100ms ease-out, background-color 150ms ease;
}
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.button:hover { background-color: color-mix(in srgb, var(--surface) 70%, transparent); }
.button.primary:hover { background-color: #f6d27c; }
.button:active { transform: scale(0.97); }
.note { font-size: 0.875rem; color: var(--muted); margin-top: 1rem; }

.shot { border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 24px 60px var(--shadow); }
.hero .shot { margin-top: clamp(2.5rem, 6vw, 4rem); }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1rem; margin-top: 2rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem 1.375rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.9688rem; }

ol.steps { padding-left: 1.25rem; }
ol.steps li { margin-bottom: 0.75rem; }
code { font: 0.875em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.35em; }
.prose { max-width: 42rem; }

/* Legal pages */
.legal { padding-block: 3rem 5rem; }
.legal h2 { font-size: 1.375rem; margin-top: 2.25rem; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.375rem 1.5rem; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
@media (max-width: 30rem) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 0.5rem; } }

footer { border-top: 1px solid var(--border); padding-block: 2rem 3rem; font-size: 0.875rem; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-bottom: 1rem; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } .button:active { transform: none; } }
@media (prefers-reduced-transparency: reduce) { .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; } }
