@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/SourceSansPro-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/SourceSansPro-Semibold.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --red: #9e0529;
  --page-width: 72rem;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #fff;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  color: #000;
  font-family: "Source Sans Pro", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

header {
  flex: none;
  background: #fff;
}

header::after {
  min-height: 3.15rem;
  display: block;
  background: var(--red);
  content: "";
}

.header-inner {
  width: min(calc(100% - 3rem), var(--page-width));
  min-height: 8.6rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  padding-block: 1.5rem;
}

.brand {
  display: block;
  width: clamp(15rem, calc(100vw - 60rem), 18.5rem);
  transform: translateX(-13.7031%);
}

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

main {
  flex: 1;
}

@media (max-width: 760px) {
  .header-inner {
    width: min(calc(100% - 2rem), var(--page-width));
    min-height: 7rem;
  }

  .brand {
    width: 10rem;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 1rem;
  }

  .header-inner {
    min-height: 6.2rem;
  }

  header::after {
    min-height: 2.5rem;
  }
}
