:root {
  --color-cream: #FDFBF7;
  --color-sage: #DCE7E5;
  --color-mist: #D6E4F0;
  --color-graphite: #2E2E2E;
  --color-peach: #FFDAB9;
  --color-peach-deep: #F5C9A1;
  --color-white: #FFFFFF;
  --color-border: rgba(46, 46, 46, 0.08);
  --color-shadow: rgba(46, 46, 46, 0.06);
  --color-overlay-cream: rgba(253, 251, 247, 0.15);

  --font-heading: "Nunito Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", "Segoe UI", "Helvetica Neue", Arial, sans-serif;

  --text-display: clamp(2rem, 4.5vw, 2.5rem);
  --text-h1: clamp(1.75rem, 3.5vw, 2rem);
  --text-h2: clamp(1.4rem, 2.5vw, 1.625rem);
  --text-h3: 1.25rem;
  --text-body: 1rem;
  --text-caption: 0.875rem;

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

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;

  --space-micro: 0.25rem;
  --space-tight: 0.5rem;
  --space-base: 1rem;
  --space-comfortable: 1.5rem;
  --space-roomy: 2rem;
  --space-section: 3rem;
  --space-large-section: 4rem;
  --space-hero: 6rem;

  --container-max: 1200px;
  --container-padding: clamp(1rem, 4vw, 2rem);

  --radius-extra-large: 2rem;
  --radius-large: 1.5rem;
  --radius-medium: 1rem;
  --radius-small: 0.5rem;

  --shadow-soft: 0 4px 20px var(--color-shadow);
  --shadow-lift: 0 6px 28px rgba(46, 46, 46, 0.1);

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

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;

  --focus-ring-color: var(--color-sage);
  --focus-ring-offset: 2px;
  --focus-ring-width: 2px;

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

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-cream);
  color: var(--color-graphite);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 var(--space-base);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: var(--color-graphite);
  line-height: var(--leading-h2);
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  line-height: var(--leading-h1);
  margin-bottom: var(--space-comfortable);
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--leading-h2);
  margin-bottom: var(--space-base);
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--leading-h3);
  margin-bottom: var(--space-tight);
}

h4,
h5,
h6 {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-bottom: var(--space-tight);
}

p {
  margin: 0 0 var(--space-base);
  line-height: var(--leading-body);
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0 0 var(--space-base);
  padding-left: var(--space-comfortable);
}

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

blockquote {
  margin: 0 0 var(--space-base);
  padding: var(--space-base) var(--space-comfortable);
  border-left: 4px solid var(--color-peach);
  background-color: var(--color-sage);
  border-radius: 0 var(--radius-medium) var(--radius-medium) 0;
}

blockquote:last-child {
  margin-bottom: 0;
}

blockquote p {
  margin-bottom: 0;
}

figure {
  margin: 0 0 var(--space-base);
}

figure:last-child {
  margin-bottom: 0;
}

figcaption {
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  color: var(--color-graphite);
  opacity: 0.75;
  margin-top: var(--space-tight);
}

a {
  color: var(--color-graphite);
  text-decoration: underline;
  text-decoration-color: var(--color-peach);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

a:hover {
  color: var(--color-graphite);
  text-decoration-color: var(--color-peach-deep);
}

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

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

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

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

button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  min-height: var(--touch-target-min);
  min-width: var(--touch-target-min);
  border-radius: var(--radius-large);
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring-color);
  outline-offset: var(--focus-ring-offset);
}

input,
textarea,
select {
  width: 100%;
  padding: var(--space-tight) var(--space-base);
  background-color: var(--color-white);
  border: var(--border-hairline);
  border-radius: var(--radius-large);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-graphite);
  opacity: 0.55;
}

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

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

label {
  display: block;
  margin-bottom: var(--space-tight);
  font-weight: var(--weight-medium);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-base);
}

table:last-child {
  margin-bottom: 0;
}

th,
td {
  padding: var(--space-tight) var(--space-base);
  text-align: left;
  border-bottom: var(--border-hairline);
}

th {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

hr {
  border: none;
  border-top: var(--border-hairline);
  margin: var(--space-roomy) 0;
}

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

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

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

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

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

.card {
  background-color: var(--color-cream);
  border-radius: var(--radius-extra-large);
  box-shadow: var(--shadow-soft);
  padding: var(--space-comfortable);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

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

.panel {
  background-color: var(--color-sage);
  border-radius: var(--radius-extra-large);
  padding: var(--space-comfortable);
}

.panel > :last-child {
  margin-bottom: 0;
}

.callout {
  background-color: var(--color-mist);
  border-radius: var(--radius-extra-large);
  padding: var(--space-comfortable);
}

.callout > :last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-tight);
  min-height: var(--touch-target-min);
  padding: var(--space-tight) var(--space-comfortable);
  background-color: var(--color-peach);
  color: var(--color-graphite);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  text-decoration: none;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:hover {
  background-color: var(--color-peach-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
}

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

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--color-peach);
  color: var(--color-graphite);
}

.btn-secondary:hover {
  background-color: var(--color-peach);
  color: var(--color-graphite);
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-graphite);
  text-decoration: underline;
  text-decoration-color: var(--color-peach);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  border-radius: var(--radius-large);
  padding: var(--space-tight) var(--space-base);
}

.btn-ghost:hover {
  background-color: var(--color-peach);
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch-target-min);
  padding: var(--space-micro) var(--space-base);
  background-color: var(--color-peach);
  color: var(--color-graphite);
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  font-size: var(--text-caption);
  line-height: var(--leading-caption);
  border-radius: var(--radius-small);
  text-decoration: none;
}

.badge-sage {
  background-color: var(--color-sage);
}

.badge-mist {
  background-color: var(--color-mist);
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-base);
}

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

.flex-row > img,
.flex-row > picture,
.flex-row > svg,
.flex-row > video {
  flex-shrink: 0;
}

.flex-column {
  display: flex;
  flex-direction: column;
  gap: var(--space-base);
}

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

.flex-column > img,
.flex-column > picture,
.flex-column > svg,
.flex-column > video {
  flex-shrink: 0;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-base);
}

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

.flex-center > img,
.flex-center > picture,
.flex-center > svg,
.flex-center > video {
  flex-shrink: 0;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-base);
  flex-wrap: wrap;
}

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

.flex-between > img,
.flex-between > picture,
.flex-between > svg,
.flex-between > video {
  flex-shrink: 0;
}

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

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

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

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

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

.visually-hidden {
  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-base);
  z-index: 1000;
  background-color: var(--color-graphite);
  color: var(--color-cream);
  padding: var(--space-tight) var(--space-base);
  border-radius: var(--radius-small);
  text-decoration: none;
  font-weight: var(--weight-bold);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-base);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  :root {
    --space-section: 2rem;
    --space-large-section: 2.5rem;
    --space-hero: 3rem;
  }

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

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

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

  .card,
  .panel,
  .callout {
    padding: var(--space-base);
  }
}