:root {
  color-scheme: light dark;

  --bg: #f5f6f4;
  --bg-deep: #e9ebe6;
  --fg: #0e1410;
  --fg-soft: #4a5450;
  --muted: #8a948f;
  --card: rgba(255, 255, 255, 0.55);
  --card-border: rgba(15, 30, 20, 0.08);
  --card-hover: rgba(255, 255, 255, 0.85);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 40px -12px rgba(0, 60, 30, 0.18);

  --aurora-1: #2c66a8;
  --aurora-2: #2c8a4f;
  --aurora-3: #d9c441;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07090a;
    --bg-deep: #0d1110;
    --fg: #f0f4f1;
    --fg-soft: #b8c0bb;
    --muted: #5a635e;
    --card: rgba(20, 28, 24, 0.55);
    --card-border: rgba(180, 220, 190, 0.08);
    --card-hover: rgba(30, 42, 36, 0.75);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 60px -20px rgba(0, 0, 0, 0.6);

    --aurora-1: #1d4e85;
    --aurora-2: #2c8a4f;
    --aurora-3: #b8a02e;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 50% -10%, var(--bg-deep), transparent 70%);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss02';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

@supports (font-variation-settings: normal) {
  body { font-family: 'Inter var', sans-serif; }
}

/* ---- Aurora background ---- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  filter: blur(110px) saturate(0.9);
  opacity: 0.28;
}

@media (prefers-color-scheme: dark) {
  .aurora { opacity: 0.18; }
}

.blob {
  position: absolute;
  width: 50vmax;
  height: 50vmax;
  border-radius: 50%;
  will-change: transform;
}

.blob-a {
  background: var(--aurora-1);
  top: -20vmax;
  left: -10vmax;
  animation: drift-a 22s ease-in-out infinite alternate;
}
.blob-b {
  background: var(--aurora-2);
  top: 10vmax;
  right: -15vmax;
  animation: drift-b 26s ease-in-out infinite alternate;
}
.blob-c {
  background: var(--aurora-3);
  bottom: -25vmax;
  left: 20vmax;
  animation: drift-c 30s ease-in-out infinite alternate;
}

@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(8vmax, 6vmax) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-10vmax, 8vmax) scale(0.9); }
}
@keyframes drift-c {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-6vmax, -10vmax) scale(1.1); }
}

/* ---- Layout ---- */
main {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 4rem 1.5rem;
  text-align: center;
}

/* ---- Logo ---- */
.logo {
  display: block;
  width: clamp(180px, 29vw, 288px);
  aspect-ratio: 1;
  text-decoration: none;
}

.logo img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Nav ---- */
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 200;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

nav a {
  color: var(--fg);
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.08em;
  text-decoration-skip-ink: auto;
  text-decoration-skip: ink;
  text-decoration-color: var(--fg-soft);
  transition: color 200ms ease, text-decoration-color 200ms ease;
}

nav a:hover,
nav a:focus-visible {
  color: var(--accent, #2c8a4f);
  text-decoration-color: currentColor;
  outline: none;
}

nav .sep {
  color: #c97a3a; /* warm amber for light mode */
  font-size: 1.15em;
  line-height: 0;
  position: relative;
  top: -0.08em;
  user-select: none;
}

@media (prefers-color-scheme: dark) {
  nav .sep { color: #5fb8d4; } /* cool sky blue for dark mode */
}

@media (prefers-color-scheme: dark) {
  nav a:hover,
  nav a:focus-visible { color: #7dd87a; }
}

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