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

:root {
  --bg: #f8f7f4;
  --fg: #1a1a18;
  --fg-muted: #6b6b66;
  --fg-faint: #b0afa8;
  --line: rgba(26,26,24,0.12);
  --mono: 'DM Mono', monospace;
  --serif: 'DM Serif Display', serif;
}

html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  font-weight: 300;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Nav ── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  border-bottom: 1px solid var(--line);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--fg); }

/* ── Main ── */
main {
  flex: 1;
  padding: 0 3rem;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

/* ── Page header ── */
.page-header {
  padding: 5rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4rem;
}

.page-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.page-label::after {
  content: '';
  display: block;
  width: 2.5rem;
  height: 1px;
  background: var(--fg-faint);
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg);
}

h1 em {
  font-style: italic;
  color: var(--fg-muted);
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.2s;
}

.btn-primary:hover { opacity: 0.75; }

.btn-ghost {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-ghost:hover { color: var(--fg); border-color: var(--fg); }

/* ── Footer ── */
.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0 3rem;
}

footer {
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5d9e6e;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--fg-faint);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--fg); }

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease forwards;
}

.fade-in:nth-child(1) { animation-delay: 0.05s; }
.fade-in:nth-child(2) { animation-delay: 0.15s; }
.fade-in:nth-child(3) { animation-delay: 0.25s; }
.fade-in:nth-child(4) { animation-delay: 0.35s; }
.fade-in:nth-child(5) { animation-delay: 0.45s; }
.fade-in:nth-child(6) { animation-delay: 0.55s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  nav, footer { padding: 1.5rem; }
  .divider { margin: 0 1.5rem; }
  main { padding: 0 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .page-header { padding: 3rem 0 2.5rem; }
}
