:root {
  /* Brand colours */
  --color-blue: #285a92;
  --color-blue-hover: #1b5bae;
  --color-green: #468147;
  --color-green-hover: #3a6a3a;
  --color-black: #000000;
  --color-white: #ffffff;
  --color-beige-dark: #cac492;
  --color-beige-mid: #dad6b1;
  --color-beige-light: #eae7d0;

  /* Neutral helpers */
  --color-text: #000000;
  --color-border: #d9d5b8;
  --color-muted: #5c5a52;

  /* Typography */
  --font-primary: "Bitter", Georgia, serif;
  --font-small: "Open Sans", Arial, sans-serif;

  /* Layout */
  --site-max-width: 1380px;
  --container-padding: 1rem;

  /* Reusable geometry */
  --radius-small: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.45;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.65em;
  color: var(--color-blue);
  font-weight: 700;
  line-height: 1.18;
}

h1 {
  font-size: clamp(2rem, 3.2vw, 2.45rem);
}

h2 {
  font-size: clamp(1.55rem, 2.5vw, 1.95rem);
}

h3 {
  font-size: 1.1rem;
  color: var(--color-black);
}

p {
  margin: 0 0 1rem;
}

strong {
  font-weight: 700;
}

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--color-blue-hover);
  text-decoration: underline;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-beige-dark);
  border-radius: var(--radius-small);
  background: var(--color-beige-light);
  color: var(--color-text);
  padding: 0.7rem 0.8rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(40, 90, 146, 0.28);
  outline-offset: 2px;
}

label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

code,
.small-text,
.site-footer__copyright,
.form-help {
  font-family: var(--font-small);
}

.small-text,
.form-help {
  color: var(--color-muted);
  font-size: 0.78rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1000;
  transform: translateY(-150%);
  background: var(--color-white);
  padding: 0.6rem 0.9rem;
}

.skip-link:focus {
  transform: translateY(0);
}

@media (min-width: 600px) {
  :root {
    --container-padding: 1.25rem;
  }

  body {
    font-size: 1.04rem;
  }
}

@media (min-width: 900px) {
  :root {
    --container-padding: 1.5rem;
  }

  body {
    font-size: 1.08rem;
  }
}

@media (min-width: 1200px) {
  :root {
    --container-padding: 2rem;
  }
}
