@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Variable.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

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

html { color-scheme: light dark; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--nu-bg-canvas);
  color: var(--nu-fg-primary);
  font-family: var(--nu-font-family-sans);
  font-size: var(--nu-font-size-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.header, .footer {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding: var(--nu-space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo { display: block; height: 2.5rem; width: auto; }
.logo--dark { display: none; }
html[data-theme="dark"] .logo--light { display: none; }
html[data-theme="dark"] .logo--dark { display: block; }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--nu-border-strong);
  border-radius: var(--nu-radius-md);
  background: transparent;
  color: var(--nu-fg-primary);
  cursor: pointer;
  transition: background-color var(--nu-motion-duration-fast) var(--nu-motion-easing-standard);
}
.theme-toggle:hover { background: var(--nu-bg-subtle); }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

:focus-visible {
  outline: 2px solid var(--nu-focus-ring);
  outline-offset: 2px;
}

.main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: var(--nu-space-12) var(--nu-space-6);
}

.hero { max-width: 40rem; }

h1 {
  margin: 0;
  font-family: var(--nu-font-family-display);
  font-size: clamp(2.25rem, 7vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.status {
  margin: var(--nu-space-3) 0 0;
  font-size: var(--nu-font-size-lg);
  font-weight: var(--nu-font-weight-medium);
  color: var(--nu-accent-text);
}

.footer {
  font-size: var(--nu-font-size-sm);
  color: var(--nu-fg-secondary);
}

@media (prefers-reduced-motion: no-preference) {
  .hero { animation: enter var(--nu-motion-duration-slow) var(--nu-motion-easing-standard) both; }
  @keyframes enter { from { opacity: 0; transform: translateY(0.5rem); } }
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .logo--light { display: none; }
  html[data-theme="system"] .logo--dark { display: block; }
  html[data-theme="system"] .theme-toggle .icon-sun { display: block; }
  html[data-theme="system"] .theme-toggle .icon-moon { display: none; }
}
