/* =============================================
   Variables
   ============================================= */
:root {
  /* Colors */
  --color-bg-primary: #FAF7F2; /* warm ivory */
  --color-bg-secondary: #F1E9DD; /* soft sand beige */
  --color-bg-editorial: #FFFFFF; /* pure white */
  --color-text: #2A2A2A; /* deep charcoal */
  --color-heading-taupe: #5A4A42; /* muted taupe */
  --color-heading-navy: #1F2A44; /* deep navy accent */
  --color-primary: #C47A5A; /* muted terracotta */
  --color-primary-hover: #7A4A33; /* deep bronze */
  --color-accent-sage: #8A9A8B; /* sage green */
  --color-banner: #D60000; /* fixed 21+ banner */
  --color-banner-text: #FFFFFF;
  --color-success: #1C8A4B;
  --color-warning: #D99A00;
  --color-danger: #C0392B;
  --color-neutral-50: #F7F7F7;
  --color-neutral-100: #E6E6E6;
  --color-neutral-200: #CCCCCC;
  --color-neutral-300: #B3B3B3;
  --color-neutral-400: #999999;
  --color-neutral-500: #808080;
  --color-neutral-600: #666666;
  --color-neutral-700: #4D4D4D;
  --color-neutral-800: #333333;
  --color-neutral-900: #1A1A1A;

  /* Typography */
  --font-family-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-family-serif: "Playfair Display", "Georgia", serif;
  --font-family-accent: "Montserrat", system-ui, sans-serif;

  --font-size-xs: 0.75rem;  /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem;   /* 16px */
  --font-size-md: 1.0625rem;/* 17px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem;  /* 20px */
  --font-size-2xl: 1.5rem;  /* 24px */
  --font-size-3xl: 1.75rem; /* 28px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem;    /* 48px */

  --line-height-tight: 1.2;
  --line-height-snug: 1.35;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing scale (0–96px) */
  --space-0: 0;
  --space-4: 0.25rem;  /* 4px */
  --space-8: 0.5rem;   /* 8px */
  --space-12: 0.75rem; /* 12px */
  --space-16: 1rem;    /* 16px */
  --space-20: 1.25rem; /* 20px */
  --space-24: 1.5rem;  /* 24px */
  --space-32: 2rem;    /* 32px */
  --space-40: 2.5rem;  /* 40px */
  --space-48: 3rem;    /* 48px */
  --space-56: 3.5rem;  /* 56px */
  --space-64: 4rem;    /* 64px */
  --space-80: 5rem;    /* 80px */
  --space-96: 6rem;    /* 96px */

  /* Radius */
  --radius-none: 0;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Shadows (soft luxury, cinematic) */
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-medium: 0 18px 45px rgba(15, 23, 42, 0.18);
  --shadow-elevated: 0 30px 80px rgba(15, 23, 42, 0.32);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-normal: 220ms ease-out;
  --transition-slow: 320ms ease-out;

  /* Layout */
  --container-max-width: 1120px;
  --layout-gutter: var(--space-24);
  --header-height: 88px;
  --banner-height: 40px;
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-normal: 0ms;
    --transition-slow: 0ms;
  }

  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

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

html {
  margin: 0;
  padding: 0;
  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%;
}

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

button {
  border: none;
  background: none;
  padding: 0;
}

body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Remove default link styles but keep accessibility */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

/* =============================================
   Base styles
   ============================================= */
body {
  font-family: var(--font-family-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  background-color: var(--color-bg-primary);
  color: var(--color-text);
}

main {
  min-height: calc(100vh - var(--header-height) - var(--banner-height));
}

/* Headings: cinematic + editorial feel */
h1, h2, h3, h4 {
  font-family: var(--font-family-serif);
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--color-heading-taupe);
}

h1 {
  font-size: clamp(2.4rem, 3vw + 1.6rem, var(--font-size-5xl));
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-24);
}

h2 {
  font-size: clamp(1.8rem, 2.2vw + 1.1rem, var(--font-size-4xl));
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-20);
}

