/* The home page and the Matchsticks and Sweep Radio pages. (Soapcap's page keeps its own.) */
:root {
  --bg: #f6f4f0;
  --text: #1f1c19;
  --muted: #5e5750;
  --line: #e2ddd5;
  --accent: #23417a;
  --serif: "New York", ui-serif, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15161c;
    --text: #ece9e3;
    --muted: #a7a29a;
    --line: #2b2d36;
    --accent: #8fb0ee;
  }
}
/* Matchsticks: the app's dark room, warm off-white text, the ember accent. */
.matchsticks {
  --bg: #1d1b19;
  --text: #ede8de;
  --muted: #a39c90;
  --line: #34302b;
  --accent: #f08a5d;
  color-scheme: dark;
}
/* Sweep Radio: the app's own day and night palettes, amber for sound. */
.sweep-radio {
  --bg: #eef2f7;
  --text: #15202e;
  --muted: #5a6a7e;
  --line: #d3dce8;
  --accent: #a35603;
}
@media (prefers-color-scheme: dark) {
  .sweep-radio {
    --bg: #070b14;
    --text: #e8edf5;
    --muted: #8d9ab0;
    --line: #1e2a3d;
    --accent: #ffb547;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
}
main { max-width: 640px; margin: 0 auto; padding: 56px 16px 64px; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: clamp(30px, 10vw, 36px); line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 22px; margin: 40px 0 10px; }
p { margin: 0 0 14px; }
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
ul { padding-left: 1.3em; margin: 0 0 14px; }
code { font-size: 0.92em; white-space: nowrap; }
li { margin: 6px 0; }

/* The title sits beside the icon, and drops below it if its longest word can't fit. */
header { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
header img { width: 76px; height: 76px; border-radius: 17px; }
header div { flex: 1 1 0; }
.tagline { margin: 4px 0 0; color: var(--muted); }
.lead { font-size: 19px; margin: 28px 0 24px; }
.fine { color: var(--muted); font-size: 15px; }

/* home */
.portrait {
  display: block;
  width: 240px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 28px;
  border-radius: 20px;
}
.home h1 { text-align: center; }
.home .tagline { text-align: center; }
.not-found .lead { text-align: center; }
.projects { list-style: none; padding: 0; margin: 0; }
.projects li {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.projects a { font-weight: 600; text-decoration: none; }
.projects a:hover { text-decoration: underline; }
.projects .where { color: var(--muted); font-size: 14px; margin-left: 6px; }
.projects p { margin: 2px 0 0; color: var(--muted); font-size: 16px; }

.download {
  display: inline-block;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
}
.download:hover { filter: brightness(1.08); }
/* A small line about the Download button above it sits 8 px below it (14 px collapsed with -6 px). */
.under { margin-top: -6px; }

footer { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
