@font-face {
  font-family: "PT Sans";
  src: url("fonts/PTSans-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PT Sans";
  src: url("fonts/PTSans-Bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Merriweather;
  src: url("fonts/Merriweather-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal-dark: rgb(0, 104, 91);
  --teal: rgb(19, 130, 117);
  --teal-link: rgb(0, 136, 84);
  --ink: rgb(33, 33, 33);
  --mint: rgb(77, 255, 175);
  --logo-bg: rgb(242, 239, 239);
  --white: #fff;
  --max: 1040px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Merriweather, Georgia, "Times New Roman", serif;
  font-size: 11pt;
  line-height: 1.6667;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 18px 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  font-family: "PT Sans", "Segoe UI", sans-serif;
  font-size: 15pt;
  font-weight: 700;
  line-height: 1.333;
}

.brand:hover,
.brand:focus-visible {
  color: var(--mint);
}

.brand img {
  width: 48px;
  height: 48px;
  display: block;
  background: var(--logo-bg);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 460px;
  padding: 96px 24px 64px;
  color: var(--white);
  text-align: center;
  background-color: var(--teal-dark);
  background-image: url("img/hero-pattern.png");
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(33, 33, 33, 0.4);
  z-index: -1;
}

.hero h1 {
  margin: 0;
  font-family: "PT Sans", "Segoe UI", sans-serif;
  font-size: 34pt;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.contact {
  background: var(--teal);
  color: var(--white);
  padding: 48px 24px;
}

.contact-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 40px 72px;
  align-items: center;
}

.logo-large {
  display: block;
  width: 100%;
  background: var(--logo-bg);
}

.contact h2 {
  margin: 0 0 8px;
  font-family: "PT Sans", "Segoe UI", sans-serif;
  font-size: 34pt;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.contact .strapline {
  margin: 16px 0 20px;
  max-width: 34em;
}

.contact p {
  margin: 12px 0 0;
}

.contact a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact a:hover,
.contact a:focus-visible {
  color: var(--mint);
}

.site-footer {
  padding: 28px 16px;
  text-align: center;
  color: rgb(80, 80, 80);
  font-family: "PT Sans", "Segoe UI", sans-serif;
  font-size: 9pt;
  line-height: 1.4;
  background: var(--white);
}

.site-footer p {
  margin: 0;
}

/* 404 */
.page-message {
  max-width: 36em;
  margin: 0 auto;
  padding: 140px 24px 80px;
  text-align: center;
}

.page-message h1 {
  margin: 0 0 16px;
  color: var(--teal-dark);
  font-family: "PT Sans", "Segoe UI", sans-serif;
  font-size: 34pt;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.page-message a {
  color: var(--teal-link);
}

.page-message a:hover,
.page-message a:focus-visible {
  color: var(--teal-dark);
}

/* 404 shares the header but needs a dark bar because there is no hero */
body.inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.inner .site-header {
  position: relative;
  background: var(--teal-dark);
}

body.inner .page-message {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

@media only screen and (max-width: 767px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    font-size: 13pt;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .hero {
    min-height: 320px;
    padding: 88px 20px 48px;
  }

  .hero h1,
  .contact h2,
  .page-message h1 {
    font-size: 24pt;
  }

  .contact {
    padding: 32px 16px 40px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 420px;
  }
}

@media only screen and (min-width: 480px) and (max-width: 767px) {
  .hero h1,
  .contact h2,
  .page-message h1 {
    font-size: 29pt;
  }
}

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