@font-face {
  font-family: "Titan One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/titan-one-400.woff2") format("woff2");
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/atkinson-hyperlegible-400.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: only light;
  height: 100%;
  overflow-x: clip;
  background: #fff;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: clip;
  display: grid;
  place-items: center;
  color: #000;
  background: #fff;
  font-family: "Atkinson Hyperlegible", "Avenir Next", "Segoe UI", sans-serif;
}

main {
  width: min(100%, 72rem);
  max-width: 100%;
  min-width: 0;
  padding:
    1.5rem
    max(1.25rem, env(safe-area-inset-right))
    calc(2rem + env(safe-area-inset-bottom))
    max(1.25rem, env(safe-area-inset-left));
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin: 0;
  font-family: "Titan One", "Arial Black", sans-serif;
  font-weight: 400;
  font-size: clamp(4rem, 26vw, 17rem);
  line-height: 0.82;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  max-width: 100%;
  color: #000;
}

.is-yes h1 {
  font-size: clamp(3.25rem, 18vw, 13.5rem);
}

#fact,
#kicker,
#when {
  width: min(40rem, calc(100vw - 3rem));
  max-width: calc(100vw - 3rem);
  min-width: 0;
  margin-inline: auto;
  line-height: 1.35;
  text-wrap: balance;
  color: #000;
}

#fact,
#kicker {
  font-size: clamp(1.05rem, 0.7rem + 1.6vw, 1.55rem);
}

#fact {
  margin: 1.15rem 0 0;
}

#kicker {
  margin: 0.35rem 0 0;
}

#kicker[hidden] {
  display: none;
}

#when {
  margin: 0.75rem 0 0;
  font-size: clamp(0.95rem, 0.55rem + 1.6vw, 1.2rem);
}

.beer[hidden] {
  display: none;
}

.beer:not([hidden]) {
  display: block;
  width: min(168px, 46vw);
  margin: 0 auto 0.85rem;
}

.beer svg {
  display: block;
  width: 100%;
  height: auto;
}

.fallback {
  margin: 0;
  max-width: 22em;
  padding: 2rem 1.25rem;
  font-size: 1.25rem;
  line-height: 1.4;
  text-align: center;
  text-wrap: balance;
  color: #000;
}

::selection {
  background: #000;
  color: #fff;
}
