/* Layout: one calm reading column; the studio shelf on the home page, a tinted band per app page.
   Each app carries its own hue (--app); the studio itself stays ink + cobalt. */
:root {
  --paper: #f3f4f8;
  --surface: #ffffff;
  --ink: #181b2a;
  --muted: #565d75;
  --line: #d9dce7;
  --accent: #3445c9;
  --on-accent: #ffffff;
  --c-coldwater: #b4512a;
  --c-putt: #2a7f4f;
  --c-bump: #b3306f;
  --c-logsynth: #946a06;
  --c-wavimus: #18798a;
  --c-morphimus: #6d44c4;
  --c-loomia: #4a6896;
  --c-resource: #4c5b6c;
  --c-myco: #66742a;
  --app: var(--accent);
  --display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.2rem, 6vw, 3.4rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #11131b; --surface: #191c28; --ink: #eceef6; --muted: #9ba1b9; --line: #2a2e3f;
    --accent: #8c9aff; --on-accent: #11131b;
    --c-coldwater: #f0895c; --c-putt: #63cf91; --c-bump: #f17ab4; --c-logsynth: #e5b44a; --c-wavimus: #5cc8d7; --c-morphimus: #b39cff; --c-loomia: #93b2e4; --c-resource: #aab8c8; --c-myco: #bccb6c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #11131b; --surface: #191c28; --ink: #eceef6; --muted: #9ba1b9; --line: #2a2e3f;
  --accent: #8c9aff; --on-accent: #11131b;
  --c-coldwater: #f0895c; --c-putt: #63cf91; --c-bump: #f17ab4; --c-logsynth: #e5b44a; --c-wavimus: #5cc8d7; --c-morphimus: #b39cff; --c-loomia: #93b2e4; --c-resource: #aab8c8; --c-myco: #bccb6c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; max-width: 65ch; }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.app-coldwater { --app: var(--c-coldwater); }
.app-putt { --app: var(--c-putt); }
.app-bump { --app: var(--c-bump); }
.app-logsynth { --app: var(--c-logsynth); }
.app-wavimus { --app: var(--c-wavimus); }
.app-morphimus { --app: var(--c-morphimus); }
.app-loomia { --app: var(--c-loomia); }
.app-resource { --app: var(--c-resource); }
.app-myco { --app: var(--c-myco); }

/* Header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 34px; color: var(--ink); }
.nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: var(--step--1); }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--ink); }

/* Mark */
.mark .body { fill: currentColor; }
.mark .eyes { stroke: var(--paper); }
.mark .zz { fill: var(--accent); font-family: var(--display); font-weight: 700; }

/* Home hero */
.hero { padding-block: 64px 40px; display: grid; gap: 18px; }
.hero .mark { width: 88px; height: 88px; color: var(--ink); }
.hero h1 { font-size: var(--step-3); font-weight: 800; letter-spacing: -0.025em; }
.hero p { font-size: var(--step-1); color: var(--muted); line-height: 1.45; }
.hero .promise { color: var(--ink); font-weight: 600; }

/* Shelves */
.shelf { padding-block: 24px; display: grid; gap: 14px; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.shelf-head h2 { font-size: var(--step-1); }
.shelf-head span { color: var(--muted); font-size: var(--step--1); }
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.app-card { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.app-card:hover { border-color: var(--app); transform: translateY(-1px); }
.app-card > div { min-width: 0; }
.app-card h3 { font-size: 1.08rem; }
.app-card .sub { color: var(--muted); font-size: var(--step--1); line-height: 1.35; }
.app-card .meta { font-family: var(--mono); font-size: 0.75rem; color: var(--app); margin-top: 4px; letter-spacing: 0.02em; }

/* Icon tile: initials underneath, real icon (if present) drawn over it */
.tile { position: relative; width: 64px; height: 64px; border-radius: 22%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--app); background: color-mix(in srgb, var(--app) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--app) 30%, var(--line)); overflow: hidden; flex: none; }
.tile::after { content: ""; position: absolute; inset: 0; background: var(--icon, none) center / cover no-repeat; }
.tile.lg { width: 104px; height: 104px; font-size: 2rem; }

/* App page */
.band { background: color-mix(in srgb, var(--app) 9%, var(--paper)); border-bottom: 1px solid color-mix(in srgb, var(--app) 22%, var(--line)); }
.band .wrap { padding-block: 40px 32px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.band .wrap > div { min-width: 0; display: grid; gap: 8px; }
.eyebrow { font-family: var(--mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--app); }
.band h1 { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; }
.band .tag { color: var(--muted); font-size: var(--step-1); line-height: 1.3; }
.buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: var(--step--1); text-decoration: none; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn small { font-weight: 400; opacity: .75; }

.page { padding-block: 36px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 40px; align-items: start; }
.page main, .page aside { min-width: 0; display: grid; gap: 28px; }
.pitch { font-size: var(--step-1); line-height: 1.5; }
.section { display: grid; gap: 12px; }
.section h2 { font-size: var(--step-1); }
.feats { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.feats li { display: grid; grid-template-columns: 10px 1fr; gap: 12px; align-items: baseline; max-width: 65ch; }
.feats li::before { content: ""; width: 8px; height: 8px; border-radius: 3px; background: var(--app); transform: translateY(-1px); }

.facts { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 6px 18px; }
.facts div { display: grid; gap: 2px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--mono); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.facts dd { margin: 0; font-size: var(--step--1); line-height: 1.45; }

details { border-top: 1px solid var(--line); padding-block: 14px; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--app); }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 8px; color: var(--muted); }

.help { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: grid; gap: 10px; font-size: var(--step--1); }
.help h2 { font-size: 1.05rem; }
.email { font-family: var(--mono); font-size: 0.9rem; color: var(--ink); background: color-mix(in srgb, var(--app) 10%, var(--surface)); border-radius: 8px; padding: 8px 10px; user-select: all; overflow-wrap: anywhere; }

/* Prose pages (privacy, support) */
.prose { padding-block: 40px 24px; display: grid; gap: 24px; max-width: 70ch; }
.prose h1 { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.02em; }
.prose h2 { font-size: var(--step-1); }
.prose .lede { font-size: var(--step-1); line-height: 1.45; }
.prose .lede strong { color: var(--app); }
.prose section { display: grid; gap: 8px; }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.updated { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); margin-top: 48px; }
.site-foot .wrap { padding-block: 24px 36px; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: var(--step--1); color: var(--muted); }
.site-foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

@media (max-width: 760px) {
  .page { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .band .wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tile.lg { width: 84px; height: 84px; }
  .hero { padding-block: 40px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* App icons (generated) */
.app-coldwater .tile { --icon: url(/assets/icons/coldwater.png); }
.app-putt .tile { --icon: url(/assets/icons/putt-odyssey.png); }
.app-bump .tile { --icon: url(/assets/icons/bump-roller.png); }
.app-logsynth .tile { --icon: url(/assets/icons/logsynth.png); }
.app-wavimus .tile { --icon: url(/assets/icons/wavimus.png); }
.app-morphimus .tile { --icon: url(/assets/icons/morphimus.png); }
.app-resource .tile { --icon: url(/assets/icons/resource-buddy.png); }
.app-myco .tile { --icon: url(/assets/icons/myco-buddy.png); }
