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

:root {
  --bg:          #EDE8E0;
  --bg-card:     #E4DDD3;
  --nav-bg:      #9E2020;
  --nav-text:    #F5F0E8;
  --nav-link:    #FFE8CC;
  --nav-hover:   #FFFFFF;
  --ink:         #1C1814;
  --body:        #2E2A24;
  --accent:      #8B1A1A;
  --link:        #4A2080;
  --link-hover:  #1E0A3C;
  --meta:        #5A5248;
  --rule:        #C4BAB0;
  --slab:        'Roboto Slab', Georgia, serif;
  --label:       'Raleway', system-ui, sans-serif;
  --max:         900px;
  --gutter:      clamp(24px, 5vw, 64px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--slab);
  font-size: 18px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--link-hover); }

/* ── NAV — dark, bold, dramatic ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 3px solid var(--accent);
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  min-height: 64px;
}

.nav-name {
  font-family: var(--slab);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--nav-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  padding: 0 0 3px;
}
.nav-name:hover { color: var(--nav-hover); text-decoration: none; }

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  align-items: stretch;
}
.nav-links li { display: flex; }
.nav-links a {
  font-family: var(--label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nav-link);
  text-decoration: underline;
  text-underline-offset: 3px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  transition: color 0.2s, background 0.2s;
  border-left: 1px solid rgba(255,255,255,0.08);
}
.nav-links a:hover {
  color: var(--nav-hover);
  background: rgba(255,255,255,0.06);
  text-decoration: underline;
}
.nav-links a.active {
  color: var(--nav-text);
  text-decoration: none;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

/* ── UNIVERSAL WIDTH ── */
.hero,
.headshot-band,
.statement,
.page-header,
.work-section,
.resume,
.cta-section,
.accent-rule,
section,
footer {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.accent-rule { padding-top: 0; padding-bottom: 0; }
.accent-rule-inner { height: 1px; background: var(--accent); }

/* ── LABELS ── */
.section-label,
.page-eyebrow,
.resume-section-label,
.work-section-label,
.project-tag,
.callout-label {
  font-family: var(--label);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 14px 28px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--link); color: var(--bg); text-decoration: none; }

.btn-secondary {
  font-family: var(--label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}
.btn-secondary:hover { color: var(--link-hover); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  padding-bottom: 40px;
  margin-top: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-name {
  font-family: var(--label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--meta);
  text-decoration: none;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-family: var(--label);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 680px) { .nav-links { display: none; } }
