:root {
  --paper: #f5eee2;
  --card: #fffaf1;
  --ink: #26221e;
  --muted: #6a6157;
  --orange: #d4601a;
  --orange-ink: #ffffff;
  --line: #e3d8c6;
  --ok: #2f6b3b;
  --err: #a3321f;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1b1815;
    --card: #25211d;
    --ink: #f3ebde;
    --muted: #b4a898;
    --orange: #ee7a30;
    --orange-ink: #1b1815;
    --line: #3a342d;
    --ok: #8ccf98;
    --err: #ff9b86;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 56px; }
header.top { padding: 28px 0 8px; display: flex; align-items: center; gap: 10px; }
.mark { width: 28px; height: 28px; border-radius: 7px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 700 15px/1 Georgia, serif; }
.brand { font: 700 17px/1 Georgia, "Times New Roman", serif; letter-spacing: .01em; }
h1 { font: 700 clamp(30px, 7vw, 44px)/1.1 Georgia, "Times New Roman", serif; margin: 22px 0 12px; letter-spacing: -.01em; }
h2 { font: 700 24px/1.2 Georgia, "Times New Roman", serif; margin: 44px 0 14px; }
h3 { font-size: 18px; margin: 0 0 4px; }
p { margin: 0 0 12px; }
a { color: var(--orange); }
.lede { font-size: 19px; color: var(--muted); max-width: 34em; }
.pill { display: inline-block; font-size: 13px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: var(--card); margin: 0 6px 6px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.btn {
  display: inline-block; background: var(--orange); color: var(--orange-ink); text-decoration: none; font-weight: 700;
  padding: 13px 20px; border-radius: 12px; border: 0; font-size: 16px; cursor: pointer; min-height: 48px;
}
.btn:hover { filter: brightness(1.06); }
.btn:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.small { font-size: 14px; color: var(--muted); }
.chars { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .chars { grid-template-columns: 1fr 1fr; } }
.char { padding: 0; overflow: hidden; }
.char img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; background: var(--line); }
.char .body { padding: 16px 18px 18px; }
.char.focus { outline: 3px solid var(--orange); }
.handle { color: var(--muted); font-size: 14px; }
form.signup { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
form.signup input[type=email] {
  flex: 1 1 220px; min-height: 48px; padding: 0 14px; font-size: 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#msg { min-height: 1.5em; margin-top: 10px; font-size: 15px; }
#msg.ok { color: var(--ok); } #msg.err { color: var(--err); }
.hello { display: none; background: var(--card); border: 1px solid var(--orange); border-radius: 12px; padding: 10px 14px; margin: 14px 0 0; }
footer { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
ul.tidy { padding-left: 20px; margin: 0 0 12px; }
ul.tidy li { margin-bottom: 6px; }

.apps { display: grid; gap: 16px; }
.app { display: flex; gap: 16px; align-items: flex-start; }
.app > img { width: 60px; height: 60px; border-radius: 12px; flex: none; background: var(--line); }
.app > div { min-width: 0; }

h3.sub { font: 700 20px/1.25 Georgia, "Times New Roman", serif; margin: 32px 0 8px; }
.status { font-size: 14px; border-left: 3px solid var(--line); padding: 2px 0 2px 10px; margin: 0 0 12px; color: var(--muted); }
.status.live { border-left-color: var(--ok); }
.status.pending { border-left-color: var(--orange); }
.status.dev { border-left-color: var(--muted); }
.status strong { color: var(--ink); }

/* app cards with banner + screenshots */
.card.app { display: block; padding: 0; overflow: hidden; }
.app .banner { display: block; width: 100%; height: auto; background: var(--line); }
.app .row { display: flex; gap: 16px; align-items: flex-start; padding: 20px; }
.app:not(:has(.banner)) { padding: 20px; }
.app:not(:has(.banner)) .row { padding: 0; }
.shotwrap { padding: 0 20px 20px; }
.shotwrap p { margin: 0 0 8px; }
.shots { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.shots a { flex: 0 0 82%; scroll-snap-align: start; display: block; }
.shots img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
@media (min-width: 640px) { .shots a { flex-basis: 60%; } }

/* ---- survey fixes: navigation, collapsible screenshots, wider desktop layout ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
h2 { scroll-margin-top: 16px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; }
.jump a:hover { border-color: var(--orange); }
details.shotwrap { padding: 0 20px 12px; }
details.shotwrap summary { cursor: pointer; font-weight: 700; font-size: 15px; min-height: 44px; display: flex; align-items: center; color: var(--ink); }
details.shotwrap[open] summary { margin-bottom: 4px; }
details.shotwrap summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 639px) { .char img { aspect-ratio: 1 / 1; } }
@media (min-width: 900px) {
  .wrap { max-width: 980px; }
  main > p, .lede { max-width: 46em; }
  .apps { grid-template-columns: 1fr 1fr; align-items: start; }
  .chars { max-width: 760px; }
  section.card:not(.app) { max-width: 720px; }
}
footer a { display: inline-block; padding: 14px 4px; }
@media (min-width: 900px) {
  .apps { display: block; columns: 2; column-gap: 16px; }
  .apps > .app { break-inside: avoid; margin-bottom: 16px; }
}
.apps { margin-top: 16px; }
