:root {
  --blue: #1300c8;
  --black: #000;
  --white: #fff;
  --dim: #8a8a8a;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background: var(--black);
  font-family: "Times New Roman", Times, serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

a:focus-visible {
  outline: 1px solid var(--dim);
  outline-offset: 4px;
}

.landing {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 34px 20px;
}

.centerpiece {
  width: min(100%, 330px);
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateY(-3svh);
}

.logo-box {
  display: inline-flex;
  max-width: 100%;
  padding: 0;
  background: var(--black);
  transition: transform 180ms ease, opacity 180ms ease;
}

.logo-box:hover {
  transform: translateY(-1px);
}

.logo-title {
  margin: 0;
}

.logo-title img {
  display: block;
  width: clamp(230px, 22vw, 330px);
  height: auto;
}

.tagline {
  margin: 0 0 30px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.site-nav,
.info {
  width: 100%;
  display: grid;
  gap: 14px;
  justify-items: start;
  color: #e9e9e9;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
}

.site-nav a:hover,
.info a:hover {
  color: var(--blue);
  transform: translateX(2px);
}

.inactive {
  color: #5f5f5f;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: currentColor;
}

.info {
  margin-top: 18px;
  color: var(--dim);
}

.info p {
  margin: 0;
}

.site-footer {
  font-family: Arial, Helvetica, sans-serif;
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 16px;
  color: #5f5f5f;
  font-size: 11px;
  font-weight: 400;
  pointer-events: none;
}

.subpage {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 36px 20px 64px;
}

.subpage-center {
  width: min(100%, 760px);
  display: grid;
  justify-items: center;
  gap: 20px;
  transform: translateY(-2svh);
}

.subpage-logo {
  width: min(100%, 330px);
  justify-content: center;
}

.subpage-logo .logo-title img {
  width: min(100%, 330px);
}

.studio-frame {
  width: min(88vw, 700px);
  height: min(58vh, 520px);
  margin-top: 10px;
}

#studio-scan {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  touch-action: none;
  --poster-color: transparent;
  background: transparent;
}

#studio-scan:active {
  cursor: grabbing;
}

.page-details,
.about-copy {
  font-size: 13px;
  line-height: 1.35;
}

.page-details {
  display: grid;
  justify-items: center;
  gap: 10px;
  color: var(--dim);
}

.page-details p {
  margin: 0;
}

.page-details a,
.about-copy a {
  color: #e9e9e9;
}

.page-details a:hover,
.about-copy a:hover {
  color: var(--blue);
}

.about-copy {
  width: min(100%, 430px);
  display: grid;
  gap: 18px;
  margin-top: 18px;
  color: #d8d8d8;
}

.page-label,
.about-copy p {
  margin: 0;
}

.page-label {
  font-size: 13px;
  font-weight: 400;
  color: #e9e9e9;
}

.about-copy p {
  color: var(--dim);
}

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

@media (max-width: 560px) {
  .landing {
    padding: 28px 16px;
  }

  .centerpiece {
    width: min(100%, 290px);
    transform: translateY(-2svh);
  }

  .logo-title img {
    width: min(100%, 280px);
  }

  .tagline {
    margin-bottom: 22px;
    font-size: 12px;
  }

  .site-nav,
  .info {
    gap: 13px;
    font-size: 12px;
  }

  .subpage {
    padding: 42px 16px 72px;
  }

  .subpage-center {
    width: min(100%, 320px);
    transform: translateY(-1svh);
  }

  .subpage-logo,
  .subpage-logo .logo-title img {
    width: min(100%, 280px);
  }

  .studio-frame {
    width: min(92vw, 390px);
    height: min(56vh, 440px);
    margin-top: 4px;
  }

  .page-details,
  .about-copy {
    font-size: 12px;
  }
}

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