:root {
  --color-void: #080A0F;
  --color-saloon: #101319;
  --color-leather: #171B24;
  --color-brass: #D4AF37;
  --color-brass-muted: #8C7355;
  --color-river-green: #0D281E;
  --color-smoke: #EAECEF;
  --color-amber: #FFB347;
  --color-void-rgb: 8, 10, 15;
  --color-saloon-rgb: 16, 19, 25;
  --color-leather-rgb: 23, 27, 36;
  --color-brass-rgb: 212, 175, 55;
  --color-brass-muted-rgb: 140, 115, 85;
  --color-river-green-rgb: 13, 40, 30;
  --color-smoke-rgb: 234, 236, 239;
  --color-amber-rgb: 255, 179, 71;

  --font-heading: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --text-display-size: clamp(2.5rem, 5vw + 1rem, 4rem);
  --text-display-line-height: 1.05;
  --text-display-tracking: -0.01em;
  --text-h1-size: clamp(2rem, 3.5vw + 0.75rem, 3rem);
  --text-h1-line-height: 1.1;
  --text-h1-tracking: -0.005em;
  --text-h2-size: clamp(1.625rem, 2.5vw + 0.5rem, 2.25rem);
  --text-h2-line-height: 1.15;
  --text-h2-tracking: 0;
  --text-h3-size: clamp(1.375rem, 1.75vw + 0.375rem, 1.625rem);
  --text-h3-line-height: 1.2;
  --text-h3-tracking: 0;
  --text-h4-size: 1.25rem;
  --text-h4-line-height: 1.25;
  --text-h4-tracking: 0.01em;
  --text-body-large-size: 1.125rem;
  --text-body-large-line-height: 1.6;
  --text-body-large-tracking: 0;
  --text-body-size: clamp(0.9375rem, 0.5vw + 0.875rem, 1rem);
  --text-body-line-height: 1.65;
  --text-body-tracking: 0;
  --text-small-size: 0.875rem;
  --text-small-line-height: 1.5;
  --text-small-tracking: 0.01em;
  --text-caption-size: 0.75rem;
  --text-caption-line-height: 1.4;
  --text-caption-tracking: 0.08em;
  --text-nav-size: 0.8125rem;
  --text-nav-line-height: 1;
  --text-nav-tracking: 0.14em;
  --text-button-size: 0.875rem;
  --text-button-line-height: 1;
  --text-button-tracking: 0.08em;

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

  --container-max: 75rem;
  --container-padding-mobile: 1.5rem;
  --container-padding-tablet: 2.5rem;
  --container-padding-desktop: 4rem;

  --section-gap-desktop: 6rem;
  --section-gap-tablet: 4rem;
  --section-gap-mobile: 3rem;

  --grid-gutter-desktop: 1.5rem;
  --grid-gutter-tablet: 1.25rem;
  --grid-gutter-mobile: 1rem;

  --surface-glass-fill: rgba(23, 27, 36, 0.72);
  --surface-glass-blur: 16px;
  --surface-glass-border: 1px solid rgba(212, 175, 55, 0.3);

  --border-hairline-brass: 1px solid rgba(212, 175, 55, 0.35);
  --border-hairline-brass-strong: 1px solid rgba(212, 175, 55, 0.4);
  --border-hairline-brass-muted: 1px solid rgba(140, 115, 85, 0.2);
  --border-hairline-brass-muted-strong: 1px solid rgba(140, 115, 85, 0.35);
  --border-divider: 1px solid rgba(140, 115, 85, 0.15);

  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 8px 24px rgba(0, 0, 0, 0.35);

  --radius-button: 2px;
  --radius-input: 2px;
  --radius-badge: 2px;
  --radius-card: 4px;
  --radius-panel: 4px;
  --radius-modal: 6px;
  --radius-image: 4px;
  --radius-pill: 999px;

  --focus-ring: 1px solid rgba(255, 179, 71, 0.4);
  --focus-ring-offset: 2px;

  --transition-fast: 180ms ease-out;
  --transition-medium: 240ms ease-out;
  --transition-slow: 320ms ease-out;
  --transition-reveal: 400ms ease-out;
}

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

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

body {
  min-height: 100vh;
  background-color: var(--color-void);
  color: var(--color-smoke);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-tracking);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-smoke);
  text-wrap: balance;
  overflow-wrap: break-word;
}

h1 {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  letter-spacing: var(--text-h1-tracking);
  margin-block-end: var(--space-lg);
}

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

h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-tracking);
  margin-block-end: var(--space-sm);
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line-height);
  letter-spacing: var(--text-h4-tracking);
  margin-block-end: var(--space-sm);
}

h5,
h6 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  letter-spacing: var(--text-small-tracking);
  margin-block-end: var(--space-xs);
}

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

blockquote {
  margin-block-end: var(--space-lg);
  padding-inline-start: var(--space-lg);
  border-inline-start: var(--border-hairline-brass);
  color: var(--color-smoke);
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
}

ul:not([class]),
ol:not([class]) {
  margin-block-end: var(--space-lg);
  padding-inline-start: var(--space-lg);
}

ul:not([class]) {
  list-style: disc;
}

ol:not([class]) {
  list-style: decimal;
}

ul:not([class]) li,
ol:not([class]) li {
  margin-block-end: var(--space-xs);
}

ul:not([class]) li:last-child,
ol:not([class]) li:last-child {
  margin-block-end: 0;
}

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