h3 {
  font-size: clamp(1.4rem, 1.6vw + 1rem, var(--font-size-3xl));
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-16);
}

h4 {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-snug);
  margin-bottom: var(--space-12);
}

h5, h6 {
  font-family: var(--font-family-accent);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-8);
  color: var(--color-heading-navy);
}

p {
  margin-bottom: var(--space-16);
  }

p.lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
}

strong {
  font-weight: 600;
}

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

/* Links (inline and nav) */
a {
  transition: color var(--transition-fast),
              opacity var(--transition-fast),
              text-decoration-color var(--transition-fast);
}

a:not(.btn):not(.nav-link) {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(0, 0, 0, 0.28);
}

a:not(.btn):not(.nav-link):hover {
  text-decoration-color: currentColor;
}

/* Fixed 21+ banner */
.site-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--banner-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--space-16);
  background-color: var(--color-banner);
  color: var(--color-banner-text);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.site-banner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Offset body content for fixed banner + header */
body.has-fixed-header main {
  padding-top: calc(var(--banner-height) + var(--header-height));
}

/* Accessibility: focus-visible */
:focus-visible {
  outline: 2px solid var(--color-accent-sage);
  outline-offset: 3px;
}

/* Text selection */
::selection {
  background: rgba(196, 122, 90, 0.18);
  color: inherit;
}

/* =============================================
   Utilities
   ============================================= */

/* Container */
.container {
  width: 100%;
  max-width: calc(var(--container-max-width) + var(--layout-gutter) * 2);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}

@media (max-width: 768px) {
  .container {
    padding-left: var(--space-16);
    padding-right: var(--space-16);
  }
}

/* Layout spacing helpers */
.section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

.section--tight {
  padding-top: var(--space-40);
  padding-bottom: var(--space-40);
}

.section--wide {
  padding-top: var(--space-80);
  padding-bottom: var(--space-80);
}

.section--ivory {
  background-color: var(--color-bg-primary);
}

.section--sand {
  background-color: var(--color-bg-secondary);
}

.section--white {
  background-color: var(--color-bg-editorial);
}

/* Flex helpers */
.flex {
  display: flex;
}

.flex-inline {
  display: inline-flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.flex-gap-sm {
  gap: var(--space-12);
}

.flex-gap-md {
  gap: var(--space-20);
}

.flex-gap-lg {
  gap: var(--space-32);
}

/* Grid helpers */
.grid {
  display: grid;
  gap: var(--space-24);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-32);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-32);
}

@media (max-width: 960px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Visual separators */
.divider {
  border: 0;
  border-bottom: 1px solid rgba(138, 154, 139, 0.4);
  margin-block: var(--space-32);
}

.divider--muted {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Screen reader only */
.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;
}

/* Text utilities */
.text-center {
  text-align: center;
}

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

.text-uppercase {
  text-transform: uppercase;
}

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

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

/* Max-width helpers for editorial layouts */
.content-wide {
  max-width: 72rem;
}

/* =============================================
   Components
   ============================================= */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-family-accent);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-normal),
              color var(--transition-normal),
              border-color var(--transition-normal),
              box-shadow var(--transition-normal),
              transform var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-medium);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: #20b5d6;
  border-color: rgba(31, 42, 68, 0.32);
}

.btn-outline:hover {
  background-color: #fff;
  border-color: rgba(31, 42, 68, 0.6);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-heading-taupe);
}

.btn-ghost:hover {
  background-color: rgba(250, 247, 242, 0.9);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

.btn--sm {
  padding: 0.5rem 1.25rem;
  font-size: var(--font-size-xs);
}

.btn--lg {
  padding: 0.9rem 2.2rem;
}

/* Inputs & form controls */
.input,
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.12);
  background-color: #FFFFFF;
  color: var(--color-text);
  font-size: var(--font-size-base);
  line-height: 1.4;
  transition: border-color var(--transition-fast),
              box-shadow var(--transition-fast),
              background-color var(--transition-fast);
}

