:root {
  --color-green: #23483b;
  --color-green-dark: #17352c;
  --color-red: #a12e32;
  --color-ivory: #f7f3ec;
  --color-soft: #eae1d8;
  --color-text: #242424;
  --color-white: #ffffff;

  --container: 75rem;
  --header-height: 4.75rem;
  --space-section: 4.5rem;

  --radius-control: 0.35rem;
  --radius-media: 0.6rem;
}

/* Reset
--------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  background: var(--color-ivory);
  color: var(--color-text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

p {
  margin-top: 0;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

/* Typography
--------------------------------------------- */

h1,
h2,
h3 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

h1 {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 15vw, 4.75rem);
}

h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.25rem, 11vw, 3.5rem);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--color-red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section--dark .eyebrow {
  color: var(--color-white);
}

/* Sections
--------------------------------------------- */

.section {
  padding-block: var(--space-section);
}

.section--dark {
  background: var(--color-green);
  color: var(--color-white);
}

.section--soft {
  background: var(--color-soft);
}

/* Buttons
--------------------------------------------- */

.button {
  display: inline-flex;
  width: 100%;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.25rem;
  background: var(--color-red);
  border: 1px solid var(--color-red);
  border-radius: var(--radius-control);
  color: var(--color-white);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button--secondary {
  background: transparent;
  border-color: var(--color-green);
  color: var(--color-green);
}

.button:hover,
.button:focus-visible {
  background: var(--color-green);
  border-color: var(--color-green);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: var(--color-green);
  color: var(--color-white);
}

/* Shared interactive controls
--------------------------------------------- */

.button,
.header-cta,
.footer-contact__button,
.menu-toggle {
  border-radius: var(--radius-control);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

/* Accessibility
--------------------------------------------- */

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 9999;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  clip: auto;
  background: var(--color-white);
  color: var(--color-text);
}

/* Tablet
--------------------------------------------- */

@media screen and (min-width: 48rem) {
  :root {
    --header-height: 5rem;
    --space-section: 6rem;
  }

  .container {
    width: min(calc(100% - 4rem), var(--container));
  }

  .button {
    width: auto;
  }
}

/* Desktop
--------------------------------------------- */

@media screen and (min-width: 72rem) {
  :root {
    --header-height: 5.75rem;
    --space-section: 8rem;
  }
}

/* Hover effects
--------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .header-cta:hover,
  .footer-contact__button:hover {
    transform: translateY(-0.1rem);
  }
}
