@font-face {
  font-family: "Switzer Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/switzer-variable.woff2") format("woff2");
}
@font-face {
  font-family: "Styro Variable";
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url("fonts/styro-variable.woff2") format("woff2");
}

:root {
  --accent: #ff1a1a;
  --accent-dark: #d41313;
  --cream: #f2ecde;
  --black: #0f0f0f;

  --font-sans: "Switzer Variable", ui-sans-serif, system-ui, sans-serif;
  --font-display:
    "Styro Variable", "Switzer Variable", ui-sans-serif, sans-serif;

  --claim-max: 2.75rem;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
  padding: 0;
}
ul {
  list-style: none;
}
img,
svg {
  display: block;
}
/* Not on svg: a % max-width zeroes its intrinsic width (shrink-to-fit boxes) */
img {
  max-width: 100%;
  height: auto;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

body {
  background: var(--cream);
  color: var(--accent);
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 56px 20px 24px;
}
@media (min-width: 1024px) {
  .page {
    padding: 40px 40px 24px;
  }
}

.wordmark-wrap {
  container-type: inline-size;
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  /* Mobile: extra room below, before the claim */
  padding-block: 32px 64px;
}
@media (min-width: 768px) {
  .wordmark-wrap {
    padding-block: 32px;
  }
}
@media (min-width: 1024px) {
  .wordmark-wrap {
    padding-block: 40px;
  }
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  line-height: 0.8;
  letter-spacing: 0.02em;
  user-select: none;
  font-size: 22vw;
  font-size: 21cqi;
  margin-right: -0.02em;
}

.page__row {
  display: flex;
  flex-shrink: 0;
  flex-direction: column;
  gap: 40px;
}
@media (min-width: 768px) {
  .page__row {
    flex-direction: row;
    align-items: stretch;
    justify-content: space-between;
    gap: 32px;
  }
  .page__row > * {
    width: 50%;
  }
}

.claim-wrap {
  container-type: inline-size;
}
@media (min-width: 768px) {
  .claim-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }
}
.claim {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 0.9;
  letter-spacing: 0.02em;
  font-size: 2.5rem;
  font-size: min(19.4cqi, var(--claim-max));
  display: block;
  text-align: right;
}
@media (min-width: 768px) {
  :root {
    --claim-max: 5.375rem;
  }
  .claim {
    text-align: left;
  }
}

.page__contacts {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.page__contacts > :first-child {
  order: 2;
}
.page__contacts > :last-child {
  order: 1;
}
@media (min-width: 768px) {
  .page__contacts {
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
  }
  .page__contacts > :first-child {
    order: 1;
  }
  .page__contacts > :last-child {
    order: 2;
  }
}

.legal-menu {
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}
.legal-menu li {
  display: inline-block;
  line-height: 1;
}
.legal-menu li:not(:last-child) {
  padding-right: 12px;
  border-right: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.legal-menu li:not(:first-child) {
  padding-left: 12px;
}

/* Sizes and rhythm as in the Kern footer: 20px/28px, 34px pitch (40px from md) */
.contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  font-size: 20px;
  line-height: 28px;
}
@media (min-width: 768px) {
  .contacts {
    gap: 12px;
  }
}
.contacts a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.contacts svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.legal-info {
  display: grid;
  flex-shrink: 0;
  grid-template-columns: 1fr;
  gap: 12px 24px;
  margin-top: 20px;
  padding-block: 20px;
  border-block: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  font-size: 12px;
  line-height: 1.375;
}
@media (min-width: 640px) {
  .legal-info {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 768px) {
  .legal-info {
    margin-top: 48px;
    padding-block: 0;
    border-block: 0;
    font-size: 14px;
  }
}
@media (min-width: 1024px) {
  .legal-info {
    grid-template-columns: repeat(5, 1fr);
  }
  .legal-info__end {
    justify-self: end;
    text-align: right;
  }
}

/* Last in the DOM: page bottom on mobile, top-left from 768px */
.credits {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  align-self: flex-start;
  margin-block: 48px;
}
@media (min-width: 768px) {
  .credits {
    order: -1;
    margin-block: 0;
  }
}
.credits__btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}
@media (min-width: 768px) {
  .credits__btn {
    font-size: 20px;
  }
}
.credits__btn:hover,
.credits__btn:focus-visible {
  text-decoration: underline;
}
.credits__icons {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  /* Points up on mobile, where the panel opens upwards */
  transform: rotate(180deg);
}
@media (min-width: 768px) {
  .credits__icons {
    transform: none;
  }
}
.credits__icons svg {
  position: absolute;
  inset: 0;
  transition: opacity 0.3s;
}
.credits__icon--fill {
  opacity: 0;
}
.credits__btn:hover .credits__icon--line,
.credits__btn:focus-visible .credits__icon--line,
.credits.is-open .credits__icon--line {
  opacity: 0;
}
.credits__btn:hover .credits__icon--fill,
.credits__btn:focus-visible .credits__icon--fill,
.credits.is-open .credits__icon--fill {
  opacity: 1;
}

.credits__panel {
  position: absolute;
  left: 0;
  bottom: 36px;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px 20px;
  max-width: calc(100vw - 40px);
  padding: 20px;
  border-radius: 8px;
  background: rgb(255 255 255 / 0.8);
  backdrop-filter: blur(4px);
  filter: drop-shadow(0 54px 30px rgb(0 0 0 / 0.3));
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.3s 0.075s,
    visibility 0s 0.375s;
}
@media (min-width: 768px) {
  .credits__panel {
    top: 36px;
    bottom: auto;
  }
}
.credits.is-open .credits__panel {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s 0.075s;
}
.credits__roles {
  align-self: center;
  font-size: 16px;
  text-align: right;
  white-space: nowrap;
}
.credits__name {
  align-self: center;
  display: inline-block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.credits__name svg {
  display: inline-block;
  width: 24px;
  height: 24px;
  vertical-align: -4px;
}
.credits__nowrap {
  white-space: nowrap;
}

.doc {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px 20px 24px;
}
@media (min-width: 1024px) {
  .doc {
    padding: 40px 40px 24px;
  }
}
.doc__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 40px;
}
.doc__brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 0.8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.doc__back {
  font-size: 16px;
  font-weight: 500;
}
.doc__body {
  flex: 1 1 auto;
  width: 100%;
  max-width: 56rem;
  margin-inline: auto;
  padding-bottom: 64px;
  font-size: 16px;
  line-height: 1.6;
}
.doc__body h1,
.doc__body h2,
.doc__body h3,
.doc__body h4 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.02em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.doc__body h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 0;
}
.doc__body h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}
.doc__body h3 {
  font-size: 1.25rem;
}
.doc__body h4 {
  font-size: 1.0625rem;
}
.doc__body p,
.doc__body ul,
.doc__body ol,
.doc__body table {
  margin-bottom: 1rem;
}
.doc__body ul,
.doc__body ol {
  padding-left: 1.25rem;
  list-style: revert;
}
.doc__body li {
  margin-bottom: 0.35rem;
}
.doc__body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc__body table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.doc__body td,
.doc__body th {
  padding: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  text-align: left;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
