:root {
  --color-sand: #E8DCC8;
  --color-ivory: #F7F2E8;
  --color-ultramarine: #2B3A8F;
  --color-terracotta: #C65A2E;
  --color-deep-plum: #4A1E3A;
  --color-deep-green: #1F4D3A;
  --color-graphite: #2A2A2A;
  --color-graphite-soft: #5A5A5A;
  --color-focus-ring: #2B3A8F;
  --color-overlay: rgba(42, 42, 42, 0.6);

  --font-heading: "Fraunces", serif;
  --font-body: "Inter", sans-serif;

  --text-display-size: clamp(2.5rem, 4.5vw + 1rem, 3.5rem);
  --text-display-line-height: 1.05;
  --text-display-letter-spacing: -0.02em;
  --text-display-weight: 600;

  --text-h1-size: clamp(2rem, 3.5vw + 0.75rem, 2.5rem);
  --text-h1-line-height: 1.1;
  --text-h1-letter-spacing: -0.01em;
  --text-h1-weight: 600;

  --text-h2-size: clamp(1.75rem, 2.5vw + 0.5rem, 2rem);
  --text-h2-line-height: 1.15;
  --text-h2-letter-spacing: 0;
  --text-h2-weight: 600;

  --text-h3-size: clamp(1.375rem, 1.5vw + 0.5rem, 1.5rem);
  --text-h3-line-height: 1.2;
  --text-h3-letter-spacing: 0;
  --text-h3-weight: 500;

  --text-h4-size: 1.25rem;
  --text-h4-line-height: 1.25;
  --text-h4-letter-spacing: 0;
  --text-h4-weight: 600;

  --text-body-l-size: 1.125rem;
  --text-body-l-line-height: 1.6;
  --text-body-l-letter-spacing: 0;
  --text-body-l-weight: 400;

  --text-body-m-size: 1rem;
  --text-body-m-line-height: 1.6;
  --text-body-m-letter-spacing: 0;
  --text-body-m-weight: 400;

  --text-body-s-size: 0.875rem;
  --text-body-s-line-height: 1.5;
  --text-body-s-letter-spacing: 0;
  --text-body-s-weight: 400;

  --text-caption-size: 0.75rem;
  --text-caption-line-height: 1.4;
  --text-caption-letter-spacing: 0.04em;
  --text-caption-weight: 500;

  --text-button-size: 1rem;
  --text-button-line-height: 1;
  --text-button-letter-spacing: 0.01em;
  --text-button-weight: 600;

  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  --container-max-width: 1200px;
  --container-padding-mobile: 24px;
  --container-padding-desktop: 48px;

  --radius-0: 0;
  --radius-1: 4px;
  --radius-2: 8px;
  --radius-3: 12px;

  --shadow-card: 0 8px 24px rgba(42, 42, 42, 0.12);
  --shadow-modal: 0 8px 24px rgba(42, 42, 42, 0.12);

  --border-card: 1px solid var(--color-graphite);
  --border-active: 2px solid var(--color-ultramarine);
  --border-input: 1px solid var(--color-graphite);
  --border-modal: 2px solid var(--color-graphite);

  --motion-duration: 150ms;
  --motion-easing: ease-out;
}

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

* {
  margin: 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-m-size);
  line-height: var(--text-body-m-line-height);
  letter-spacing: var(--text-body-m-letter-spacing);
  font-weight: var(--text-body-m-weight);
  color: var(--color-graphite);
  background-color: var(--color-ivory);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  padding: 0;
}

a {
  color: var(--color-ultramarine);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: text-decoration-thickness var(--motion-duration) var(--motion-easing);
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--color-graphite);
  overflow-wrap: break-word;
}

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

h2 {
  font-size: var(--text-h2-size);
  line-height: var(--text-h2-line-height);
  letter-spacing: var(--text-h2-letter-spacing);
  font-weight: var(--text-h2-weight);
  margin-block-end: var(--space-5);
}

