/* ==========================================================================
   Celliara — base.css
   Reset · Custom Properties · Typography · Layout Primitives
   Template v1.3 | Mobile-first (320px baseline)
   ========================================================================== */

/* ── Custom Properties ───────────────────────────────────────────────────── */
:root {
  /* Colors */
  --color-bg: #0a0a0a;
  --color-bg-surface: #111111;
  --color-bg-elevated: #1a1a1a;
  --color-border: #2a2a2a;
  --color-text-primary: #f0f0f0;
  --color-text-secondary: #a0a0a0;
  --color-text-muted: #606060;
  --color-accent: #c9a96e;
  --color-accent-hover: #dfc08a;
  --color-winner: #c9a96e;
  --color-pro: #4caf7d;
  --color-con: #e05c5c;

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --line-height-body: 1.6;
  --line-height-heading: 1.2;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 48px;
  --spacing-2xl: 80px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Layout */
  --max-width: 1200px;
  --max-width-wide: 1400px;
  --header-height: 60px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Shadows — luxury depth, never bright */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.6);
  --shadow-md:  0 4px 16px rgba(0, 0, 0, 0.7);
  --shadow-lg:  0 8px 32px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 24px rgba(201, 169, 110, 0.12); /* accent glow — used sparingly */

  /* Z-index layers */
  --z-sticky: 100;
  --z-overlay: 200;
  --z-sheet: 300;
  --z-header: 400;

  /* ── Typography extended ────────────────────────────────── */
  /* Display / editorial serif — for H1 on hero sections only */
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  /* Letter spacing for eyebrow labels */
  --letter-spacing-label: 0.1em;
  /* Comfortable max measure for body text */
  --max-measure: 68ch;
  --max-measure-narrow: 52ch;
}

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

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-body);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Reset */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-heading);
  color: var(--color-text-primary);
}

p {
  color: var(--color-text-secondary);
  line-height: var(--line-height-body);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

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

ul, ol {
  list-style: none;
}

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

select {
  font-family: inherit;
}

input[type="checkbox"] {
  accent-color: var(--color-accent);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* ── Layout Primitives ───────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--spacing-md);
}

.container--wide {
  max-width: var(--max-width-wide);
}

.page-section {
  padding-block: var(--spacing-xl);
}

.section-divider {
  margin-block: 0;
  border-top-color: var(--color-border);
}

/* Section label (eyebrow text above headings) */
.section-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--spacing-xs);
}

/* ── Typography Scale ────────────────────────────────────────────────────── */
h1 {
  font-size: clamp(1.75rem, 5vw, var(--font-size-4xl));
  margin-bottom: var(--spacing-md);
}

h2 {
  font-size: clamp(1.375rem, 3.5vw, var(--font-size-3xl));
  margin-bottom: var(--spacing-md);
}

h3 {
  font-size: clamp(1.125rem, 2.5vw, var(--font-size-2xl));
  margin-bottom: var(--spacing-sm);
}

h4 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-xs);
}

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

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

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

.text-secondary {
  color: var(--color-text-secondary);
}

.font-sm {
  font-size: var(--font-size-sm);
}

.font-xs {
  font-size: var(--font-size-xs);
}

/* Image slot placeholder */
.img-slot {
  background-color: var(--color-bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-slot--square {
  aspect-ratio: 1 / 1;
  width: 100%;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-lg);
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.breadcrumb__sep {
  color: var(--color-text-muted);
  margin-inline: 2px;
}

.breadcrumb__mid {
  display: none;
}

.breadcrumb__current {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

@media (min-width: 768px) {
  .breadcrumb__mid {
    display: flex;
  }
}

/* ── Affiliate Note ──────────────────────────────────────────────────────── */
.affiliate-note {
  display: block;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--spacing-xs);
  line-height: 1.4;
}

.affiliate-disclosure {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ── Responsive Breakpoints Reference ───────────────────────────────────── */
/* 320px — mobile baseline (default)                                        */
/* 480px — @media (min-width: 480px)                                        */
/* 768px — @media (min-width: 768px) tablet                                 */
/* 1024px — @media (min-width: 1024px) desktop                              */
/* 1200px — @media (min-width: 1200px) wide desktop                         */
