@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/ibm-plex-mono-400.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/ibm-plex-mono-700.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}

:root {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
  --bg: #161a23;
  --panel: #1c1c2a;
  --border: #484957;
  --text: #e2e5f1;
  --muted: #a0aab8;
  --accent: #c6f77a;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 280px; }

a { color: inherit; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.frame {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.masthead { border-bottom: 1px solid #303541; }

.masthead-content {
  min-height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-icon { display: flex; border: 1px solid var(--border); }

.brand-icon img {
  display: block;
  width: 2rem;
  height: 2rem;
}

.open-app {
  padding: .5rem .72rem;
  border: 1px solid var(--border);
  color: var(--accent);
  background: var(--panel);
  font-size: .875rem;
  line-height: 1.4;
  text-decoration: none;
}

.open-app:hover { border-color: var(--accent); }

.wordmark {
  min-height: clamp(7rem, 14vw, 11rem);
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-inline: 1rem;
}

.wordmark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 30%, #26332c 0%, transparent 65%),
    radial-gradient(#4b575357 1px, transparent 1px) 50% 50% / 15px 15px;
  mask-image: radial-gradient(ellipse 75% 82% at 50% 25%, #000 12%, transparent 85%);
}

.wordmark h1 {
  margin: 0;
  font-size: clamp(2.85rem, 7.5vw, 6rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.075em;
  white-space: nowrap;
}

.prompt {
  color: var(--accent);
  font-size: .67em;
  font-weight: 400;
  vertical-align: .12em;
}

.cursor {
  display: inline-block;
  vertical-align: -.03em;
  width: .44em;
  height: .79em;
  margin-left: .13em;
  background: var(--accent);
  animation: blink 1.15s step-end infinite;
}

@keyframes blink { 0%, 54% { opacity: 1; } 55%, 100% { opacity: 0; } }

.boot-rain {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.showcase, .introduction { max-width: 43rem; }

.shot-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-bottom: 0;
  background: var(--panel);
}

.shot-controls button {
  min-height: 2.75rem;
  padding: .3rem .1rem;
  font: inherit;
  font-size: clamp(.75rem, 3.25vw, .875rem);
  border: 0;
  color: var(--text);
  background: transparent;
  cursor: pointer;
}

.shot-controls button + button { border-left: 1px solid var(--border); }

.shot-controls button[aria-pressed="true"] {
  color: var(--accent);
  background: #283424;
  box-shadow: inset 0 2px var(--accent);
}

.shot-controls button:focus-visible { outline-offset: -3px; }

.shots {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  border: 1px solid var(--border);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: var(--bg);
}

.shots figure {
  margin: 0;
  min-width: 0;
  scroll-snap-align: start;
}

.shots a, .shots img { display: block; }

.shots a:focus-visible { outline-offset: -3px; }

.shots img {
  width: 100%;
  height: auto;
  background: var(--bg);
}

.introduction {
  text-align: center;
  margin-block: clamp(2rem, 4vw, 3rem);
}

.introduction h2 {
  margin: 0 0 .85rem;
  font-size: clamp(1.14rem, 3vw, 1.42rem);
  line-height: 1.3;
}

.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 3vw, 1.55rem);
  padding: 0;
  margin: 0;
  list-style: none;
}

.flow li {
  position: relative;
  display: grid;
  align-content: center;
  gap: .3rem;
  min-height: 4.25rem;
  padding: .6rem .24rem;
  background: var(--panel);
  border: 1px solid var(--border);
}

.flow li + li::before {
  position: absolute;
  content: "→";
  color: var(--accent);
  top: 50%;
  right: 100%;
  width: clamp(.9rem, 3vw, 1.55rem);
  transform: translateY(-50%);
  font-size: .875rem;
}

.flow strong {
  color: var(--accent);
  font-size: clamp(.78rem, 2.85vw, 1rem);
}

.flow span {
  color: var(--muted);
  font-size: clamp(.75rem, 2.5vw, .875rem);
}

.store-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.45rem;
}

.store-badge {
  display: grid;
  gap: .15rem;
  min-width: 8.5rem;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: .5rem .75rem;
}

.store-badge span {
  color: var(--muted);
  font-size: .8125rem;
}

.store-badge strong { font-size: 1rem; }

@media (max-width: 28rem) {
  .frame { width: calc(100% - 2rem); }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .boot-rain { display: none; }
  .shots { scroll-behavior: auto; }
}
