: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;
}

p {
  color: var(--muted-color);
}

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

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

.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);
}