.input::placeholder,
textarea::placeholder {
  color: var(--color-neutral-400);
}

.input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--color-accent-sage);
  box-shadow: 0 0 0 1px rgba(138, 154, 139, 0.6);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

label {
  display: inline-block;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
}

.form-help {
  font-size: var(--font-size-xs);
  color: var(--color-neutral-600);
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

/* Cards (for event types, venues, editorial blocks) */
.card {
  background-color: var(--color-bg-editorial);
  border-radius: var(--radius-lg);
  padding: var(--space-24);
  box-shadow: var(--shadow-soft);
}

.card--elevated {
  box-shadow: var(--shadow-medium);
}

.card--bordered {
  box-shadow: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.card-header {
  margin-bottom: var(--space-16);
}

.card-meta {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-neutral-500);
  margin-bottom: var(--space-8);
}

/* Hero slider (zero-block style) */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: min(80vh, 720px);
  display: grid;
  align-items: stretch;
  background-color: #000;
  color: #FFFFFF;
}

.hero-slide-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(5, 10, 25, 0.8) 0%, rgba(5, 10, 25, 0.35) 45%, rgba(5, 10, 25, 0.1) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 1;
  align-self: center;
  padding-block: var(--space-80);
}

.hero-kicker {
  font-family: var(--font-family-accent);
  font-size: var(--font-size-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: var(--space-16);
}

.hero-title {
  font-family: var(--font-family-serif);
  font-size: clamp(2.8rem, 4vw + 1.4rem, 3.4rem);
  line-height: 1.1;
  margin-bottom: var(--space-20);
}

.hero-subtitle {
  max-width: 32rem;
  font-size: var(--font-size-md);
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: var(--space-24);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-16);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.74);
}

/* Navigation with centered logo */
.site-header {
  position: fixed;
  top: var(--banner-height);
  left: 0;
  right: 0;
  z-index: 900;
  background-color: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.site-header-inner {
  height: var(--header-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-24);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-20);
}

.nav-left {
  justify-content: flex-start;
}

.nav-right {
  justify-content: flex-end;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-serif);
  font-size: var(--font-size-lg);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-heading-navy);
}

.nav-link {
  font-family: var(--font-family-accent);
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-heading-navy);
  padding-block: 0.25rem;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-heading-navy);
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link[aria-current='page']::after {
  width: 100%;
}

@media (max-width: 960px) {
  .site-header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .nav-left,
  .nav-right {
    display: none; /* mobile nav handled separately in other CSS files */
  }
}

/* Gallery-style image treatment */
.img-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.img-frame--soft {
  box-shadow: var(--shadow-soft);
}

/* Tag / pill (for entertainment-only notices, etc.) */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(138, 154, 139, 0.6);
  color: var(--color-heading-navy);
  background-color: rgba(241, 233, 221, 0.45);
}

.tag--danger {
  border-color: rgba(214, 0, 0, 0.7);
  color: #FFFFFF;
  background-color: rgba(214, 0, 0, 0.88);
}

/* Notice / info box (for responsible gaming) */
.notice {
  border-radius: var(--radius-md);
  padding: var(--space-16) var(--space-20);
  border: 1px solid rgba(138, 154, 139, 0.6);
  background-color: rgba(241, 233, 221, 0.8);
  font-size: var(--font-size-sm);
}

.notice--danger {
  border-color: rgba(214, 0, 0, 0.7);
  background-color: rgba(214, 0, 0, 0.06);
}

.notice-title {
  font-weight: 600;
  margin-bottom: var(--space-8);
  color: var(--color-heading-navy);
}

/* Footer */
.site-footer {
  padding-block: var(--space-32);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background-color: #FFFFFF;
  font-size: var(--font-size-sm);
}

.site-footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12);
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 640px) {
  .site-footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =============================================
   Accessibility & helpers
   ============================================= */

.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #000;
  color: #FFF;
  z-index: 1100;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-sm);
  opacity: 0;
  pointer-events: none;
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
