:root {
  --color-charcoal-950: #151513;
  --color-espresso-900: #241a16;
  --color-forest-800: #123a2c;
  --color-forest-700: #1d5942;
  --color-felt-500: #4e765c;
  --color-ivory-50: #f4ebdd;
  --color-ivory-200: #d9ccba;
  --color-brass-400: #b8975a;
  --color-brass-600: #8e6c35;
  --color-leather-700: #684433;
  --color-line-dark: #3b342d;
  --color-line-light: #c7b9a6;
  --color-success-soft: #bfd9c5;
  --color-danger-soft: #e8c3b8;

  --color-canvas: var(--color-charcoal-950);
  --color-surface: var(--color-espresso-900);
  --color-surface-feature: var(--color-forest-800);
  --color-surface-light: var(--color-ivory-50);
  --color-text: var(--color-ivory-200);
  --color-text-strong: var(--color-ivory-50);
  --color-text-dark: var(--color-charcoal-950);
  --color-text-muted: var(--color-ivory-200);
  --color-border: var(--color-line-dark);
  --color-border-light: var(--color-line-light);
  --color-accent: var(--color-brass-400);
  --color-accent-hover: var(--color-brass-600);

  --font-sans: "Manrope", Arial, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;

  --text-display: clamp(3rem, 6.4vw, 5.5rem);
  --text-h1: clamp(2.625rem, 5vw, 4.5rem);
  --text-h2: clamp(2.125rem, 3.5vw, 3.25rem);
  --text-h3: clamp(1.625rem, 2.2vw, 2.25rem);
  --text-h4: clamp(1.25rem, 1.5vw, 1.375rem);
  --text-lead: clamp(1.125rem, 1.2vw, 1.25rem);
  --text-body: 1rem;
  --text-small: 0.8125rem;
  --text-label: 0.6875rem;

  --leading-display: 0.98;
  --leading-heading: 1.04;
  --leading-body: 1.62;
  --leading-lead: 1.45;
  --leading-small: 1.45;
  --leading-label: 1.2;

  --tracking-display: -0.035em;
  --tracking-heading: -0.02em;
  --tracking-label: 0.12em;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 5.5rem;
  --space-10: 7.5rem;

  --container-max: 75rem;
  --gutter: 2rem;
  --section-space: 5.5rem;
  --hero-space: 7.5rem;

  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius-md: 0.25rem;
  --radius-full: 999px;

  --shadow-card: 0 6px 18px rgb(0 0 0 / 0.18);
  --shadow-panel: 0 16px 40px rgb(0 0 0 / 0.24);

  --transition-fast: 180ms ease-out;
  --focus-ring: 0 0 0 2px var(--color-brass-400);
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-canvas);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--leading-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
header,
footer,
section,
article,
aside,
nav,
figure,
form,
fieldset {
  min-width: 0;
}

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

img,
video {
  height: auto;
}

iframe {
  width: 100%;
  border: 0;
}

svg {
  fill: currentColor;
}

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

button,
select {
  text-transform: none;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

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

a {
  color: inherit;
  text-decoration-color: var(--color-brass-400);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

:focus-visible {
  outline: 2px solid var(--color-brass-400);
  outline-offset: 3px;
}

::selection {
  background: var(--color-brass-400);
  color: var(--color-charcoal-950);
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
figure,
dl,
ul,
ol,
hr {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text-strong);
  font-family: var(--font-serif);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  margin-bottom: var(--space-5);
  font-size: var(--text-h1);
  line-height: 1;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: var(--space-5);
  font-size: var(--text-h2);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-heading);
}

h3 {
  margin-bottom: var(--space-4);
  font-size: var(--text-h3);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

h4 {
  margin-bottom: var(--space-3);
  font-size: var(--text-h4);
  line-height: 1.15;
}

h5,
h6 {
  margin-bottom: var(--space-3);
  font-size: 1rem;
  line-height: 1.25;
}

p {
  margin-bottom: var(--space-4);
}

ul,
ol {
  margin-bottom: var(--space-4);
  padding-left: 1.25rem;
}

blockquote {
  margin-right: 0;
  margin-bottom: var(--space-5);
  margin-left: 0;
  padding-left: var(--space-5);
  border-left: 1px solid var(--color-brass-400);
  color: var(--color-ivory-50);
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
}

pre {
  margin-bottom: var(--space-4);
  overflow-x: auto;
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-ivory-50);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}

hr {
  height: 1px;
  margin-bottom: var(--space-6);
  border: 0;
  background: var(--color-border);
}

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

strong,
b {
  color: var(--color-ivory-50);
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

mark {
  padding: 0.05em 0.2em;
  background: var(--color-brass-400);
  color: var(--color-charcoal-950);
}

code,
kbd,
samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

label {
  display: inline-block;
  margin-bottom: var(--space-2);
  color: var(--color-ivory-50);
  font-size: var(--text-label);
  font-weight: 650;
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-label);
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-espresso-900);
  color: var(--color-ivory-50);
  line-height: 1.4;
}

