:root {
  --color-river-sand: #EFECE6;
  --color-stone-grey: #DFDAD2;
  --color-charcoal: #3A3835;
  --color-moss-green: #656D4A;
  --color-charcoal-soft: #5C5A56;
  --color-river-sand-light: #F5F2EC;
  --color-stone-grey-dark: #C9C3BA;
  --color-moss-green-dark: #4E5538;

  --font-heading: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --text-display-size: clamp(2.25rem, 5vw + 1rem, 3rem);
  --text-display-line-height: 1.1;
  --text-display-weight: 500;

  --text-h1-size: clamp(2rem, 4vw + 0.75rem, 2.5rem);
  --text-h1-line-height: 1.2;
  --text-h1-weight: 500;

  --text-h2-size: clamp(1.625rem, 3vw + 0.5rem, 2rem);
  --text-h2-line-height: 1.3;
  --text-h2-weight: 500;

  --text-h3-size: clamp(1.375rem, 2vw + 0.5rem, 1.5rem);
  --text-h3-line-height: 1.4;
  --text-h3-weight: 500;

  --text-body-large-size: 1.125rem;
  --text-body-large-line-height: 1.6;
  --text-body-large-weight: 400;

  --text-body-size: 1rem;
  --text-body-line-height: 1.6;
  --text-body-weight: 400;

  --text-caption-size: 0.875rem;
  --text-caption-line-height: 1.5;
  --text-caption-weight: 400;

  --text-micro-size: 0.75rem;
  --text-micro-line-height: 1.4;
  --text-micro-weight: 500;

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

  --container-max: 1200px;
  --container-wide-max: 1440px;
  --container-narrow-max: 820px;

  --surface-bg: var(--color-river-sand);
  --surface-card: var(--color-stone-grey);
  --surface-elevated: var(--color-river-sand-light);
  --surface-border: var(--color-stone-grey-dark);

  --shadow-soft: 0 4px 16px rgba(58, 56, 53, 0.06), 0 1px 4px rgba(58, 56, 53, 0.04);
  --shadow-lifted: 0 8px 32px rgba(58, 56, 53, 0.08), 0 2px 8px rgba(58, 56, 53, 0.05);

  --radius-small: 4px;
  --radius-medium: 12px;
  --radius-large: 24px;
  --radius-pill: 999px;

  --transition-calm: 0.3s ease;
  --focus-ring-color: var(--color-moss-green);
  --focus-ring-offset: 2px;
}

*,
*::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 {
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line-height);
  color: var(--color-charcoal);
  background-color: var(--surface-bg);
  min-height: 100vh;
  min-width: 320px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: var(--text-h1-weight);
  color: var(--color-charcoal);
  line-height: 1.2;
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

h1 {
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  margin-block-end: var(--space-2xs);
}

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

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

h4 {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  margin-block-end: var(--space-3xs);
}

h5 {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  margin-block-end: var(--space-4xs);
}

h6 {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  margin-block-end: var(--space-4xs);
}

p {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-charcoal);
  margin-block-end: var(--space-2xs);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

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

a {
  color: var(--color-moss-green);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color var(--transition-calm);
}

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

a:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-small);
}

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

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

li {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-charcoal);
  overflow-wrap: break-word;
  word-wrap: break-word;
}

blockquote {
  margin-block-end: var(--space-2xs);
  padding-inline-start: var(--space-2xs);
  border-inline-start: 3px solid var(--color-moss-green);
  color: var(--color-charcoal-soft);
  font-style: italic;
}

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

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

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

figcaption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  color: var(--color-charcoal-soft);
  margin-block-start: var(--space-3xs);
}

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

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

hr {
  border: none;
  border-block-start: 1px solid var(--surface-border);
  margin-block: var(--space-sm);
}

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

pre {
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-medium);
  padding: var(--space-2xs);
  overflow-x: auto;
  margin-block-end: var(--space-2xs);
}

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

code {
  background-color: var(--surface-card);
  padding: 2px 6px;
  border-radius: var(--radius-small);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-block-end: var(--space-2xs);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
}

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

caption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  color: var(--color-charcoal-soft);
  margin-block-end: var(--space-3xs);
  text-align: start;
}

th,
td {
  padding: var(--space-3xs) var(--space-2xs);
  text-align: start;
  border-block-end: 1px solid var(--surface-border);
  vertical-align: top;
}

th {
  font-weight: 600;
  color: var(--color-charcoal);
  background-color: var(--surface-card);
}

form {
  margin-block-end: var(--space-2xs);
}

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

fieldset {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-medium);
  padding: var(--space-2xs);
  margin-block-end: var(--space-2xs);
}

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

legend {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  font-weight: 600;
  color: var(--color-charcoal);
  padding-inline: var(--space-3xs);
}

label {
  display: inline-block;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-charcoal);
  margin-block-end: var(--space-4xs);
  cursor: pointer;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-charcoal);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="week"],
input[type="time"],
select,
textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  background-color: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-small);
  padding: var(--space-3xs) var(--space-2xs);
  transition: border-color var(--transition-calm), box-shadow var(--transition-calm);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--focus-ring-color);
  box-shadow: 0 0 0 3px rgba(101, 109, 74, 0.2);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-charcoal-soft);
  opacity: 0.7;
}

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

select {
  appearance: auto;
  cursor: pointer;
}

