/* ==========================================================================
   The Major's Enterprise Ltd — Shared Design System Tokens
   Luxury Specialty Coffee & Editorial Aesthetic
   ========================================================================== */

:root {
  /* Palette — Surfaces */
  --bg-obsidian: #14100D;
  --bg-espresso: #1E1713;
  --bg-mahogany: #2B201A;
  --bg-parchment: #F7F3EC;
  --bg-linen: #EDE6DA;
  --bg-white: #FFFFFF;

  /* Palette — Brand & Accents */
  --forest-deep: #172E20;
  --forest: #21402D;
  --forest-light: #2E573E;
  --forest-tint: #E7EFE9;

  --gold: #C8A45D;
  --gold-light: #DFC285;
  --gold-dark: #9B7835;
  --gold-tint: rgba(200, 164, 93, 0.14);

  --crimson: #A82522;

  /* Palette — Typography Ink */
  --ink-primary: #1D1713;
  --ink-body: #463D36;
  --ink-muted: #72675E;
  --ink-on-dark: #F6F1E9;
  --ink-on-dark-body: #D4C9BC;
  --ink-on-dark-muted: #9F9387;

  /* Borders & Hairlines */
  --border-light: rgba(29, 23, 19, 0.11);
  --border-subtle: rgba(29, 23, 19, 0.07);
  --border-dark: rgba(246, 241, 233, 0.12);
  --border-gold: rgba(200, 164, 93, 0.35);

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Type Scale */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md: 1.125rem;     /* 18px */
  --text-lg: 1.35rem;      /* 21.6px */
  --text-xl: clamp(1.65rem, 2.4vw, 2.15rem);
  --text-2xl: clamp(2.1rem, 3.6vw, 3.1rem);
  --text-hero: clamp(2.65rem, 5.4vw, 4.75rem);

  /* Spacing & Layout */
  --container-max: 1240px;
  --container-narrow: 920px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-py: clamp(4.25rem, 8vw, 7rem);
  --header-height: 80px;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 4px 16px rgba(20, 16, 13, 0.06);
  --shadow-md: 0 14px 36px rgba(20, 16, 13, 0.09);
  --shadow-lg: 0 24px 60px rgba(20, 16, 13, 0.16);
  --shadow-dark: 0 24px 60px rgba(0, 0, 0, 0.42);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 180ms var(--ease-out);
  --transition-base: 320ms var(--ease-out);
  --transition-slow: 600ms var(--ease-out);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ink-body);
  background-color: var(--bg-parchment);
  overflow-x: hidden;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  color: var(--ink-primary);
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

/* Focus Accessibility */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 2000;
  padding: 0.75rem 1.25rem;
  background: var(--bg-obsidian);
  color: var(--gold-light);
  border: 1px solid var(--gold);
  border-radius: var(--radius-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 1rem;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

/* Editorial Eyebrow & Section Header */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background-color: currentColor;
  flex-shrink: 0;
}

.eyebrow--light {
  color: var(--gold-light);
}

.eyebrow--center {
  justify-content: center;
}

.eyebrow--center::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background-color: currentColor;
  flex-shrink: 0;
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(2.25rem, 4.5vw, 3.75rem);
}

.section-header--center {
  margin-inline: auto;
  text-align: center;
}

.section-header h2 {
  margin-top: 0.85rem;
  font-size: var(--text-2xl);
}

.section-header p {
  margin-top: 1rem;
  font-size: var(--text-md);
  color: var(--ink-body);
  line-height: 1.72;
}

.section-header--dark h2 {
  color: var(--ink-on-dark);
}

.section-header--dark p {
  color: var(--ink-on-dark-body);
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
