:root {
  --bg: #070709;
  --bg-grain: #0c0c12;
  --ink: #e8e8ec;
  --ink-soft: #b4b4c2;
  --ink-muted: #6a6a7e;
  --rule: #18181e;
  --accent: #c4c4d6;
  --accent-soft: #8f8fa6;
  --max-width: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.005em;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.6;
  z-index: 1;
  background-image:
    radial-gradient(circle at 20% 30%, var(--bg-grain) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, var(--bg-grain) 0%, transparent 50%);
  mix-blend-mode: screen;
}

.page {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 80px 40px 60px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 600px) {
  .page { padding: 56px 28px 40px; }
  body { font-size: 16px; }
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 140px;
  opacity: 0;
  animation: fade-in 0.8s ease-out 0.1s forwards;
}

@media (max-width: 600px) {
  header { margin-bottom: 100px; }
}

.wordmark {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--ink-soft);
  text-decoration: none;
}

.hero {
  margin-bottom: 120px;
  opacity: 0;
  animation: fade-in 1s ease-out 0.3s forwards;
}

@media (max-width: 600px) {
  .hero { margin-bottom: 88px; }
}

.tagline {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: clamp(72px, 14vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 48px;
}

.tagline .period {
  color: var(--accent);
}

.about {
  margin-bottom: 120px;
  max-width: 540px;
  opacity: 0;
  animation: fade-in 1s ease-out 0.5s forwards;
}

@media (max-width: 600px) {
  .about { margin-bottom: 88px; }
}

.section-label {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.about p {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.about p + p {
  margin-top: 18px;
  color: var(--ink-soft);
}

.contact {
  margin-top: auto;
  padding-top: 60px;
  border-top: 1px solid var(--rule);
  opacity: 0;
  animation: fade-in 1s ease-out 0.7s forwards;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  align-items: baseline;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-item .label {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
}

.contact-item .value {
  font-size: 17px;
  color: var(--ink);
}

.contact-item a {
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
  width: fit-content;
}

.contact-item a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.contact-item a:hover {
  color: var(--accent);
}

.contact-item a:hover::after {
  transform: scaleX(1);
}

footer {
  margin-top: 60px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

@media (max-width: 480px) {
  footer { flex-direction: column; gap: 8px; }
}

/* Prose — used by privacy.html */

.prose {
  margin-bottom: 80px;
  max-width: 620px;
  opacity: 0;
  animation: fade-in 1s ease-out 0.4s forwards;
}

.prose h1 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 16px;
}

.prose h2 {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 40px 0 12px;
}

.prose p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.prose p.meta {
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 40px;
}

.prose a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.prose a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.back {
  margin-top: auto;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0.04em;
}

.back a {
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.back a:hover {
  color: var(--accent);
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  header, .hero, .about, .contact, .prose { opacity: 1; }
}

::selection {
  background: var(--accent);
  color: var(--bg);
}
