:root {
  /* =============================
   *  Color System
   * ============================= */
  --color-bg: #050812; /* deep cinematic navy-black */
  --color-bg-alt: #0d1220; /* subtle variation for sections */
  --color-surface: #161b2a; /* cards, panels */
  --color-surface-soft: #222739;

  --color-text: #f6f2ea; /* soft cream text */
  --color-text-muted: #c3bfb5; /* warm muted text */
  --color-text-soft: #a69f92;

  --color-primary: #12b886; /* emerald accent */
  --color-primary-soft: rgba(18, 184, 134, 0.12);
  --color-primary-strong: #0f9a71;

  --color-accent-gold: #f1c27d; /* warm gold */
  --color-accent-gold-soft: rgba(241, 194, 125, 0.16);

  --color-success: #2ecc71;
  --color-warning: #ffb347; /* warm amber */
  --color-danger: #ff6b6b;

  --color-border-subtle: rgba(246, 242, 234, 0.06);
  --color-border-strong: rgba(246, 242, 234, 0.18);

  --color-neutral-50: #f7f3ec;
  --color-neutral-100: #e2dbcf;
  --color-neutral-200: #cfc5b4;
  --color-neutral-300: #b4aa9a;
  --color-neutral-400: #9b8f7d;
  --color-neutral-500: #7c7063;
  --color-neutral-600: #5f564b;
  --color-neutral-700: #433d35;
  --color-neutral-800: #28231f;
  --color-neutral-900: #151210;

  --color-overlay-soft: rgba(0, 0, 0, 0.35);
  --color-overlay-strong: rgba(0, 0, 0, 0.6);

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

  /* Font sizes (fluid-ish scale for headings) */
  --font-size-xs: 0.75rem;   /* 12px */
  --font-size-sm: 0.875rem;  /* 14px */
  --font-size-md: 1rem;      /* 16px */
  --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 */
  --font-size-5xl: 3rem;     /* 48px */

  --line-height-tight: 1.15;
  --line-height-snug: 1.3;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.06em;

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

  /* =============================
   *  Radius & Shadows
   * ============================= */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 22px 80px rgba(0, 0, 0, 0.6);
  --shadow-subtle: 0 2px 10px rgba(0, 0, 0, 0.4);

  /* =============================
   *  Transitions & Motion
   * ============================= */
  --transition-fast: 120ms ease-out;
  --transition-normal: 200ms ease-out;
  --transition-slow: 320ms ease;
}

/* Dark theme hook (can be extended if needed) */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #040712;
    --color-bg-alt: #0a0f1d;
  }
}

/* =============================
 *  Reset / Normalize
 * ============================= */

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

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;
  color: inherit;
}

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

textarea {
  resize: vertical;
}

:where(a) {
  color: inherit;
}

:where(a, button, input, textarea, select) {
  -webkit-tap-highlight-color: transparent;
}

/* Remove animations/transitions if user prefers reduced motion */
@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;
  }
}

/* =============================
 *  Base Styles
 * ============================= */

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  line-height: var(--line-height-normal);
  background: radial-gradient(circle at top, #11172a 0, var(--color-bg) 52%, #020307 100%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  color: var(--color-text);
  margin-bottom: var(--space-8);
}

h1 {
  font-size: clamp(2.5rem, 5vw, var(--font-size-5xl));
}

h2 {
  font-size: clamp(2rem, 3.4vw, var(--font-size-4xl));
}

h3 {
  font-size: clamp(1.5rem, 2.4vw, var(--font-size-3xl));
}

h4 {
  font-size: var(--font-size-2xl);
}

h5 {
  font-size: var(--font-size-xl);
}

h6 {
  font-size: var(--font-size-lg);
}

p {
  margin-bottom: var(--space-8);
  color: var(--color-text-muted);
}

strong,
b {
  font-weight: 600;
}

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

a {
  text-decoration: none;
  color: var(--color-primary);
  transition: color var(--transition-normal), opacity var(--transition-fast);
}

a:hover {
  color: var(--color-accent-gold);
}

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

hr {
  border: none;
  border-top: 1px solid var(--color-border-subtle);
  margin: var(--space-16) 0;
}

code,
pre {
  font-family: var(--font-mono);
}

::selection {
  background: rgba(241, 194, 125, 0.25);
  color: var(--color-text);
}

/* =============================
 *  Accessibility & Focus
 * ============================= */

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

[tabindex="-1"]:focus {
  outline: none !important;
}

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

.sr-only-focusable:active,
.sr-only-focusable:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

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

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--space-16);
  max-width: 1120px;
}

@media (min-width: 1280px) {
  .container {
    max-width: 1200px;
  }
}

.section {
  padding-block: var(--space-32);
}

.section--compact {
  padding-block: var(--space-24);
}

.section--flush-top {
  padding-top: 0;
}

.section--flush-bottom {
  padding-bottom: 0;
}

/* Flexbox helpers */

.flex {
  display: flex;
}

