:root {
  --bg: #000000;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.6);
  --border: rgba(255, 255, 255, 0.15);
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.home {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--text);
}

/* Splash (home page) */

.splash {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding: 24px;
}

.splash-icon {
  width: 80px;
  height: 80px;
}

.splash h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  letter-spacing: -0.02em;
  margin: 0;
}

.splash p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0;
}

.splash-footer {
  display: flex;
  justify-content: center;
  padding: 24px 0 32px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.wordmark {
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  color: var(--text);
}

.top-nav {
  display: flex;
  gap: 24px;
}

.top-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.top-nav a:hover {
  color: var(--text);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--text);
}

/* Legal pages */

.legal {
  padding: 64px 0 96px;
}

.legal h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 32px;
}

.legal h2 {
  font-size: 1.15rem;
  margin: 40px 0 12px;
}

.legal p {
  color: var(--text-muted);
  margin: 0 0 12px;
}

.legal ul {
  color: var(--text-muted);
  margin: 0 0 16px;
  padding-left: 20px;
}

.legal li {
  margin-bottom: 8px;
}

.legal strong {
  color: var(--text);
}

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

/* Responsive */

@media (max-width: 600px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}
