/* Base variables (light mode default) */
:root {
  --bg: #f4f4f4;
  --fg: #333;
}

/* Dark mode variables */
:root.dark {
  --bg: #111;
  --fg: #f5f5f5;
}

/* Respect OS preference if user hasn't manually chosen */
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --bg: #111;
    --fg: #f5f5f5;
  }
}

/* Smooth scroll for anchor nav */
html {
  scroll-behavior: smooth;
}

/* Layout */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

p {
  opacity: 0.9;
}

a {
  color: var(--fg);
  text-decoration: underline;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  z-index: 10;
  font-size: 0.95rem;
}

.nav a {
  color: var(--fg);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 1rem;
}

.nav-links {
  display: flex;
}

.brand {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.section {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.section-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 1.5rem;
}

.section.landing p {
  font-size: 1.2rem;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.service-list h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem 0;
}

.version {
  position: fixed;
  bottom: 10px;
  right: 10px;
  opacity: 0.7;
}

#theme-toggle {
  position: fixed;
  top: 0;
  right: 0;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--fg);
  z-index: 11;
  padding: 0.8rem;
  border-radius: 8px;
}

#theme-toggle:hover {
  opacity: 1;
}
