:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #030814;
  --panel: rgba(12, 27, 47, 0.82);
  --panel-solid: #0c1b2f;
  --panel-soft: #10233d;
  --panel-strong: #132942;
  --text: #e8f4ff;
  --muted: #9bb4ce;
  --accent: #6ee7d8;
  --accent-strong: #38bdf8;
  --action-fill: #6ee7d8;
  --action-fill-hover: #0e7490;
  --border: rgba(110, 231, 216, 0.24);
  --border-soft: rgba(110, 231, 216, 0.14);
  --shadow: rgba(0, 0, 0, 0.35);
  --danger: #fca5a5;
  --warning: #facc15;
  --page-inline: clamp(0.85rem, 3vw, 2rem);}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: calc(8rem + env(safe-area-inset-bottom));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 12%, rgba(56, 189, 248, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(110, 231, 216, 0.13), transparent 26rem),
    linear-gradient(180deg, #071826 0%, var(--bg-deep) 42%, #040a13 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(circle at 50% 0%, black, transparent 72%);
}

a { color: var(--accent); }

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 7vw, 5.35rem);
  letter-spacing: -0.08em;
}

h2 { font-size: 1.25rem; }

h3 { font-size: 1rem; }

footer {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

footer {
  margin: 2rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 42rem) {body {
    padding-bottom: calc(12rem + env(safe-area-inset-bottom));
  }

h1 {
    max-width: none;
    font-size: clamp(2.15rem, 13vw, 3.5rem);
  }

}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f9fc;
  --bg-deep: #e7f0f8;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-solid: #ffffff;
  --panel-soft: #eef6fb;
  --panel-strong: #dcecf6;
  --text: #122033;
  --muted: #52677d;
  --accent: #0f766e;
  --accent-strong: #0284c7;
  --action-fill: #6ee7d8;
  --action-fill-hover: #0e7490;
  --border: rgba(14, 116, 144, 0.24);
  --border-soft: rgba(14, 116, 144, 0.14);
  --shadow: rgba(15, 23, 42, 0.16);
  --danger: #b91c1c;
  --warning: #a16207;
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 16% 12%, rgba(2, 132, 199, 0.14), transparent 28rem),
    radial-gradient(circle at 82% 0%, rgba(15, 118, 110, 0.12), transparent 26rem),
    linear-gradient(180deg, #f8fcff 0%, var(--bg-deep) 45%, #eef6fb 100%);
}

html[data-theme="light"] body::before {
  background:
    linear-gradient(rgba(15, 23, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

small {
  color: var(--help-text) !important;
}
