:root {
  --color-forest-ink: #101b18;
  --color-forest-deep: #0a120f;
  --color-aubergine: #342336;
  --color-aged-copper: #b47752;
  --color-copper-highlight: #d09a73;
  --color-moss: #566653;
  --color-warm-porcelain: #e8ded0;
  --color-porcelain-soft: #d8ccbb;
  --color-smoked-glass: rgba(16, 27, 24, 0.72);
  --color-text-muted: #b8b0a4;
  --color-line-subtle: rgba(232, 222, 208, 0.18);

  --color-text: var(--color-warm-porcelain);
  --color-text-on-light: var(--color-forest-ink);
  --color-background: var(--color-forest-ink);
  --color-surface: var(--color-forest-ink);
  --color-surface-deep: var(--color-forest-deep);
  --color-surface-secondary: var(--color-aubergine);
  --color-surface-light: var(--color-warm-porcelain);
  --color-surface-soft: var(--color-porcelain-soft);
  --color-border: var(--color-line-subtle);
  --color-focus: var(--color-copper-highlight);

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

  --text-meta: 0.75rem;
  --text-small: 0.875rem;
  --text-base: 1rem;
  --text-lead: 1.125rem;
  --text-h5: 1.5rem;
  --text-h4: 2rem;
  --text-h3: 3rem;
  --text-h2: clamp(2.75rem, 5vw, 4.5rem);
  --text-display: clamp(2.75rem, 8vw, 7rem);
  --text-footer-display: clamp(2.625rem, 8vw, 7rem);

  --leading-meta: 1.333;
  --leading-small: 1.5;
  --leading-body: 1.625;
  --leading-lead: 1.556;
  --leading-heading-tight: 0.98;
  --leading-heading: 1.08;

  --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: 6rem;
  --space-10: 8rem;
  --space-11: 10rem;

  --container-max: 80rem;
  --container-padding: 2.5rem;
  --container-narrow: 42.5rem;
  --container-copy: 35rem;

  --radius-sharp: 0.125rem;
  --radius-block: 0.375rem;
  --radius-floating: 0.75rem;

  --shadow-deep: 0 1.5rem 5rem rgba(0, 0, 0, 0.28);
  --shadow-soft: 0 1rem 3rem rgba(0, 0, 0, 0.18);
  --shadow-inset-copper: inset 0 1px 0 rgba(255, 232, 210, 0.2);

  --glass-blur: blur(18px);
  --transition-fast: 220ms ease-out;
  --transition-base: 320ms ease-out;
  --transition-slow: 680ms ease-out;
}

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

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

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  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,
table,
blockquote,
pre {
  min-width: 0;
}

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

img,
video {
  height: auto;
}

svg {
  fill: currentColor;
}

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

button,
select {
  text-transform: none;
}

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

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sharp);
  background: transparent;
  color: var(--color-text);
  line-height: 1.4;
}

input,
select {
  min-height: 3rem;
  padding: 0.75rem 1rem;
}

textarea {
  padding: 0.75rem 1rem;
}

select {
  background-color: var(--color-forest-ink);
}

option {
  background: var(--color-forest-ink);
  color: var(--color-warm-porcelain);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 1;
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.125rem;
  min-height: 1.125rem;
  padding: 0;
  accent-color: var(--color-aged-copper);
}

input[type="file"] {
  min-height: auto;
  padding: var(--space-2);
}

label {
  display: inline-block;
  margin-block-end: var(--space-2);
  color: var(--color-warm-porcelain);
  font-size: var(--text-small);
  font-weight: 600;
  line-height: var(--leading-small);
}

fieldset {
  margin: 0 0 var(--space-5);
  padding: 0;
  border: 0;
}

legend {
  margin-block-end: var(--space-3);
  padding: 0;
  color: var(--color-warm-porcelain);
  font-family: var(--font-heading);
  font-size: var(--text-h5);
  font-weight: 600;
  line-height: var(--leading-heading);
}

a {
  color: inherit;
  text-decoration-color: rgba(180, 119, 82, 0.7);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition:
    color var(--transition-fast),
    text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--color-copper-highlight);
  text-decoration-color: currentColor;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-4);
  color: inherit;
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--leading-heading-tight);
  text-wrap: balance;
}

h1 {
  font-size: var(--text-display);
}

h2 {
  font-size: var(--text-h2);
}

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

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

h5 {
  font-size: var(--text-h5);
  line-height: 1.15;
}

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

p {
  margin: 0 0 var(--space-5);
  font-size: var(--text-base);
  line-height: var(--leading-body);
}

ul,
ol {
  margin: 0 0 var(--space-5);
  padding-inline-start: 1.25rem;
}

li {
  min-width: 0;
}

blockquote {
  margin: 0 0 var(--space-6);
  padding: var(--space-5) 0 var(--space-5) var(--space-5);
  border-inline-start: 1px solid var(--color-aged-copper);
  color: var(--color-warm-porcelain);
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
}

blockquote p {
  font: inherit;
}

cite {
  display: block;
  margin-block-start: var(--space-3);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: var(--leading-small);
  text-transform: uppercase;
}

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

