:root {
  --color-darkest-dm: #05282a;
  --color-dark-dm: #27504c;
  --color-green-light: #94e3c2;
  --color-accent-dm: #f6f268;
  --color-gray-light: #f5f5f5;

  --content-max-width: 80rem;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--color-gray-light);
  color: var(--color-darkest-dm);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Header */

.header {
  background-color: var(--color-green-light);
}

/* Full-bleed on purpose: the logo belongs at the left edge and the sign-in button at the
   right one, so this bar is not constrained to --content-max-width like the main column. */
.header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 2rem;
}

.header__logo {
  justify-self: start;
}

.header__title {
  justify-self: center;
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  text-shadow: 0 4px 4px rgb(0 0 0 / 25%);
}

.header__actions {
  justify-self: end;
}

/* Main navigation */

.menu {
  background-color: var(--color-darkest-dm);
}

/* Bar height comes from the original portal; the items line up with the header logo above
   rather than with the main column. The zero margin matters — the browser default on ul
   would add 1rem above and below the bar. */
.menu__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  min-height: 3.5rem;
  margin: 0;
  padding-left: 2rem;
  list-style: none;
}

.menu__link {
  color: var(--color-accent-dm);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}

.menu__link:hover {
  text-decoration: underline;
}

.menu__link:focus-visible {
  outline: 2px solid var(--color-accent-dm);
  outline-offset: 4px;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 8px 12px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.button:hover {
  opacity: 0.85;
}

.button:focus-visible {
  outline: 2px solid var(--color-darkest-dm);
  outline-offset: 2px;
}

.button--dark {
  background-color: var(--color-darkest-dm);
  color: var(--color-accent-dm);
}

.button--big {
  height: 56px;
  padding: 18px 26px;
  border-radius: 8px;
}

/* Main content */

.main {
  flex: 1;
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
  padding: 6rem 0 0;
}

.intro {
  display: flex;
}

.intro__decoration {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 20rem;
}

/* The wide right margin is what keeps the lines from running the full container width. */
.intro__content {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 13.75rem;
}

.intro__content p {
  margin: 0 0 1rem;
}

.intro__content a:not(.button) {
  color: var(--color-darkest-dm);
  text-decoration: underline;
}

.intro__list {
  margin: 1rem 0;
  padding-left: 1.5rem;
  list-style: disc;
}

.intro__outro {
  margin-bottom: 2.75rem !important;
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

/* Simple content page */

/* Its own inset, because .main is flush with the container to match the landing page. */
.page {
  width: 100%;
  padding-inline: 2rem;
}

.page__title {
  margin: 0 0 1.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
}

.page p {
  margin: 0 0 1rem;
}

.page a {
  color: var(--color-darkest-dm);
  text-decoration: underline;
}

.page__list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.page__list li {
  margin-bottom: 0.5rem;
  overflow-wrap: break-word;
}

.page__back {
  margin-top: 2rem;
}

/* Footer */

.footer {
  margin-top: 4.5rem;
  padding: 26px 1rem;
  background-color: var(--color-dark-dm);
  color: #fff;
  font-size: 0.875rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  max-width: var(--content-max-width);
  margin-inline: auto;
}

.footer__column {
  min-width: 13.75rem;
}

.footer__column--contact {
  max-width: 24rem;
}

.footer__heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
}

.footer p {
  margin: 0 0 0.5rem;
}

.footer__address {
  font-style: normal;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.footer__nowrap {
  white-space: nowrap;
}

/* Responsive */

@media (min-width: 768px) {
  .header__title {
    font-size: 3rem;
  }

  .footer__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
  }
}

@media (max-width: 1023px) {
  /* Below the container width the content would otherwise touch the window edge. */
  .main {
    padding-inline: 1rem;
  }

  .intro__decoration {
    width: 11.25rem;
  }

  .intro__content {
    margin-right: 3rem;
  }
}

@media (max-width: 767px) {
  .header__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }

  .header__logo,
  .header__actions {
    justify-self: center;
  }

  .main {
    padding: 3rem 1rem 0;
  }

  .menu__list {
    padding-inline: 1rem;
  }

  .intro {
    flex-direction: column-reverse;
    gap: 2.5rem;
  }

  .intro__content {
    margin-right: 0;
  }

  .intro__decoration {
    flex-direction: row;
    justify-content: center;
    width: 100%;
  }

  .intro__actions {
    gap: 1rem;
  }

  .intro__actions .button {
    flex: 1 1 12rem;
  }
}