input[type="checkbox"],
input[type="radio"] {
  display: inline-block;
  width: auto;
  min-height: auto;
  margin-inline-end: var(--space-3xs);
  accent-color: var(--color-moss-green);
}

input[type="checkbox"] + label,
input[type="radio"] + label {
  display: inline;
  margin-block-end: 0;
}

input[type="submit"],
input[type="reset"],
input[type="button"] {
  cursor: pointer;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3xs);
  min-height: 44px;
  background-color: var(--color-moss-green);
  color: var(--color-charcoal);
  border: none;
  border-radius: var(--radius-small);
  padding: var(--space-3xs) var(--space-2xs);
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--transition-calm), color var(--transition-calm), box-shadow var(--transition-calm);
}

button:hover {
  background-color: var(--color-moss-green-dark);
  color: var(--color-river-sand-light);
}

button:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

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

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

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

.surface-card {
  background-color: var(--surface-card);
  border-radius: var(--radius-medium);
  padding: var(--space-xs);
  box-shadow: var(--shadow-soft);
}

.surface-elevated {
  background-color: var(--surface-elevated);
  border-radius: var(--radius-medium);
  padding: var(--space-xs);
  box-shadow: var(--shadow-soft);
}

.surface-panel {
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-medium);
  padding: var(--space-xs);
}

.surface-border {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-medium);
}

.radius-small {
  border-radius: var(--radius-small);
}

.radius-medium {
  border-radius: var(--radius-medium);
}

.radius-large {
  border-radius: var(--radius-large);
}

.radius-pill {
  border-radius: var(--radius-pill);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-lifted {
  box-shadow: var(--shadow-lifted);
}

.text-display {
  font-family: var(--font-heading);
  font-size: var(--text-display-size);
  line-height: var(--text-display-line-height);
  font-weight: var(--text-display-weight);
  color: var(--color-charcoal);
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.text-h1 {
  font-family: var(--font-heading);
  font-size: var(--text-h1-size);
  line-height: var(--text-h1-line-height);
  font-weight: var(--text-h1-weight);
  color: var(--color-charcoal);
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.text-h2 {
  font-family: var(--font-heading);
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  font-weight: var(--text-h2-weight);
  color: var(--color-charcoal);
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.text-h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  font-weight: var(--text-h3-weight);
  color: var(--color-charcoal);
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.text-body-large {
  font-size: var(--text-body-large-size);
  line-height: var(--text-body-large-line-height);
  font-weight: var(--text-body-large-weight);
  color: var(--color-charcoal);
}

.text-body {
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  font-weight: var(--text-body-weight);
  color: var(--color-charcoal);
}

.text-caption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  font-weight: var(--text-caption-weight);
  color: var(--color-charcoal-soft);
}

.text-micro {
  font-size: var(--text-micro-size);
  line-height: var(--text-micro-line-height);
  font-weight: var(--text-micro-weight);
  color: var(--color-charcoal-soft);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

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

.text-accent {
  color: var(--color-moss-green);
}

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

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

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

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

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

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

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

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

.flex-center {
  align-items: center;
  justify-content: center;
}

.flex-align-start {
  align-items: flex-start;
}

.flex-align-center {
  align-items: center;
}

.flex-align-end {
  align-items: flex-end;
}

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

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

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

.flex-justify-between {
  justify-content: space-between;
}

.flex-justify-around {
  justify-content: space-around;
}

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

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

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

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

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

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

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

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

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

.mt-4xs { margin-block-start: var(--space-4xs); }
.mt-3xs { margin-block-start: var(--space-3xs); }
.mt-2xs { margin-block-start: var(--space-2xs); }
.mt-xs { margin-block-start: var(--space-xs); }
.mt-sm { margin-block-start: var(--space-sm); }
.mt-md { margin-block-start: var(--space-md); }
.mt-lg { margin-block-start: var(--space-lg); }
.mt-xl { margin-block-start: var(--space-xl); }
.mt-2xl { margin-block-start: var(--space-2xl); }

.mb-4xs { margin-block-end: var(--space-4xs); }
.mb-3xs { margin-block-end: var(--space-3xs); }
.mb-2xs { margin-block-end: var(--space-2xs); }
.mb-xs { margin-block-end: var(--space-xs); }
.mb-sm { margin-block-end: var(--space-sm); }
.mb-md { margin-block-end: var(--space-md); }
.mb-lg { margin-block-end: var(--space-lg); }
.mb-xl { margin-block-end: var(--space-xl); }
.mb-2xl { margin-block-end: var(--space-2xl); }

.mx-auto {
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-2xs);
  z-index: 10000;
  background-color: var(--color-moss-green);
  color: var(--color-charcoal);
  padding: var(--space-3xs) var(--space-2xs);
  border-radius: var(--radius-small);
  font-weight: 500;
  text-decoration: none;
  transition: top var(--transition-calm);
}

.skip-link:focus-visible {
  top: var(--space-2xs);
  outline: 2px solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

@media (max-width: 767px) {
  .container,
  .container-wide,
  .surface-card,
  .surface-elevated,
  .surface-panel {
    padding: var(--space-2xs);
  }

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

@media (min-width: 768px) and (max-width: 1023px) {
  .container,
  .container-wide,
  .surface-card,
  .surface-elevated,
  .surface-panel {
    padding: var(--space-xs);
  }
}

@media (min-width: 1024px) {
  .container,
  .container-wide,
  .surface-card,
  .surface-elevated,
  .surface-panel {
    padding: var(--space-xs);
  }
}