@font-face {
  font-family: "FGF Text";
  src: url("credits.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "FGF Title";
  src: url("title.otf") format("opentype");
  font-display: swap;
}

:root {
  --fgf-blue: #50b7f1;
  --fgf-white: #fff;
  --fgf-soft-white: rgba(255, 255, 255, 0.82);
  --fgf-border: rgba(255, 255, 255, 0.48);
  --fgf-footer-black: rgba(0, 0, 0, 0.56);
  --fgf-shadow-right:
    0.07em 0.13em 0.13em rgba(0, 0, 0, 0.94),
    0.035em 0.06em 0.04em rgba(0, 0, 0, 0.92);
  --fgf-title-outline:
    -0.026em -0.026em 0 rgba(0, 0, 0, 0.95),
    0.026em -0.026em 0 rgba(0, 0, 0, 0.95),
    -0.026em 0.026em 0 rgba(0, 0, 0, 0.95),
    0.026em 0.026em 0 rgba(0, 0, 0, 0.95);
}

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

html {
  min-height: 100%;
  background: #000;
  color-scheme: dark;
}

body {
  min-height: 100%;
  margin: 0;
  background: #000;
  color: var(--fgf-soft-white);
}

a {
  color: inherit;
  text-underline-offset: 0.16em;
}

.site-shell {
  min-height: 100svh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.25rem;
  padding: 0.4rem;
  background: #000;
}

.home-shell {
  height: 100svh;
  min-height: 100svh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.6rem;
  padding: clamp(0.8rem, 1.45vw, 1.2rem);
  overflow: hidden;
}

.home-header {
  min-width: 0;
  padding-top: 0.15rem;
  text-align: center;
}

.home-header h1 {
  margin: 0;
  color: var(--fgf-white);
  font-family: "FGF Title", sans-serif;
  font-size: clamp(2rem, 5.1vw, 4.4rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.015em;
  text-shadow:
    var(--fgf-title-outline),
    var(--fgf-shadow-right);
}

.video-page {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-video {
  display: block;
  width: calc(100vw - clamp(1.6rem, 2.9vw, 2.4rem));
  height: calc(100svh - clamp(7.2rem, 10.6vw, 10.1rem));
  max-width: none;
  max-height: none;
  object-fit: contain;
  background: #000;
  border-radius: 0.22rem;
}

.content-shell {
  position: relative;
  isolation: isolate;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  min-height: 100svh;
  overflow-x: hidden;
  padding: 0.4rem 0 calc(3.4rem + env(safe-area-inset-bottom));
  background:
    linear-gradient(rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.5)),
    url("FamilyGuyFunniesBackground.jpg") center / cover no-repeat #000;
}

.content-shell::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.24);
}

.page-background-video {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  background: url("FamilyGuyFunniesBackground.jpg") center / cover no-repeat #000;
}

.content-page {
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 3vw, 2rem);
}

.content-card {
  width: min(92vw, 980px);
  margin-inline: auto;
  text-align: center;
}

.content-header h1 {
  margin: 0;
  color: var(--fgf-white);
  font-family: "FGF Title", sans-serif;
  font-size: clamp(3rem, 10vw, 7.5rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.015em;
  text-shadow:
    var(--fgf-title-outline),
    var(--fgf-shadow-right);
}

.subhead {
  margin: 0.6rem 0 0;
  color: var(--fgf-blue);
  font-family: "FGF Text", sans-serif;
  font-size: clamp(1.2rem, 3.2vw, 2.3rem);
  line-height: 1.1;
  text-shadow: var(--fgf-shadow-right);
}

.title-line {
  width: min(78vw, 720px);
  height: 2px;
  margin: clamp(1rem, 3vw, 1.8rem) auto;
  background: rgba(255, 255, 255, 0.48);
  border-radius: 999px;
  box-shadow: 0.07em 0.13em 0.13em rgba(0, 0, 0, 0.68);
}

.button-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 2vw, 1rem);
  width: min(86vw, 720px);
  margin-inline: auto;
}

