:root {
  --color-cream: #F5F0E6;
  --color-cream-bright: #FCFAF5;
  --color-walnut: #4A3728;
  --color-emerald: #1B5E20;
  --color-burgundy: #800020;
  --color-charcoal: #36454F;
  --color-white: #FFFFFF;
  --color-cream-dark: #E5DCCB;

  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;

  --text-display: 56px;
  --text-h1: 44px;
  --text-h2: 34px;
  --text-h3: 26px;
  --text-h4: 20px;
  --text-body: 16px;
  --text-small: 14px;
  --text-caption: 12px;

  --leading-display: 1.1;
  --leading-h1: 1.2;
  --leading-h2: 1.3;
  --leading-h3: 1.4;
  --leading-h4: 1.4;
  --leading-body: 1.6;
  --leading-small: 1.5;
  --leading-caption: 1.4;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;
  --space-9: 128px;

  --container-max: 1200px;
  --section-padding-desktop: 80px;
  --section-padding-mobile: 48px;

  --radius-card: 8px;
  --radius-button: 4px;
  --radius-image: 4px;
  --radius-modal: 12px;
  --radius-input: 4px;

  --border-width: 1px;
  --border-color: var(--color-cream-dark);

  --shadow-soft: 0 2px 8px rgba(54, 69, 79, 0.06);
  --shadow-medium: 0 4px 16px rgba(54, 69, 79, 0.08);
  --shadow-elevated: 0 8px 24px rgba(54, 69, 79, 0.1);

  --transition-fast: 0.2s ease;
  --focus-ring: 2px solid var(--color-emerald);
  --focus-ring-offset: 2px;

  --letter-spacing-heading: 0.02em;
}

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

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

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

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

h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  letter-spacing: 0;
  margin-block-end: var(--space-3);
}

h5, h6 {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-block-end: var(--space-2);
}

p {
  margin-block-end: var(--space-4);
  line-height: var(--leading-body);
}

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

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

ul:last-child,
ol:last-child {
  margin-block-end: 0;
}

blockquote {
  margin-block-end: var(--space-4);
  padding-inline-start: var(--space-4);
  border-inline-start: 3px solid var(--color-burgundy);
  color: var(--color-walnut);
  font-style: italic;
}

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

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

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

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

a {
  color: var(--color-emerald);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-burgundy);
}

a:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-button);
}

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

img {
  border-radius: var(--radius-image);
}

svg {
  fill: currentColor;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

input,
select,
textarea {
  background-color: var(--color-cream-bright);
  border: none;
  border-bottom: var(--border-width) solid var(--color-cream-dark);
  border-radius: var(--radius-input) var(--radius-input) 0 0;
  padding: var(--space-2) var(--space-3);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-bottom-color: var(--color-emerald);
  box-shadow: 0 1px 0 0 var(--color-emerald);
}

input::placeholder,
textarea::placeholder {
  color: rgba(54, 69, 79, 0.6);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-button);
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

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

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

th, td {
  padding: var(--space-2) var(--space-3);
  text-align: start;
  border-bottom: var(--border-width) solid var(--color-cream-dark);
}

th {
  font-weight: 700;
  color: var(--color-walnut);
}

hr {
  border: none;
  border-top: var(--border-width) solid var(--color-cream-dark);
  margin-block: var(--space-5);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background-color: var(--color-emerald);
  color: var(--color-white);
  font-weight: 700;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-button);
  text-decoration: none;
  text-underline-offset: 0;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  min-height: 44px;
}

.btn:hover {
  background-color: #145018;
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-emerald);
  border: var(--border-width) solid var(--color-emerald);
}

.btn-secondary:hover {
  background-color: var(--color-emerald);
  color: var(--color-white);
}

.btn-burgundy {
  background-color: var(--color-burgundy);
}

.btn-burgundy:hover {
  background-color: #66001a;
}

.btn-walnut {
  background-color: var(--color-walnut);
}

.btn-walnut:hover {
  background-color: #3a2b1e;
}

.card {
  border: var(--border-width) solid var(--color-cream-dark);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-4);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

.card > :last-child {
  margin-block-end: 0;
}

.surface-dark {
  background-color: var(--color-walnut);
  color: var(--color-cream);
}

.surface-dark h1,
.surface-dark h2,
.surface-dark h3,
.surface-dark h4,
.surface-dark h5,
.surface-dark h6 {
  color: var(--color-cream-bright);
}

