/* ============================================
   BIG CAT KITCHEN — BASE STYLES
   Design: Dark luxury editorial, premium hospitality
   Brand Colors (The Irons Club):
     #010101 — True Black (primary bg)
     #2b2b2e — Near Black (surface)
     #777774 — Medium Gray (muted text)
     #bbbcb6 — Warm Stone (accent / mid text)
     #f7f7f0 — Warm Cream (off-white text)
     #e7e7e8 — Light Silver (subtle surface)
   Headlines: Archivo Black | Body: General Sans (Fontshare)
   ============================================ */

/* === DESIGN TOKENS === */
:root {
  /* Brand palette */
  --tic-black:   #010101;
  --tic-dark:    #2b2b2e;
  --tic-gray:    #777774;
  --tic-stone:   #bbbcb6;
  --tic-cream:   #f7f7f0;
  --tic-silver:  #e7e7e8;

  /* Semantic color roles */
  --color-bg:          var(--tic-black);
  --color-surface:     #0e0e10;
  --color-surface-2:   var(--tic-dark);
  --color-surface-3:   #333337;
  --color-border:      rgba(187, 188, 182, 0.12);
  --color-divider:     rgba(187, 188, 182, 0.08);

  /* Text */
  --color-text:        var(--tic-cream);
  --color-text-muted:  var(--tic-stone);
  --color-text-faint:  var(--tic-gray);
  --color-text-inverse: var(--tic-black);

  /* Accent — warm stone, used sparingly (<10%) */
  --color-accent:       var(--tic-stone);
  --color-accent-hover: var(--tic-cream);
  --color-accent-dim:   rgba(187, 188, 182, 0.10);
  --color-accent-glow:  rgba(187, 188, 182, 0.15);

  /* Type scale — fluid */
  --text-xs:   clamp(0.75rem,  0.70rem + 0.20vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.65vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(2.75rem,  0.8rem  + 5vw,    5.25rem);

  /* Spacing — 4px base */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body:    'General Sans', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --content-narrow:  640px;
  --content-default: 960px;
  --content-wide:    1200px;
  --content-max:     1400px;

  /* Motion */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:    cubic-bezier(0.4, 0, 1, 1);
  --ease-inout: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Radius — minimal, this brand is sharp */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
}

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-20);
}

body {
  min-height: 100dvh;
  line-height: 1.65;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
}

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

ul[role='list'], ol[role='list'] { list-style: none; }

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

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
  line-height: 1.05;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
}

p, li, figcaption {
  text-wrap: pretty;
  max-width: 68ch;
}

::selection {
  background: rgba(187, 188, 182, 0.2);
  color: var(--tic-cream);
}

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

@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;
  }
}

button { cursor: pointer; background: none; border: none; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-interactive);
}

/* === LAYOUT UTILITIES === */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}

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

.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;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 9999px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

/* Primary: Stone on Black */
.btn--primary {
  background: var(--tic-stone);
  color: var(--tic-black);
  border-color: var(--tic-stone);
}
.btn--primary:hover {
  background: var(--tic-cream);
  border-color: var(--tic-cream);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(187, 188, 182, 0.2);
}
.btn--primary:active { transform: translateY(0); }

/* Outline: White border */
.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(187, 188, 182, 0.35);
}
.btn--outline:hover {
  border-color: var(--tic-stone);
  color: var(--tic-cream);
  transform: translateY(-1px);
}
.btn--outline:active { transform: translateY(0); }

/* Ghost: No border, text link style */
.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: transparent;
  padding-inline: 0;
  letter-spacing: 0.10em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
}
.btn--ghost:hover {
  color: var(--color-text);
  text-decoration-color: var(--color-text-muted);
}

/* === SECTION SPACING === */
.section {
  padding-block: clamp(var(--space-16), 9vw, var(--space-32));
}
.section--tight {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
}

/* === TYPOGRAPHY AIDS === */
.overline {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.accent-line {
  display: block;
  width: 36px;
  height: 1px;
  background: var(--color-accent);
  margin-bottom: var(--space-6);
}

/* === SCROLL REVEAL (CSS-native, no JS) === */
.reveal { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .reveal {
    opacity: 0;
    animation: bck-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 65%;
  }
}

.reveal-stagger > * { opacity: 1; }

@supports (animation-timeline: scroll()) {
  .reveal-stagger > * {
    opacity: 0;
    animation: bck-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 65%;
  }
  .reveal-stagger > *:nth-child(1) { animation-delay: 0ms; }
  .reveal-stagger > *:nth-child(2) { animation-delay: 80ms; }
  .reveal-stagger > *:nth-child(3) { animation-delay: 160ms; }
  .reveal-stagger > *:nth-child(4) { animation-delay: 240ms; }
  .reveal-stagger > *:nth-child(5) { animation-delay: 320ms; }
}

@keyframes bck-fade { to { opacity: 1; } }

/* === DIVIDER === */
hr.divider {
  border: none;
  border-top: 1px solid var(--color-border);
}

/* === RESPONSIVE GRIDS === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* === PAGE TRANSITIONS (View Transitions API) === */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: bck-out 0.18s var(--ease-in); }
::view-transition-new(root) { animation: bck-in 0.28s var(--ease-out); }
@keyframes bck-out { to { opacity: 0; } }
@keyframes bck-in  { from { opacity: 0; } }
