:root {
  --color-chalk: #F4F1EA;
  --color-dark-eucalyptus: #1F3A34;
  --color-oxidised-clay: #B65C3A;
  --color-charcoal: #2B2B2B;
  --color-warm-sand: #E3D5C0;
  --color-muted-felt-green: #3E6B5A;
  --color-chalk-muted: #EAE6DC;
  --color-eucalyptus-light: #4A6B62;
  --color-clay-deep: #9E4A2E;

  --font-heading: Oswald, 'Arial Narrow', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;

  --text-display-size: clamp(3.5rem, 10vw, 8rem);
  --text-display-line-height: 0.9;
  --text-display-letter-spacing: -0.02em;
  --text-display-weight: 600;

  --text-h1-size: clamp(2.5rem, 6vw, 5rem);
  --text-h1-line-height: 0.95;
  --text-h1-letter-spacing: -0.01em;
  --text-h1-weight: 600;

  --text-h2-size: clamp(2rem, 4vw, 3.5rem);
  --text-h2-line-height: 1.0;
  --text-h2-letter-spacing: -0.01em;
  --text-h2-weight: 500;

  --text-h3-size: clamp(1.5rem, 2.5vw, 2.25rem);
  --text-h3-line-height: 1.1;
  --text-h3-letter-spacing: 0;
  --text-h3-weight: 500;

  --text-h4-size: 1.25rem;
  --text-h4-line-height: 1.2;
  --text-h4-letter-spacing: 0.01em;
  --text-h4-weight: 500;

  --text-body-large-size: 1.25rem;
  --text-body-large-line-height: 1.6;
  --text-body-large-letter-spacing: 0;
  --text-body-large-weight: 400;

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

  --text-caption-size: 0.875rem;
  --text-caption-line-height: 1.5;
  --text-caption-letter-spacing: 0.02em;
  --text-caption-weight: 400;
  --text-caption-style: italic;

  --text-label-size: 0.75rem;
  --text-label-line-height: 1.4;
  --text-label-letter-spacing: 0.08em;
  --text-label-weight: 500;

  --text-button-size: 0.875rem;
  --text-button-line-height: 1;
  --text-button-letter-spacing: 0.06em;
  --text-button-weight: 500;

  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --space-4xl: 8rem;
  --space-5xl: 12rem;

  --container-max-width: 1440px;
  --container-side-padding: 5vw;
  --grid-gutter-desktop: 24px;
  --grid-gutter-mobile: 16px;

  --radius-default: 0px;
  --radius-card: 2px;
  --radius-button: 2px;
  --radius-badge: 50%;

  --border-light: 1px solid var(--color-eucalyptus-light);
  --border-dark: 1px solid var(--color-chalk-muted);

  --shadow-float: 0 2px 8px rgba(31, 58, 52, 0.08);

  --transition-color: 200ms ease-out;
  --transition-transform: 300ms ease-out;

  --focus-outline: 2px solid var(--color-oxidised-clay);
  --focus-outline-offset: 2px;
}

*,
*::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-size);
  font-weight: var(--text-body-weight);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-letter-spacing);
  color: var(--color-dark-eucalyptus);
  background-color: var(--color-chalk);
  min-height: 100vh;
  overflow-x: hidden;
  -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;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 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);
  text-transform: uppercase;
  color: var(--color-dark-eucalyptus);
  overflow-wrap: break-word;
}

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

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

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

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

h5,
h6 {
  font-size: var(--text-h4-size);
  font-weight: var(--text-h4-weight);
  line-height: var(--text-h4-line-height);
  letter-spacing: var(--text-h4-letter-spacing);
  margin-block-end: var(--space-xs);
}

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

blockquote {
  margin-block-end: var(--space-md);
  padding-inline-start: var(--space-md);
  border-inline-start: 2px solid var(--color-oxidised-clay);
  font-style: italic;
}

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

ul {
  list-style: disc;
}

ol {
  list-style: decimal;
}

.content-list > li {
  margin-block-end: var(--space-2xs);
}

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

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

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

figcaption {
  font-size: var(--text-caption-size);
  font-style: var(--text-caption-style);
  font-weight: var(--text-caption-weight);
  line-height: var(--text-caption-line-height);
  letter-spacing: var(--text-caption-letter-spacing);
  color: var(--color-charcoal);
  margin-block-start: var(--space-2xs);
}

