/* =========================================================
   CANVAS12 · Shared stylesheet
   Used across index.html, artists.html, privacy.html,
   terms.html, cookies.html, 404.html
   ========================================================= */

:root {
  /* Brand palette */
  --black: #0a0a0a;
  --off-black: #111;
  --charcoal: #1c1c1c;
  --mid: #6b6b6b;
  --light: #c8c8c8;
  --silver: #e8e8e4;
  --cream: #f5f3ef;
  --white: #fafaf8;
  --gold: #b8965a;
  --gold-lt: #d4b07a;
  --gold-dk: #8c6e3f;

  /* Type */
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Easing */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --slow: cubic-bezier(0.16, 1, 0.3, 1);

  /* Spacing scale — ONE source of truth for vertical rhythm */
  --section-y: clamp(4rem, 9vw, 7rem);
  --section-y-sm: clamp(3rem, 6vw, 5rem);
  --container-x: clamp(1.2rem, 4vw, 2rem);
  --gap-xs: 0.5rem;
  --gap-sm: 1rem;
  --gap-md: 2rem;
  --gap-lg: 3rem;
  --gap-xl: 5rem;

  /* Sizes */
  --container-max: 1280px;
  --container-narrow: 880px;
}

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

/* CRITICAL mobile fix: overflow-x on BOTH html and body, plus max-width */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
}
body {
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ─── Layout primitives ──────────────────────────────────── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-x); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding: var(--section-y) 0; }
.section--sm { padding: var(--section-y-sm) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }

