:root {
  --color-charcoal-base: #121212;
  --color-charcoal-elevated: #1E1E1E;
  --color-deep-green: #1B3B2F;
  --color-deep-green-bright: #2A5C48;
  --color-burgundy: #5C1F2B;
  --color-burgundy-bright: #7A2E3C;
  --color-dark-wood: #2C1F14;
  --color-brass: #B08D57;
  --color-brass-muted: #8A6E4B;
  --color-ivory: #F5F0E8;
  --color-ivory-muted: #C9C0B4;
  --color-success: #3E7A5E;
  --color-error: #A33A3A;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

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

  --text-h1-size: clamp(2rem, 4vw, 2.75rem);
  --text-h1-line-height: 1.15;
  --text-h1-letter-spacing: -0.01em;
  --text-h1-weight: 700;

  --text-h2-size: clamp(1.625rem, 3vw, 2.125rem);
  --text-h2-line-height: 1.2;
  --text-h2-letter-spacing: 0;
  --text-h2-weight: 600;

  --text-h3-size: clamp(1.375rem, 2.5vw, 1.625rem);
  --text-h3-line-height: 1.25;
  --text-h3-letter-spacing: 0;
  --text-h3-weight: 600;

  --text-h4-size: 1.25rem;
  --text-h4-line-height: 1.3;
  --text-h4-letter-spacing: 0.01em;
  --text-h4-weight: 600;

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

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

  --text-body-small-size: 0.875rem;
  --text-body-small-line-height: 1.5;
  --text-body-small-letter-spacing: 0;
  --text-body-small-weight: 400;

  --text-caption-size: 0.75rem;
  --text-caption-line-height: 1.4;
  --text-caption-letter-spacing: 0.02em;
  --text-caption-weight: 500;

  --text-overline-size: 0.6875rem;
  --text-overline-line-height: 1.2;
  --text-overline-letter-spacing: 0.12em;
  --text-overline-weight: 600;

  --space-2: 2px;
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-24: 24px;
  --space-32: 32px;
  --space-48: 48px;
  --space-64: 64px;
  --space-96: 96px;
  --space-128: 128px;

  --container-standard: 1200px;
  --container-wide: 1440px;
  --container-padding-mobile: 24px;
  --container-padding-tablet: 48px;
  --container-padding-desktop: 64px;

  --section-padding-mobile: 48px;
  --section-padding-tablet: 64px;
  --section-padding-desktop: 96px;

  --radius-default: 2px;
  --radius-large: 4px;

  --border-thin: 1px;
  --border-focus: 2px;
  --focus-offset: 2px;

  --shadow-floating: 0 8px 24px rgba(0, 0, 0, 0.4);

  --transition-fast: 150ms ease-out;
  --transition-medium: 250ms ease-out;
  --transition-slow: 400ms ease-out;
}

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

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

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-charcoal-base);
  min-height: 100vh;
  -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;
  text-align: inherit;
}

a {
  color: var(--color-ivory);
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

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

ul,
ol {
  list-style: none;
}

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

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

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

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

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

p {
  margin-block-end: var(--space-16);
  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-muted);
}

blockquote {
  margin-block-end: var(--space-24);
  padding-inline-start: var(--space-24);
  border-inline-start: 2px solid var(--color-brass);
  color: var(--color-ivory);
  font-family: var(--font-heading);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
}

ul,
ol {
  margin-block-end: var(--space-24);
}

ul.content-list,
ol.content-list {
  padding-inline-start: var(--space-24);
}

ul.content-list {
  list-style: disc;
}

ol.content-list {
  list-style: decimal;
}

ul.content-list li,
ol.content-list li {
  margin-block-end: var(--space-8);
  color: var(--color-ivory-muted);
  line-height: var(--text-body-line-height);
}

ul.content-list li:last-child,
ol.content-list li:last-child {
  margin-block-end: 0;
}

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

figcaption {
  font-size: var(--text-caption-size);
  font-weight: var(--text-caption-weight);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-letter-spacing);
  color: var(--color-ivory-muted);
  margin-block-start: var(--space-8);
}

hr {
  border: none;
  border-top: var(--border-thin) solid var(--color-brass-muted);
  margin-block: var(--space-24);
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-dark-wood);
  border: var(--border-thin) solid var(--color-brass-muted);
  margin-block-end: var(--space-24);
}

th,
td {
  padding: var(--space-12) var(--space-16);
  text-align: start;
  border-bottom: var(--border-thin) solid var(--color-brass-muted);
  color: var(--color-ivory);
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
}

