:root {
  --color-sandstone-beige: #D9CBB8;
  --color-off-white: #F5F0E8;
  --color-charcoal: #2B2B2B;
  --color-eucalyptus-green: #4A6B5A;
  --color-eucalyptus-green-dark: #3A5748;
  --color-terracotta: #C46A4A;
  --color-weathered-oak: #8B6F4E;
  --color-weathered-oak-border: rgba(139, 111, 78, 0.2);
  --color-charcoal-shadow: rgba(43, 43, 43, 0.1);
  --color-overlay: rgba(43, 43, 43, 0.6);

  --font-heading: Georgia, serif;
  --font-body: "Helvetica Neue", Arial, sans-serif;

  --text-display: clamp(2.5rem, 5vw, 3rem);
  --text-h1: clamp(1.75rem, 3.5vw, 2.25rem);
  --text-h2: clamp(1.5rem, 2.8vw, 1.75rem);
  --text-h3: clamp(1.25rem, 2.2vw, 1.375rem);
  --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-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --space-8: 96px;

  --container-max: 1200px;
  --container-padding: var(--space-4);
  --section-padding: var(--space-5);
  --grid-gutter: var(--space-3);

  --radius-none: 0px;
  --radius-card: 4px;
  --radius-tag: 8px;

  --shadow-card: 0 2px 8px var(--color-charcoal-shadow);
  --shadow-lift: 0 4px 16px var(--color-charcoal-shadow);

  --border-hairline: 1px solid var(--color-weathered-oak-border);

  --transition-fast: 150ms ease;
  --transition-medium: 300ms ease;

  --touch-target-min: 44px;
}

*,
*::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);
  line-height: var(--leading-body);
  color: var(--color-charcoal);
  background-color: var(--color-sandstone-beige);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  min-height: var(--touch-target-min);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-card);
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

a {
  color: var(--color-eucalyptus-green);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-eucalyptus-green-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-charcoal);
  margin-block-end: var(--space-3);
}

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

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

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

p {
  margin-block-end: var(--space-3);
}

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

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

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

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

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

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

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

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

hr {
  border: none;
  border-top: var(--border-hairline);
  margin-block: var(--space-5);
}

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

th,
td {
  padding: var(--space-2) var(--space-3);
  text-align: start;
  border-bottom: var(--border-hairline);
}

th {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-charcoal);
}

label {
  display: block;
  font-size: var(--text-small);
  font-weight: 500;
  margin-block-end: var(--space-1);
  color: var(--color-charcoal);
}

input,
textarea,
select {
  width: 100%;
  padding: var(--space-2) 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-weathered-oak);
  border-radius: 0;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-charcoal);
  transition: border-color var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-weathered-oak);
  opacity: 0.7;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-bottom-color: var(--color-terracotta);
}

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

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238B6F4E' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-inline-end: var(--space-4);
}

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

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

.section-label {
  display: inline-block;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-terracotta);
  margin-block-end: var(--space-2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  min-height: var(--touch-target-min);
  background-color: var(--color-eucalyptus-green);
  color: var(--color-off-white);
  font-size: var(--text-body);
  font-weight: 500;
  line-height: var(--leading-body);
  border-radius: var(--radius-card);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
  background-color: var(--color-eucalyptus-green-dark);
  color: var(--color-off-white);
}

.btn:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 2px;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid var(--color-eucalyptus-green);
}

.btn-secondary:hover {
  background-color: var(--color-eucalyptus-green);
  color: var(--color-off-white);
}

.btn-terracotta {
  background-color: var(--color-terracotta);
  color: var(--color-off-white);
}

.btn-terracotta:hover {
  background-color: #A8573B;
  color: var(--color-off-white);
}

.card {
  background-color: var(--color-off-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--space-4);
}

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

.tag {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  font-size: var(--text-small);
  line-height: var(--leading-small);
  border-radius: var(--radius-tag);
  background-color: var(--color-sandstone-beige);
  color: var(--color-charcoal);
  border: var(--border-hairline);
}

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

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

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

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

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

.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.content-list li {
  margin: 0;
  padding: 0;
}

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

.overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: var(--space-4);
}

.overlay-card {
  background-color: var(--color-off-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lift);
  padding: var(--space-5);
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

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

@media (min-width: 768px) {
  :root {
    --container-padding: var(--space-5);
    --section-padding: var(--space-7);
    --grid-gutter: var(--space-4);
  }
}

@media (max-width: 767px) {
  .btn {
    width: 100%;
  }

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