/* ================================================
   BASE.CSS
   CSS reset, custom properties (variables),
   and global typography.

   Import order: base → layout → components → page
   ================================================ */


/* ------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   All colors, fonts, spacing defined here.
   Change these to retheme the entire site.
   ------------------------------------------------ */
:root {

  /* --- Colors --- */
  --color-bg:           #0e0d0b;   /* deepest background, near-black warm */
  --color-bg-raised:    #161410;   /* cards, nav — slightly lifted */
  --color-bg-overlay:   #1c1a16;   /* hover states, footer */
  --color-surface:      #242018;   /* section alternates */

  --color-text:         #d4cfc6;   /* primary body text — warm off-white */
  --color-text-muted:   #7a7468;   /* secondary text, labels */
  --color-text-faint:   #3e3a34;   /* decorative / disabled */

  --color-accent:       #b8975a;   /* gold — used sparingly for highlights */
  --color-accent-dim:   #7a6238;   /* dimmed gold for borders/rules */
  --color-accent-glow:  rgba(184, 151, 90, 0.12); /* subtle ambient glow */

  --color-white:        #ffffff;
  --color-black:        #000000;

  /* --- Typography --- */
  --font-display:  'Cormorant Garamond', Georgia, serif;  /* headings */
  --font-body:     'Crimson Pro', Georgia, serif;          /* body text */
  --font-label:    'Josefin Sans', sans-serif;             /* nav, labels */

  /* --- Type Scale (fluid) --- */
  --text-xs:    0.75rem;    /* 12px — fine print */
  --text-sm:    0.875rem;   /* 14px — captions */
  --text-base:  1.125rem;   /* 18px — body */
  --text-lg:    1.375rem;   /* 22px — lead text */
  --text-xl:    1.75rem;    /* 28px — subheadings */
  --text-2xl:   2.5rem;     /* 40px — section titles */
  --text-3xl:   3.5rem;     /* 56px — hero title */
  --text-4xl:   5rem;       /* 80px — display */

  /* --- Spacing Scale --- */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* --- Layout --- */
  --max-width:       1200px;
  --content-width:   900px;
  --header-height:   80px;
  --section-padding: var(--space-24);

  /* --- Borders & Radius --- */
  --radius-sm:   2px;
  --radius-md:   4px;
  --radius-lg:   8px;
  --border-subtle:  1px solid rgba(184, 151, 90, 0.15);
  --border-accent:  1px solid var(--color-accent-dim);

  /* --- Transitions --- */
  --transition-fast:   150ms ease;
  --transition-base:   300ms ease;
  --transition-slow:   600ms ease;

  /* --- Shadows --- */
  --shadow-card:  0 4px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow:  0 0 40px var(--color-accent-glow);
}


/* ------------------------------------------------
   RESET
   Minimal modern reset.
   ------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  /* Subtle grain texture overlay — adds cinematic depth */
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
}

img, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.15;
  color: var(--color-text);
}


/* ------------------------------------------------
   GLOBAL TYPOGRAPHY
   ------------------------------------------------ */

/* Display / Hero titles */
.display-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

/* Section headings */
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
}

/* Small uppercase labels (e.g. "Catalogue", "New Release") */
.section-label,
.label {
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  display: block;
  margin-bottom: var(--space-3);
}

/* Body paragraph */
p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.75;
  color: var(--color-text);
}

/* Italic lead-in text */
.lead {
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-muted);
}


/* ------------------------------------------------
   UTILITIES
   ------------------------------------------------ */
.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;
}

.text-center { text-align: center; }
.text-muted   { color: var(--color-text-muted); }
.text-accent  { color: var(--color-accent); }


/* ------------------------------------------------
   SCROLL REVEAL ANIMATION BASE
   JS adds .is-visible to trigger.
   ------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