.surface-dark a {
  color: var(--color-cream-bright);
}

.surface-dark a:hover {
  color: var(--color-cream-dark);
}

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

.surface-emerald h1,
.surface-emerald h2,
.surface-emerald h3,
.surface-emerald h4,
.surface-emerald h5,
.surface-emerald h6 {
  color: var(--color-white);
}

.surface-emerald a {
  color: var(--color-white);
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.surface-emerald a:hover {
  color: var(--color-cream-dark);
}

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

.surface-burgundy h1,
.surface-burgundy h2,
.surface-burgundy h3,
.surface-burgundy h4,
.surface-burgundy h5,
.surface-burgundy h6 {
  color: var(--color-white);
}

.surface-burgundy a {
  color: var(--color-white);
}

.surface-burgundy a:hover {
  color: var(--color-cream-dark);
}

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

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

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

.section-heading {
  margin-block-end: var(--space-5);
}

.section-heading::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--color-burgundy);
  margin-block-end: var(--space-3);
  border-radius: var(--radius-button);
}

.section-heading h1,
.section-heading h2,
.section-heading h3 {
  margin-block-end: var(--space-2);
}

.section-heading p {
  margin-block-end: 0;
  color: var(--color-charcoal);
}

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

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

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

.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-grow {
  flex-grow: 1;
  flex-shrink: 1;
  min-width: 0;
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-4);
}

.grid-auto > * {
  min-width: 0;
}

.list-unstyled {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
}

.list-inline {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.list-inline > li {
  margin-block-end: 0;
}

.content-list {
  list-style: disc;
  padding-inline-start: var(--space-4);
  margin-block-end: var(--space-4);
}

.content-list > li {
  margin-block-end: var(--space-2);
}

.content-list > li:last-child {
  margin-block-end: 0;
}

.content-list:last-child {
  margin-block-end: 0;
}

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

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

.text-display {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--letter-spacing-heading);
  color: var(--color-walnut);
  font-weight: 600;
}

.text-h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  letter-spacing: var(--letter-spacing-heading);
  color: var(--color-walnut);
  font-weight: 600;
}

.text-h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  letter-spacing: var(--letter-spacing-heading);
  color: var(--color-walnut);
  font-weight: 600;
}

.text-h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  letter-spacing: var(--letter-spacing-heading);
  color: var(--color-walnut);
  font-weight: 600;
}

.text-h4 {
  font-family: var(--font-body);
  font-size: var(--text-h4);
  line-height: var(--leading-h4);
  color: var(--color-walnut);
  font-weight: 700;
}

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

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

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

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

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

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

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

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

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

.mt-1 { margin-block-start: var(--space-1); }
.mt-2 { margin-block-start: var(--space-2); }
.mt-3 { margin-block-start: var(--space-3); }
.mt-4 { margin-block-start: var(--space-4); }
.mt-5 { margin-block-start: var(--space-5); }
.mt-6 { margin-block-start: var(--space-6); }
.mt-7 { margin-block-start: var(--space-7); }
.mt-8 { margin-block-start: var(--space-8); }
.mt-9 { margin-block-start: var(--space-9); }

.mb-1 { margin-block-end: var(--space-1); }
.mb-2 { margin-block-end: var(--space-2); }
.mb-3 { margin-block-end: var(--space-3); }
.mb-4 { margin-block-end: var(--space-4); }
.mb-5 { margin-block-end: var(--space-5); }
.mb-6 { margin-block-end: var(--space-6); }
.mb-7 { margin-block-end: var(--space-7); }
.mb-8 { margin-block-end: var(--space-8); }
.mb-9 { margin-block-end: var(--space-9); }

.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

@media (max-width: 1024px) {
  :root {
    --text-display: 48px;
    --text-h1: 38px;
    --text-h2: 30px;
    --text-h3: 24px;
    --text-h4: 19px;
  }
}

@media (max-width: 768px) {
  :root {
    --text-display: 38px;
    --text-h1: 32px;
    --text-h2: 26px;
    --text-h3: 22px;
    --text-h4: 18px;
    --section-padding-desktop: var(--section-padding-mobile);
  }

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

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

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

  .container {
    padding-inline: var(--space-3);
  }
}

@media (max-width: 480px) {
  :root {
    --text-display: 32px;
    --text-h1: 28px;
    --text-h2: 24px;
    --text-h3: 20px;
    --text-h4: 17px;
  }

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