@charset "UTF-8";

/* Colors and document defaults */
:root {
  color-scheme: dark;
  --paper: #081321;
  --ink: #edf4fb;
  --muted: #a4b1c2;
  --blue: #79c7f5;
  --focus: #94d5ff;
  --button-bg: #9ed8fb;
  --button-ink: #081827;
  --button-hover: #c4e9ff;
  --link-underline: #52677f;
  --selection-bg: #284c68;
  --selection-ink: #fff;
  --toggle-hover: rgb(255 255 255 / 7%);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

:root[data-theme="light"] {
  color-scheme: light;
  --paper: #fafbfc;
  --ink: #102133;
  --muted: #647180;
  --blue: #1b78b5;
  --focus: #0875b5;
  --button-bg: #102133;
  --button-ink: #fff;
  --button-hover: #1d4466;
  --link-underline: #b6c1c9;
  --selection-bg: #c8e7f6;
  --selection-ink: #102133;
  --toggle-hover: rgb(16 33 51 / 6%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100svh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  transition: background-color 180ms ease, color 180ms ease;
}

main {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 0;
}

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

a,
button {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  border-radius: 3px;
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-ink);
}

img {
  display: block;
  max-width: 100%;
}

svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: min(1120px, calc(100% - clamp(32px, 7vw, 96px)));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 10;
  padding: 8px 16px;
  transform: translateY(-200%);
  background: var(--button-bg);
  color: var(--button-ink);
}

.skip-link:focus {
  transform: translateY(0);
}

/* Opening scene: both image layers share one registered camera frame. */
.opening {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow: hidden;
}

.intro-pending .opening {
  display: block;
}

.opening-backdrop {
  position: absolute;
  inset: 0;
  background: var(--paper);
}

.opening-stage {
  position: absolute;
  transform-origin: 54% 36%;
  will-change: transform;
}

.opening-photo,
.opening-logo {
  display: block;
  position: absolute;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

.opening-photo {
  inset: 0;
  width: 100%;
  height: 100%;
}

.opening-logo {
  height: auto;
  opacity: 0;
}

.opening-logo.is-settling {
  position: fixed;
  transform-origin: 0 0;
}

.site-header,
main,
.site-footer {
  transition: opacity 240ms ease;
}

.intro-pending .site-header,
.intro-pending main,
.intro-pending .site-footer {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.intro-pending.intro-revealing .site-header,
.intro-pending.intro-revealing main,
.intro-pending.intro-revealing .site-footer {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.intro-pending .hero-art img {
  opacity: 0;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(48px, 8svh, 76px);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.8px;
}

.wordmark img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.brand-period {
  color: var(--blue);
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 12px;
  font-weight: 500;
}

nav a:hover,
.footer-links a:hover {
  color: var(--blue);
}

.nav-github {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-github svg {
  width: 14px;
  height: 14px;
}

/* The accessible switch keeps its choice across visits. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.theme-toggle[hidden] {
  display: none;
}

.theme-toggle:hover {
  background: var(--toggle-hover);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon,
:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}

/* A centered mark, with the headline and download below. */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.5svh, 14px);
  min-height: 0;
  padding-block: 8px;
}

.hero-copy {
  flex: 0 0 auto;
  text-align: center;
}

h1 {
  font-size: clamp(28px, min(5vw, 6svh), 50px);
  font-weight: 500;
  line-height: 1.01;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--blue);
}

.hero-description {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-actions {
  margin-top: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 550;
  transition: background-color 0.15s;
}

.button-primary {
  background: var(--button-bg);
  color: var(--button-ink);
}

.button-primary:hover {
  background: var(--button-hover);
}

.button svg {
  width: 15px;
  height: 15px;
}

.hero-art {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  width: min(68vw, 520px);
  min-height: 0;
  max-height: 24svh;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Setup guide */
.get-started {
  padding-block: 10px clamp(14px, 2.5svh, 24px);
}

.start-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

h2 {
  font-size: clamp(22px, 3.5svh, 30px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -1px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 550;
}

.text-link svg {
  width: 14px;
  height: 14px;
}

.text-link:hover {
  color: var(--blue);
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 40px);
  margin: clamp(12px, 2svh, 20px) 0 0;
  padding: 0;
  list-style: none;
}

.install-steps li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}

.step-number {
  flex-shrink: 0;
  color: var(--blue);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.install-steps h3 {
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -0.2px;
}

.install-steps p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.install-steps a {
  text-decoration: underline;
  text-decoration-color: var(--link-underline);
  text-underline-offset: 3px;
}

.install-steps a:hover {
  color: var(--blue);
}

code {
  color: var(--ink);
  font-size: 0.95em;
}

kbd {
  color: var(--ink);
  font: inherit;
  white-space: nowrap;
}

.release-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

/* Footer */
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 6px 16px;
  padding-block: 10px 14px;
}

.footer-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 10px;
}

.minecraft-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
}

