:root {
  --color-plum-900: #1E1018;
  --color-plum-800: #2A1822;
  --color-plum-700: #3D2431;
  --color-cream-100: #F4EBDD;
  --color-cream-200: #D9C9B6;
  --color-cream-50: #FBF6EC;
  --color-ink-900: #241820;
  --color-copper-500: #B87333;
  --color-copper-300: #D9A066;
  --color-copper-700: #8A5420;
  --color-felt-700: #2F4A3E;
  --color-success-600: #3E7A5A;
  --color-warning-600: #B07A2A;
  --color-danger-600: #A33A3A;
  --color-border-light: rgba(36, 24, 32, 0.12);
  --color-shadow-overlay: rgba(30, 16, 24, 0.28);

  --font-heading: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, serif;

  --text-display-size: clamp(3rem, 6vw, 5.5rem);
  --text-display-line-height: 0.98;
  --text-display-letter-spacing: -0.02em;
  --text-h1-size: clamp(2.25rem, 4vw, 3.5rem);
  --text-h1-line-height: 1.05;
  --text-h2-size: clamp(1.75rem, 2.6vw, 2.5rem);
  --text-h2-line-height: 1.12;
  --text-h3-size: clamp(1.25rem, 1.8vw, 1.6rem);
  --text-h3-line-height: 1.2;
  --text-h4-size: 1.125rem;
  --text-h4-line-height: 1.3;
  --text-h4-letter-spacing: 0.01em;
  --text-body-large-size: 1.125rem;
  --text-body-large-line-height: 1.7;
  --text-body-size: 1rem;
  --text-body-line-height: 1.7;
  --text-small-size: 0.875rem;
  --text-small-line-height: 1.55;
  --text-caption-size: 0.75rem;
  --text-caption-line-height: 1.45;
  --text-caption-letter-spacing: 0.08em;
  --text-button-size: 0.9375rem;
  --text-button-line-height: 1;
  --text-button-letter-spacing: 0.04em;

  --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-max: 1200px;
  --gutter-mobile: 20px;
  --gutter-tablet: 32px;
  --gutter-desktop: 48px;

  --radius-0: 0px;
  --radius-2: 2px;
  --radius-4: 4px;
  --radius-8: 8px;

  --shadow-overlay: 0 12px 32px var(--color-shadow-overlay);

  --transition-fast: 180ms ease-out;
  --transition-medium: 220ms 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;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-cream-100);
  background-color: var(--color-plum-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  min-height: 44px;
}

a {
  color: var(--color-copper-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-copper-300);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-copper-300);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  color: inherit;
  line-height: 1.2;
}

h1 {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  margin-block-end: var(--space-24);
}

h2 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  margin-block-end: var(--space-24);
}

h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  margin-block-end: var(--space-16);
}

h4 {
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line-height);
  letter-spacing: var(--text-h4-letter-spacing);
  margin-block-end: var(--space-12);
}

p {
  margin-block-end: var(--space-16);
}

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

blockquote {
  margin-block-end: var(--space-16);
  padding-inline-start: var(--space-24);
  border-inline-start: 1px solid var(--color-copper-500);
  font-style: italic;
}

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

figcaption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-letter-spacing);
  text-transform: uppercase;
  color: var(--color-cream-200);
  margin-block-start: var(--space-8);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  text-align: start;
  padding: var(--space-12) var(--space-16);
  border-bottom: 1px solid var(--color-plum-700);
  vertical-align: top;
}

th {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-letter-spacing);
  text-transform: uppercase;
  color: var(--color-cream-200);
  font-weight: 500;
}

label {
  display: block;
  font-size: var(--text-small-size);
  line-height: var(--text-small-line-height);
  color: var(--color-cream-200);
  margin-block-end: var(--space-8);
}

input,
textarea,
select {
  width: 100%;
  padding: var(--space-12) var(--space-16);
  border: 1px solid var(--color-plum-700);
  border-radius: var(--radius-2);
  background-color: var(--color-plum-800);
  color: var(--color-cream-100);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  transition: border-color var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-cream-200);
  opacity: 0.7;
}

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

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='%23D9C9B6' stroke-width='1.5' 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);
}

hr {
  border: none;
  border-top: 1px solid var(--color-plum-700);
  margin-block: var(--space-32);
}

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

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

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

.surface-dark {
  background-color: var(--color-plum-900);
  color: var(--color-cream-100);
}

.surface-elevated {
  background-color: var(--color-plum-800);
  color: var(--color-cream-100);
  border: 1px solid var(--color-plum-700);
  border-radius: var(--radius-4);
  padding: var(--space-24);
}

.surface-light {
  background-color: var(--color-cream-50);
  color: var(--color-ink-900);
}

.surface-light-card {
  background-color: var(--color-cream-50);
  color: var(--color-ink-900);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-4);
  padding: var(--space-24);
}

.surface-light-card p,
.surface-light-card h1,
.surface-light-card h2,
.surface-light-card h3,
.surface-light-card h4,
.surface-light-card h5,
.surface-light-card h6 {
  color: var(--color-ink-900);
}

