:root {
  --maroon: #ac1f2d;
  --white: #ffffff;
  --text: #1a1a1a;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: #141618;
}

body {
  min-height: 0;
  display: flex;
  flex-direction: column;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  line-height: 1.4;
}

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

a {
  color: inherit;
}

.site-header {
  flex: 0 0 auto;
  background: #ac1f2d;
  background-color: #ac1f2d;
  color: #ffffff;
  padding-top: env(safe-area-inset-top, 0);
  border-bottom: 4px solid #7a1520;
}

.header-inner {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.header-social,
.header-meta {
  display: flex;
  align-items: center;
}

.header-meta {
  justify-content: flex-end;
  text-align: right;
}

.header-social a,
.header-social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.header-social a {
  display: inline-flex;
  color: var(--white);
}

.header-social a:hover,
.footer-links a:hover {
  opacity: 0.8;
}

.header-social a:focus-visible,
.header-logo:focus-visible,
.footer-links a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.header-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: var(--white);
}

.header-logo img {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.logo-wordmark {
  display: flex;
  align-items: center;
  line-height: 1;
}

.logo-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-meta p {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  background: #141618;
}

.hero img {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 42%;
}

.intro {
  flex: 0 0 auto;
  padding: 20px 20px 14px;
  text-align: center;
  background: #ac1f2d;
  background-color: #ac1f2d;
  color: #ffffff;
}

.intro h1,
.intro p {
  margin: 0;
  font-family: Oswald, "Arial Narrow", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.intro h1 {
  font-size: 34px;
  line-height: 1.15;
}

.intro p {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.site-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ac1f2d;
  background-color: #ac1f2d;
  color: #ffffff;
  padding: 14px 24px calc(16px + env(safe-area-inset-bottom, 0));
  border-top: 4px solid #7a1520;
}

.footer-links {
  width: min(420px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding-top: 0;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  text-decoration: none;
  color: var(--white);
}

.footer-links img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.footer-links a:first-child img {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

@media (max-width: 767px) {
  html {
    height: 100%;
    height: -webkit-fill-available;
  }

  html,
  body {
    overflow: hidden;
    overscroll-behavior: none;
    background: #ac1f2d;
    background-color: #ac1f2d;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    height: 100%;
    height: 100vh;
    height: 100dvh;
    height: -webkit-fill-available;
    max-height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    min-height: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    padding-bottom: 0;
  }

  main {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .site-header,
  .intro,
  .site-footer {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    background: #ac1f2d;
    background-color: #ac1f2d;
  }

  .site-header {
    min-height: 64px;
    border-bottom: 0;
  }

  .header-inner {
    width: calc(100% - 20px);
    min-height: 64px;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .logo-mark {
    font-size: 34px;
  }

  .header-social,
  .header-meta {
    display: none;
  }

  .hero {
    position: relative;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    background: #141618;
  }

  .hero img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: 26% 46%;
    object-position: 26% 46%;
  }

  .intro {
    position: static;
    padding: 22px 18px 20px;
  }

  .intro h1 {
    font-size: 30px;
    line-height: 1.15;
  }

  .intro p {
    margin-top: 6px;
    font-size: 18px;
  }

  .footer-links {
    width: min(300px, 100%);
    gap: 40px;
    padding-top: 0;
  }

  .footer-links a,
  .footer-links img {
    width: 48px;
    height: 48px;
  }

  .site-footer {
    position: static;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 3px solid #7a1520;
  }
}

@media (max-width: 767px) and (max-height: 500px) {
  html,
  body {
    overflow: auto;
    height: auto;
    max-height: none;
  }

  .hero {
    min-height: 200px;
  }
}

@media (min-width: 768px) {
  .intro h1 {
    font-size: 48px;
  }

  .intro p {
    font-size: 22px;
  }
}

@media (min-width: 768px) and (max-height: 620px) {
  html,
  body {
    overflow: auto;
    height: auto;
    max-height: none;
  }

  .hero {
    min-height: 280px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .header-meta p {
    font-size: 11px;
  }

  .logo-mark {
    font-size: 34px;
  }

  .footer-links {
    gap: 36px;
  }
}
