:root {
  --color-velvet-noir: #12090d;
  --color-velvet-mulberry: #1f0f18;
  --color-velvet-plum: #38192a;
  --color-brass-gold: #ca8a04;
  --color-brass-gold-40: rgba(202, 138, 4, 0.4);
  --color-rose-crimson: #be123c;
  --color-ivory: #ffffff;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --text-display-size: clamp(2.25rem, 1.3rem + 3.2vw, 3.5rem);
  --text-display-line-height: 1.1;
  --text-display-weight: 700;
  --text-display-letter-spacing: -0.02em;

  --text-h1-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.5rem);
  --text-h1-line-height: 1.2;
  --text-h1-weight: 700;
  --text-h1-letter-spacing: -0.01em;

  --text-h2-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  --text-h2-line-height: 1.3;
  --text-h2-weight: 600;
  --text-h2-letter-spacing: 0em;

  --text-h3-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.5rem);
  --text-h3-line-height: 1.4;
  --text-h3-weight: 600;
  --text-h3-letter-spacing: 0.01em;

  --text-body-large-size: 1.125rem;
  --text-body-large-line-height: 1.6;
  --text-body-large-weight: 400;
  --text-body-large-letter-spacing: 0.01em;

  --text-body-size: 1rem;
  --text-body-line-height: 1.6;
  --text-body-weight: 400;
  --text-body-letter-spacing: 0.01em;

  --text-caption-size: 0.875rem;
  --text-caption-line-height: 1.5;
  --text-caption-weight: 500;
  --text-caption-letter-spacing: 0.02em;

  --text-overline-size: 0.75rem;
  --text-overline-line-height: 1.4;
  --text-overline-weight: 600;
  --text-overline-letter-spacing: 0.08em;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --container-max: 75rem;
  --container-padding: 2rem;

  --surface-card: var(--color-velvet-mulberry);
  --surface-elevated: var(--color-velvet-plum);

  --border-subtle: 1px solid var(--color-brass-gold-40);
  --border-accent: 2px solid var(--color-brass-gold);

  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-modal: 0 8px 24px rgba(0, 0, 0, 0.4);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --transition-fast: 200ms ease-in-out;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  color: var(--color-ivory);
  background-color: var(--color-velvet-noir);
  min-height: 100vh;
  min-width: 320px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-ivory);
  margin-block-end: var(--space-md);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  font-weight: var(--text-h1-weight);
  letter-spacing: var(--text-h1-letter-spacing);
}

h2 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--text-h2-weight);
  letter-spacing: var(--text-h2-letter-spacing);
}

h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
  letter-spacing: var(--text-h3-letter-spacing);
}

h4,
h5,
h6 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: 600;
  letter-spacing: 0.01em;
}

p {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  margin-block-end: var(--space-md);
}

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

a:hover {
  color: var(--color-ivory);
}

a:focus-visible {
  outline: 2px solid var(--color-brass-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

ul,
ol {
  margin-block-end: var(--space-md);
  padding-inline-start: 1.25rem;
}

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

ol {
  list-style: decimal;
  padding-inline-start: 1.25rem;
}

li {
  line-height: var(--text-body-line-height);
}

blockquote {
  margin-block-end: var(--space-md);
  padding-inline-start: var(--space-lg);
  border-inline-start: 2px solid var(--color-brass-gold);
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
}

figure {
  margin-block-end: var(--space-md);
}

figcaption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-letter-spacing);
  color: rgba(255, 255, 255, 0.7);
  margin-block-start: var(--space-xs);
}

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

img {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-brass-gold-40);
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  min-height: 44px;
  min-width: 44px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-brass-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

input,
textarea,
select {
  background-color: var(--color-velvet-mulberry);
  border: 1px solid var(--color-brass-gold-40);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--color-ivory);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
  min-height: 44px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-brass-gold);
  outline: none;
}

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

label {
  font-size: var(--text-overline-size);
  line-height: var(--text-overline-line-height);
  font-weight: var(--text-overline-weight);
  letter-spacing: var(--text-overline-letter-spacing);
  text-transform: uppercase;
  color: var(--color-brass-gold);
  display: block;
  margin-block-end: var(--space-xs);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-md);
}

th,
td {
  padding: var(--space-sm) var(--space-md);
  text-align: start;
  border-block-end: 1px solid var(--color-brass-gold-40);
}

th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-brass-gold);
}

hr {
  border: none;
  border-block-start: 1px solid var(--color-brass-gold-40);
  margin-block: var(--space-xl);
}

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

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

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

.surface-card {
  background-color: var(--surface-card);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}

.surface-elevated {
  background-color: var(--surface-elevated);
  border: var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}

.overline {
  font-size: var(--text-overline-size);
  line-height: var(--text-overline-line-height);
  font-weight: var(--text-overline-weight);
  letter-spacing: var(--text-overline-letter-spacing);
  text-transform: uppercase;
  color: var(--color-brass-gold);
  display: block;
  margin-block-end: var(--space-sm);
}

.caption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  font-weight: var(--text-caption-weight);
  letter-spacing: var(--text-caption-letter-spacing);
  color: rgba(255, 255, 255, 0.7);
}

.body-large {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  font-weight: var(--text-body-large-weight);
  letter-spacing: var(--text-body-large-letter-spacing);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: var(--text-body-size);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
  min-height: 44px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    background-color var(--transition-fast), border-color var(--transition-fast),
    color var(--transition-fast);
}

.btn--primary {
  background-color: var(--color-rose-crimson);
  color: var(--color-ivory);
  border: 1px solid var(--color-rose-crimson);
}

.btn--primary:hover {
  background-color: #d61a4a;
  border-color: #d61a4a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(190, 18, 60, 0.4);
}

.btn--primary:active {
  transform: scale(0.98);
  box-shadow: none;
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-brass-gold);
  border: 1px solid var(--color-brass-gold);
}

.btn--secondary:hover {
  background-color: rgba(202, 138, 4, 0.1);
  border-color: var(--color-brass-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(202, 138, 4, 0.25);
}

.btn--secondary:active {
  transform: scale(0.98);
  box-shadow: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-brass-gold);
  font-size: var(--text-overline-size);
  line-height: var(--text-overline-line-height);
  font-weight: var(--text-overline-weight);
  letter-spacing: var(--text-overline-letter-spacing);
  text-transform: uppercase;
  color: var(--color-brass-gold);
  background-color: rgba(202, 138, 4, 0.08);
}

.nav-toggle {
  flex-direction: column;
}

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

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

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

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

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

.flex--nowrap {
  flex-wrap: nowrap;
}

.grid {
  display: grid;
  gap: 2rem;
}

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

.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1.5rem;
  }

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

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

  .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 1rem;
  }

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

  .surface-card,
  .surface-elevated {
    padding: var(--space-md);
  }
}
html, body {
  overflow-x: clip;
  max-width: 100%;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}
