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

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/Roboto-Medium.woff2") format("woff2");
}

@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/Roboto-Bold.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --fg: #f8f8fa;
  --bar: #202124;
  --bar-border: #5f6368;
  --content-bg: #06080c;
}

* {
  box-sizing: border-box;
}

/* Grey, so iOS overscroll and browser bars blend with the header and footer. */
html {
  background: var(--bar);
}

body {
  margin: 0;
  color: var(--fg);
  font-family: Roboto, Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid white;
  outline-offset: 5px;
}

[hidden] {
  display: none !important;
}

.skip {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem;
  background: white;
  color: black;
}

.skip:focus {
  top: 1rem;
}

.site-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--bar);
  border-bottom: 1px solid var(--bar-border);
}

.wordmark {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.wordmark svg {
  display: block;
  height: 24px;
  width: auto;
  transform: translateY(-1px);
}

.header-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1rem;
  color: #dedee0;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--bar-border);
  background: var(--bar);
  font-size: 14px;
  color: #a8a8aa;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.site-footer a {
  /* Larger tap area without a taller footer. */
  padding-block: 14px;
  margin-block: -14px;
  text-decoration: none;
}

.header-back:hover,
.site-footer a:hover {
  text-decoration: underline;
}

@media (min-width: 431px) {
  .site-footer {
    padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  }
}
