:root {
  --color-apricot: #F2A65A;
  --color-apricot-hover: #E08A3A;
  --color-dark-green: #1E3D2F;
  --color-cream: #FAF3E0;
  --color-blue-gray: #5B7B8C;
  --color-ink: #2B2B2B;
  --color-white: #FFFFFF;
  --color-border-light: rgba(0, 0, 0, 0.1);
  --color-shadow-soft: rgba(0, 0, 0, 0.1);
  --color-shadow-layered: rgba(0, 0, 0, 0.05);

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

  --text-display: clamp(2rem, 4.5vw + 0.5rem, 3rem);
  --text-h1: clamp(1.75rem, 3.5vw + 0.5rem, 2.25rem);
  --text-h2: clamp(1.5rem, 2.5vw + 0.5rem, 1.75rem);
  --text-h3: clamp(1.25rem, 1.5vw + 0.5rem, 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: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

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

  --section-padding-desktop: var(--space-9);
  --section-padding-tablet: var(--space-8);
  --section-padding-mobile: var(--space-7);

  --radius-small: 4px;
  --radius-medium: 12px;
  --radius-large: 24px;
  --radius-button: 8px 12px 8px 12px;

  --shadow-paper: 0 2px 4px var(--color-shadow-soft), 0 4px 8px var(--color-shadow-layered);
  --shadow-paper-hover: 0 4px 8px var(--color-shadow-soft), 0 8px 16px var(--color-shadow-layered);

  --transition-fast: 0.2s ease;

  --focus-ring: 2px solid var(--color-apricot);
  --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;
  font-size: 100%;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-ink);
  background-color: var(--color-cream);
  min-height: 100vh;
  min-width: 320px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

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

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

button {
  background: none;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: inherit;
  line-height: 1.2;
  overflow-wrap: break-word;
  text-wrap: balance;
}

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

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-size: var(--text-body);
  line-height: var(--leading-body);
  margin-block-end: var(--space-2);
}

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

p {
  font-size: var(--text-body);
  line-height: var(--leading-body);
  margin-block-end: var(--space-4);
  overflow-wrap: break-word;
}

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

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

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

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

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

address {
  font-style: normal;
}

hr {
  border: none;
  border-block-start: 1px solid var(--color-border-light);
  margin-block: var(--space-6);
}

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

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

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

.section--dark {
  background-color: var(--color-dark-green);
  color: var(--color-white);
}

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

.section--dark p {
  color: var(--color-cream);
}

.card {
  background-color: var(--color-cream);
  color: var(--color-ink);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-paper);
  padding: var(--space-5);
  border: 1px solid var(--color-border-light);
}

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

.panel {
  background-color: var(--color-cream);
  color: var(--color-ink);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-paper);
  padding: var(--space-5);
  border: 1px solid var(--color-border-light);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  background-color: var(--color-apricot);
  color: var(--color-dark-green);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-button);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  background-color: var(--color-apricot-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-paper-hover);
}

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

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

.btn--secondary {
  background-color: var(--color-blue-gray);
  color: var(--color-white);
}

.btn--secondary:hover {
  background-color: #4a6573;
}

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

.btn--dark:hover {
  background-color: #162e23;
}

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

.btn--cream:hover {
  background-color: #ede3cc;
}

.btn--large {
  padding: var(--space-4) var(--space-6);
  font-size: 1.125rem;
  min-height: 52px;
}

.btn--small {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-small);
  min-height: 36px;
}

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

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

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-ink);
  background-color: var(--color-cream);
  border: 1px solid var(--color-dark-green);
  border-radius: var(--radius-small);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

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

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-apricot);
  box-shadow: 0 0 0 2px rgba(242, 166, 90, 0.25);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: rgba(43, 43, 43, 0.5);
}

select {
  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='%232B2B2B' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-inline-end: var(--space-6);
}

input[type="checkbox"],
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-apricot);
  cursor: pointer;
  flex-shrink: 0;
}

.form-group {
  margin-block-end: var(--space-4);
}

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

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

.form-row > * {
  flex: 1 1 200px;
  min-width: 0;
}

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

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

.content-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background-color: var(--color-apricot);
  border-radius: 50%;
}

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

.content-list--ordered {
  list-style: decimal;
  padding-inline-start: var(--space-6);
}

.content-list--ordered li::before {
  display: none;
}

.content-list--ordered li {
  padding-inline-start: 0;
}

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

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

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

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

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

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

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

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

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

.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-4);
  z-index: 10000;
  background-color: var(--color-apricot);
  color: var(--color-dark-green);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-button);
  font-weight: 600;
  transition: top var(--transition-fast);
}

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

@media (max-width: 1024px) {
  .section {
    padding-block: var(--section-padding-tablet);
  }
}

@media (max-width: 768px) {
  .section {
    padding-block: var(--section-padding-mobile);
  }

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

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

  .btn {
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-3);
  }

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

  .flex {
    flex-direction: column;
  }

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

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