:root {
  --color-bg-primary: #0D1013;
  --color-bg-secondary: #1B2027;
  --color-surface-elevated: #2A313A;
  --color-text-primary: #F5F4F0;
  --color-text-secondary: #C5CBD3;
  --color-accent-gold: #C79B45;
  --color-accent-berry: #8A2F4C;
  --color-accent-emerald: #2E6A5A;
  --color-border-muted: #39424D;

  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  --fs-1: clamp(2.4rem, 4vw, 3.2rem);
  --fs-2: clamp(2rem, 3vw, 2.4rem);
  --fs-3: clamp(1.6rem, 2.4vw, 2rem);
  --fs-4: 1.5rem;
  --fs-5: 1.125rem;
  --fs-6: 1rem;
  --fs-7: 0.875rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 6rem;

  --radius-sm: 6px;

  --shadow-elevated: 0 2px 12px rgba(13,16,19,0.14);

  --container-max: 1200px;
  --gutter: 24px;
}

@media (max-width: 900px) {
  :root {
    --gutter: 16px;
  }
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--fs-6);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 150ms ease;
}

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

ul {
  list-style: none !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  color: var(--color-text-primary);
}

h1 { font-size: var(--fs-1); }
h2 { font-size: var(--fs-2); }
h3 { font-size: var(--fs-3); }
h4 { font-size: var(--fs-4); }
h5 { font-size: var(--fs-5); }
h6 { font-size: var(--fs-6); }

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
}

blockquote {
  margin-bottom: var(--space-4);
  padding-left: var(--space-4);
  border-left: 2px solid var(--color-accent-gold);
  color: var(--color-text-secondary);
}

ol,
ul {
  margin-bottom: var(--space-4);
}

li > ul,
li > ol {
  margin-top: var(--space-2);
}

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

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

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

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

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

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

.surface-elevated {
  background: var(--color-surface-elevated);
  box-shadow: var(--shadow-elevated);
}

.card {
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-sm);
  padding: var(--space-5);
}

.card > *:last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65em 1.4em;
  font-size: var(--fs-6);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: all 150ms ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent-gold);
  color: #0D1013;
}

.btn-primary:hover {
  background: transparent;
  color: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
}

.btn-secondary {
  background: var(--color-accent-berry);
  color: #fff;
}

.btn-secondary:hover {
  background: transparent;
  color: var(--color-accent-berry);
  border-color: var(--color-accent-berry);
}

.btn-ghost {
  background: transparent;
  border-color: var(--color-border-muted);
}

.btn-ghost:hover {
  border-color: var(--color-accent-gold);
  color: var(--color-accent-gold);
}

.input,
textarea,
select {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-sm);
  background: var(--color-bg-secondary);
  color: var(--color-text-primary);
  transition: border-color 150ms ease;
}

.input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent-gold);
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--fs-7);
  color: var(--color-text-secondary);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group:last-child {
  margin-bottom: 0;
}

.flex {
  display: flex;
  gap: var(--space-3);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.flex > * {
  min-width: 0;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  transition: background 200ms ease;
}

.header.scrolled {
  background: var(--color-bg-primary);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,16,19,0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}

img.hover-zoom {
  transition: transform 300ms ease, filter 300ms ease;
}

img.hover-zoom:hover {
  transform: scale(1.03);
  filter: contrast(1.05);
}