/* massimilianomusina.com — shared base styles (tokens, reset, header, footer, mobile menu) */
  :root {
    --onyx: #050403;
    --ink: #0E0C0A;
    --graphite: #1F1B17;
    --fog: #6B6259;
    --stone: #8A8078;
    --bone: #E8E2D5;
    --cream: #F4EFE6;
    --warmth: #B89968;
    --oxblood: #7A2E2A;

    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  ::selection { background: rgba(184, 153, 104, 0.3); color: var(--cream); }

  body {
    font-family: var(--font-body);
    color: var(--bone);
    background: var(--onyx);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  /* === SKIP LINK === */
  .skip-link {
    position: absolute; top: -100px; left: 16px;
    background: var(--warmth); color: var(--onyx);
    padding: 8px 16px; z-index: 200;
    font-family: var(--font-mono); font-size: 12px;
    text-decoration: none;
  }
  .skip-link:focus { top: 8px; }

  /* === HEADER === */
  header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 50;
    background: rgba(5, 4, 3, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(232, 226, 213, 0.04);
    transition: background 0.4s var(--ease-out-quart),
                border-color 0.4s var(--ease-out-quart);
  }
  .nav {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px 40px;
  }
  .wordmark-nav {
    font-family: var(--font-display); font-weight: 400; font-size: 22px;
    letter-spacing: 0.015em; color: var(--cream); text-decoration: none;
    transition: opacity 0.3s var(--ease-out-quart);
  }
  .wordmark-nav:hover { opacity: 0.8; }
  .wordmark-nav em { font-weight: 300; font-style: italic; }
  .nav-links { list-style: none; display: flex; gap: 40px; }
  .nav-links a {
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: rgba(232, 226, 213, 0.7); text-decoration: none;
    transition: color 0.3s var(--ease-out-quart);
    padding: 4px 0;
  }
  .nav-links a:hover { color: var(--cream); }
  .nav-links a.active { color: var(--warmth); }
  .nav-links a[aria-current="page"] { color: var(--warmth); }
  .nav-links a:focus-visible { outline: 2px solid var(--warmth); outline-offset: 4px; }

  .hamburger {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  }
  .hamburger span {
    display: block; width: 20px; height: 1px; background: var(--cream);
  }

  /* === FOOTER === */
  footer {
    padding: 64px 40px 48px;
    border-top: 1px solid rgba(232, 226, 213, 0.04);
  }
  .footer-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 24px;
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--fog);
  }
  .footer-links a {
    color: var(--fog); text-decoration: none; margin-left: 24px;
    transition: color 0.3s var(--ease-out-quart);
  }
  .footer-links a:first-child { margin-left: 0; }
  .footer-links a:hover { color: var(--cream); }
  .footer-links a:focus-visible { outline: 2px solid var(--warmth); outline-offset: 4px; }

  /* === HAMBURGER (base) === */
  .hamburger {
    display: none; background: none; border: none; cursor: pointer;
    width: 44px; height: 44px;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  }
  .hamburger span {
    display: block; width: 20px; height: 1px; background: var(--cream);
  }

  /* === RESPONSIVE (shared) === */
  @media (max-width: 768px) {
    .nav { padding: 18px 24px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .wordmark-nav { font-size: 17px; white-space: nowrap; }
    footer { padding: 48px 24px 36px; }
    .footer-inner { flex-direction: column; text-align: center; }
  }
  @media (max-width: 380px) {
    .wordmark-nav { font-size: 15px; }
  }

  /* === MOBILE MENU (base) === */
  body.nav-open { overflow: hidden; }
  /* a filtered ancestor becomes the containing block for position:fixed,
     which clips the overlay to the header box; drop the blur while open */
  body.nav-open header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hamburger { position: relative; z-index: 210; }
  .hamburger span { transition: transform 0.3s var(--ease-out-quart), opacity 0.2s; }
  body.nav-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .hamburger span:nth-child(2) { opacity: 0; }
  body.nav-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  @media (max-width: 768px) {
    body.nav-open .nav-links {
      display: flex; position: fixed; inset: 0; z-index: 200;
      flex-direction: column; justify-content: center; align-items: center;
      gap: 28px; background: rgba(5, 4, 3, 0.97);
      -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    }
    body.nav-open .nav-links a {
      font-family: var(--font-display); font-size: 26px; font-weight: 300;
      letter-spacing: 0.04em; text-transform: none; color: var(--bone);
    }
    body.nav-open .nav-links a.active,
    body.nav-open .nav-links a[aria-current="page"] { color: var(--warmth); }
  }

  /* === WHERE TO WATCH (film pages) === */
  .watch-label {
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--warmth); margin: 28px 0 12px;
  }
  .watch-links { display: flex; gap: 10px; flex-wrap: wrap; }
  .watch-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(184, 153, 104, 0.4);
    color: var(--cream);
    font-family: var(--font-mono); font-size: 10px;
    letter-spacing: 0.14em; text-transform: uppercase;
    text-decoration: none;
    transition: border-color 0.3s var(--ease-out-quart),
                background 0.3s var(--ease-out-quart);
  }
  .watch-btn:hover { border-color: var(--warmth); background: rgba(184, 153, 104, 0.08); }
  .watch-btn:focus-visible { outline: 2px solid var(--warmth); outline-offset: 4px; }
  .watch-btn .wi { width: 15px; height: 15px; fill: currentColor; flex: none; }
