:root {
  --clr-red: hsl(3 68% 48%);
  --clr-teal: hsl(181 39% 42%);
  --clr-white: hsl(0 0% 100%);
  --clr-black: hsl(0 0% 0%);
  --fs-scale-400: 1.125rem;

  --spacing: 0.625rem;
  --border-radius: .5rem;
  --transition-time: 200ms;

  --clr-bg: var(--clr-black);
  --clr-text: var(--clr-white);
  --clr-accent: var(--clr-teal);
  --base-font-weight: 400;
  --base-font-size: var(--fs-scale-400);
}

@font-face {
  font-family: 'Replica Mono Pro';
  src: url('/themes/custom/tlg_v2/fonts/ReplicaMonoPro-Regular.woff2') format('woff2')
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}

body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100dvh;
  background-color: var(--clr-bg);
  color: var(--clr-text);
  font-family: "Replica Mono Pro", monospace;
  font-size: var(--base-font-size);
  line-height: 1.45;
}

h1 {
  font-size: var(--base-font-size);
  font-weight: var(--base-font-weight);
}

h2 {
  font-size: var(--base-font-size);
  font-weight: var(--base-font-weight);
  text-transform: uppercase;
}

a {
  color: currentColor;
  text-decoration: none;
}

.bg-video {
  z-index: -2;
  position: fixed;
  video {
    inset: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
  }
}

.bg-overlay {
  z-index: -1;
  position: fixed;
  inset: 0;
  background-color: var(--clr-bg);
  opacity: .8;
  --hole-x: 50%;
  --hole-y: 50%;
  --hole-d: 50vmin;
  --hole-transition: 800ms;
  --feather: 1px;

  mask-image: radial-gradient(
    circle at var(--hole-x) var(--hole-y),
    transparent 0,
    transparent calc(var(--hole-d) / 2 - var(--feather)),
    white calc(var(--hole-d) / 2 + var(--feather)),
    white 100%
  );
  -webkit-mask-image: radial-gradient(
    circle at var(--hole-x) var(--hole-y),
    transparent 0,
    transparent calc(var(--hole-d) / 2 - var(--feather)),
    white calc(var(--hole-d) / 2 + var(--feather)),
    white 100%
  );

  transition: --hole-d var(--hole-transition) ease;
  cursor: pointer;
}

@media (max-width: 799.98px) {
  .bg-overlay {
    --hole-x: 50%;
    --hole-y: 33%;
    --hole-d: 90vmin;
  }
}

body.overlay-gone {
  cursor: zoom-out;
}

body.overlay-gone .bg-overlay {
  --hole-d: 300vmax;
}

@property --hole-d {
  syntax: '<length>';
  inherits: true;
  initial-value: 0px;
}

.topbar {
  padding: var(--spacing);
  font-size: var(--base-font-size);
  text-transform: uppercase;
  text-align: right;
  @media (min-width: 800px) {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }
}

.topbar::before {
  @media (min-width: 800px) {
    content: "";
  }
}

.topbar > div {
  justify-self: end;
  color: var(--clr-accent);
  .countdown {
    color: var(--clr-text);
  }
}

.main-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  max-width: 55ch;
  padding: var(--spacing);
  padding-block-start: 100vw;
  @media (min-width: 800px) {
    max-width: min(55ch, 36vw);
    justify-content: center;
    padding-block-start: var(--spacing);
  }
}

.event-title {
  @media (min-width: 800px) {
    position: absolute;
    top: var(--spacing);
    left: var(--spacing);
  }
}

.event-container > * {
  margin-block-start: 1em;
}

.button {
  display: flex;
  justify-content: center;
  padding: var(--spacing);
  border-radius: var(--border-radius);
  background-color: var(--clr-red);
  text-transform: uppercase;
  transition: background-color var(--stranssition-time);
}

.button:hover {
  background-color: hsl(from var(--clr-red) h s l / 80%);
}

.bottombar {
  padding: var(--spacing);
  text-transform: uppercase;
  text-align: center;
}

body:not(.overlay-gone) {
  .bottombar span:nth-child(1) { display: inline; }
  .bottombar span:nth-child(2) { display: none; }
}

body.overlay-gone {
  .bottombar span:nth-child(1) { display: none; }
  .bottombar span:nth-child(2) { display: inline; }
}