/* ─── Typography ─────────────────────────────────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
}
.eyebrow--centered { justify-content: center; }
.eyebrow--centered::before { display: none; }

h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 300; line-height: 1.15; color: var(--black); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.h-display { font-size: clamp(2.4rem, 5.5vw, 4.6rem); letter-spacing: -0.01em; }
.h-1 { font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -0.01em; margin-bottom: 0.6em; }
.h-2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.h-3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.h-display em, .h-1 em, .h-2 em { font-style: italic; color: var(--gold); }
.section--dark .h-display em { color: var(--gold-lt); }

p.lede { font-size: 0.95rem; color: var(--mid); max-width: 540px; line-height: 1.85; }
.section--dark p.lede { color: var(--light); }
p.lede--centered { margin-left: auto; margin-right: auto; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 1.05rem 2.4rem;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.btn--primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--primary:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn--gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-dk); border-color: var(--gold-dk); }
.btn--ghost { color: var(--charcoal); border-color: var(--charcoal); background: transparent; }
.btn--ghost:hover { background: var(--charcoal); color: var(--white); }
.section--dark .btn--ghost { color: var(--white); border-color: rgba(255,255,255,0.5); }
.section--dark .btn--ghost:hover { background: var(--white); color: var(--black); }
.btn--block { display: block; width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.3s, gap 0.3s var(--ease);
}
.link-arrow:hover { color: var(--gold); gap: 1rem; }
.link-arrow::after {
  content: '→';
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover::after { transform: translateX(4px); }

/* ─── Custom cursor (desktop only) ───────────────────────── */
.cursor, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; }
.cursor { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; mix-blend-mode: multiply; }
.cursor-ring { width: 36px; height: 36px; border: 1px solid rgba(184,150,90,0.45); border-radius: 50%; z-index: 9998; transition: width 0.3s var(--ease), height 0.3s var(--ease); }
@media (hover: none), (max-width: 900px) {
  .cursor, .cursor-ring { display: none; }
}

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: background 0.45s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s;
}
.nav.scrolled, .nav--solid {
  background: rgba(250, 250, 248, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.9rem 0;
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav__logo { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.nav__logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.nav__logo-mark svg { width: 100%; height: 100%; }
.nav__brand { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: 0.04em; color: var(--black); }
.nav__links {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  list-style: none;
}
.nav__links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 3px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current]::after { width: 100%; }
.nav__cta {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 0.75rem 1.6rem;
  border: 1px solid var(--black);
  transition: background 0.3s, color 0.3s;
  white-space: nowrap;
}
.nav__cta:hover { background: var(--gold); border-color: var(--gold); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--black);
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 999;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.5s var(--slow);
  padding: 2rem;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--black);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ─── Marquee strip ──────────────────────────────────────── */
.marquee {
  background: var(--black);
  padding: 0.9rem 0;
  overflow: hidden;
  max-width: 100vw;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  animation: marquee 26s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.marquee__item {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver);
  display: flex; align-items: center; gap: 3rem;
  flex-shrink: 0;
}
.marquee__sep {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── Forms ──────────────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 1.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid);
}
.form-input, .form-select, .form-textarea {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--silver);
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.3s;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b6b' stroke-width='1.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-submit {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--black);
  padding: 1.15rem 2rem;
  border: 1px solid var(--black);
  cursor: pointer;
  transition: background 0.35s, border-color 0.35s;
}
.form-submit:hover { background: var(--gold); border-color: var(--gold); }
.form-note { font-size: 0.72rem; color: var(--mid); line-height: 1.6; }
.form-success {
  padding: 2.5rem;
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--silver);
}
.form-success svg { display: block; margin: 0 auto 1.2rem; }
.form-honeypot { position: absolute; left: -5000px; opacity: 0; pointer-events: none; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ─── Reveal-on-scroll utility ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.85s var(--slow), transform 0.85s var(--slow); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer { background: var(--black); color: var(--light); padding: 5rem 0 2rem; }
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer__brand p {
  font-size: 0.8rem;
  color: rgba(200,200,200,0.55);
  line-height: 1.8;
  margin-top: 1.1rem;
  max-width: 260px;
}
.footer__socials { display: flex; gap: 0.7rem; margin-top: 1.5rem; }
.footer__social {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.13);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer;
}
.footer__social:hover { border-color: var(--gold); background: rgba(184,150,90,0.1); }
.footer__social svg { width: 14px; height: 14px; stroke: var(--light); fill: none; stroke-width: 1.5; }
.footer__col-title {
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.3rem;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer__links a {
  font-size: 0.78rem;
  color: rgba(200,200,200,0.5);
  transition: color 0.3s;
}
.footer__links a:hover { color: var(--gold); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copy { font-size: 0.7rem; color: rgba(200,200,200,0.3); }
.footer__legal { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__legal a {
  font-size: 0.7rem;
  color: rgba(200,200,200,0.3);
  transition: color 0.3s;
}
.footer__legal a:hover { color: var(--light); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer__bottom { flex-direction: column; text-align: center; align-items: flex-start; }
}

/* ─── Page-specific (legal, 404) ─────────────────────────── */
.page-header {
  padding: calc(var(--section-y) + 4rem) 0 var(--section-y-sm);
  background: var(--cream);
  text-align: center;
}
.page-header h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 0.5em; }
.page-header p { color: var(--mid); font-size: 0.9rem; }

.prose { max-width: var(--container-narrow); margin: 0 auto; padding: var(--section-y) var(--container-x); }
.prose h2 { font-size: 1.5rem; margin: 2.5em 0 0.7em; color: var(--black); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { font-family: var(--sans); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 2em 0 0.6em; }
.prose p { font-size: 0.92rem; line-height: 1.85; color: var(--charcoal); margin-bottom: 1em; }
.prose ul { padding-left: 1.5rem; margin-bottom: 1em; }
.prose li { font-size: 0.92rem; line-height: 1.85; color: var(--charcoal); margin-bottom: 0.4em; }
.prose a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--gold-dk); }
.prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid var(--silver); }
.prose__meta {
  font-size: 0.75rem;
  color: var(--mid);
  font-style: italic;
  margin-bottom: 2em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid var(--silver);
}

/* ─── Utility ────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