.inline-flex {
  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-col {
  display: flex;
  flex-direction: column;
}

.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-4 {
  gap: var(--space-4);
}

.gap-8 {
  gap: var(--space-8);
}

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

.gap-16 {
  gap: var(--space-16);
}

/* Grid helpers */

.grid {
  display: grid;
}

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

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Width utilities */

.w-full {
  width: 100%;
}

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

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

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

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

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

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-xs);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  background: rgba(241, 194, 125, 0.08);
  color: var(--color-accent-gold);
  border: 1px solid rgba(241, 194, 125, 0.35);
}

/* =============================
 *  Components: Buttons
 * ============================= */

.btn {
  --btn-bg: var(--color-primary);
  --btn-bg-hover: var(--color-primary-strong);
  --btn-color: #050812;
  --btn-border: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--btn-border);
  background: radial-gradient(circle at top left, rgba(241, 194, 125, 0.28) 0, transparent 42%), var(--btn-bg);
  color: var(--btn-color);
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition-normal), transform var(--transition-fast), box-shadow var(--transition-normal), opacity var(--transition-fast);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
}

.btn:hover {
  background: radial-gradient(circle at top left, rgba(241, 194, 125, 0.35) 0, transparent 45%), var(--btn-bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.6);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 3px;
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(246, 242, 234, 0.04);
  --btn-color: var(--color-text);
  --btn-border: rgba(246, 242, 234, 0.24);
  background: var(--btn-bg);
  box-shadow: none;
}

.btn--ghost:hover {
  box-shadow: var(--shadow-subtle);
}

.btn--outline {
  --btn-bg: transparent;
  --btn-bg-hover: rgba(18, 184, 134, 0.08);
  --btn-color: var(--color-primary);
  --btn-border: rgba(18, 184, 134, 0.7);
  background: var(--btn-bg);
  box-shadow: none;
}

.btn--subtle {
  --btn-bg: rgba(246, 242, 234, 0.04);
  --btn-bg-hover: rgba(246, 242, 234, 0.08);
  --btn-color: var(--color-text);
  --btn-border: rgba(246, 242, 234, 0.16);
  box-shadow: none;
}

.btn--full {
  width: 100%;
}

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

/* =============================
 *  Components: Form Controls
 * ============================= */

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}

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

.input,
.textarea,
.select {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background-color: rgba(10, 12, 22, 0.96);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), transform var(--transition-fast);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--color-text-soft);
}

.input:focus-visible,
.textarea:focus-visible,
.select:focus-visible {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(18, 184, 134, 0.8), 0 12px 40px rgba(0, 0, 0, 0.7);
  background-color: rgba(11, 17, 30, 0.98);
}

.input[disabled],
.textarea[disabled],
.select[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.input--inline {
  max-width: 280px;
}

.help-text {
  font-size: var(--font-size-xs);
  color: var(--color-text-soft);
}

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

.input--error,
.textarea--error,
.select--error {
  border-color: var(--color-danger);
}

/* =============================
 *  Components: Card
 * ============================= */

.card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: var(--space-16);
  background: radial-gradient(circle at top, rgba(241, 194, 125, 0.09) 0, rgba(241, 194, 125, 0.0) 42%), linear-gradient(145deg, rgba(9, 14, 26, 0.98), rgba(12, 17, 32, 0.98));
  border: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.card--soft {
  background: linear-gradient(135deg, rgba(9, 12, 22, 0.96), rgba(20, 25, 40, 0.96));
  box-shadow: var(--shadow-subtle);
}

.card--highlight {
  border-color: rgba(241, 194, 125, 0.55);
  box-shadow: 0 0 0 1px rgba(241, 194, 125, 0.3), var(--shadow-elevated);
}

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

.card-title {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-4);
}

.card-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-soft);
}

.card-body {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.card-footer {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border-subtle);
}

/* =============================
 *  Media & Imagery Helpers
 * ============================= */

.media-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.media-cover img,
.media-cover picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-overlay-soft::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--color-overlay-strong), transparent 55%);
  pointer-events: none;
}

/* =============================
 *  Cinematic Atmosphere Helpers
 * ============================= */

.glow-ring {
  position: relative;
}

.glow-ring::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: conic-gradient(from 180deg, rgba(241, 194, 125, 0.7), rgba(18, 184, 134, 0.4), rgba(241, 194, 125, 0.4), rgba(18, 184, 134, 0.7));
  opacity: 0.35;
  filter: blur(12px);
  z-index: -1;
}

.chip-row {
  display: inline-flex;
  gap: 0.2rem;
}

.chip {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fff 0, #ffd18d 28%, #f1c27d 52%, #f08c68 82%, #050812 100%);
  box-shadow: 0 0 0 1px rgba(5, 8, 18, 0.9), 0 5px 14px rgba(0, 0, 0, 0.7);
}

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

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.mb-16 { margin-bottom: var(--space-16); }

.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }

.hidden { display: none !important; }

@media (min-width: 768px) {
  .hidden-md-up { display: none !important; }
}

@media (max-width: 767.98px) {
  .hidden-md-down { display: none !important; }
}

.opacity-soft {
  opacity: 0.7;
}

.z-top {
  position: relative;
  z-index: 10;
}

/* End of base.css */