.surface-light-card a {
  color: var(--color-copper-700);
}

.surface-light-card a:hover {
  color: var(--color-copper-500);
}

.surface-light-card figcaption {
  color: var(--color-ink-900);
  opacity: 0.7;
}

.surface-light-card input,
.surface-light-card textarea,
.surface-light-card select {
  background-color: var(--color-cream-50);
  border-color: var(--color-border-light);
  color: var(--color-ink-900);
}

.surface-light-card input::placeholder,
.surface-light-card textarea::placeholder {
  color: var(--color-ink-900);
  opacity: 0.5;
}

.surface-light-card label {
  color: var(--color-ink-900);
  opacity: 0.8;
}

.surface-light-card th,
.surface-light-card td {
  border-bottom-color: var(--color-border-light);
}

.surface-light-card th {
  color: var(--color-ink-900);
  opacity: 0.7;
}

.surface-light-card hr {
  border-top-color: var(--color-border-light);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-4);
  font-family: var(--font-body);
  font-size: var(--text-button-size);
  line-height: var(--text-button-line-height);
  letter-spacing: var(--text-button-letter-spacing);
  font-weight: 500;
  text-decoration: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.btn-primary {
  background-color: var(--color-copper-500);
  color: var(--color-plum-900);
  border: 1px solid var(--color-copper-500);
}

.btn-primary:hover {
  background-color: var(--color-copper-700);
  border-color: var(--color-copper-700);
  color: var(--color-plum-900);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-cream-100);
  border: 1px solid var(--color-cream-200);
}

.btn-secondary:hover {
  border-color: var(--color-copper-300);
  color: var(--color-copper-300);
}

.btn-text {
  background: none;
  border: none;
  color: var(--color-copper-500);
  padding: var(--space-8) var(--space-4);
  min-height: 44px;
}

.btn-text:hover {
  color: var(--color-copper-300);
  text-decoration: underline;
}

.btn-light {
  background-color: var(--color-copper-700);
  color: var(--color-cream-50);
  border: 1px solid var(--color-copper-700);
}

.btn-light:hover {
  background-color: var(--color-copper-500);
  border-color: var(--color-copper-500);
  color: var(--color-cream-50);
}

.chip {
  display: inline-block;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-2);
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-letter-spacing);
  text-transform: uppercase;
  font-weight: 500;
}

.chip-felt {
  background-color: var(--color-felt-700);
  color: var(--color-cream-100);
}

.chip-success {
  background-color: var(--color-success-600);
  color: var(--color-cream-100);
}

.chip-warning {
  background-color: var(--color-warning-600);
  color: var(--color-plum-900);
}

.chip-danger {
  background-color: var(--color-danger-600);
  color: var(--color-cream-100);
}

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

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

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

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

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

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

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

.flex-1 {
  flex: 1 1 0%;
  min-width: 0;
}

.flex-auto {
  flex: 0 0 auto;
}

.flex-grow {
  flex: 1 1 auto;
  min-width: 0;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

@media (min-width: 768px) {
  .section-tight {
    padding-block: var(--space-64);
  }
}

.section-flush {
  padding-block: 0;
}

.display {
  font-family: var(--font-heading);
  font-size: var(--text-display-size);
  line-height: var(--text-display-line-height);
  letter-spacing: var(--text-display-letter-spacing);
  font-weight: 500;
  color: var(--color-cream-100);
  margin-block-end: var(--space-24);
}

.caption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-letter-spacing);
  text-transform: uppercase;
  color: var(--color-cream-200);
}

.caption-light {
  color: var(--color-ink-900);
  opacity: 0.7;
}

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

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

.text-copper {
  color: var(--color-copper-500);
}

.text-copper-light {
  color: var(--color-copper-300);
}

.text-copper-dark {
  color: var(--color-copper-700);
}

.text-cream-secondary {
  color: var(--color-cream-200);
}

.text-ink {
  color: var(--color-ink-900);
}

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

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

.text-uppercase {
  text-transform: uppercase;
}

.text-italic {
  font-style: italic;
}

.text-tabular {
  font-variant-numeric: tabular-nums;
}

.rule {
  border: none;
  border-top: 1px solid var(--color-plum-700);
  margin-block: var(--space-32);
}

.rule-light {
  border-top-color: var(--color-border-light);
}

.rule-copper {
  border-top-color: var(--color-copper-500);
  width: 48px;
  margin-block: var(--space-24);
}

.rule-copper-light {
  border-top-color: var(--color-copper-300);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-16);
  z-index: 1000;
  background-color: var(--color-copper-500);
  color: var(--color-plum-900);
  padding: var(--space-12) var(--space-24);
  border-radius: var(--radius-4);
  font-size: var(--text-button-size);
  line-height: var(--text-button-line-height);
  letter-spacing: var(--text-button-letter-spacing);
  font-weight: 500;
  transition: top var(--transition-fast);
}

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

:last-child {
  margin-block-end: 0;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}