input,
select {
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
}

textarea {
  padding: 0.75rem;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-ivory-200);
  opacity: 0.78;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--color-brass-600);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-brass-400);
  outline: 2px solid var(--color-brass-400);
  outline-offset: 3px;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  min-width: 1rem;
  min-height: 1rem;
  accent-color: var(--color-brass-400);
}

fieldset {
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  border: 1px solid var(--color-border);
}

legend {
  padding: 0 var(--space-2);
  color: var(--color-ivory-50);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

button {
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
}

button,
input,
select,
textarea {
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container-max));
  margin-inline: auto;
}

.container--wide {
  width: min(100% - (var(--gutter) * 2), 90rem);
  margin-inline: auto;
}

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

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

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

.surface--forest {
  background: var(--color-surface-feature);
  color: var(--color-ivory-200);
}

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

.surface--ivory :is(h1, h2, h3, h4, h5, h6, strong, b) {
  color: var(--color-text-dark);
}

.surface--ivory :is(a:hover, a:focus-visible) {
  color: var(--color-forest-800);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
  color: var(--color-accent);
  font-size: var(--text-label);
  font-weight: 650;
  letter-spacing: var(--tracking-label);
  line-height: var(--leading-label);
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.display {
  margin-bottom: var(--space-5);
  color: var(--color-text-strong);
  font-family: var(--font-serif);
  font-size: var(--text-display);
  font-weight: 600;
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}

.lead {
  margin-bottom: var(--space-5);
  font-size: var(--text-lead);
  line-height: var(--leading-lead);
}

.rule {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--color-border);
}

.rule--brass {
  background: var(--color-brass-400);
}

.card {
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.card > :last-child,
.panel > :last-child,
.stack > :last-child {
  margin-bottom: 0;
}

.panel {
  min-width: 0;
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-panel);
}

.stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-4);
}

.stack--compact {
  gap: var(--space-2);
}

.stack--loose {
  gap: var(--space-6);
}

.cluster {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

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

.actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

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

.button {
  display: inline-flex;
  min-height: 2.75rem;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.6875rem 1rem;
  border: 1px solid var(--color-forest-800);
  border-radius: var(--radius-sm);
  background: var(--color-forest-800);
  color: var(--color-ivory-50);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    background-color var(--transition-fast),
    color var(--transition-fast);
}

.button:hover {
  border-color: var(--color-forest-700);
  background: var(--color-forest-700);
  color: var(--color-ivory-50);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button--secondary {
  border-color: var(--color-brass-400);
  background: transparent;
  color: var(--color-ivory-50);
}

.button--secondary:hover {
  border-color: var(--color-brass-400);
  background: var(--color-forest-800);
  color: var(--color-ivory-50) !important;
}

.button--light {
  border-color: var(--color-charcoal-950);
  background: var(--color-ivory-50);
  color: var(--color-charcoal-950);
}

.button--light:hover {
  border-color: var(--color-brass-400);
  background: var(--color-brass-400);
  color: var(--color-charcoal-950);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-small);
  font-weight: 650;
  line-height: var(--leading-small);
}

.status::before {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background: currentColor;
  content: "";
}

.status--success {
  background: var(--color-success-soft);
  color: var(--color-forest-800);
}

.status--danger {
  background: var(--color-danger-soft);
  color: #5b211c;
}

.content-list {
  margin-bottom: var(--space-4);
  padding-left: 1.25rem;
}

.content-list > .surface--ivory input,
.surface--ivory select,
.surface--ivory textarea {
  border-color: var(--color-line-light);
  background: #fffaf1;
  color: var(--color-charcoal-950);
}

.surface--ivory input::placeholder,
.surface--ivory textarea::placeholder {
  color: #685f55;
}

.surface--ivory label {
  color: var(--color-charcoal-950);
}

@media (max-width: 63.9375rem) {
  :root {
    --gutter: 1.5rem;
    --section-space: 4rem;
    --hero-space: 5.5rem;
  }
}

@media (max-width: 47.9375rem) {
  :root {
    --gutter: 1.125rem;
    --section-space: 3rem;
    --hero-space: 4rem;
  }

  body {
    font-size: 0.9375rem;
  }

  h4 {
    font-size: 1.25rem;
  }

  .card {
    padding: var(--space-4);
  }

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

  .actions {
    align-items: stretch;
  }

  .actions .button {
    flex: 1 1 100%;
  }
}

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

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