/* ==========================================================================
   Night Stack Supper — Dark Gold Editorial Color System
   Premium warm-toned nightlife palette. No pure black.
   ========================================================================== */

:root {
  /* ── Dark Gold / Bronze Palette ── */
  --color-bg: #1a130c;            /* deep espresso base */
  --color-bg-elevated: #241b12;    /* card / section surface */
  --color-bg-soft: #2f2317;        /* softer elevated surface */
  --color-bg-overlay: rgba(20, 12, 6, 0.88);
  --color-bg-warm: #2a1f14;        /* warm bronze panel */

  /* Gold / Bronze accents */
  --color-gold: #c49b64;           /* primary gold */
  --color-gold-light: #d4ab74;     /* light gold */
  --color-gold-dark: #a67c42;      /* deep gold */
  --color-bronze: #8a6a3a;         /* burnt bronze */
  --color-brass: #b8985a;          /* metallic brass */
  --color-amber: #c4883a;          /* warm amber */

  /* Text */
  --color-text: #f5efe6;           /* soft ivory */
  --color-text-muted: #c4b8a4;     /* warm muted */
  --color-text-soft: #9a8c78;      /* soft champagne */
  --color-text-dim: #7a6e5a;       /* dim tobacco */

  /* Surfaces & borders */
  --color-border: rgba(196, 155, 100, 0.18);
  --color-border-strong: rgba(196, 155, 100, 0.35);
  --color-border-light: rgba(196, 155, 100, 0.1);

  /* Accent glows */
  --color-glow-gold: rgba(196, 155, 100, 0.25);
  --color-glow-amber: rgba(196, 136, 58, 0.2);

  /* Functional */
  --color-success: #7aad6a;
  --color-warning: #c4883a;
  --color-danger: #b84a4a;

  /* Legacy gray scale — muted warm */
  --color-gray-50: #f5efe6;
  --color-gray-100: #e8dfd0;
  --color-gray-200: #d0c4ae;
  --color-gray-300: #b8a98c;
  --color-gray-400: #9a8c78;
  --color-gray-500: #7a6e5a;
  --color-gray-600: #5c5242;
  --color-gray-700: #423a2e;
  --color-gray-800: #2a241c;
  --color-gray-900: #1a130c;

  /* Typography */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-md: 1.0625rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;

  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  /* Spacing */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radius */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows — warm gold glow */
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.5);
  --shadow-strong: 0 32px 120px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 20px rgba(196, 155, 100, 0.15);
  --shadow-glow-strong: 0 0 30px rgba(196, 155, 100, 0.25);

  /* Transitions */
  --transition-fast: 120ms ease-out;
  --transition-base: 180ms ease-out;
  --transition-slow: 260ms ease-out;

  /* Layout */
  --container-max-width: 1120px;
  --header-height: 76px;
  --header-compact-height: 60px;
}

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

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body { margin: 0; }
h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; margin: 0; padding: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: none; padding: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
body, html { min-height: 100%; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--color-text);
  background: linear-gradient(170deg, #1a130c 0%, #0f0a06 40%, #1a130c 100%);
}

main { display: block; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 3vw + 1.8rem, 3.75rem);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-4);
}
h2 {
  font-size: clamp(1.875rem, 2vw + 1.4rem, 2.5rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-3);
}
h3 {
  font-size: clamp(1.5rem, 1.2vw + 1.1rem, 1.875rem);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}
h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-2);
}
p {
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
strong { font-weight: 600; }
em { font-style: italic; }

a {
  position: relative;
  cursor: pointer;
  transition: color var(--transition-base);
}
a:hover {
  color: var(--color-gold-light);
}
a:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: 2px;
}

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

.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%;
  margin-left: auto; margin-right: auto;
  max-width: var(--container-max-width);
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}
@media (min-width: 1024px) {
  .container { padding-left: var(--space-6); padding-right: var(--space-6); }
}

.section {
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
}
.section--tight {
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}
.section--compact {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
}
.section__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.section__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* Grid */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.grid { display: grid; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 960px) { .bento-grid { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 640px) { .bento-grid { grid-template-columns: repeat(4, 1fr); } }

.bento-span-3 { grid-column: span 3; }
.bento-span-4 { grid-column: span 4; }
.bento-span-5 { grid-column: span 5; }
.bento-span-6 { grid-column: span 6; }
.bento-span-7 { grid-column: span 7; }
.bento-span-8 { grid-column: span 8; }
@media (max-width: 960px) {
  .bento-span-3, .bento-span-4, .bento-span-5,
  .bento-span-6, .bento-span-7, .bento-span-8 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .bento-span-3, .bento-span-4, .bento-span-5,
  .bento-span-6, .bento-span-7, .bento-span-8 { grid-column: span 4; }
}

/* Spacing */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }

