:root {
  --color-black: #0c0c0c;
  --color-white: #ffffff;
  --color-off-white: #f5f5f5;
  --color-text: #000000;
  --color-muted: #787878;
  --color-link-muted: #5f5f5f;
  --color-border: #e9ecef;
  --color-divider: #333333;
  --color-soft-divider: #e6e6e6;
  --color-tag-bg: #edf2ff;
  --color-tag-text: #364fc7;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-height: 100px;
  --width-page: 1600px;
  --width-content: 1600px;
  --space-page-x: 0px;
}

html {
  color: var(--color-text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 20px;
  background: var(--color-white);
}

* {
  box-sizing: border-box;
}

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

a.hyperlink {
  color: var(--color-link-muted);
  transition: color 0.075s ease;
}

a.hyperlink:hover,
a.hyperlink:focus {
  color: #aaaaaa;
}

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

img,
video {
  max-width: 100%;
}

img {
  user-select: none;
  -webkit-user-drag: none;
}

video {
  display: block;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin-top: 0;
}

h1,
h2 {
  font-weight: 700;
  line-height: normal;
}

h1 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  font-size: 48px;
}

h2 {
  margin-bottom: 1.75rem;
  font-size: 48px;
}

h3 {
  margin-bottom: 1.35rem;
  font-size: 1.17em;
  line-height: normal;
}

h4 {
  margin-bottom: 1rem;
  font-size: 1em;
}

