:root {
  --color-cream: #F5F0E6;
  --color-dark-green: #2F4F4F;
  --color-walnut: #8B5A2B;
  --color-muted-orange: #D2691E;
  --color-cream-dark: #E8E0D4;
  --color-green-dark: #1F3A3A;
  --color-text-primary: #2F4F4F;
  --color-text-on-dark: #F5F0E6;

  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-display: clamp(2rem, 4vw, 3rem);
  --text-h1: clamp(1.75rem, 3vw, 2.5rem);
  --text-h2: clamp(1.5rem, 2.5vw, 2rem);
  --text-h3: clamp(1.25rem, 2vw, 1.5rem);
  --text-body: 1rem;
  --text-small: 0.875rem;

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

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --container-max: 1200px;
  --container-padding: var(--space-lg);

  --surface-cream: var(--color-cream);
  --surface-cream-dark: var(--color-cream-dark);
  --surface-dark-green: var(--color-dark-green);
  --surface-green-dark: var(--color-green-dark);

  --border-walnut: 1px solid rgba(139, 90, 43, 0.3);
  --shadow-soft: 0 4px 12px rgba(47, 79, 79, 0.1);

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

  --transition-fast: 0.2s ease;
  --outline-focus: 2px solid var(--color-muted-orange);
  --outline-offset: 2px;
}

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

* {
  margin: 0;
}

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

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

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

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

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

a {
  color: var(--color-muted-orange);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: var(--outline-focus);
  outline-offset: var(--outline-offset);
}

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

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

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

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

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

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

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

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

figcaption {
  font-size: var(--text-small);
  color: var(--color-walnut);
  margin-block-start: var(--space-sm);
}

hr {
  border: none;
  border-block-start: var(--border-walnut);
  margin-block: var(--space-xl);
}

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

th,
td {
  padding: var(--space-sm) var(--space-md);
  border-block-end: var(--border-walnut);
  text-align: start;
}

th {
  font-weight: 600;
  color: var(--color-dark-green);
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9em;
}

pre {
  background-color: var(--color-cream-dark);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  overflow-x: auto;
  margin-block-end: var(--space-md);
}

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

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

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

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

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

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

.surface-dark-green h1,
.surface-dark-green h2,
.surface-dark-green h3,
.surface-dark-green h4,
.surface-dark-green h5,
.surface-dark-green h6,
.surface-green-dark h1,
.surface-green-dark h2,
.surface-green-dark h3,
.surface-green-dark h4,
.surface-green-dark h5,
.surface-green-dark h6 {
  color: var(--color-text-on-dark);
}

.card {
  background-color: var(--color-cream);
  border: var(--border-walnut);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: var(--space-lg);
}

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

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

.btn-primary {
  background-color: var(--color-dark-green);
  color: var(--color-cream);
}

.btn-primary:hover {
  background-color: var(--color-green-dark);
  color: var(--color-cream);
}

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

.btn-secondary:hover {
  background-color: var(--color-muted-orange);
  color: var(--color-cream);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-dark-green);
  border: 1px solid var(--color-walnut);
}

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

.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-full);
  background-color: var(--color-dark-green);
  color: var(--color-cream);
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1.2;
}

input,
textarea,
select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  min-height: 44px;
  background-color: var(--color-cream);
  border: var(--border-walnut);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-muted-orange);
  box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.2);
  outline: none;
}

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

label {
  display: block;
  margin-block-end: var(--space-xs);
  font-weight: 500;
  color: var(--color-dark-green);
}

::placeholder {
  color: rgba(47, 79, 79, 0.6);
}

.content-list {
  list-style: none;
  padding-inline-start: 0;
  margin-block-end: var(--space-md);
}

.content-list > li {
  margin-block-end: var(--space-sm);
  padding-inline-start: var(--space-lg);
  position: relative;
}

.content-list > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-walnut);
}

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

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

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

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

.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-1 {
  flex: 1 1 0%;
}

.flex-auto {
  flex: 0 0 auto;
}

.flex-grow {
  flex: 1 0 auto;
}

@media (max-width: 768px) {
  :root {
    --container-padding: var(--space-md);
  }

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

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}