/* Retrace's own palettes: amber for dark, paper for light. The app has
   five; the site uses the default one and its light counterpart. */
:root {
  --bg:#F2EDE1; --bg2:#E9E2D2; --bg3:#DFD7C4; --line:#D2C7B1;
  --fg:#221E16; --dim:#6E6452; --faint:#9A8E77;
  --accent:#A85C00; --accent2:#1F6070; --ok:#3F7A34;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#12100C; --bg2:#1B1712; --bg3:#221D16; --line:#2E2820;
    --fg:#E9D9B6; --dim:#8C7B5C; --faint:#5E523C;
    --accent:#FFB000; --accent2:#74B9C9; --ok:#8FB86A;
  }
}

* { box-sizing:border-box; }
body {
  margin:0; background:var(--bg); color:var(--fg);
  font-family:"IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size:16px; line-height:1.7;
}
.wrap {
  max-width:46rem; margin:0 auto;
  padding-block:2.5rem 4rem; padding-left:1.25rem; padding-right:1.25rem;
}
.wide { max-width:58rem; }

.brand {
  font-family:"IBM Plex Mono", ui-monospace, monospace; font-weight:600;
  color:var(--accent); letter-spacing:.06em; font-size:.8rem; text-transform:uppercase;
}
h1 { font-size:1.9rem; line-height:1.25; margin:.5rem 0 .35rem; text-wrap:balance; }
h2 {
  font-family:"IBM Plex Mono", ui-monospace, monospace; font-size:.8rem;
  text-transform:uppercase; letter-spacing:.08em; color:var(--accent);
  margin:2.5rem 0 .6rem; font-weight:600;
}
h3 { font-size:1rem; margin:1.75rem 0 .35rem; }
.updated, .note {
  font-family:"IBM Plex Mono", ui-monospace, monospace; font-size:.8rem; color:var(--faint);
}
a { color:var(--accent2); }
ul { padding-left:1.15rem; }
li { margin:.35rem 0; }
code, .mono { font-family:"IBM Plex Mono", ui-monospace, monospace; font-size:.92em; }
code { background:var(--bg2); padding:.1em .35em; border-radius:2px; }

header.page { border-bottom:1px solid var(--line); padding-bottom:1.25rem; margin-bottom:2.5rem; }
.lede { border-left:2px solid var(--accent); padding:.1rem 0 .1rem 1rem; color:var(--dim); margin:1.75rem 0; }
.lede strong { color:var(--fg); }

/* Product page */
.hero-sub { font-size:1.08rem; color:var(--dim); max-width:34rem; }
.shots {
  display:grid; gap:1rem; margin:2rem 0;
  /* Two by two rather than auto-fit. Four phone screenshots auto-fit to
     three across and one orphan at most widths, and the thumbnails are
     legible at a half-width and cramped at a third. */
  grid-template-columns:repeat(2, minmax(0, 1fr));
}
@media (max-width: 34rem) { .shots { grid-template-columns:1fr; } }
.shots figure { margin:0; }
.shots img {
  width:100%; max-width:100%; height:auto; display:block;
  border:1px solid var(--line); border-radius:3px; background:var(--bg2);
}
.shots figcaption {
  font-family:"IBM Plex Mono", ui-monospace, monospace;
  font-size:.75rem; color:var(--faint); margin-top:.5rem;
}
.features { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit, minmax(16rem, 1fr)); }
.feature { border:1px solid var(--line); border-radius:3px; padding:1rem 1.1rem; background:var(--bg2); }
.feature h3 { margin:0 0 .3rem; font-size:.98rem; }
.feature p { margin:0; color:var(--dim); font-size:.92rem; }
.badge {
  display:inline-block; font-family:"IBM Plex Mono", ui-monospace, monospace;
  font-size:.7rem; letter-spacing:.06em; text-transform:uppercase;
  border:1px solid var(--ok); color:var(--ok); border-radius:2px;
  padding:.1rem .4rem; vertical-align:.1em;
}

footer {
  margin-top:3.5rem; padding-top:1.25rem; border-top:1px solid var(--line);
  font-family:"IBM Plex Mono", ui-monospace, monospace; font-size:.8rem; color:var(--faint);
  display:flex; flex-wrap:wrap; gap:.5rem 1.25rem; justify-content:space-between;
}
footer a { color:var(--dim); text-decoration:none; }
footer a:hover { color:var(--accent); text-decoration:underline; }
