/* ───────────────────────────────────────────────────────────────
   Cherry Lighting — shared CSS
   Loaded by index.html, about.html, portfolio.html,
   case-mercedes-westman.html (and any future pages).
   Everything in here used to be duplicated inline across pages.
   Page-specific styles still live inside each page's <style>.
   ─────────────────────────────────────────────────────────────── */

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

/* ── Design tokens ── */
:root {
  --black:      #080808;
  --dark:       #0e0e0e;
  --mid:        #1a1a1a;
  --border:     #2a2a2a;
  --text-dim:   #555;
  --text-mid:   #888;
  --text-light: #d8d4cc;
  --white:      #f0ece4;
  --gold:       #c8a96e;
  --gold-dim:   #c8a96e33;
}

/* ── Base ── */
html { scroll-behavior: smooth; }

/* ── Focus rings for keyboard users (visible only when tabbing) ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ── Custom cursor (desktop only) ── */
.cursor, .cursor-ring { display: none; }
@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    width: 8px; height: 8px;
    background: var(--gold);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
  }
  .cursor-ring {
    display: block;
    position: fixed;
    width: 32px; height: 32px;
    border: 1px solid var(--gold-dim);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: all 0.18s ease;
  }
}

/* ── Hamburger button (mobile nav trigger) ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  z-index: 201;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile menu overlay ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 8, 0.98);
  z-index: 199;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 11vw, 64px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-mid);
  text-decoration: none;
  letter-spacing: 2px;
  transition: color 0.3s;
  padding: 6px 24px;
}
.mobile-menu a:active { color: var(--gold); }
.mobile-menu-divider {
  width: 40px; height: 1px;
  background: var(--border);
  margin: 16px 0;
}
.mobile-menu-sub {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── Polish: native text caret in inputs (site uses cursor:none) ── */
input, textarea, [contenteditable] { cursor: text; }

/* ── Polish: respect prefers-reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