th {
  font-size: var(--text-overline-size);
  font-weight: var(--text-overline-weight);
  letter-spacing: var(--text-overline-letter-spacing);
  text-transform: uppercase;
  color: var(--color-brass);
  background-color: var(--color-charcoal-elevated);
}

tr:nth-child(even) td {
  background-color: var(--color-charcoal-base);
}

tr:nth-child(odd) td {
  background-color: var(--color-charcoal-elevated);
}

form {
  margin-block-end: var(--space-24);
}

label {
  display: block;
  font-size: var(--text-caption-size);
  font-weight: var(--text-caption-weight);
  letter-spacing: var(--text-caption-letter-spacing);
  color: var(--color-ivory-muted);
  margin-block-end: var(--space-8);
}

input,
textarea,
select {
  width: 100%;
  background-color: var(--color-charcoal-elevated);
  border: var(--border-thin) solid var(--color-brass-muted);
  border-radius: var(--radius-default);
  color: var(--color-ivory);
  padding: var(--space-12) var(--space-16);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-ivory-muted);
  opacity: 0.7;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--color-brass);
  box-shadow: 0 0 0 var(--border-focus) rgba(176, 141, 87, 0.35);
}

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

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-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='%23B08D57' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-16) center;
  padding-inline-end: var(--space-48);
}

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

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

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

.surface-card {
  background-color: var(--color-charcoal-elevated);
  border: var(--border-thin) solid var(--color-brass-muted);
  border-radius: var(--radius-default);
  padding: var(--space-24);
}

.surface-accent-green {
  background-color: var(--color-deep-green);
  color: var(--color-ivory);
}

.surface-accent-burgundy {
  background-color: var(--color-burgundy);
  color: var(--color-ivory);
}

.surface-dark-wood {
  background-color: var(--color-dark-wood);
  color: var(--color-ivory);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-default);
  font-size: var(--text-overline-size);
  font-weight: var(--text-overline-weight);
  letter-spacing: var(--text-overline-letter-spacing);
  text-transform: uppercase;
  padding: var(--space-12) var(--space-24);
  min-height: 44px;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: var(--border-focus) solid var(--color-brass);
  outline-offset: var(--focus-offset);
}

.btn-primary {
  background-color: var(--color-deep-green);
  color: var(--color-ivory);
  border: var(--border-thin) solid var(--color-deep-green);
}

.btn-primary:hover {
  background-color: var(--color-deep-green-bright);
  border-color: var(--color-deep-green-bright);
  color: var(--color-ivory);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-ivory);
  border: var(--border-thin) solid var(--color-brass);
}

.btn-secondary:hover {
  border-color: var(--color-brass);
  color: var(--color-ivory);
  background-color: rgba(176, 141, 87, 0.08);
}

.btn-tertiary {
  background-color: transparent;
  color: var(--color-ivory);
  border: none;
  padding-inline: 0;
  text-decoration: underline;
  text-decoration-color: var(--color-brass);
  text-underline-offset: 4px;
}

.btn-tertiary:hover {
  color: var(--color-ivory);
  text-decoration-color: var(--color-ivory);
}

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

.caption {
  font-size: var(--text-caption-size);
  font-weight: var(--text-caption-weight);
  letter-spacing: var(--text-caption-letter-spacing);
  line-height: var(--text-caption-line-height);
  color: var(--color-ivory-muted);
}

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

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

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

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

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

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

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

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

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

.flex-align-start {
  align-items: flex-start;
}

.flex-align-end {
  align-items: flex-end;
}

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

.flex-justify-between {
  justify-content: space-between;
}

.flex-justify-end {
  justify-content: flex-end;
}

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

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

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

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

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

.divider {
  border: none;
  border-top: var(--border-thin) solid var(--color-brass-muted);
  margin-block: var(--space-24);
}

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

:focus-visible {
  outline: var(--border-focus) solid var(--color-brass);
  outline-offset: var(--focus-offset);
}

::selection {
  background-color: var(--color-deep-green-bright);
  color: var(--color-ivory);
}

h1:last-child,
h2:last-child,
h3:last-child,
h4:last-child,
h5:last-child,
h6:last-child,
p:last-child,
blockquote:last-child,
ul:last-child,
ol:last-child,
figure:last-child,
table:last-child,
form:last-child,
hr:last-child {
  margin-block-end: 0;
}

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

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

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

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