:root {
  color-scheme: light;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #2c3e50;
  background: #f5f5f0;
  font-synthesis: none;
  line-height: 1.65;
  font-weight: 400;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  color: #e4e8f0;
  background: #0a1820;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(1rem, 4vw, 2.5rem);
  background:
    radial-gradient(ellipse at top right, #e8d5f580, transparent 55%),
    radial-gradient(ellipse at bottom left, #d5f5ff80, transparent 55%),
    linear-gradient(135deg, #f5e8f5, #fff8e8 55%, #e8f5f8);
}

[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at top right, #173a4780, transparent 55%),
    radial-gradient(ellipse at bottom left, #23244380, transparent 55%),
    linear-gradient(135deg, #0a1820, #101f2b 55%, #0b2028);
}

main {
  width: min(100%, 46rem);
  margin: clamp(1rem, 8vh, 5rem) auto;
  padding: clamp(1.4rem, 5vw, 3rem);
  border: 1px solid #ffffff80;
  border-radius: 1.25rem;
  background: #ffffff75;
  box-shadow: 0 16px 48px #1b30401c;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}

[data-theme="dark"] main {
  border-color: #5ab4c84d;
  background: #142d37b8;
  box-shadow: 0 16px 48px #0005;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(1.7rem, 5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

h2 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

.back {
  display: inline-block;
  margin-bottom: 1.6rem;
  color: #5a6f7d;
  font-size: 0.92rem;
}

[data-theme="dark"] .back {
  color: #83cddd;
}

footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid currentColor;
  opacity: 0.72;
  font-size: 0.78rem;
}

footer p {
  margin: 0 0 0.25rem;
}

[hidden] {
  display: none !important;
}
