/* S2 Legacy product shelf — inspired by kids.samwho.dev calm icon grid */
:root {
  color-scheme: light dark;
  --bg: #f5f3ee;
  --ink: #1c2430;
  --muted: #5c6675;
  --surface: #ffffff;
  --line: #d9dde5;
  --accent: #2f5bff;
  --shadow: rgba(28, 36, 48, 0.1);
  --radius: 1.35rem;
  --page: min(70rem, 100%);
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171d29;
    --ink: #f2f4f8;
    --muted: #a7b0bf;
    --surface: #222938;
    --line: #3a4356;
    --accent: #8eb0ff;
    --shadow: rgba(0, 0, 0, 0.35);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: var(--accent); text-underline-offset: 0.2em; }
a:hover { text-decoration: underline; }
.page {
  width: var(--page);
  margin-inline: auto;
  padding: clamp(2rem, 4vw, 4rem) clamp(1rem, 3vw, 1.5rem) 3rem;
}
.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 750;
}
h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.1rem);
  letter-spacing: -0.04em;
  font-weight: 750;
  line-height: 1.15;
}
.subtitle {
  margin: 0 0 0.85rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.about {
  margin: 0 0 2rem;
  max-width: 42rem;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.55;
}
.about a { font-weight: 600; text-decoration: none; }
.about a:hover { text-decoration: underline; }
.apps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
  gap: 1.25rem;
}
.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.1rem 0.85rem 1.2rem;
  border-radius: 1.5rem;
  text-decoration: none;
  color: inherit;
  text-align: center;
  background: transparent;
  transition: background 0.16s ease;
}
.app-card:hover, .app-card:focus-visible {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  text-decoration: none;
}
.app-card img, .app-card .mono {
  width: 6rem;
  height: 6rem;
  border-radius: var(--radius);
  box-shadow: 0 3px 12px var(--shadow);
  flex: none;
  object-fit: cover;
}
.app-card .mono {
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 750;
  letter-spacing: -0.03em;
  font-size: 1.35rem;
  color: var(--ink);
}
.app-card .title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 650;
}
.app-card .blurb {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}
.site-footer {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.site-footer a { color: inherit; }

/* App landing */
.hero {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .hero {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
}
.hero-icon {
  width: 7rem;
  height: 7rem;
  border-radius: 1.6rem;
  box-shadow: 0 4px 16px var(--shadow);
}
.hero h1 { margin-bottom: 0.35rem; }
.hero p { margin: 0 0 1rem; color: var(--muted); max-width: 36rem; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.2rem;
  border-radius: 0.85rem;
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
}
@media (prefers-color-scheme: dark) {
  .btn { color: #171d29; }
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.link-quiet {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(10.5rem, 14rem);
  gap: 1rem;
  overflow-x: auto;
  padding: 0.25rem 0 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.gallery figure {
  margin: 0;
  scroll-snap-align: start;
}
.gallery img {
  width: 100%;
  height: auto;
  border-radius: 1.1rem;
  box-shadow: 0 3px 14px var(--shadow);
  background: var(--surface);
  display: block;
}
.disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.9rem;
}
.disclaimer h2 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: var(--ink);
}
.disclaimer p { margin: 0 0 0.55rem; }
.disclaimer p:last-child { margin-bottom: 0; }
.back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}
.back:hover { text-decoration: underline; }