.text-center { text-align: center; }
.text-right { text-align: right; }

/* ==========================================================================
   Buttons — Gold/Bronze Luxury
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-base), color var(--transition-base),
              box-shadow var(--transition-base), transform var(--transition-fast),
              border-color var(--transition-base), opacity var(--transition-fast);
}
.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}
.btn:disabled, .btn[disabled] {
  cursor: not-allowed; opacity: 0.5; box-shadow: none; transform: none;
}

.btn--primary {
  color: var(--color-bg);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-dark));
  border-color: var(--color-gold);
  box-shadow: 0 8px 24px rgba(196, 155, 100, 0.2);
}
.btn--primary:hover:not(:disabled) {
  color: #0d0804;
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(196, 155, 100, 0.3);
  background: linear-gradient(135deg, #dbb880, var(--color-gold));
}
.btn--primary:active:not(:disabled) {
  color: var(--color-bg);
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(196, 155, 100, 0.15);
}

.btn--ghost {
  color: var(--color-text);
  background: rgba(26, 19, 12, 0.8);
  border-color: var(--color-border);
}
.btn--ghost:hover:not(:disabled) {
  background: rgba(42, 31, 20, 0.9);
  border-color: var(--color-border-strong);
  box-shadow: 0 0 0 1px rgba(196, 155, 100, 0.15);
}

.btn--subtle {
  color: var(--color-text-soft);
  background: transparent;
  border-color: transparent;
}
.btn--subtle:hover {
  color: var(--color-gold-light);
}

.btn--sm { padding: 6px 14px; font-size: var(--font-size-xs); }
.btn--lg { padding: 13px 26px; font-size: var(--font-size-md); }

/* ==========================================================================
   Cards & Surfaces
   ========================================================================== */
.card {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--color-bg-elevated), var(--color-bg));
  border: 1px solid var(--color-border);
  padding: var(--space-5);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.card--flat {
  background: var(--color-bg-elevated);
  box-shadow: none;
}
.card--muted {
  background: var(--color-bg-warm);
  border-color: var(--color-border-light);
}
.card--gold {
  background: linear-gradient(145deg, rgba(196, 155, 100, 0.08), transparent);
  border-color: var(--color-border-strong);
}
.card__eyebrow {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}
.card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}
.card__meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

/* ==========================================================================
   Magazine-specific components
   ========================================================================== */
.magazine-grid {
  display: grid;
  gap: var(--space-6);
}

.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.feature-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-glow);
}
.feature-card__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.feature-card__body {
  padding: var(--space-5);
}
.feature-card__label {
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-1);
}
.feature-card__title {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-2);
}
.feature-card__text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

/* ==========================================================================
   Misc Utilities
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid var(--color-border);
  background: var(--color-bg-overlay);
  color: var(--color-text-soft);
}
.badge--gold {
  border-color: rgba(196, 155, 100, 0.5);
  color: var(--color-gold-light);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.chip-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(42, 31, 20, 0.6);
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.hidden { display: none !important; }
@media (max-width: 768px) { .hide-mobile { display: none !important; } }
@media (min-width: 769px) { .hide-desktop { display: none !important; } }

.w-full { width: 100%; }

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

.divider {
  border: 0;
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
  margin-block: var(--space-5);
}

.tag-entertainment-only {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-bg-warm);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-soft);
}
.tag-entertainment-only__icon {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--color-gold);
  box-shadow: 0 0 8px rgba(196, 155, 100, 0.5);
}

/* Gallery base */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-3);
}
.gallery-grid__item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-bg);
}
.gallery-grid__item--wide { grid-column: span 6; }
.gallery-grid__item--tall { grid-column: span 3; }
@media (max-width: 960px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); }
  .gallery-grid__item--wide { grid-column: span 6; }
  .gallery-grid__item--tall { grid-column: span 3; }
}
@media (max-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery-grid__item--wide, .gallery-grid__item--tall { grid-column: span 4; }
}
.gallery-grid__image {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-grid__item:hover .gallery-grid__image {
  transform: scale(1.04);
}

/* Timeline base — warm gold style */
.timeline {
  position: relative;
  padding-left: 24px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(to bottom, var(--color-gold), rgba(196, 155, 100, 0.2));
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-5);
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -16px; top: 2px;
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--color-bg);
  box-shadow: 0 0 0 2px var(--color-gold), 0 0 12px rgba(196, 155, 100, 0.3);
}
.timeline-item__label {
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 4px;
}
.timeline-item__title {
  font-size: var(--font-size-lg);
  margin-bottom: 2px;
}
.timeline-item__body {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}