/* Compact spacing keeps the centered layout within small screens. */
@media (max-width: 700px) {
  .wordmark {
    gap: 8px;
    font-size: 17px;
  }

  .wordmark img {
    width: 28px;
    height: 28px;
  }

  nav {
    gap: 10px;
    font-size: 11px;
  }

  .hero {
    gap: 8px;
    padding-block: 6px;
  }

  h1 {
    font-size: clamp(26px, 7.5vw, 36px);
  }

  .hero-description {
    margin-top: 10px;
    font-size: 12px;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .button {
    gap: 12px;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 11px;
  }

  .install-steps {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 14px;
  }

  .install-steps p {
    margin-top: 2px;
    font-size: 11px;
  }

  .release-note {
    font-size: 9px;
  }

  .footer-links {
    gap: 12px;
    font-size: 9px;
  }

  .footer-brand {
    font-size: 12px;
  }

  .minecraft-note {
    font-size: 8px;
  }
}

/* Short browser windows use tighter spacing without hiding content. */
@media (max-height: 650px) {
  .site-header {
    min-height: 48px;
  }

  .hero {
    padding-block: 8px;
  }

  .hero-description {
    margin-top: 8px;
  }

  .hero-actions {
    margin-top: 12px;
  }

  .button {
    min-height: 36px;
    padding-block: 8px;
  }

  .get-started {
    padding-block: 6px 12px;
  }

  .install-steps {
    gap: 12px 24px;
    margin-top: 12px;
  }

  .install-steps p {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.5;
  }

  .release-note {
    margin-top: 10px;
  }

  .site-footer {
    padding-block: 6px 10px;
  }
}

@media (max-width: 700px) and (max-height: 650px) {
  .install-steps {
    gap: 8px;
  }

  .install-steps h3 {
    font-size: 12px;
  }

  .install-steps p {
    font-size: 10px;
  }
}

@media (min-width: 701px) and (max-height: 480px) {
  .site-header {
    min-height: 40px;
  }

  .wordmark {
    font-size: 17px;
  }

  .wordmark img {
    width: 26px;
    height: 26px;
  }

  .hero {
    padding-block: 4px;
  }

  h1 {
    font-size: clamp(24px, 7svh, 32px);
  }

  .hero-description {
    margin-top: 6px;
    font-size: 12px;
  }

  .hero-actions {
    margin-top: 8px;
  }

  .button {
    min-height: 32px;
    padding: 6px 14px;
    font-size: 11px;
  }

  .get-started {
    padding-block: 6px 8px;
  }

  .install-steps {
    margin-top: 10px;
  }

  .install-steps h3 {
    font-size: 12px;
  }

  .install-steps p {
    font-size: 10px;
  }

  .release-note {
    margin-top: 8px;
    font-size: 9px;
  }

  .site-footer {
    gap: 4px 16px;
    padding-block: 4px 8px;
  }
}

@media (max-width: 360px) {
  .wordmark {
    gap: 7px;
    font-size: 16px;
  }

  .wordmark img {
    width: 26px;
    height: 26px;
  }

  nav {
    gap: 8px;
    font-size: 10px;
  }

  .theme-toggle {
    width: 30px;
    height: 30px;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
