/* Layout: a quiet neutral page; each app gets one wide plate painted in its own colours. */
:root {
  --bg: #eef0f3;
  --fg: #12151c;
  --muted: #586070;
  --line: #d3d8e0;
  --tile: #ffffff;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", -apple-system, "Segoe UI", Roboto, system-ui, sans-serif;
  --icon-radius: 22.5%;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c10;
    --fg: #eceef2;
    --muted: #9aa2b0;
    --line: #262b35;
    --tile: #14171d;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.0625rem/1.55 var(--body);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.wrap {
  max-width: 72rem;
  margin-inline: auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

.app-icon { border-radius: var(--icon-radius); box-shadow: 0 0 0 1px rgb(127 127 127 / .25), 0 10px 24px -12px rgb(0 0 0 / .45); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font: 700 1.125rem/1 var(--display); letter-spacing: -.01em; }
.mark { width: 1.375rem; height: 1.375rem; fill: currentColor; }
.mark .mark-open { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-dasharray: 2.4 2; }
.top nav { display: flex; gap: 1.5rem; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .9375rem; }
.top nav a:hover { color: var(--fg); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: end; padding-block: 3.5rem 4rem; }
.eyebrow { color: var(--muted); font-weight: 600; font-size: .8125rem; letter-spacing: .09em; text-transform: uppercase; margin-bottom: 1rem; }
h1 { font: 700 clamp(2.25rem, 5.2vw, 4rem)/1.02 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.lede { color: var(--muted); font-size: 1.1875rem; max-width: 34ch; margin-top: 1.25rem; }

.shelf { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: flex-end; }
.tile { display: flex; flex-direction: column; align-items: center; gap: .6rem; width: 6rem; text-decoration: none; font-size: .875rem; font-weight: 500; text-align: center; }
.tile .app-icon, .slot { width: 6rem; height: 6rem; }
a.tile .app-icon { transition: transform .18s ease; }
a.tile:hover .app-icon { transform: translateY(-4px); }
.slot { border: 2px dashed var(--line); border-radius: var(--icon-radius); }
.tile-next { color: var(--muted); }

/* App plates */
.plates { display: grid; gap: 1.5rem; padding-bottom: 4rem; }
.plate {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem;
  align-items: center;
  padding: 3.5rem;
  border-radius: 2rem;
  background: radial-gradient(120% 90% at 85% 0%, var(--p-bg1), var(--p-bg2) 70%);
  color: var(--p-fg);
  border: 1px solid rgb(255 255 255 / .08);
  overflow: hidden;
  scroll-margin-top: 1rem;
}
.plate:nth-child(even) .plate-text { order: 2; }

.plate-text { display: grid; gap: 1.5rem; min-width: 0; }
.plate-head { display: flex; align-items: center; gap: 1.1rem; }
.plate-head .app-icon { width: 4.75rem; height: 4.75rem; flex: none; }
h2 { font: 700 clamp(2rem, 3.6vw, 2.75rem)/1 var(--display); letter-spacing: -.03em; }
.tagline { color: var(--p-accent); font-weight: 600; margin-top: .35rem; }
.blurb { font-size: 1.1875rem; line-height: 1.45; max-width: 40ch; text-wrap: pretty; }

.features { display: grid; gap: .55rem; color: var(--p-muted); font-size: 1rem; }
.features li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .5rem; }
.features li::before { content: ""; width: .45rem; height: .45rem; margin-top: .6em; border-radius: 50%; background: var(--p-accent); }

.facts { display: grid; gap: .4rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / .12); font-size: .9375rem; }
.facts div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .75rem; }
.facts dt { color: var(--p-muted); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.btn, .soon { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.15rem; border-radius: 999px; font-weight: 600; font-size: .9375rem; }
.btn { background: var(--p-accent); color: var(--p-bg2); text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.soon { border: 1px solid color-mix(in srgb, var(--p-accent) 55%, transparent); color: var(--p-accent); }
.plate-links { display: inline-flex; gap: 1.25rem; font-size: .9375rem; }
.plate-links a { color: var(--p-muted); text-underline-offset: 3px; }
.plate-links a:hover { color: var(--p-fg); }

.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; min-width: 0; }
.shots img { width: 100%; border-radius: 1.1rem; box-shadow: 0 0 0 1px rgb(255 255 255 / .1), 0 24px 40px -22px rgb(0 0 0 / .8); }
.shots img:nth-child(2) { margin-top: 2.75rem; }
.shots img:nth-child(3) { margin-top: 5.5rem; }

/* Footer */
.foot { display: grid; gap: 2rem; padding-block: 2.5rem 3rem; border-top: 1px solid var(--line); }
.foot-apps { display: flex; flex-wrap: wrap; gap: 2rem 4rem; }
.foot h3 { font: 700 1rem/1.2 var(--display); margin-bottom: .6rem; }
.foot ul { display: grid; gap: .35rem; font-size: .9375rem; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; }
.fine { color: var(--muted); font-size: .8125rem; }

@media (max-width: 60rem) {
  .hero { grid-template-columns: 1fr; align-items: start; gap: 2.5rem; padding-block: 2rem 3rem; }
  .shelf { justify-content: flex-start; }
  .plate { grid-template-columns: 1fr; gap: 2.5rem; padding: 2.5rem; }
  .plate:nth-child(even) .plate-text { order: 0; }
  .shots img:nth-child(2) { margin-top: 1.5rem; }
  .shots img:nth-child(3) { margin-top: 3rem; }
}

@media (max-width: 36rem) {
  .top nav { display: none; }
  .tile { width: 4.75rem; }
  .tile .app-icon, .slot { width: 4.75rem; height: 4.75rem; }
  .plate { padding: 1.5rem 1.25rem; border-radius: 1.5rem; gap: 2rem; }
  /* Screenshots become a swipeable strip that runs to the plate's edges. */
  .shots {
    display: flex;
    gap: .75rem;
    margin-inline: -1.25rem;
    padding: 0 1.25rem .5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
  }
  .shots img, .shots img:nth-child(2), .shots img:nth-child(3) { flex: 0 0 68%; width: 68%; min-width: 0; margin-top: 0; scroll-snap-align: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.tile .app-icon { transition: none; }
}

/* Entries with their own page: the name links there */
.plate h2 a { color: inherit; text-decoration: none; }
.plate h2 a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.plate-links a.more { color: var(--p-fg); font-weight: 600; }
