@font-face {
  font-family: "Bodoni Moda";
  src: local("Bodoni Moda Variable"), local("Bodoni Moda");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: local("Manrope Variable"), local("Manrope");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}

@font-face {
  font-family: "DM Mono";
  src: local("DM Mono Regular"), local("DM Mono");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --color-ivory: #faf8f1;
  --color-sand: #e9e0d2;
  --color-sage: #829786;
  --color-terracotta: #c98472;
  --color-lavender: #8c819e;
  --color-olive: #343d38;
  --color-white: #ffffff;

  --color-text: var(--color-olive);
  --color-text-muted: color-mix(in srgb, var(--color-olive) 76%, transparent);
  --color-border: color-mix(in srgb, var(--color-olive) 22%, transparent);
  --color-border-soft: color-mix(in srgb, var(--color-olive) 14%, transparent);
  --color-border-sage: color-mix(in srgb, var(--color-sage) 52%, transparent);
  --color-focus: var(--color-terracotta);

  --surface-page: var(--color-ivory);
  --surface-raised: var(--color-white);
  --surface-muted: var(--color-sand);
  --surface-sage: color-mix(in srgb, var(--color-sage) 18%, var(--color-ivory));
  --surface-lavender: color-mix(in srgb, var(--color-lavender) 14%, var(--color-ivory));

  --font-heading: "Bodoni Moda", Georgia, serif;
  --font-body: "Manrope", Arial, sans-serif;
  --font-mono: "DM Mono", "Courier New", monospace;

  --text-micro: 0.75rem;
  --text-meta: 0.875rem;
  --text-body: 1rem;
  --text-intro: 1.125rem;
  --text-card-title: 1.5rem;
  --text-section-title: clamp(2rem, 4vw, 2.25rem);
  --text-display: clamp(3rem, 7vw, 6.75rem);

  --leading-tight: 0.92;
  --leading-heading: 1.05;
  --leading-card: 1.15;
  --leading-body: 1.6;
  --leading-meta: 1.25;
  --leading-intro: 1.55;

  --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;
  --content-max: 50rem;
  --container-gutter: 2rem;

  --radius-none: 0;
  --radius-control: 0.25rem;
  --radius-panel: 0.75rem;
  --radius-feature: 1.5rem;
  --radius-round: 999px;

  --shadow-elevated: 0 12px 32px rgb(52 61 56 / 10%);

  --transition-fast: 180ms ease-out;
  --transition-base: 220ms ease-out;
}

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

html {
  min-width: 20rem;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 20rem;
  min-height: 100vh;
  margin: 0;
  overflow-x: clip;
  background: var(--surface-page);
  color: var(--color-text);
  font-family: var(--font-body);
  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,
details {
  min-width: 0;
}

img,
picture,
svg,
video,
canvas,
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,
input[type="button"],
input[type="submit"],
input[type="reset"],
label[for],
summary {
  cursor: pointer;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

button {
  border: 0;
  background: none;
}

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

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

legend {
  padding: 0;
}

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

caption {
  padding-block: var(--space-3);
  text-align: left;
}

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

th {
  font-weight: 700;
}

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

a {
  color: inherit;
  text-decoration-color: var(--color-sage);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--color-olive);
  text-decoration-color: var(--color-olive);
}

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

:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: color-mix(in srgb, var(--color-terracotta) 55%, var(--color-ivory));
  color: var(--color-olive);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-4);
  color: var(--color-olive);
  font-family: var(--font-heading);
  font-weight: 500;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-display);
  line-height: var(--leading-tight);
}

h2 {
  font-size: var(--text-section-title);
  line-height: var(--leading-heading);
}

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

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.2;
}

h5 {
  font-size: 1.125rem;
  line-height: 1.3;
}

h6 {
  font-family: var(--font-body);
  font-size: var(--text-meta);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: var(--leading-meta);
}

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

ul,
ol {
  margin: 0 0 var(--space-5);
  padding-left: 1.25em;
}

li::marker {
  color: var(--color-sage);
}

blockquote {
  margin: 0 0 var(--space-6);
  padding: var(--space-4) 0 var(--space-4) var(--space-5);
  border-left: 2px solid var(--color-sage);
  color: var(--color-olive);
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.25;
}

blockquote p {
  margin-bottom: 0;
}