figure {
  margin: 0 0 var(--space-5);
}

figcaption {
  margin-block-start: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

table {
  width: 100%;
  margin: 0 0 var(--space-5);
  border-collapse: collapse;
  border-spacing: 0;
  font-size: var(--text-small);
}

caption {
  margin-block-end: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-small);
  text-align: left;
}

th,
td {
  min-width: 0;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--color-warm-porcelain);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

pre {
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  overflow: auto;
  border: 1px solid var(--color-border);
  background: var(--color-forest-deep);
  color: var(--color-warm-porcelain);
}

details {
  margin: 0 0 var(--space-4);
}

summary {
  cursor: pointer;
}

::selection {
  background: var(--color-aged-copper);
  color: var(--color-forest-deep);
}

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

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

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

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

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

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

.surface-deep {
  background: var(--color-surface-deep);
  color: var(--color-warm-porcelain);
}

.surface-aubergine {
  background: var(--color-surface-secondary);
  color: var(--color-warm-porcelain);
}

.surface-glass {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-floating);
  background: var(--color-smoked-glass);
  box-shadow: var(--shadow-soft);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.eyebrow {
  margin: 0 0 var(--space-3);
  color: var(--color-aged-copper);
  font-family: var(--font-body);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: var(--leading-meta);
  text-transform: uppercase;
}

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

.muted {
  color: var(--color-text-muted);
}

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

.content-flow > :last-child,
.card-content > :last-child,
.panel-content > :last-child,
.compact-content > :last-child {
  margin-block-end: 0;
}

.content-list {
  display: grid;
  gap: var(--space-3);
  margin: 0 0 var(--space-5);
  padding: 0;
  list-style: none;
}

.content-list > li {
  padding-inline-start: var(--space-4);
  position: relative;
}

.content-list > li::before {
  position: absolute;
  inset-inline-start: 0;
  color: var(--color-aged-copper);
  content: "—";
}

.stack {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
}

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

.stack--xs {
  gap: var(--space-1);
}

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

.stack--md {
  gap: var(--space-4);
}

.stack--lg {
  gap: var(--space-5);
}

.stack--xl {
  gap: var(--space-7);
}

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

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

.cluster--start {
  justify-content: flex-start;
}

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

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

.button,
button.button,
input[type="submit"].button,
input[type="button"].button,
input[type="reset"].button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sharp);
  background: var(--color-aged-copper);
  box-shadow: var(--shadow-inset-copper);
  color: var(--color-forest-deep);
  font-family: var(--font-body);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-fast);
}

.button:hover {
  background: var(--color-copper-highlight);
  color: var(--color-forest-deep);
  transform: translateY(-1px);
}

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

.button--large {
  min-height: 3.25rem;
  padding-inline: var(--space-5);
}

.button--outline {
  border-color: rgba(180, 119, 82, 0.72);
  background: transparent;
  box-shadow: none;
  color: var(--color-warm-porcelain);
}

.button--outline:hover {
  border-color: var(--color-copper-highlight);
  background: rgba(180, 119, 82, 0.12);
  color: var(--color-copper-highlight);
}

.button--light {
  border-color: var(--color-warm-porcelain);
  background: var(--color-warm-porcelain);
  box-shadow: none;
  color: var(--color-forest-deep);
}

.button--light:hover {
  border-color: var(--color-porcelain-soft);
  background: var(--color-porcelain-soft);
  color: var(--color-forest-deep);
}

.link-accent {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-warm-porcelain);
  font-size: var(--text-meta);
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
}

.link-accent::after {
  width: 2rem;
  height: 1px;
  background: var(--color-aged-copper);
  content: "";
  transform-origin: left center;
  transition: transform var(--transition-base);
}

.link-accent:hover {
  color: var(--color-copper-highlight);
}

.link-accent:hover::after {
  transform: scaleX(1.35);
}

.form-field {
  display: grid;
  min-width: 0;
  gap: var(--space-2);
  margin-block-end: var(--space-4);
}

.form-hint,
.form-error {
  margin: 0;
  font-size: var(--text-small);
  line-height: var(--leading-small);
}

.form-hint {
  color: var(--color-text-muted);
}

.form-error {
  color: var(--color-copper-highlight);
}

@media (max-width: 767px) {
  :root {
    --container-padding: 1.25rem;
    --space-9: 4rem;
    --space-10: 6rem;
    --space-11: 7rem;
  }

  h3 {
    font-size: clamp(2.25rem, 8vw, 3rem);
  }

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

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

  .button,
  button.button,
  input[type="submit"].button,
  input[type="button"].button,
  input[type="reset"].button {
    min-height: 3rem;
  }
}

@media (max-width: 479px) {
  :root {
    --text-lead: 1.0625rem;
    --text-h5: 1.375rem;
    --text-h4: 1.75rem;
    --text-h3: 2.375rem;
  }

  body {
    font-size: 0.9375rem;
  }

  p {
    font-size: 0.9375rem;
  }

  th,
  td {
    padding: var(--space-3);
  }
}

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

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