:root {
  --color-eucalyptus-deep: #1F3A32;
  --color-eucalyptus-mid: #2C4F44;
  --color-sandstone: #D9C7A7;
  --color-warm-ivory: #F6EFE3;
  --color-burnt-orange: #C25A2B;
  --color-dark-chocolate: #2A1B12;
  --color-brushed-bronze: #A87C4F;
  --color-bronze-soft: #8A6A45;
  --color-ivory-muted: #C9BFAE;
  --color-chocolate-soft: #5C4A3D;

  --font-heading: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;

  --text-display-size: clamp(2.75rem, 6vw, 5rem);
  --text-display-line-height: 1.02;
  --text-display-letter-spacing: -0.02em;
  --text-display-weight: 500;

  --text-h1-size: clamp(2.25rem, 4.5vw, 3.5rem);
  --text-h1-line-height: 1.08;
  --text-h1-letter-spacing: -0.015em;
  --text-h1-weight: 500;

  --text-h2-size: clamp(1.75rem, 3vw, 2.5rem);
  --text-h2-line-height: 1.15;
  --text-h2-letter-spacing: -0.01em;
  --text-h2-weight: 500;

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

  --text-h4-size: 0.8125rem;
  --text-h4-line-height: 1.2;
  --text-h4-letter-spacing: 0.12em;
  --text-h4-weight: 600;

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

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

  --text-body-small-size: 0.875rem;
  --text-body-small-line-height: 1.55;
  --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;

  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  --container-primary-max: 1200px;
  --container-wide-max: 1440px;
  --container-narrow-max: 720px;

  --container-padding-mobile: 24px;
  --container-padding-tablet: 40px;
  --container-padding-desktop: 64px;

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

  --grid-gutter-mobile: 16px;
  --grid-gutter-desktop: 24px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  --border-dark: 1px solid rgba(168, 124, 79, 0.4);
  --border-light: 1px solid rgba(92, 74, 61, 0.2);
  --border-divider: 1px solid rgba(138, 106, 69, 0.3);

  --shadow-overlay: 0 8px 24px rgba(42, 27, 18, 0.18);

  --focus-outline: 2px solid var(--color-burnt-orange);
  --focus-outline-offset: 2px;

  --transition-fast: 160ms 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);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  color: var(--color-dark-chocolate);
  background-color: var(--color-eucalyptus-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--text-h1-weight);
  color: inherit;
  line-height: var(--text-h1-line-height);
  letter-spacing: var(--text-h1-letter-spacing);
  margin-block-end: var(--space-md);
}

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

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

h3 {
  font-size: var(--text-h3-size);
  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);
  text-transform: uppercase;
}

p {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  margin-block-end: var(--space-md);
}

blockquote {
  margin-block-end: var(--space-md);
}

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

li {
  margin: 0;
  padding: 0;
}

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

figcaption {
  font-size: var(--text-body-small-size);
  line-height: var(--text-body-small-line-height);
  letter-spacing: var(--text-body-small-letter-spacing);
  color: var(--color-chocolate-soft);
  margin-block-start: var(--space-xs);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-md);
}

th,
td {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
}

th {
  font-family: var(--font-body);
  font-size: var(--text-h4-size);
  font-weight: var(--text-h4-weight);
  letter-spacing: var(--text-h4-letter-spacing);
  text-transform: uppercase;
  color: var(--color-chocolate-soft);
}

hr {
  border: none;
  border-top: var(--border-divider);
  margin-block: var(--space-xl);
}

code,
pre {
  font-family: "SF Mono", "Cascadia Code", "Consolas", monospace;
  font-size: 0.9em;
}

pre {
  overflow-x: auto;
  margin-block-end: var(--space-md);
  padding: var(--space-md);
  background-color: var(--color-eucalyptus-mid);
  color: var(--color-warm-ivory);
  border-radius: var(--radius-sm);
}

:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

::selection {
  background-color: var(--color-burnt-orange);
  color: var(--color-warm-ivory);
}

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

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

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

.section-dark {
  background-color: var(--color-eucalyptus-deep);
  color: var(--color-warm-ivory);
}

.section-mid {
  background-color: var(--color-eucalyptus-mid);
  color: var(--color-warm-ivory);
}

.section-sandstone {
  background-color: var(--color-sandstone);
  color: var(--color-dark-chocolate);
}

.section-ivory {
  background-color: var(--color-warm-ivory);
  color: var(--color-dark-chocolate);
}

.section-chocolate {
  background-color: var(--color-dark-chocolate);
  color: var(--color-warm-ivory);
}

.eyebrow {
  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);
  text-transform: uppercase;
  color: var(--color-burnt-orange);
  margin-block-end: var(--space-sm);
}

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

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

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

.text-caption {
  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);
}

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

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

.text-bronze {
  color: var(--color-brushed-bronze);
}

.text-orange {
  color: var(--color-burnt-orange);
}

.card {
  background-color: var(--color-eucalyptus-mid);
  color: var(--color-warm-ivory);
  border: var(--border-dark);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.card-light {
  background-color: var(--color-warm-ivory);
  color: var(--color-dark-chocolate);
  border: var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.card-sandstone {
  background-color: var(--color-sandstone);
  color: var(--color-dark-chocolate);
  border: var(--border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-burnt-orange);
  color: var(--color-warm-ivory);
  border: 1px solid var(--color-burnt-orange);
}

.btn-primary:hover {
  background-color: #A84A22;
  border-color: #A84A22;
}

.btn-secondary-dark {
  background-color: transparent;
  color: var(--color-warm-ivory);
  border: 1px solid var(--color-brushed-bronze);
}

.btn-secondary-dark:hover {
  border-color: var(--color-warm-ivory);
  color: var(--color-warm-ivory);
}

.btn-secondary-light {
  background-color: transparent;
  color: var(--color-dark-chocolate);
  border: 1px solid var(--color-chocolate-soft);
}

.btn-secondary-light:hover {
  border-color: var(--color-dark-chocolate);
  color: var(--color-dark-chocolate);
}

.tag {
  display: inline-block;
  padding: var(--space-2xs) var(--space-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-brushed-bronze);
  font-family: var(--font-body);
  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);
  text-transform: uppercase;
  color: var(--color-warm-ivory);
}

.tag-light {
  border-color: var(--color-chocolate-soft);
  color: var(--color-dark-chocolate);
}

.pull-quote {
  font-family: var(--font-heading);
  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);
  border-left: 3px solid var(--color-burnt-orange);
  padding-left: var(--space-lg);
  margin-block-end: var(--space-lg);
}

.image-frame {
  border-radius: var(--radius-md);
  border: 1px solid var(--color-brushed-bronze);
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scrim {
  position: relative;
}

.scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 58, 50, 0.85) 0%, rgba(31, 58, 50, 0) 60%);
  pointer-events: none;
  border-radius: inherit;
}

.flex {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  min-width: 0;
}

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

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

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

.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-start {
  justify-content: flex-start;
}

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

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

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

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

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

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

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

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

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