cite {
  display: block;
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-style: normal;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

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

figcaption {
  margin-top: var(--space-3);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  letter-spacing: 0.08em;
  line-height: 1.45;
}

small {
  font-size: var(--text-meta);
}

strong,
b {
  font-weight: 700;
}

em,
i {
  font-style: italic;
}

abbr[title] {
  border-bottom: 1px dotted currentColor;
  cursor: help;
  text-decoration: none;
}

code,
kbd,
samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

code {
  padding: 0.1em 0.3em;
  background: var(--surface-muted);
}

pre {
  margin: 0 0 var(--space-5);
  padding: var(--space-4);
  overflow-x: auto;
  background: var(--surface-muted);
  font-family: var(--font-mono);
  font-size: var(--text-meta);
  line-height: 1.55;
}

pre code {
  padding: 0;
  background: transparent;
}

label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-meta);
  font-weight: 700;
  line-height: var(--leading-meta);
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: transparent;
  padding: 0.7rem 0.875rem;
  line-height: 1.4;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

select {
  appearance: auto;
}

textarea {
  padding-block: 0.75rem;
}

input::placeholder,
textarea::placeholder {
  color: color-mix(in srgb, var(--color-olive) 55%, transparent);
  opacity: 1;
}

input:hover,
select:hover,
textarea:hover {
  border-color: color-mix(in srgb, var(--color-olive) 42%, transparent);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-sage);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-sage) 22%, transparent);
  outline: none;
}

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

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

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

input[type="file"]::file-selector-button {
  margin-right: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-control);
  background: var(--surface-muted);
  color: var(--color-olive);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: var(--text-meta);
  font-weight: 700;
}

progress {
  width: 100%;
  height: 0.5rem;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-round);
  background: var(--surface-muted);
  color: var(--color-sage);
}

progress::-webkit-progress-bar {
  background: var(--surface-muted);
}

progress::-webkit-progress-value {
  background: var(--color-sage);
}

progress::-moz-progress-bar {
  background: var(--color-sage);
}

::backdrop {
  background: rgb(52 61 56 / 45%);
}

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

.content-column {
  width: min(100%, var(--content-max));
}

.section {
  padding-block: clamp(3.5rem, 8vw, 9rem);
}

.section--compact {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.surface-muted {
  background: var(--surface-muted);
}

.surface-sage {
  background: var(--surface-sage);
}

.surface-lavender {
  background: var(--surface-lavender);
}

.eyebrow,
.meta,
.mono-label {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow {
  display: block;
  margin-bottom: var(--space-3);
}

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

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

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

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

.stack--tight {
  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;
}

.cluster--tight {
  gap: var(--space-2);
}

.cluster--loose {
  gap: var(--space-5);
}

.flow > :where(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, figure, pre, table, details) {
  margin-top: 0;
}

.flow > :where(h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote, figure, pre, table, details):last-child {
  margin-bottom: 0;
}

.panel {
  min-width: 0;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-panel);
  background: var(--surface-raised);
  padding: clamp(var(--space-5), 4vw, var(--space-7));
}

.panel--sand {
  background: var(--surface-muted);
}

.panel--elevated {
  box-shadow: var(--shadow-elevated);
}

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

.card {
  min-width: 0;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-panel);
  background: var(--surface-raised);
  overflow: hidden;
}

.card__body {
  min-width: 0;
  padding: var(--space-5);
}

.button {
  display: inline-flex;
  min-width: 0;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  padding: 0.75rem 1.25rem;
  background: var(--color-terracotta);
  color: var(--color-olive);
  font-family: var(--font-body);
  font-size: var(--text-meta);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base), transform var(--transition-base);
}

.button:hover {
  background: color-mix(in srgb, var(--color-terracotta) 84%, var(--color-olive));
  color: var(--color-ivory);
  text-decoration: none;
}

.button:active {
  transform: translateY(1px);
}

.button--secondary {
  border-color: var(--color-border);
  background: transparent;
  color: var(--color-olive);
}

.button--secondary:hover {
  border-color: var(--color-olive);
  background: var(--color-olive);
  color: var(--color-white);
}

.button--dark {
  background: var(--color-olive);
  color: var(--color-white);
}

.button--dark:hover {
  background: color-mix(in srgb, var(--color-olive) 88%, black);
  color: var(--color-white);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: var(--space-3);
  left: var(--space-3);
  transform: translateY(-180%);
  border-radius: var(--radius-control);
  background: var(--color-olive);
  color: var(--color-white);
  padding: var(--space-3) var(--space-4);
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  transform: translateY(0);
}

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

@media (max-width: 63.99rem) {
  :root {
    --container-gutter: 1.5rem;
  }

  .section {
    padding-block: clamp(4.5rem, 9vw, 6rem);
  }
}

@media (max-width: 43.99rem) {
  :root {
    --container-gutter: 1.25rem;
    --text-display: clamp(2.6rem, 13vw, 4.25rem);
    --text-section-title: clamp(1.875rem, 9vw, 2.25rem);
  }

  h1,
  h2,
  h3 {
    text-wrap: pretty;
  }

  .section {
    padding-block: clamp(3.5rem, 12vw, 4.5rem);
  }

  .button {
    width: 100%;
  }
}

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