figcaption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-tracking);
  text-transform: uppercase;
  color: var(--color-brass-muted);
  margin-block-start: var(--space-xs);
}

hr {
  border: none;
  border-block-start: var(--border-divider);
  margin-block: var(--space-xl);
}

address {
  font-style: normal;
}

strong,
b {
  font-weight: 600;
}

small {
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  letter-spacing: var(--text-small-tracking);
}

code,
kbd,
samp,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.875em;
}

pre {
  background-color: var(--color-leather);
  border: var(--border-hairline-brass-muted);
  border-radius: var(--radius-panel);
  padding: var(--space-md);
  overflow-x: auto;
  margin-block-end: var(--space-lg);
}

mark {
  background-color: rgba(255, 179, 71, 0.25);
  color: var(--color-smoke);
  padding-inline: 0.2em;
}

abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
}

:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}

::selection {
  background-color: rgba(212, 175, 55, 0.3);
  color: var(--color-smoke);
}

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

.section {
  padding-block: var(--section-gap-mobile);
}

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

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

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

.surface-glass {
  background-color: var(--surface-glass-fill);
  -webkit-backdrop-filter: blur(var(--surface-glass-blur));
  backdrop-filter: blur(var(--surface-glass-blur));
  border: var(--surface-glass-border);
  border-radius: var(--radius-panel);
}

.panel {
  background-color: var(--color-leather);
  border: var(--border-hairline-brass-muted);
  border-radius: var(--radius-panel);
  padding: var(--space-lg);
}

.card {
  background-color: var(--color-leather);
  border: var(--border-hairline-brass-muted);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 0 24px rgba(255, 179, 71, 0.08);
}

.card > :last-child,
.panel > :last-child,
.surface-glass > :last-child {
  margin-block-end: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-button-size);
  line-height: var(--text-button-line-height);
  letter-spacing: var(--text-button-tracking);
  text-transform: uppercase;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-brass);
  color: var(--color-void);
  border: 1px solid var(--color-brass);
}

.btn-primary:hover {
  background-color: rgba(212, 175, 55, 0.85);
  border-color: rgba(212, 175, 55, 0.85);
}

.btn-primary:active {
  background-color: rgba(212, 175, 55, 0.7);
  border-color: rgba(212, 175, 55, 0.7);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-brass);
  border: 1px solid rgba(212, 175, 55, 0.4);
}

.btn-secondary:hover {
  border-color: var(--color-brass);
  color: var(--color-smoke);
}

.btn-secondary:active {
  border-color: var(--color-brass);
  background-color: rgba(212, 175, 55, 0.08);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-smoke);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  color: var(--color-brass);
  border-color: rgba(212, 175, 55, 0.3);
}

.btn-pill {
  border-radius: var(--radius-pill);
}

.btn-sm {
  min-height: 36px;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-caption-size);
  letter-spacing: var(--text-caption-tracking);
}

.btn-lg {
  min-height: 52px;
  padding: var(--space-md) var(--space-xl);
  font-size: var(--text-body-size);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  padding: var(--space-2xs) var(--space-sm);
  border: var(--border-hairline-brass);
  border-radius: var(--radius-badge);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-tracking);
  text-transform: uppercase;
  color: var(--color-brass);
  background-color: transparent;
}

.badge-pill {
  border-radius: var(--radius-pill);
}

.badge-amber {
  border-color: rgba(255, 179, 71, 0.4);
  color: var(--color-amber);
}

.badge-muted {
  border-color: var(--border-hairline-brass-muted);
  color: var(--color-brass-muted);
}

.divider {
  border: none;
  border-block-start: var(--border-divider);
  margin-block: 0;
}

.label {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-tracking);
  text-transform: uppercase;
  color: var(--color-brass-muted);
  margin-block-end: var(--space-xs);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: var(--space-sm) var(--space-md);
  background-color: transparent;
  border: none;
  border-block-end: var(--border-hairline-brass-muted);
  border-radius: var(--radius-input) var(--radius-input) 0 0;
  color: var(--color-smoke);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-tracking);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input::placeholder,
.select::placeholder,
.textarea::placeholder {
  color: rgba(234, 236, 239, 0.4);
}

.input:hover,
.select:hover,
.textarea:hover {
  border-block-end-color: rgba(140, 115, 85, 0.5);
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-block-end-color: var(--color-amber);
  box-shadow: 0 1px 0 0 var(--color-amber);
}

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

.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C7355' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  padding-inline-end: var(--space-xl);
  cursor: pointer;
}

.select option {
  background-color: var(--color-leather);
  color: var(--color-smoke);
}

.form-group {
  margin-block-end: var(--space-lg);
}

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

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-block-end: var(--space-lg);
}

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

.form-row:last-child {
  margin-block-end: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  clip-path: inset(50%) !important;
  left: 0 !important;
  top: 0 !important;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 9999;
  background-color: var(--color-brass);
  color: var(--color-void);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-button);
  font-weight: 600;
  font-size: var(--text-button-size);
  letter-spacing: var(--text-button-tracking);
  text-transform: uppercase;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

@media (min-width: 480px) {
  .container {
    padding-inline: var(--container-padding-tablet);
  }

  .section {
    padding-block: var(--section-gap-tablet);
  }
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--container-padding-desktop);
  }

  .section {
    padding-block: var(--section-gap-desktop);
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
