:root {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color-scheme: dark;
  --bg-gradient: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
  --text-color: #e6edf3;
  --muted-color: #8b949e;
  --secondary-border: #30363d;
  --secondary-hover-border: #3e434a;
  --secondary-hover-bg: #161b22;
}

[data-theme="light"] {
  color-scheme: light;
  --bg-gradient: linear-gradient(180deg, #faf7f2 0%, #e7dccd 100%);
  --text-color: #2c2a1f;
  --muted-color: #6b655d;
  --secondary-border: #d2c7b9;
  --secondary-hover-border: #bcb3a5;
  --secondary-hover-bg: #f0ece4;
}

body {
  margin: 0;
  background: var(--bg-gradient);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  box-sizing: border-box;
}

p {
  margin: 0.5rem auto 1.25rem;
  line-height: 1.6;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  margin: 0.25rem 0;
}

.cta {
  display: inline-block;
  padding: 0.9rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.cta:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.primary {
  background: #10a37f;
  color: #fff;
}

.primary:hover {
  background: #14b58c;
}

.hero {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 1rem;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .hero,
  .manifesto {
    padding: 2rem 1rem;
  }
}

.secondary {
  border: 1px solid var(--secondary-border);
  color: var(--text-color);
  margin-left: 0.5rem;
}

.secondary:hover {
  border-color: var(--secondary-hover-border);
  background: var(--secondary-hover-bg);
}

footer {
  padding: 2rem 1rem;
  font-size: 0.9rem;
  text-align: center;
  color: var(--muted-color);
}

.theme-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
}

.theme-switch input {
  display: none;
}

.theme-switch .switch {
  position: relative;
  display: block;
  width: 50px;
  height: 24px;
  border-radius: 12px;
  background: var(--secondary-border);
  cursor: pointer;
}

.theme-switch .switch .thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.theme-switch .switch .sun,
.theme-switch .switch .moon {
  position: absolute;
  top: 4px;
  width: 16px;
  height: 16px;
  font-size: 16px;
  line-height: 16px;
  color: var(--muted-color);
  pointer-events: none;
}

.theme-switch .switch .sun {
  left: 30px;
}

.theme-switch .switch .moon {
  left: 4px;
}

.theme-switch input:checked + .switch .thumb {
  transform: translateX(26px);
}


  .auth-button {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  border: 1px solid currentColor;
  border-radius: 6px;

  color: var(--text-color);
  background: transparent;
  text-decoration: none;
  transition: color .15s ease, opacity .15s ease;
}

.auth-button:hover { opacity: .92; }
.auth-button:active { opacity: .85; }

.auth-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.auth-button.is-auth {
  color: var(--accent-color, #10a37f);
}


/* Utilities: extracted from inline styles */
.u-text-center {
  text-align: center;
}

.u-text-muted {
  color: var(--muted-color);
}

/* ========== Page: privacy.html ========== */
.manifesto {
  max-width: 80ch;
  margin: 0 auto;
  padding: 4rem 1rem;
  box-sizing: border-box;
}

.manifesto h1 {
  margin: 0.25rem 0 1.5rem;
  text-align: center;
}

.manifesto p {
  line-height: 1.6;
  margin: 1rem 0;
}