hr {
  border: none;
  border-top: var(--border-light);
  margin-block: var(--space-lg);
}

address {
  font-style: normal;
}

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

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

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

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

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

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

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

.surface-felt-green {
  background-color: var(--color-muted-felt-green);
  color: var(--color-chalk);
}

.surface-dark-eucalyptus {
  background-color: var(--color-dark-eucalyptus);
  color: var(--color-chalk);
}

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

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

.surface-felt-green h1,
.surface-felt-green h2,
.surface-felt-green h3,
.surface-felt-green h4,
.surface-felt-green h5,
.surface-felt-green h6,
.surface-dark-eucalyptus h1,
.surface-dark-eucalyptus h2,
.surface-dark-eucalyptus h3,
.surface-dark-eucalyptus h4,
.surface-dark-eucalyptus h5,
.surface-dark-eucalyptus h6,
.surface-charcoal h1,
.surface-charcoal h2,
.surface-charcoal h3,
.surface-charcoal h4,
.surface-charcoal h5,
.surface-charcoal h6 {
  color: var(--color-chalk);
}

.surface-felt-green figcaption,
.surface-dark-eucalyptus figcaption,
.surface-charcoal figcaption {
  color: var(--color-warm-sand);
}

.card {
  background-color: var(--color-chalk);
  border: var(--border-light);
  border-radius: var(--radius-card);
  padding: var(--space-lg);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: var(--text-button-size);
  font-weight: var(--text-button-weight);
  line-height: var(--text-button-line-height);
  letter-spacing: var(--text-button-letter-spacing);
  text-transform: uppercase;
  border-radius: var(--radius-button);
  padding: var(--space-sm) var(--space-lg);
  transition: background-color var(--transition-color), color var(--transition-color), border-color var(--transition-color);
  min-width: 0;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-oxidised-clay);
  color: var(--color-chalk);
  border: 1px solid var(--color-oxidised-clay);
}

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

.btn--secondary {
  background-color: transparent;
  color: var(--color-dark-eucalyptus);
  border: 1px solid var(--color-dark-eucalyptus);
}

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

.btn--secondary-on-dark {
  background-color: transparent;
  color: var(--color-chalk);
  border: 1px solid var(--color-chalk);
}

.btn--secondary-on-dark:hover {
  background-color: rgba(244, 241, 234, 0.1);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: var(--focus-outline);
  outline-offset: var(--focus-outline-offset);
}

.link-underline {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;
  transition: text-decoration-color var(--transition-color);
}

.link-underline:hover {
  text-decoration-color: var(--color-oxidised-clay);
}

.label {
  font-family: var(--font-heading);
  font-size: var(--text-label-size);
  font-weight: var(--text-label-weight);
  line-height: var(--text-label-line-height);
  letter-spacing: var(--text-label-letter-spacing);
  text-transform: uppercase;
}

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

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

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-badge);
  background-color: var(--color-oxidised-clay);
  color: var(--color-chalk);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: var(--space-2xs);
  box-shadow: var(--shadow-float);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.flex--gap-none {
  gap: 0;
}

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

.flex--shrink-none {
  flex-shrink: 0;
}

.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: 50%;
  transform: translateX(-50%);
  background-color: var(--color-dark-eucalyptus);
  color: var(--color-chalk);
  padding: var(--space-sm) var(--space-lg);
  z-index: 9999;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-button-size);
  transition: top 200ms ease-out;
}

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

input,
textarea,
select {
  background-color: var(--color-chalk);
  border: var(--border-light);
  border-radius: var(--radius-button);
  padding: var(--space-sm);
  font-family: var(--font-body);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  color: var(--color-dark-eucalyptus);
  width: 100%;
  transition: border-color var(--transition-color);
}

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

textarea {
  resize: vertical;
  min-height: 8rem;
}

::placeholder {
  color: var(--color-charcoal);
  opacity: 0.7;
}

@media (max-width: 767px) {
  :root {
    --container-side-padding: 1rem;
  }

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

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

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

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

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

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

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

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

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

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

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

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