@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2');
}

@font-face {
  font-family: Gravity;
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('/fonts/ABCGravity-Wide.woff2') format('woff2');
}

:root {
  --red: #f00;
  --grey: #f8f8f8;
  --ink: #1e293b;
  --muted: #627289;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  color-scheme: light;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: auto;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--grey);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.6;
}

::selection {
  background: var(--red);
  color: #fff;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: var(--red);
}

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

.container {
  width: 100%;
  max-width: 1696px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Header */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
}

.symbol {
  display: block;
  width: 3rem;
  height: 3rem;
  color: var(--red);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  border: 3px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  font-family: Gravity, Inter, sans-serif;
  font-weight: 800;
  font-size: 0.8125rem;
  line-height: 1;
  white-space: nowrap;
}

.status::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

@media (prefers-reduced-motion: no-preference) {
  .status::before {
    animation: pulse 5s ease-out infinite;
  }

  /* The dot stays solid; a soft ring breathes out of it and fades. */
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgb(255 0 0 / 0.45);
    }

    60%,
    100% {
      box-shadow: 0 0 0 0.4rem rgb(255 0 0 / 0);
    }
  }
}

.top-end {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.5rem);
}

.status {
  margin: 0;
}

.lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-family: Gravity, Inter, sans-serif;
  font-weight: 800;
  font-size: 0.8125rem;
  line-height: 1;
}

.lang a {
  text-decoration: none;
}

.lang a[aria-current] {
  color: var(--red);
}

/*
 * Narrow screens: once logo, badge and switcher no longer fit on one row,
 * logo and switcher share the first row and the badge gets its own. The
 * German badge is wider, so German stacks earlier (480px) than English (430px).
 */
@media (max-width: 479px) {
  .top {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    row-gap: 1.25rem;
  }

  .top-end {
    display: contents;
  }

  .lang {
    justify-self: end;
  }

  .status {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
  }
}

@media (min-width: 430px) and (max-width: 479px) {
  html[lang='en'] .top,
  html[lang='en'] .top-end {
    display: flex;
  }
}

/* Main */

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(1.5rem, 4vh, 4rem);
}

.claim {
  margin: 0 0 clamp(2rem, 5vh, 3.5rem);
  max-width: 22ch;
  color: var(--red);
  text-wrap: balance;
  font-family: Gravity, Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 0.9rem + 2.4vw, 2.75rem);
  line-height: 1.15;
}

.note {
  max-width: 34rem;
}

.note p {
  margin: 0 0 1em;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.4rem 0.75rem;
  border: 2px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  font-family: Gravity, Inter, sans-serif;
  font-weight: 800;
  font-size: 0.6875rem;
  line-height: 1;
  white-space: nowrap;
}

/* Pills turn negative on hover: red fill, text in the page background. */
.status,
.tags li {
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

@media (hover: hover) {
  .status:hover,
  .tags li:hover {
    background-color: var(--red);
    color: var(--grey);
  }
}

.notice {
  font-weight: 600;
}

.signoff {
  margin-top: 2rem !important;
}

/* Wordmark */

.wordmark {
  display: block;
  width: 100%;
  height: auto;
  color: var(--red);
}

/* Footer */

footer {
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(1rem, 2vw, 1.5rem);
  color: var(--muted);
  font-size: 0.9375rem;
}

.legal nav {
  display: flex;
  gap: 1.5rem;
}

.legal a {
  text-decoration: none;
}

/* Legal pages */

.prose {
  max-width: 44rem;
}

.prose h1 {
  margin: 0 0 2rem;
  color: var(--red);
  font-family: Gravity, Inter, sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 0.9rem + 2.4vw, 2.75rem);
  line-height: 1.15;
}

.prose h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.prose p,
.prose ul {
  margin: 0 0 1em;
}

.prose ul {
  padding-left: 1.25rem;
}

.prose-page main {
  justify-content: flex-start;
}
