/* ── BASE ── vars, reset, typography, layout, animations */

:root {
  --ink:          #0f0e0c;
  --paper:        #f5f2eb;
  --paper-dark:   #ede9df;
  --accent:       #c8401a;
  --accent-muted: #e8cfc4;
  --rule:         #c9c3b4;
  --mono:         'DM Mono', monospace;
  --serif:        'Playfair Display', Georgia, serif;
  --sans:         'DM Sans', sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4vw;
}

/* ── Section header (shared across all sections) ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 2.5rem 4vw 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.section-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
}

.section-num {
  font-family: var(--serif);
  font-size: 0.75rem;
  color: var(--rule);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-1 { opacity: 0; animation: fadeUp 0.8s 0.0s ease forwards; }
.anim-2 { opacity: 0; animation: fadeUp 0.8s 0.2s ease forwards; }
.anim-3 { opacity: 0; animation: fadeUp 0.8s 0.4s ease forwards; }
.anim-4 { opacity: 0; animation: fadeUp 0.8s 0.5s ease forwards; }
.anim-5 { opacity: 0; animation: fadeUp 0.8s 0.6s ease forwards; }

/* ── Footer ── */
footer {
  border-top: 3px double var(--ink);
  padding: 1rem 4vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  footer {
    flex-direction: column;
    gap: 0.4rem;
    text-align: center;
  }
}
