/* ============================================================
   Act 2 For Men — design tokens & base
   Warm editorial: charcoal, cream, oxblood accent
   ============================================================ */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.06), 0 2px 4px oklch(0 0 0 / 0.04);
  --shadow: 0 4px 12px oklch(0 0 0 / 0.08), 0 12px 32px oklch(0 0 0 / 0.06);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.14), 0 24px 60px oklch(0 0 0 / 0.10);
}

/* ---------- LIGHT (default) ---------- */
:root,
[data-theme="light"] {
  --color-bg: oklch(0.97 0.014 82);           /* warm cream */
  --color-surface: oklch(0.99 0.010 82);
  --color-surface-elevated: oklch(1 0 0);
  --color-border: oklch(0.88 0.016 78);
  --color-border-strong: oklch(0.68 0.03 70);

  --color-text: oklch(0.20 0.02 50);          /* warm charcoal-brown */
  --color-text-muted: oklch(0.42 0.025 60);
  --color-text-subtle: oklch(0.56 0.02 60);

  --color-accent: oklch(0.48 0.10 75);        /* accessible warm gold/amber */
  --color-accent-hover: oklch(0.40 0.09 70);
  --color-accent-soft: oklch(0.93 0.05 82);
  --color-accent-fg: oklch(0.99 0.010 82);

  --color-ink: oklch(0.14 0.015 50);          /* near-black warm ink */
}

/* ---------- DARK (matches the logo) ---------- */
[data-theme="dark"] {
  --color-bg: oklch(0.14 0.010 50);           /* deep warm black */
  --color-surface: oklch(0.18 0.012 50);
  --color-surface-elevated: oklch(0.22 0.014 55);
  --color-border: oklch(0.30 0.020 60);
  --color-border-strong: oklch(0.48 0.025 70);

  --color-text: oklch(0.94 0.020 82);
  --color-text-muted: oklch(0.74 0.025 75);
  --color-text-subtle: oklch(0.58 0.020 68);

  --color-accent: oklch(0.78 0.14 80);        /* luminous gold */
  --color-accent-hover: oklch(0.86 0.13 82);
  --color-accent-soft: oklch(0.28 0.06 75);
  --color-accent-fg: oklch(0.14 0.010 50);

  --color-ink: oklch(0.98 0.014 82);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img, svg, video { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-10));
}
.container-narrow {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: clamp(var(--space-5), 4vw, var(--space-10));
}
section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--color-border);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-block: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-ink);
}
.brand svg { width: 32px; height: 32px; color: var(--color-accent); }
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #000;
  box-shadow: 0 2px 8px oklch(0 0 0 / 0.25);
  flex-shrink: 0;
}
.brand__wordmark { line-height: 1; }
.brand__wordmark small {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-top: 3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--color-ink); }
.nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--color-accent);
}

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-text-muted);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.theme-toggle:hover { color: var(--color-ink); border-color: var(--color-border-strong); }
.theme-toggle svg { width: 16px; height: 16px; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  color: var(--color-ink);
}

@media (max-width: 820px) {
  .nav {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    background: var(--color-bg);
    padding: var(--space-8) var(--space-6);
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-8px);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .nav.is-open { transform: translateY(0); visibility: visible; pointer-events: auto; }
  .nav a { font-size: var(--text-lg); color: var(--color-ink); }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--color-accent);
  color: var(--color-accent-fg);
}
.btn--primary:hover { background: var(--color-accent-hover); }
.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border-strong);
}
.btn--ghost:hover { border-color: var(--color-ink); }
.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }
.btn__arrow { transition: transform 0.25s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Eyebrows & type utilities ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--color-accent);
}
.lede {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 60ch;
}
.rule {
  height: 1px;
  background: var(--color-border);
  border: 0;
  margin-block: 0;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-16) var(--space-8);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-4);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer a:hover { color: var(--color-ink); }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-subtle);
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link { position: absolute; top: -100px; left: var(--space-4); z-index: 100; padding: var(--space-3); background: var(--color-bg); }
.skip-link:focus { top: var(--space-3); }
.contact-address { color: var(--color-accent); text-decoration: underline; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .site-header__inner { gap: var(--space-2); }
  .brand { gap: var(--space-2); }
  .brand__wordmark { font-size: var(--text-sm); }
  .brand__wordmark small { letter-spacing: 0.10em; }
  .header-actions .btn { display: none; }
  .nav-toggle { margin-left: auto; min-height: 44px; }
  .theme-toggle { width: 44px; height: 44px; }
  .btn { white-space: normal; text-align: center; max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
