/* ===== BASE — shared across all pages ===== */

:root {
  --ink: #0d0d0d;
  --paper: #f2ede4;
  --accent: #c43200; /* darkened: 4.8:1 on --paper, was #e8410a (3.5:1) */
  --accent2: #1a3a5c;
  --muted: #5f5a54;  /* darkened: 5.2:1 on --paper, was #8a8075 (3.3:1) */
  --light: #e4dfd6;
  --white: #faf8f4;

  /* Fluid spacing scale — 320px → 1440px */
  --space-xs: clamp(0.5rem, 0.3rem + 1vw, 1rem);
  --space-s: clamp(0.75rem, 0.5rem + 1.2vw, 1.5rem);
  --space-m: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --space-l: clamp(1.5rem, 0.5rem + 4vw, 3.5rem);
  --space-xl: clamp(2rem, 0.5rem + 6vw, 5rem);
  --space-2xl: clamp(3rem, 1rem + 7vw, 8rem);

  --gutter: clamp(1.25rem, 0.5rem + 4vw, 3.5rem);
  --content-width: min(860px, 100%);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none !important;
}

html { scroll-behavior: smooth; }

button {
  border: none;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  font-family: inherit;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
}

@media (hover: none) {
  *, *::before, *::after { cursor: auto !important; }
  body { cursor: auto; }
  .cursor, .cursor-ring { display: none; }
}

/* ——— CURSOR ——— */
.cursor { display: none; }
.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.15s ease, height 0.15s ease;
  mix-blend-mode: difference;
}
.cursor-ring.over-link::after {
  content: '';
  position: absolute;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

/* ——— NAV ——— */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-s) var(--gutter);
  gap: var(--space-s);
}
.nav-logo {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: clamp(1.1rem, 0.9rem + 0.8vw, 1.5rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: clamp(1rem, 0.5rem + 2vw, 2.5rem);
  list-style: none;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a {
  font-size: clamp(0.58rem, 0.5rem + 0.3vw, 0.7rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  padding: 8px 4px; /* WCAG 2.5.8: min 24×24px touch target */
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-contact-icon { display: none; }
@media (max-width: 36em) {
  .nav-contact-text { display: none; }
  .nav-contact-icon { display: block; }
  .nav-contact a::after { display: none; }
}

/* ——— ANIMATIONS ——— */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ——— FOCUS (WCAG 2.4.7 / 2.4.11) ——— */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ——— SCROLLBAR ——— */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { background: var(--accent); }
