@font-face {
  font-family: Sysfont;
  src: url("assets/sysfont.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: Gotham;
  src: url("assets/gotham-book.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Gotham;
  src: url("assets/gotham-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #142031;
  --snow: #e4f2fc;
  --muted: #b4cada;
  --lime: #bbf451;
  --lime-pressed-overlay: rgb(22 86 4 / 50%);
  --pink: #d9486f;
  --violet: #8b48d9;
  --silver: #bec3c7;
  --display: Sysfont, "Courier New", monospace;
  --body: Gotham, system-ui, sans-serif;
  --content-width: 90rem;
  --gutter: clamp(1rem, 4.58vw, 4.125rem);
  font-family: var(--body);
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: #071428;
  color: var(--snow);
}

h1, h2, h3, p {
  margin: 0;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

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

.page {
  overflow: clip;
}

/* Hero and announcement strip */
.hero {
  position: relative;
  width: 100%;
  max-height: 45.25rem;
  overflow: clip;
  aspect-ratio: 360 / 181;
  background: #0b1c3d;
}

.hero__background,
.hero__stage {
  position: absolute;
  inset: 0;
}

.hero__background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero__stage {
  max-width: var(--content-width);
  margin-inline: auto;
}

.hero__credit,
.hero__brand {
  position: absolute;
  translate: -50% 0;
}

.hero__credit {
  top: 4.17%;
  left: 48.8%;
  color: #d6edfd;
  font: clamp(0.75rem, 1.25vw, 1.125rem)/1 var(--display);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 1px 2px 0 #08112c;
}

.hero__brand {
  top: 17.96%;
  left: 46.67%;
  width: 53.61%;
}

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

.hero__signature {
  position: absolute;
  bottom: 93.28%;
  left: 27.88%;
  width: 26.14%;
  height: auto;
}

.hero__character {
  position: absolute;
  top: 1.24%;
  left: min(1.17%, 1.05rem);
  width: min(26.23%, 23.625rem);
  height: auto;
  filter: drop-shadow(2px 4px 4px #05092080);
  transform: rotate(2.896deg);
  transform-origin: top left;
}

.hero__scroll {
  position: absolute;
  bottom: 2.2%;
  left: 50%;
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  translate: -50%;
}

.hero__scroll img {
  display: block;
  width: clamp(2.75rem, 4.44vw, 4rem);
  height: auto;
  transition: translate 160ms ease-out;
}

.hero__scroll:hover img {
  translate: 0 3px;
}

.ticker {
  --ticker-gap: clamp(0.75rem, 1vw, 1.5rem);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  min-height: clamp(2.25rem, 3.61vw, 3.25rem);
  border-block: 2px solid;
  border-color: #fff #fff #252525;
  background: var(--silver);
  color: #0b294b;
  font: clamp(0.9375rem, 1.53vw, 1.375rem)/1 var(--display);
  text-transform: uppercase;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll 36s linear infinite;
  white-space: nowrap;
}

.ticker__cycle {
  display: flex;
  min-width: 100vw;
  flex: none;
  justify-content: space-around;
  gap: var(--ticker-gap);
  padding-inline: calc(var(--ticker-gap) / 2);
}

@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}

@media (min-width: 120rem) and (min-height: 72rem) {
  .hero {
    --hero-max-height: 80svh;
    max-height: var(--hero-max-height);
  }

  .hero__stage {
    max-width: calc(var(--hero-max-height) * 360 / 181);
  }

  .hero__credit {
    font-size: clamp(1.125rem, 1.8svh, 1.875rem);
  }

  .hero__character {
    left: 1.17%;
    width: min(26.23%, 41svh, 38rem);
  }

  .hero__scroll img {
    width: clamp(4rem, 6.4svh, 6.25rem);
  }

  .ticker {
    min-height: clamp(3.25rem, 4.5svh, 4.75rem);
    font-size: clamp(1.375rem, 1.3vw, 2.25rem);
  }
}

/* Shared window chrome and raised controls */
.window {
  border: 2px solid #d3d3d3;
  background: #3c3d40;
  color: #fff;
  box-shadow: 4px 5px 0 #070d19a0;
}

.titlebar {
  display: flex;
  min-height: 2rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.25rem 0.4375rem 0.25rem 0.6875rem;
  background: var(--titlebar-color, var(--pink));
  color: #fff;
  font: 1rem/1.2 var(--display);
}

.window-icons {
  display: flex;
  flex: none;
  gap: 0.25rem;
}

.window-icons i {
  position: relative;
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  background: #414141;
  color: #fff;
}

.window-icons i::before,
.window-icons i:last-child::after {
  content: "";
}

.window-icons i:first-child::before {
  width: 0.75rem;
  height: 0.1875rem;
  margin-top: 0.5rem;
  background: currentColor;
}

.window-icons i:nth-child(2)::before {
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid;
  border-top-width: 3px;
  box-sizing: border-box;
}

.window-icons i:last-child::before,
.window-icons i:last-child::after {
  position: absolute;
  width: 0.875rem;
  height: 0.1875rem;
  background: currentColor;
}

.window-icons i:last-child::before {
  transform: rotate(45deg);
}

.window-icons i:last-child::after {
  transform: rotate(-45deg);
}

.bevel {
  --bevel-width: 2px;
  --bevel-face: #c7ccd2;
  --bevel-hover: #e6ebef;
  --bevel-light: #fff;
  --bevel-dark: #515761;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5ch;
  min-height: 2.75rem;
  border: var(--bevel-width) solid;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  background: var(--bevel-face);
  color: var(--bevel-ink, var(--ink));
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.bevel:hover:not(:disabled) {
  background: var(--bevel-hover);
}

.bevel:is(:active, [data-touch-pressed]):not(:disabled) {
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
}

.bevel--lime {
  --bevel-face: var(--lime);
  --bevel-light: #e8ffb4;
  --bevel-dark: #63812d;
  --bevel-hover: #d5ff85;
}

.bundle__link,
.taskbar__tab {
  --bevel-hover: #e0e7ef;
}

.bundle__link:active,
.taskbar__tab:active {
  --bevel-face: #8d959f;
  --bevel-hover: var(--bevel-face);
  --bevel-light: rgb(255 255 255 / 50%);
}

/* Knit wallpaper and verification window */
.holiday {
  background: #102342 url("assets/knit.webp") center -6.625rem / 100% auto repeat-y;
}

.promo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  /* The desktop garland scales to the section width at a 4:1 ratio. */
  min-height: max(27.5rem, calc(25vw + 2.5rem));
  padding: 3.5rem var(--gutter) 3rem;
  background: url("assets/lights-desktop.svg") center top / 100% auto no-repeat;
}

.promo__window {
  width: min(33rem, 100%);
  background: #3d3d3d;
  box-shadow: 0 0 var(--verification-glow, 48px) 1px rgb(223 255 134 / 25%);
}

.promo__body {
  display: grid;
  justify-items: center;
  padding: 1.125rem 1rem 1.3125rem;
  text-align: center;
}

.promo__body h2 {
  color: var(--lime);
  font: clamp(1.375rem, 2.65vw, 2.375rem)/1.12 var(--display);
  text-transform: uppercase;
}

.promo__body p {
  max-width: 31rem;
  margin-top: 0.5625rem;
  color: #fff;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.promo__button {
  position: relative;
  width: min(100%, 20.375rem);
  min-height: 3.75rem;
  margin-top: 1.625rem;
  padding: 0.625rem;
  box-shadow: 3px 3px 0 #070b13;
  color: #101810;
  font: clamp(1rem, 1.81vw, 1.625rem)/1.05 var(--display);
  text-transform: uppercase;
}

.promo__button::before {
  position: absolute;
  inset: 0.3125rem;
  border: 1px dashed #39451a;
  content: "";
  pointer-events: none;
}

.promo__button--spam {
  --bevel-width: 0px;
  --bevel-face: transparent;
  --bevel-hover: transparent;
  --bevel-light: rgb(255 255 255 / 80%);
  --bevel-dark: #565860;
  box-shadow: none;
}

.promo__button--spam::before {
  inset: 0;
  border: solid;
  border-width: 3px 4px 3px 3px;
  border-color: var(--bevel-light) var(--bevel-dark) var(--bevel-dark) var(--bevel-light);
  outline: 1px dashed var(--promo-dash-color, #192112);
  outline-offset: -8px;
  background-color: var(--promo-face, var(--lime));
  box-shadow: 3px 3px 0 #070b13;
  translate: var(--promo-face-x, 0) var(--promo-face-y, 0);
}

.promo__button--spam:is(:active, [data-touch-pressed])::before {
  border-color: var(--bevel-dark) var(--bevel-light) var(--bevel-light) var(--bevel-dark);
}

.promo__button--spam:is(:active, [data-touch-pressed]) {
  color: #142021;
}

.promo__button--spam:is(:active, [data-touch-pressed])::after,
.carousel-button:is(:active, [data-touch-pressed]):not(:disabled)::after {
  position: absolute;
  inset: calc(-1 * var(--bevel-width));
  background: var(--lime-pressed-overlay);
  content: "";
  pointer-events: none;
}

.promo__button-label {
  position: relative;
  z-index: 1;
  translate: 0 var(--promo-face-y, 0);
}

@media (hover: hover) {
  .promo__button--spam:hover:not(:active, [data-touch-pressed]) {
    --promo-face: #e84f78;
    --promo-dash-color: #fff;
    --promo-face-x: -4px;
    --promo-face-y: -3px;
    color: #fff;
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .promo__button--spam:hover:not(:active, [data-touch-pressed]) {
    animation: promo-flash 0.25s step-end infinite;
  }
}

@keyframes promo-flash {
  50% {
    --promo-face: #fff;
    --promo-dash-color: #192112;
    --promo-face-x: 4px;
    --promo-face-y: 3px;
    color: #142021;
  }
}

/* Guide, bundle windows, and mobile carousel */
.guide,
.copyright {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.guide__header {
  margin-bottom: clamp(1.75rem, 4.1vw, 3.625rem);
}

.guide__header h2 {
  scroll-margin-top: 1.25rem;
  font: clamp(2rem, 3.05vw, 2.75rem)/1.05 var(--display);
  text-transform: uppercase;
}

.guide__header p {
  margin-top: 0.625rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.67vw, 1.5rem);
  font-weight: 700;
  line-height: 1.35;
}

.guide__break {
  display: none;
}

.bundles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 3.06vw, 2.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bundle {
  display: flex;
  min-width: 0;
  min-height: 27.375rem;
  flex-direction: column;
  scroll-margin-block: 1.25rem;
}

.bundle:nth-child(odd) {
  --titlebar-color: var(--violet);
}

.bundle:target {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
  animation: bundle-outline-fade 300ms ease-out 1.5s forwards;
}

@keyframes bundle-outline-fade {
  to { outline-color: transparent; }
}

.bundle__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 0.8125rem 0.6875rem;
}

.bundle__art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 231 / 87;
  object-fit: cover;
  background: #13191f;
}

.bundle__tags {
  margin-top: 0.375rem;
  color: var(--lime);
  font: 0.9375rem/1.35 var(--display);
}

.bundle h3 {
  margin-top: 0.45rem;
  font: 1.5rem/1.15 var(--display);
}

.bundle__description {
  margin-block: 0.375rem 1.375rem;
  color: #e2e6ed;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.45;
}

.bundle__link {
  --bevel-width: 3px;
  margin-top: auto;
  padding: 0.375rem 0.625rem;
}

.bundle__link img {
  width: min(100%, 14.5rem);
  height: auto;
}

.carousel-controls {
  display: none;
}

.copyright {
  padding-block: 3.125rem 1.375rem;
  color: var(--muted);
  font: 1.25rem/1.15 var(--display);
  text-align: right;
  text-transform: uppercase;
}

/* Desktop taskbar */
.taskbar {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  min-height: 4rem;
  padding-block: 0.5rem;
  padding-inline: max(0.5rem, calc((100% - var(--content-width)) / 2 + 0.5rem));
  border-block: 2px solid;
  border-color: #fff #fff #515761;
  background: var(--silver);
  color: var(--ink);
}

.taskbar__brand {
  --bevel-face: #e94b85;
  --bevel-hover: var(--bevel-face);
  --bevel-light: rgb(255 255 255 / 80%);
  --bevel-ink: #fff;
  flex: 0 1 12.625rem;
  padding-inline: 0.5rem;
  font: clamp(0.875rem, 1.42vw, 1.25rem)/1.1 var(--display);
  text-transform: uppercase;
}

.taskbar__nav {
  display: flex;
  flex: 1 0 auto;
  gap: 0.5rem;
}

.taskbar__tab {
  justify-content: flex-start;
  flex: 1 0 auto;
  padding-inline: clamp(0.25rem, 0.68vw, 0.625rem);
  font: clamp(0.75rem, 1.11vw, 1rem)/1.1 var(--display);
}

.taskbar__tab::before {
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
  border: 1px solid #455463;
  background: linear-gradient(var(--task-icon-accent, #ad76c7) 0 30%, #455463 30% 37%, #e2eaed 37%);
  content: "";
}

.taskbar__tab:nth-child(even) {
  --task-icon-accent: #bd5e71;
}

.taskbar__clock {
  display: grid;
  flex: 0 0 auto;
  padding: 0.25rem clamp(0.375rem, 0.78vw, 0.75rem);
  place-items: center;
  border: 2px solid;
  border-color: #667078 #fff #fff #667078;
  font: clamp(0.75rem, 1.06vw, 0.9375rem)/1.1 var(--display);
  white-space: nowrap;
  text-transform: uppercase;
}

.taskbar :focus-visible {
  outline-color: var(--ink);
  outline-offset: -5px;
}

@media (max-width: 1050px) {
  .promo {
    min-height: 24rem;
  }

  .bundles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .taskbar__tab::before {
    display: none;
  }
}

@media (max-width: 820px) {
  .taskbar {
    flex-wrap: wrap;
  }

  .taskbar__nav {
    order: 1;
    flex: 1 1 100%;
    flex-wrap: wrap;
  }

  .taskbar__clock {
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 1rem;
  }

  .hero {
    max-height: 40rem;
    aspect-ratio: 390 / 508;
  }

  .hero__background img {
    object-position: center;
  }

  .hero__credit {
    top: 3.15%;
    left: 52.75%;
    font-size: clamp(0.75rem, 3.5vw, 1rem);
  }

  .hero__brand {
    top: 41.54%;
    width: min(84.62%, 24rem);
  }

  .hero__signature {
    bottom: 96.1%;
    left: 39.17%;
    width: 39.84%;
  }

  .hero__ornament {
    position: absolute;
    top: 21.28%;
    left: 0;
    width: min(27.95%, 8.5rem);
    aspect-ratio: 109 / 159;
    background: url("assets/hero-ornament.webp") center / contain no-repeat;
    filter: brightness(0.9);
  }

  .hero__ornament::before {
    position: absolute;
    bottom: 100%;
    left: 36%;
    width: 1px;
    height: min(27.72vw, 8.5rem);
    background: #b3c7e073;
    content: "";
  }

  .hero__character {
    top: 4.33%;
    left: 0;
    width: min(40%, 12.5rem);
  }

  .hero__scroll {
    bottom: 3.75%;
  }

  .hero__scroll img {
    width: clamp(2.75rem, 9.5vw, 3.875rem);
  }

  .ticker {
    min-height: 2rem;
    font-size: 0.9375rem;
  }

  .holiday {
    background-position: center -1.875rem;
    background-size: 54.5625rem 75rem;
  }

  .promo {
    min-height: 24.25rem;
    padding-top: 4.0625rem;
    background-image: url("assets/lights-mobile.svg");
    background-size: max(100%, 24.375rem) auto;
  }

  .promo__window {
    max-width: 25rem;
  }

  .promo__window {
    --verification-glow: 24px;
  }

  .promo__body h2 {
    font-size: clamp(1.375rem, 6.8vw, 1.75rem);
  }

  .promo__body p {
    font-size: 0.875rem;
  }

  .promo__button {
    margin-top: 1.125rem;
    font-size: clamp(1.0625rem, 5.5vw, 1.625rem);
  }

  .guide {
    padding-bottom: 2rem;
  }

  .guide__header {
    margin-bottom: 1.875rem;
  }

  .guide__header h2 {
    font-size: clamp(1.5rem, 7.5vw, 2.125rem);
  }

  .guide__header p {
    font-size: 0.9375rem;
  }

  .guide__break {
    display: inline;
  }

  .bundles {
    grid-template-columns: none;
    grid-auto-columns: min(20.875rem, calc(100vw - 3.5rem));
    grid-auto-flow: column;
    gap: 0.75rem;
    margin-inline: calc(-1 * var(--gutter));
    padding: 0.1875rem max(2.5rem, calc(100vw - 21.875rem)) 0.375rem var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--gutter);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .bundle {
    border-width: 1px;
    border-color: #b3b4b6;
    scroll-snap-align: start;
  }

  .bundle__link {
    min-height: 3rem;
  }

  .bundle__link img {
    width: min(100%, 13.3rem);
  }

  .carousel-controls {
    display: grid;
    gap: 0.875rem;
    margin-top: 0.625rem;
    color: var(--snow);
    font-family: var(--display);
    text-align: center;
  }

  .carousel-controls p {
    font-size: 0.875rem;
    text-transform: uppercase;
  }

  .carousel-controls__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .carousel-controls output {
    font-size: 1.625rem;
  }

  .carousel-button {
    --bevel-dark: #565860;
    --bevel-hover: #cdf879;
    --bevel-ink: #142021;
    position: relative;
    width: 2.75rem;
    padding: 0;
  }

  .carousel-button:is(:active, [data-touch-pressed]):not(:disabled) {
    --bevel-hover: var(--bevel-face);
  }

  .carousel-button::before {
    width: 0.625rem;
    height: 0.625rem;
    border-top: 3px solid;
    border-right: 3px solid;
    transform: translateX(-2px) rotate(45deg);
    content: "";
  }

  .carousel-button--previous::before {
    transform: translateX(2px) rotate(-135deg);
  }

  .carousel-button:disabled {
    --bevel-face: #526372;
    --bevel-light: #82909b;
    --bevel-dark: #2b3b49;
    --bevel-ink: #a6b3bd;
    cursor: default;
  }

  .copyright {
    display: none;
  }

  .taskbar {
    flex-wrap: nowrap;
    justify-content: space-between;
    padding-inline: 0.375rem;
  }

  .taskbar__brand,
  .taskbar__clock {
    flex: 1 1 0;
    margin-left: 0;
  }

  .taskbar__nav {
    display: none;
  }
}

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

  .ticker__track {
    animation: none;
  }

  .bundle:target {
    animation-duration: 0s;
  }

  .hero__scroll img {
    transition: none;
  }
}
