/* ============================================================
   Jeff Babbitt — portfolio site
   Shell identity: ink + brass. Individual app pages may layer
   their own product colors on top (see apps/gosignal.html),
   but nav, footer, and index stay in the shell identity so the
   maker's own voice — not any one app's brand — is what holds
   the whole site together.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #10131A;
  --bg-raised: #161A23;
  --text: #EDEBE4;
  --text-muted: #8B90A0;
  --text-faint: #565C6B;
  --accent: #C9982E;
  --accent-soft: rgba(201, 152, 46, 0.14);
  --line: rgba(255, 255, 255, 0.09);
  --live: #7FD68A;
  --building: #6B7280;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;

  --content-width: 720px;
  --side-pad: 24px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

/* ---------- top bar ---------- */

.topbar {
  padding: 32px 0 0;
}

.topbar .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.topbar .mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.topbar .mark span {
  color: var(--accent);
}

.topbar nav a {
  font-size: 14px;
  color: var(--text-muted);
  margin-left: 20px;
  transition: color 0.15s ease;
}

.topbar nav a:hover { color: var(--text); }

/* ---------- hero (index page) ---------- */

.hero {
  padding: 96px 0 72px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  max-width: 12ch;
}

.hero p.lede {
  margin-top: 20px;
  max-width: 46ch;
  font-size: 17px;
  color: var(--text-muted);
}

/* ---------- app index list ---------- */

.app-list {
  border-top: 1px solid var(--line);
}

.app-row {
  display: block;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.18s ease;
}

.app-row:hover { padding-left: 6px; }

.app-row-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.app-row .icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-raised);
}

.app-row .icon.placeholder {
  border: 1px solid var(--line);
}

.app-row h2 {
  font-size: 22px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
  white-space: nowrap;
}

.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--building);
}

.status.live .dot { background: var(--live); }

.app-row p.tagline {
  margin-top: 12px;
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 15px;
}

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 64px;
  margin-top: 48px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

footer .legal {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
}

footer .legal a:hover { color: var(--text); }

footer .copyright {
  font-size: 13px;
  color: var(--text-faint);
}

/* ---------- app detail page ---------- */

.app-hero {
  padding: 64px 0 40px;
}

.app-hero .back {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
  display: inline-block;
}

.app-hero .back:hover { color: var(--text); }

.app-hero-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.app-hero .icon-lg {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  flex-shrink: 0;
}

.app-hero h1 {
  font-size: 34px;
}

.app-hero .tagline {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 17px;
}

.app-hero .status { margin: 14px 0 0; justify-content: flex-start; }

.app-hero .description {
  margin-top: 28px;
  font-size: 16px;
  color: var(--text-muted);
  max-width: 62ch;
}

.app-hero .description + .description { margin-top: 14px; }

/* screenshot strip */

.shots {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px var(--side-pad) 24px;
  margin: 40px calc(var(--side-pad) * -1) 0;
  scroll-snap-type: x proximity;
}

.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.shots img {
  height: 480px;
  width: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* feature list */

.features {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}

.feature {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
}

.feature p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 58ch;
}

/* ---------- WIP app page ---------- */

.wip-body {
  padding: 40px 0 24px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}

.wip-body p {
  color: var(--text-muted);
  max-width: 52ch;
  font-size: 15px;
}

/* ---------- legal pages ---------- */

.legal-page {
  padding: 64px 0 40px;
}

.legal-page h1 { font-size: 30px; }

.legal-page .updated {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-faint);
}

.legal-page section {
  margin-top: 36px;
}

.legal-page h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 66ch;
}

.legal-page p + p { margin-top: 12px; }

.legal-page ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal-page li + li { margin-top: 8px; }

/* ---------- responsive ---------- */

@media (max-width: 560px) {
  :root { --side-pad: 20px; }
  .hero { padding: 64px 0 48px; }
  .hero h1 { font-size: 32px; }
  .app-hero-top { flex-direction: column; }
  .shots img { height: 360px; }
  .topbar nav a { margin-left: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* ---------- per-app accent overrides ----------
   Each app's dedicated page can wear that product's own color, since
   it's specifically showcasing that app — the shell (nav/footer/index)
   stays on the site-wide ink + brass identity regardless. */

body.gosignal {
  --bg: #13100E;
  --bg-raised: #1B1712;
  --accent: #BAF03E;
  --accent-soft: rgba(186, 240, 62, 0.14);
  --live: #BAF03E;
}
