:root {
  color-scheme: only light;
  --page-text: #242a34;
  --heading: #00464e;
  --link: #7fa2a6;
  --link-hover: #22313b;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--page-text);
}

body.page--home-overview {
  background: #d8d0c6 url("/resources/bg-home.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-shell {
  width: min(80vw, 57rem);
  min-width: 60vw;
  max-width: calc(100vw - 2rem);
  padding: 1.5rem;
}

.home-overview {
  position: relative;
  padding: 3.125rem 5rem 2.5rem;
  background: #ffffff;
}

.brand-mark {
  position: absolute;
  top: 0;
  right: 2rem;
  display: block;
  width: 4.0625rem;
  height: 4.0625rem;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

h1 {
  margin: 0 0 3.125rem;
  padding-right: 5.3125rem;
  color: var(--heading);
  text-align: center;
  font-size: 2.625rem;
  line-height: 2.875rem;
  letter-spacing: -1px;
  font-weight: 700;
}

.country-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 1.5rem;
  padding: 0 5%;
}

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

.country-link {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  margin-bottom: 1.25rem;
  color: var(--link);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.1s ease-in-out;
}

.country-link:hover,
.country-link:focus-visible {
  color: var(--link-hover);
  outline: none;
}

.country-flag {
  flex: none;
  width: 1.33333em;
  height: 1em;
}

.footer {
  margin-top: 1.25rem;
  color: var(--heading);
  text-align: center;
}

@media (max-width: 62rem) {
  .page-shell {
    min-width: 0;
    width: min(90vw, 57rem);
  }

  .country-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 48rem) {
  body.page--home-overview {
    display: block;
  }

  .page-shell {
    max-width: none;
    width: auto;
    padding: 1rem;
  }
}

@media (max-width: 36rem) {
  .home-overview {
    padding: 1.25rem;
  }

  h1 {
    margin-bottom: 2rem;
    padding-right: 0;
    font-size: 1.75rem;
    line-height: 2.25rem;
  }

  .brand-mark {
    position: relative;
    right: auto;
    margin: 0 auto 1.25rem;
  }

  .country-columns {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .country-column:last-child .country-link:last-child {
    margin-bottom: 0;
  }
}
