:root {
  --color-warm-beige: #D2B48C;
  --color-raspberry: #E30B5C;
  --color-deep-teal: #008B8B;
  --color-citron: #FFF700;
  --color-text-dark: #1A1A1A;
  --color-text-light: #F5F5F5;
  --font-heading: Georgia, serif;
  --font-body: Arial, sans-serif;
  --text-display: 3.5rem;
  --text-h1: 2.5rem;
  --text-h2: 2rem;
  --text-h3: 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.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --radius-button: 4px;
  --radius-card: 8px;
  --radius-image: 0px;
  --shadow-soft: 0 4px 16px rgba(26, 26, 26, 0.08);
  --shadow-modal: 0 12px 32px rgba(26, 26, 26, 0.16);
  --container-max: 1200px;
  --container-wide: 1440px;
  --container-narrow: 800px;
}

*,
*::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-text-dark);
  background-color: var(--color-warm-beige);
  min-height: 100vh;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: inherit;
  line-height: 1.2;
  margin-block-end: var(--space-sm);
  font-weight: 700;
}

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

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

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

h4 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin-block-end: var(--space-xs);
}

h5 {
  font-size: 1.125rem;
  line-height: 1.35;
  margin-block-end: var(--space-xs);
}

h6 {
  font-size: 1rem;
  line-height: 1.4;
  margin-block-end: var(--space-xs);
}

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

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

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

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

li {
  line-height: var(--leading-body);
}

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

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

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

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

figcaption {
  font-size: var(--text-small);
  line-height: var(--leading-small);
  color: var(--color-text-dark);
  opacity: 0.8;
  margin-block-start: var(--space-xs);
}

a {
  color: var(--color-raspberry);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
  color: var(--color-deep-teal);
  text-decoration: underline;
  text-decoration-color: var(--color-citron);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

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

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: var(--radius-button);
}

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

input,
select,
textarea {
  background-color: #fff;
  border: 1px solid rgba(26, 26, 26, 0.2);
  border-radius: var(--radius-button);
  padding: 0.5rem 0.75rem;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-raspberry);
  box-shadow: 0 0 0 3px rgba(227, 11, 92, 0.15);
  outline: none;
}

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

label {
  display: block;
  font-size: var(--text-small);
  line-height: var(--leading-small);
  font-weight: 600;
  margin-block-end: var(--space-xs);
  color: var(--color-text-dark);
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  font-size: var(--text-small);
  font-weight: 600;
  margin-block-end: var(--space-xs);
}

hr {
  border: none;
  border-block-start: 1px solid rgba(26, 26, 26, 0.15);
  margin-block: var(--space-md);
}

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

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.625rem 1.25rem;
  font-size: var(--text-body);
  font-weight: 600;
  line-height: 1.4;
  border-radius: var(--radius-button);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  min-width: 0;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-color: var(--color-raspberry);
  color: var(--color-text-light);
  border-color: var(--color-raspberry);
}

.btn-primary:hover {
  background-color: var(--color-deep-teal);
  border-color: var(--color-deep-teal);
  color: var(--color-text-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-raspberry);
  border-color: var(--color-raspberry);
}

.btn-secondary:hover {
  background-color: var(--color-raspberry);
  color: var(--color-text-light);
  border-color: var(--color-raspberry);
}

.btn-dark {
  background-color: var(--color-deep-teal);
  color: var(--color-text-light);
  border-color: var(--color-deep-teal);
}

.btn-dark:hover {
  background-color: var(--color-raspberry);
  border-color: var(--color-raspberry);
  color: var(--color-text-light);
}

.btn-light {
  background-color: var(--color-text-light);
  color: var(--color-text-dark);
  border-color: var(--color-text-light);
}

.btn-light:hover {
  background-color: var(--color-citron);
  border-color: var(--color-citron);
  color: var(--color-text-dark);
}

.card {
  background-color: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: var(--space-md);
  overflow: hidden;
}

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

.surface-dark {
  background-color: var(--color-deep-teal);
  color: var(--color-text-light);
}

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

.surface-dark a {
  color: var(--color-citron);
}

.surface-dark a:hover {
  color: var(--color-text-light);
}

.surface-light {
  background-color: var(--color-warm-beige);
  color: var(--color-text-dark);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.font-heading {
  font-family: var(--font-heading);
}

.font-body {
  font-family: var(--font-body);
}

.text-dark {
  color: var(--color-text-dark);
}

.text-light {
  color: var(--color-text-light);
}

.text-raspberry {
  color: var(--color-raspberry);
}

.text-teal {
  color: var(--color-deep-teal);
}

.text-citron {
  color: var(--color-citron);
}

.bg-beige {
  background-color: var(--color-warm-beige);
}

.bg-teal {
  background-color: var(--color-deep-teal);
}

.bg-raspberry {
  background-color: var(--color-raspberry);
}

.bg-white {
  background-color: #fff;
}

.bg-citron {
  background-color: var(--color-citron);
}

.rounded-button {
  border-radius: var(--radius-button);
}

.rounded-card {
  border-radius: var(--radius-card);
}

.rounded-image {
  border-radius: var(--radius-image);
}

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

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

.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-sm);
  z-index: 9999;
  background-color: var(--color-raspberry);
  color: var(--color-text-light);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-button);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: var(--space-sm);
  color: var(--color-text-light);
  text-decoration: none;
}

@media (max-width: 1024px) {
  :root {
    --text-display: 2.75rem;
    --text-h1: 2.25rem;
    --text-h2: 1.75rem;
    --text-h3: 1.375rem;
  }
}

@media (max-width: 768px) {
  :root {
    --text-display: 2.25rem;
    --text-h1: 1.875rem;
    --text-h2: 1.5rem;
    --text-h3: 1.25rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
  }

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

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

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

@media (max-width: 480px) {
  :root {
    --text-display: 1.875rem;
    --text-h1: 1.625rem;
    --text-h2: 1.375rem;
    --text-h3: 1.125rem;
    --space-sm: 0.75rem;
    --space-md: 1.25rem;
    --space-lg: 1.75rem;
    --space-xl: 2.5rem;
  }
}

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

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