.big-button {
  display: grid;
  place-items: center;
  min-height: clamp(3.2rem, 8vw, 4.8rem);
  padding: 0.8rem 1rem;
  border: 2px solid var(--fgf-border);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fgf-white);
  font-family: "FGF Text", sans-serif;
  font-size: clamp(1.1rem, 2.7vw, 1.8rem);
  line-height: 1;
  text-decoration: none;
  text-shadow: var(--fgf-shadow-right);
  transform: translateY(0) scale(1);
  transition:
    transform 140ms ease,
    color 140ms ease,
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.big-button:hover,
.big-button:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.86);
  color: var(--fgf-blue);
  box-shadow: 0.18rem 0.18rem 0.12rem rgba(0, 0, 0, 0.56);
  transform: translateY(-0.12rem) scale(1.035);
}

.big-button:active {
  box-shadow: 0.08rem 0.08rem 0.08rem rgba(0, 0, 0, 0.68);
  transform: translateY(0.06rem) scale(0.985);
}

.text-card {
  width: min(90vw, 820px);
}

.text-content {
  width: min(86vw, 720px);
  margin-inline: auto;
  color: var(--fgf-blue);
  font-family: "FGF Text", sans-serif;
  font-size: clamp(1.1rem, 2.4vw, 1.65rem);
  line-height: 1.35;
  text-shadow: var(--fgf-shadow-right);
}

.text-content p {
  margin: 0;
}

.text-content p + p {
  margin-top: 0.85rem;
}

.site-footer {
  width: 100%;
  margin-inline: auto;
  padding-bottom: 0.05rem;
  color: var(--fgf-white);
  text-align: center;
  font-family: "FGF Text", sans-serif;
  font-size: clamp(0.68rem, 1.2vw, 0.8rem);
  line-height: 1.15;
  text-shadow: var(--fgf-shadow-right);
}

.content-shell .site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.65rem calc(0.5rem + env(safe-area-inset-bottom));
  background: var(--fgf-footer-black);
  border-radius: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--fgf-blue);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.15rem 0.75rem;
  margin-top: 0.12rem;
}

.footer-links a {
  color: var(--fgf-blue);
}

.site-footer a:hover,
.site-footer a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--fgf-white);
}

@media (prefers-reduced-motion: reduce) {
  .page-background-video {
    display: none;
  }

  .big-button {
    transition: none;
  }

  .big-button:hover,
  .big-button:focus-visible,
  .big-button:active {
    transform: none;
  }
}

@media (max-width: 620px) {
  .button-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 620px) {
  .home-shell {
    gap: 0.42rem;
    padding: 0.65rem;
  }

  .home-header {
    padding-top: 0.05rem;
  }

  .home-header h1 {
    font-size: clamp(1.5rem, 5.6vw, 3rem);
  }

  .main-video {
    width: calc(100vw - 1.3rem);
    height: calc(100svh - 5.85rem);
  }
}

@media (max-height: 520px) {
  .site-shell {
    gap: 0.18rem;
    padding: 0.25rem;
  }

  .content-shell {
    padding: 0.25rem 0 calc(2.95rem + env(safe-area-inset-bottom));
  }

  .home-shell {
    gap: 0.3rem;
    padding: 0.5rem;
  }

  .home-header h1 {
    font-size: clamp(1.25rem, 5.4vw, 2.35rem);
  }

  .main-video {
    width: calc(100vw - 1rem);
    height: calc(100svh - 4.9rem);
  }

  .content-page {
    padding: 0.5rem;
  }

  .content-header h1 {
    font-size: clamp(2.4rem, 11vw, 5rem);
  }

  .subhead {
    margin-top: 0.35rem;
    font-size: clamp(1rem, 4vw, 1.6rem);
  }

  .title-line {
    margin: 0.7rem auto;
  }

  .big-button {
    min-height: 2.7rem;
  }

  .text-content {
    font-size: clamp(0.95rem, 3.6vw, 1.25rem);
    line-height: 1.22;
  }

  .site-footer {
    font-size: 0.64rem;
    line-height: 1.08;
  }

  .content-shell .site-footer {
    padding: 0.35rem 0.45rem calc(0.38rem + env(safe-area-inset-bottom));
    border-radius: 0;
  }

  .footer-links {
    margin-top: 0.08rem;
  }
}

/* GRIFFIN ROLL CALL */
/* v. 2.0 */