h3 {
  font-size: var(--text-h3-size);
  line-height: var(--text-h3-line-height);
  letter-spacing: var(--text-h3-letter-spacing);
  font-weight: var(--text-h3-weight);
  margin-block-end: var(--space-4);
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-h4-size);
  line-height: var(--text-h4-line-height);
  letter-spacing: var(--text-h4-letter-spacing);
  font-weight: var(--text-h4-weight);
  margin-block-end: var(--space-4);
}

p {
  font-size: var(--text-body-m-size);
  line-height: var(--text-body-m-line-height);
  letter-spacing: var(--text-body-m-letter-spacing);
  font-weight: var(--text-body-m-weight);
  margin-block-end: var(--space-4);
}

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

blockquote {
  margin-block-end: var(--space-4);
  padding-inline-start: var(--space-5);
  border-inline-start: 2px solid var(--color-ultramarine);
  color: var(--color-graphite-soft);
}

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

figcaption {
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-letter-spacing);
  font-weight: var(--text-caption-weight);
  text-transform: uppercase;
  color: var(--color-graphite-soft);
  margin-block-start: var(--space-2);
}

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

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

th,
td {
  padding: var(--space-3);
  border: 1px solid var(--color-graphite);
  text-align: start;
}

th {
  font-weight: 600;
  background-color: var(--color-sand);
}

label {
  font-size: var(--text-body-s-size);
  line-height: var(--text-body-s-line-height);
  letter-spacing: var(--text-body-s-letter-spacing);
  font-weight: 500;
  display: block;
  margin-block-end: var(--space-2);
}

input,
textarea,
select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: var(--border-input);
  border-radius: var(--radius-1);
  background-color: var(--color-ivory);
  color: var(--color-graphite);
  font-size: var(--text-body-m-size);
  line-height: var(--text-body-m-line-height);
  letter-spacing: var(--text-body-m-letter-spacing);
  font-weight: var(--text-body-m-weight);
  transition: border-color var(--motion-duration) var(--motion-easing);
}

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

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

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

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

@media (min-width: 768px) {
  .container {
    padding-inline: var(--container-padding-desktop);
  }
}

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

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

.surface-deep-plum {
  background-color: var(--color-deep-plum);
  color: var(--color-ivory);
}

.surface-deep-plum h1,
.surface-deep-plum h2,
.surface-deep-plum h3,
.surface-deep-plum h4 {
  color: var(--color-ivory);
}

.surface-deep-plum a {
  color: var(--color-ivory);
}

.surface-deep-green {
  background-color: var(--color-deep-green);
  color: var(--color-ivory);
}

.surface-deep-green h1,
.surface-deep-green h2,
.surface-deep-green h3,
.surface-deep-green h4 {
  color: var(--color-ivory);
}

.surface-deep-green a {
  color: var(--color-ivory);
}

.card {
  background-color: var(--color-ivory);
  border: var(--border-card);
  border-radius: var(--radius-2);
  padding: var(--space-5);
  transition: box-shadow var(--motion-duration) var(--motion-easing), transform var(--motion-duration) var(--motion-easing);
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-button-size);
  line-height: var(--text-button-line-height);
  letter-spacing: var(--text-button-letter-spacing);
  font-weight: var(--text-button-weight);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-1);
  text-decoration: none;
  transition: background-color var(--motion-duration) var(--motion-easing), border-color var(--motion-duration) var(--motion-easing);
  min-width: 0;
}

.btn-primary {
  background-color: var(--color-terracotta);
  color: var(--color-ivory);
  border: 1px solid var(--color-terracotta);
}

.btn-primary:hover {
  background-color: #A84A26;
  border-color: #A84A26;
}

.btn-secondary {
  background-color: var(--color-ivory);
  color: var(--color-ultramarine);
  border: 1px solid var(--color-ultramarine);
}

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

.tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-caption-size);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-letter-spacing);
  font-weight: var(--text-caption-weight);
  text-transform: uppercase;
  color: var(--color-graphite-soft);
  background-color: var(--color-sand);
  border-radius: var(--radius-1);
  padding: var(--space-1) var(--space-2);
}

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

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

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}