@font-face {
  font-family: 'Geist';
  src: url('/assets/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: oklch(0.315 0.045 55);
  --foreground: oklch(0.94 0.02 78);
  --muted-foreground: oklch(0.74 0.04 70);
  --primary: oklch(0.8 0.13 75);
  --border: oklch(0.4 0.045 58);
  --column: 36rem;
  --figure: 56rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font:
    15px/1.65 'Geist',
    ui-sans-serif,
    system-ui,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  width: min(100% - 3rem, var(--column));
  margin: 0 auto;
  padding: 4rem 0 3rem;
}

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--muted-foreground);
}

a:hover {
  color: var(--primary);
  text-decoration-color: var(--primary);
}

h1 {
  margin: 0;
}

h1 img {
  display: block;
  width: 15rem;
  height: auto;
}

.lede {
  margin: 1.75rem 0 0;
  font-size: 1.0625rem;
}

.wishlist {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
}

.wishlist a {
  color: var(--primary);
  text-decoration-color: transparent;
}

.wishlist a:hover {
  text-decoration-color: var(--primary);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.stores a {
  display: block;
}

.stores img {
  display: block;
  width: auto;
  height: 2.5rem;
}

@media (max-width: 26rem) {
  .stores {
    gap: 0.5rem;
  }

  .stores img {
    height: 1.95rem;
  }
}

.shots {
  width: min(100vw - 3rem, var(--figure));
  margin: 3.5rem 0 0 50%;
  transform: translateX(-50%);
  display: grid;
  gap: 2.5rem;
}

figure {
  margin: 0;
}

figure a {
  display: block;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
}

/* Screenshots are macOS window captures that carry their own frame and a
   transparent drop-shadow margin (about 3.3% per side, more below). Each one
   bleeds outward by that margin so window edges align with the figure column;
   in a pair, the shadow margins between the two windows form the gutter. */
.shots figure > a {
  margin: -1.5% -3.4% -3%;
}

.pair-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: -0.75% -1.7% -1.5%;
}

@media (max-width: 48rem) {
  .pair-images {
    grid-template-columns: 1fr;
    margin: -1.5% -3.4% -3%;
  }
}

figure a {
  cursor: zoom-in;
}

.lightbox {
  max-width: 100vw;
  max-height: 100vh;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-out;
}

.lightbox::backdrop {
  background: oklch(0.12 0.02 50 / 0.85);
}

.lightbox img {
  display: block;
  max-width: 96vw;
  max-height: 96vh;
  width: auto;
  height: auto;
}

figcaption {
  max-width: var(--column);
  margin: 0.75rem auto 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

h2 {
  margin: 3.5rem 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

li::marker {
  color: var(--primary);
}

footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.8125rem;
}

footer img {
  image-rendering: pixelated;
}