h1[id],
h2[id],
section[id] {
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

p {
  line-height: normal;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: var(--header-height);
  pointer-events: none;
}

.site-header-inner {
  display: flex;
  align-items: center;
  width: min(100%, var(--width-page));
  height: 100%;
  margin: 0 auto;
  background: var(--color-black);
  color: #a0a0a0;
  font-size: 1.1rem;
  font-weight: 700;
  pointer-events: auto;
  user-select: none;
}

.site-logo {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0 2rem;
}

.site-logo img,
.footer-logo img {
  width: auto;
  height: 3.5rem;
  filter: invert(1);
  image-rendering: pixelated;
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
}

.site-nav a {
  margin: 0.5rem 2rem;
  transition: color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus,
.site-nav a[aria-current="page"] {
  color: var(--color-white);
}

.mobile-menu {
  display: none;
}

.landing {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 840px;
  overflow: hidden;
  text-align: center;
}

.landing > .content {
  position: relative;
  z-index: 1;
  width: var(--width-content);
  margin: auto;
  padding-right: var(--space-page-x);
  padding-left: var(--space-page-x);
}

.landing p {
  width: 600px;
  margin: auto;
  font-size: 22px;
}

.landing .buttons {
  margin-top: 6rem;
}

.button {
  --button-height: 2.63rem;

  display: inline-block;
  min-width: 9.9rem;
  height: var(--button-height);
  padding: 0 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  color: var(--color-text);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: var(--button-height);
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  user-select: none;
}

.button.light {
  color: var(--color-white);
}

.button.dark {
  border-color: var(--color-text);
}

.landing.index {
  background: var(--color-off-white);
}

.landing.index::before {
  position: absolute;
  inset: 0;
  animation: fade-in 3s, translate-up 3s;
  background-image: url("/assets/frivolition/versus-2.png");
  background-position: center;
  background-size: cover;
  opacity: 0.1;
  image-rendering: pixelated;
  content: "";
}

.landing.career::before,
.landing.support::before {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  content: "";
}

.landing.career::before {
  background-image: url("/assets/frivolition/background-career.jpg");
  opacity: 0.35;
}

.landing.support::before {
  background-image: url("/assets/frivolition/background-support.jpg");
  opacity: 0.125;
}

.landing.dbg-index {
  color: var(--color-white);
  background-image: url("/assets/daysbygone/background-midnight.png");
  background-position: center;
  background-size: cover;
  image-rendering: pixelated;
  text-align: left;
}

.landing.dbg-index > .content {
  display: flex;
  align-items: stretch;
  height: 100%;
}

.home-daysbygone-copy {
  align-self: center;
}

.home-daysbygone-copy p {
  margin-left: 0;
}

.home-daysbygone-art {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  margin: 0 auto;
}

.home-daysbygone-art img {
  width: 1600px;
  max-width: none;
  height: auto;
  image-rendering: pixelated;
}

.daysbygone-hero {
  color: var(--color-white);
  background: #0f587d;
  image-rendering: pixelated;
}

.daysbygone-hero-background,
.daysbygone-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.daysbygone-hero-video {
  animation: daysbygone-video-fade-in 5s ease;
  opacity: 0.2;
}

.daysbygone-hero .dbg-logo {
  width: auto;
  height: 14rem;
  animation: daysbygone-logo-fade-in-up 2s ease;
  image-rendering: pixelated;
}

.dbg-intro {
  height: 640px;
  text-align: left;
}

.dbg-intro > .content {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4rem;
}

.daysbygone-media,
.daysbygone-copy,
.daysbygone-character-art {
  flex: 1;
  min-width: 0;
}

.daysbygone-media {
  overflow: hidden;
}

.daysbygone-media video {
  width: 100%;
  min-width: 768px;
}

.daysbygone-copy p {
  margin-left: 0;
}

.daysbygone-copy p + p {
  margin-top: 1em;
}

.downloads {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  image-rendering: auto;
}

.downloads .download {
  width: auto;
  height: 42px;
}

.divider {
  height: 1px;
  background: var(--color-soft-divider);
}

.dbg-socials {
  color: var(--color-white);
  background-image: url("/assets/daysbygone/background-expedition.png");
  background-position: left top;
  background-size: cover;
  image-rendering: pixelated;
  text-align: left;
}

.dbg-socials > .content {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4rem;
}

.daysbygone-character-art {
  display: flex;
  align-self: stretch;
  justify-content: center;
  margin: 0;
  overflow: hidden;
}

.daysbygone-character-art img {
  align-self: flex-end;
  width: 512px;
  max-width: none;
  height: auto;
  image-rendering: pixelated;
}

.dbg-socials .daysbygone-copy h2 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.socials {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 2rem;
  filter: invert(1);
  image-rendering: auto;
}

.social img {
  width: 48px;
  height: 48px;
}

.landing.stretch {
  min-height: calc(101dvh - 328px);
}

.content.legal-content,
.page-intro.content {
  width: min(100%, calc(var(--width-content) + (var(--space-page-x) * 2)));
  margin-right: auto;
  margin-left: auto;
  padding-top: var(--header-height);
  padding-right: var(--space-page-x);
  padding-left: var(--space-page-x);
}

.page-intro.content {
  min-height: calc(100dvh - 192px);
}

.info-dump {
  max-width: 1180px;
  margin: 6rem 16rem;
}

.info-dump.slim {
  max-width: 920px;
  margin: 6rem 20rem;
}

.info-dump p,
.info-dump li {
  line-height: normal;
}

.info-dump h1 {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.info-dump > .flexi-h-v + p {
  margin-top: 1em;
}

.info-dump h2 {
  margin-top: 0.83em;
  margin-bottom: 0.83em;
  font-size: 1.5em;
}

.info-dump h3 {
  margin-top: 1em;
  margin-bottom: 1em;
}

.info-dump h4 {
  margin-top: 1.33em;
  margin-bottom: 1.33em;
}

.info-dump ul {
  margin-top: 1em;
}

.centered {
  text-align: center;
}

.flexi-h-v {
  display: flex;
}

.tag {
  margin: auto auto auto 1.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 16px;
  background: var(--color-tag-bg);
  color: var(--color-tag-text);
  font-size: 11px;
  font-weight: 500;
}

.attrib li {
  margin-top: 2px;
}

.info-dump.attribution-index {
  max-width: 960px;
}

.info-dump.attribution-detail {
  max-width: 960px;
}

.attribution-index h1 + section {
  margin-top: 3.5em;
}

.attribution-detail h1 + section {
  margin-top: 3.5em;
}

.attribution-index section + section {
  margin-top: 2em;
}

.attribution-index p {
  margin-top: 0;
}

.site-footer {
  overflow: hidden;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 13px;
  user-select: none;
}

.site-footer > * {
  width: min(100%, var(--width-page));
  margin-right: auto;
  margin-left: auto;
}

.footer-brand-row {
  display: flex;
  align-items: flex-start;
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--color-divider);
}

.footer-store-links {
  display: flex;
  gap: 16px;
  margin-left: auto;
}

.footer-store-links img {
  width: 2.5rem;
  height: 2.5rem;
  filter: invert(1);
}

.footer-nav {
  display: flex;
  align-items: center;
  padding-top: 2.9rem;
}

.footer-nav a + a::before {
  display: inline-block;
  width: 36px;
  color: var(--color-white);
  text-align: center;
  content: "•";
}

.site-footer p {
  margin-top: -1rem;
  padding-bottom: 5rem;
  text-align: right;
}

@media (max-width: 1680px) {
  :root {
    --header-height: 80px;
    --width-page: 1200px;
    --width-content: 1200px;
  }

  body {
    font-size: 19px;
  }

  h1,
  h2 {
    font-size: 44px;
  }

  .site-logo {
    margin: 0 1.5rem;
  }

  .site-logo img {
    height: 3rem;
  }

  .site-header-inner {
    font-size: 1rem;
  }

  .landing {
    height: 680px;
  }

  .landing p {
    width: 500px;
    font-size: 21px;
  }

  .landing .buttons {
    margin-top: 5rem;
  }

  .home-daysbygone-art img {
    width: 1400px;
  }

  .daysbygone-hero .dbg-logo {
    height: 13rem;
  }

  .daysbygone-character-art img {
    width: 450px;
  }

  .info-dump {
    margin: 5rem 10rem;
  }

  .info-dump.slim {
    margin: 5rem 12rem;
  }
}

@media (max-width: 1280px) {
  :root {
    --header-height: 72px;
    --width-page: 1024px;
    --width-content: 892px;
    --space-page-x: 66px;
  }

  body {
    font-size: 18px;
  }

  h1,
  h2 {
    font-size: 40px;
  }

  .site-logo {
    margin: 0 1.25rem;
  }

  .site-logo img {
    height: 2.5rem;
  }

  .landing {
    height: 540px;
  }

  .daysbygone-hero {
    height: 640px;
  }

  .landing p {
    width: 450px;
    font-size: 20px;
  }

  .landing .buttons {
    margin-top: 3.5rem;
  }

  .home-daysbygone-art img {
    width: 1200px;
  }

  .daysbygone-hero .dbg-logo {
    height: 12rem;
  }

  .landing.dbg-intro {
    height: auto;
    text-align: center;
  }

  .dbg-intro > .content {
    flex-direction: column;
    gap: 2rem;
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .dbg-intro .daysbygone-copy {
    order: 1;
    width: 100%;
  }

  .dbg-intro .daysbygone-media {
    order: 2;
    width: 100%;
  }

  .dbg-intro .daysbygone-copy p {
    width: 100%;
    max-width: 760px;
    margin-left: auto;
  }

  .dbg-intro .downloads {
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .dbg-intro .daysbygone-media video {
    min-width: 0;
  }

  .dbg-socials .daysbygone-character-art {
    overflow: visible;
  }

  .daysbygone-character-art img {
    width: 360px;
  }

  .info-dump,
  .info-dump.slim {
    margin: 4rem 6rem;
  }

  .site-footer > * {
    padding-right: 66px;
    padding-left: 66px;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-height: 64px;
    --width-page: 768px;
    --width-content: 684px;
    --space-page-x: 42px;
  }

  body {
    font-size: 17px;
  }

  h1,
  h2 {
    font-size: 36px;
  }

  .site-nav {
    font-size: 0.9rem;
  }

  .landing {
    height: 420px;
  }

  .daysbygone-hero {
    height: 640px;
  }

  .landing p {
    width: 400px;
    font-size: 19px;
  }

  .landing .buttons {
    margin-top: 2rem;
  }

  .home-daysbygone-art img {
    width: 1024px;
  }

  .daysbygone-hero .dbg-logo {
    height: 11rem;
    margin-top: 2.5rem;
  }

  .daysbygone-character-art img {
    width: 320px;
  }

  .info-dump,
  .info-dump.slim {
    margin: 3rem;
  }

  .site-footer > * {
    padding-right: 42px;
    padding-left: 42px;
  }
}

@media (max-width: 960px) {
  .landing.dbg-socials {
    height: 640px;
    text-align: center;
  }

  .dbg-socials > .content {
    flex-direction: column;
    gap: 0;
    height: 100%;
    padding-top: 4rem;
    padding-bottom: 0;
  }

  .dbg-socials .daysbygone-copy {
    flex: 0 0 auto;
    order: 1;
    width: 100%;
  }

  .dbg-socials .daysbygone-copy p {
    width: 100%;
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
  }

  .dbg-socials .socials {
    justify-content: center;
  }

  .dbg-socials .daysbygone-character-art {
    flex: 0 0 auto;
    order: 2;
    width: 100%;
    margin-top: 4rem;
    overflow: visible;
  }

  .dbg-socials .daysbygone-character-art img {
    align-self: center;
    transform: none;
    width: 320px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 64px;
    --width-page: 100%;
    --width-content: 90%;
    --space-page-x: 0px;
  }

  body {
    font-size: 16px;
  }

  .site-header-inner {
    width: 100%;
  }

  .site-logo {
    margin: auto auto auto 1rem;
  }

  .site-nav {
    display: none;
  }

  .mobile-menu {
    display: flex;
    margin-right: 0.75rem;
  }

  .mobile-menu-button {
    position: relative;
    z-index: 101;
    display: block;
    width: 44px;
    height: 44px;
    list-style: none;
    cursor: pointer;
  }

  .mobile-menu-button:has(.mobile-menu-toggle:focus-visible) {
    outline: 2px solid var(--color-white);
    outline-offset: 4px;
  }

  .mobile-menu-bar {
    position: absolute;
    left: 12px;
    width: 32px;
    height: 4px;
    border-radius: 1px;
    background: var(--color-white);
    transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
  }

  .mobile-menu-bar-start {
    top: 10px;
  }

  .mobile-menu-bar-middle,
  .mobile-menu-bar-middle-alt {
    top: 20px;
  }

  .mobile-menu-bar-end {
    top: 30px;
  }

  .mobile-menu-toggle:checked ~ .mobile-menu-bar-start,
  .mobile-menu:has(.mobile-menu-toggle:checked) .mobile-menu-bar-start {
    top: 22px;
    left: 28px;
    width: 0;
  }

  .mobile-menu-toggle:checked ~ .mobile-menu-bar-middle,
  .mobile-menu:has(.mobile-menu-toggle:checked) .mobile-menu-bar-middle {
    transform: rotate(45deg);
  }

  .mobile-menu-toggle:checked ~ .mobile-menu-bar-middle-alt,
  .mobile-menu:has(.mobile-menu-toggle:checked) .mobile-menu-bar-middle-alt {
    transform: rotate(-45deg);
  }

  .mobile-menu-toggle:checked ~ .mobile-menu-bar-end,
  .mobile-menu:has(.mobile-menu-toggle:checked) .mobile-menu-bar-end {
    top: 22px;
    left: 28px;
    width: 0;
  }

  .mobile-menu-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 99;
    display: flex;
    flex-direction: column;
    padding-top: 16px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--color-muted);
    font-size: 2rem;
    font-weight: 800;
    pointer-events: none;
    visibility: hidden;
  }

  .mobile-menu:has(.mobile-menu-toggle:checked) .mobile-menu-nav {
    animation: mobile-menu-fade-in 0.4s ease, mobile-menu-translate-down 0.4s ease;
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-menu-nav a {
    position: relative;
    margin: 0.5rem 2rem 2rem;
  }

  .mobile-menu-nav a::after {
    position: absolute;
    right: 0;
    bottom: -0.75rem;
    left: 0;
    height: 0.2rem;
    background: var(--color-muted);
    content: "";
  }

  .mobile-menu-nav a[aria-current="page"] {
    color: var(--color-white);
  }

  .mobile-menu-nav a[aria-current="page"]::after {
    background: var(--color-white);
  }

  .landing {
    height: 640px;
  }

  .landing p {
    width: auto;
    font-size: 18px;
  }

  .landing.dbg-index {
    text-align: center;
  }

  .landing.dbg-index > .content {
    flex-direction: column;
  }

  .home-daysbygone-copy {
    margin: 4rem 0 0;
  }

  .home-daysbygone-copy p {
    margin-left: auto;
  }

  .home-daysbygone-art {
    justify-content: flex-start;
  }

  .home-daysbygone-art img {
    width: 768px;
    align-self: center;
  }

  .daysbygone-hero .dbg-logo {
    height: 10rem;
  }

  .daysbygone-copy p {
    margin-left: auto;
  }

  .dbg-intro .daysbygone-media video {
    min-width: 600px;
  }

  .downloads {
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }

  .dbg-socials .daysbygone-character-art img {
    width: 280px;
  }

  .content.legal-content,
  .page-intro.content {
    padding-top: var(--header-height);
  }

  .info-dump,
  .info-dump.slim {
    margin: 2rem 1rem;
  }

  .info-dump h1 {
    font-size: 36px;
  }

  .info-dump h2 {
    font-size: 1.5rem;
  }

  .flexi-h-v {
    align-items: flex-start;
    flex-direction: column;
  }

  .tag {
    margin: 0 auto 1rem 0;
  }

  .footer-brand-row {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .footer-logo img {
    height: 4rem;
  }

  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-nav a + a::before {
    display: none;
  }

  .site-footer p {
    margin-top: 1.75rem;
    padding-bottom: 5rem;
    text-align: left;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.1;
  }
}

@keyframes translate-up {
  from {
    transform: translateY(1rem);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes daysbygone-logo-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes daysbygone-video-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 0.2;
  }
}

@keyframes mobile-menu-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes mobile-menu-translate-down {
  from {
    transform: translateY(-1rem);
  }

  to {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .landing.index::before,
  .daysbygone-hero-video,
  .daysbygone-hero .dbg-logo {
    animation: none;
  }

  .mobile-menu-bar,
  .mobile-menu-nav {
    transition: none;
  }

  .mobile-menu:has(.mobile-menu-toggle:checked) .mobile-menu-nav {
    animation: none;
  }
}
