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

:root {
  --gold: #c49a6c;
  --gold-bright: #d4b896;
  --gold-dim: rgba(196, 154, 108, 0.35);
  --bg: #0a0e14;
  --border: rgba(196, 154, 108, 0.25);
  --text: #d4d4d4;
  --text-dim: #888;
  --text-label: #555;
  --font: "SF Mono", "Fira Code", "Consolas", monospace;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  -webkit-font-smoothing: antialiased;
  background-image:
    repeating-linear-gradient(0deg, rgba(196, 154, 108, 0.025) 0 1px, transparent 1px 24px),
    repeating-linear-gradient(90deg, rgba(196, 154, 108, 0.025) 0 1px, transparent 1px 24px);
}

/* Layout */
.page {
  max-width: 600px;
  width: 100%;
  text-align: center;
}

/* Typography */
h1 {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

/* Links */
a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-bright);
}

.nav-link {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.back-link {
  position: fixed;
  top: 2rem;
  left: 2rem;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-label);
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--gold);
}

/* Landing page link lists */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.link-list a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Section label */
.section-label {
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-label);
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: 0s !important;
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
  }
}

/* Mobile */
@media (max-width: 500px) {
  body { padding: 1.5rem; }
  h1 { font-size: 0.95rem; }
  .back-link { position: static; margin-bottom: 2rem; display: block; text-align: left; }
}
