:root {
  color-scheme: dark light;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif;
  --panel-bg: rgba(12, 14, 18, 0.58);
  --panel-border: rgba(255, 255, 255, 0.14);
  --panel-blur: 14px;
  --heading: #f6f8fb;
  --text: #e8eef4;
  --text-muted: #b8c2cc;
  --accent: #8ec8ff;
  --shade: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    --panel-bg: rgba(252, 252, 253, 0.88);
    --panel-border: rgba(15, 20, 25, 0.1);
    --panel-blur: 12px;
    --heading: #0f1419;
    --text: #1c2430;
    --text-muted: #4a5560;
    --accent: #0b6bcb;
    --shade: linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.15) 0%,
      rgba(0, 0, 0, 0.25) 45%,
      rgba(0, 0, 0, 0.45) 100%
    );
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --panel-bg: rgba(12, 14, 18, 0.58);
  --panel-border: rgba(255, 255, 255, 0.14);
  --panel-blur: 14px;
  --heading: #f6f8fb;
  --text: #e8eef4;
  --text-muted: #b8c2cc;
  --accent: #8ec8ff;
  --shade: linear-gradient(
    105deg,
    rgba(0, 0, 0, 0.72) 0%,
    rgba(0, 0, 0, 0.35) 42%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

:root[data-theme="light"] {
  color-scheme: light;
  --panel-bg: rgba(252, 252, 253, 0.88);
  --panel-border: rgba(15, 20, 25, 0.1);
  --panel-blur: 12px;
  --heading: #0f1419;
  --text: #1c2430;
  --text-muted: #4a5560;
  --accent: #0b6bcb;
  --shade: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0.45) 100%
  );
}

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

html {
  font-family: var(--font);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background: #0a0a0a;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-bg__photo,
.page-bg__shade {
  position: absolute;
  inset: 0;
}

.page-bg__photo {
  background-image: url("/assets/bench-station.png");
  background-size: cover;
  background-position: 42% center;
  transform: scale(1.02);
}

.page-bg__shade {
  background: var(--shade);
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 4vw, 2rem);
}

.panel {
  width: min(26rem, 100%);
  margin-top: auto;
  margin-bottom: auto;
  margin-left: auto;
  margin-right: auto;
  padding: clamp(1.35rem, 4vw, 2rem);
  border-radius: 1rem;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  -webkit-backdrop-filter: blur(var(--panel-blur));
  backdrop-filter: blur(var(--panel-blur));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

@media (min-width: 720px) {
  .shell {
    align-items: flex-end;
    justify-content: center;
    padding-right: clamp(1.5rem, 7vw, 4rem);
  }

  .panel {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: auto;
    margin-right: 0;
  }

  .page-bg__photo {
    background-position: 38% center;
  }
}

.hero-heading {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 4.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--heading);
  text-wrap: balance;
}

.brand {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.note {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--panel-border);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.15rem;
}

.theme-toggle {
  font: inherit;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}

.theme-toggle:hover {
  color: var(--heading);
  border-color: var(--text-muted);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-footer {
  margin-top: auto;
  padding-top: 1rem;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(252, 252, 253, 0.92);
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.9);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
