:root {
  --color-surface-default: #F8F5EF;
  --color-surface-elevated: #EEE5D9;
  --color-surface-contrast: #262220;
  --color-surface-light: #FFFFFF;

  --color-border-muted: #D9CFC3;

  --color-text-primary: #262220;
  --color-text-inverse: #F8F5EF;
  --color-text-muted: #5F5A54;

  --color-accent-gold: #C09345;
  --color-accent-burgundy: #7B3148;
  --color-accent-green: #44695D;

  --font-heading: "Playfair Display", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --fs-xxl: clamp(2.2rem, 4vw, 3.2rem);
  --fs-xl: clamp(1.8rem, 3vw, 2.4rem);
  --fs-lg: clamp(1.6rem, 2.5vw, 2rem);
  --fs-md: 1.6rem;
  --fs-sm: 1.2rem;
  --fs-xs: 1rem;

  --space-0: 0;
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 2rem;
  --space-4: 3.2rem;
  --space-5: 4.8rem;
  --space-6: 8rem;

  --container-max: 1200px;
  --container-pad: clamp(1rem, 3vw, 4rem);

  --radius-sm: 12px;
  --radius-pill: 24px;

  --transition-fast: 200ms ease;
  --transition-base: 300ms ease;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  line-height: 1.5;
  color: var(--color-text-primary);
  background: var(--color-surface-default);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

ul {
  list-style: none !important;
  padding: 0;
  margin: 0;
}

a {
  color: var(--color-accent-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 var(--space-3);
  letter-spacing: 0.02em;
}

h1 { font-size: var(--fs-xxl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }
h5 { font-size: var(--fs-sm); }
h6 { font-size: var(--fs-xs); }

p {
  margin: 0 0 var(--space-3);
  color: var(--color-text-primary);
}

small {
  font-size: 0.875em;
  color: var(--color-text-muted);
}

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

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

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

.surface {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-sm);
}

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

.surface-contrast {
  background: var(--color-surface-contrast);
  color: var(--color-text-inverse);
}

.stack > * + * {
  margin-top: var(--space-3);
}

.stack-lg > * + * {
  margin-top: var(--space-4);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

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

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

.flex-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

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

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75em 1.6em;
  border-radius: var(--radius-pill);
  background: var(--color-accent-gold);
  color: var(--color-text-primary);
  font-weight: 500;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.button:hover {
  transform: scale(1.04);
  box-shadow: 0 0 0 2px rgba(192, 147, 69, 0.25);
}

.button-secondary {
  background: var(--color-accent-green);
  color: var(--color-surface-light);
}

.input,
textarea,
select {
  width: 100%;
  padding: 0.75em 1em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-muted);
  background: var(--color-surface-light);
  transition: border var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 2px rgba(192, 147, 69, 0.2);
  outline: none;
}

.card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-muted);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: var(--color-accent-gold);
}

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

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

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

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

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

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

.bg-contrast {
  background: var(--color-surface-contrast);
  color: var(--color-text-inverse);
}

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

img.full-bleed {
  width: 100%;
  height: auto;
  object-fit: cover;
}

@media (max-width: 768px) {
  .section {
    padding-block: var(--space-4);
  }

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