:root {
  --bg: #f5f5f3; --surface: #ffffff; --fg: #1b1c1e; --muted: #5d6067; --line: #e0e0dc;
  --accent: #0a64d8; --accent-fg: #ffffff; --soft: #eef3fb; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111213; --surface: #1a1b1d; --fg: #ececea; --muted: #a1a4aa; --line: #2c2e31;
          --accent: #4c9bff; --accent-fg: #0b1220; --soft: #17202d; color-scheme: dark; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); padding-inline: 20px;
       font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; }
main { max-width: 680px; margin: 0 auto; padding-block: 40px 64px; }
nav { display: flex; gap: 20px; flex-wrap: wrap; font-size: 15px; margin-bottom: 36px; }
nav a { color: var(--muted); text-decoration: none; }
nav a[aria-current] { color: var(--fg); font-weight: 600; }
nav .home { color: var(--fg); font-weight: 700; margin-right: auto; }
h1 { font-size: 34px; line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
h2 { font-size: 21px; line-height: 1.3; margin: 40px 0 12px; }
p { margin: 0 0 12px; }
.intro { font-size: 19px; color: var(--muted); margin-bottom: 28px; }
.updated { font-size: 14px; color: var(--muted); }
a { color: var(--accent); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; }
.summary { background: var(--soft); border-color: transparent; }
.summary strong { font-size: 19px; display: block; margin-bottom: 6px; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.points li { display: grid; gap: 2px; }
.points b { font-weight: 600; }
.button { display: inline-block; background: var(--accent); color: var(--accent-fg); text-decoration: none;
          font-weight: 600; padding: 10px 18px; border-radius: 8px; }
.address { font-size: 15px; color: var(--muted); margin-top: 10px; overflow-wrap: anywhere; }
ul.checklist { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 0 18px; }
details + details { margin-top: 8px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
details[open] summary { padding-bottom: 6px; }
details p { color: var(--muted); padding-bottom: 6px; }
.links { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 28px; }
.links a { text-decoration: none; color: var(--fg); }
.links .card { display: block; height: 100%; }
.links .card span { display: block; color: var(--muted); font-size: 15px; }
.path { white-space: nowrap; }
footer { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.button-muted { background: var(--soft); color: var(--fg); }
.store-cta { margin: 20px 0 24px; }
.shot { margin: 0 0 8px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface);
        aspect-ratio: 4 / 3; display: grid; place-items: center; color: var(--muted); font-size: 15px; }
.shot img { width: 100%; height: auto; border-radius: 12px; display: block; }
.facts { width: 100%; border-collapse: collapse; font-size: 16px; }
.facts th, .facts td { text-align: left; vertical-align: top; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts th { font-weight: 600; width: 38%; padding-right: 16px; }
.assets { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.assets .pending { color: var(--muted); }
blockquote { margin: 0 0 12px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
blockquote p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 420px) { nav { gap: 14px; } }
/* The personal landing page: wider, with tiles for apps and projects and a gallery for art. */
.home-page main { max-width: 960px; }
.hero { padding-block: 12px 8px; }
.hero h1 { font-size: 44px; }
section { scroll-margin-top: 24px; }
.section-intro { color: var(--muted); }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tile { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border: 1px solid var(--line);
        border-radius: 12px; overflow: hidden; color: var(--fg); text-decoration: none; }
a.tile:hover { border-color: var(--accent); }
.tile-image { display: block; aspect-ratio: 16 / 10; width: 100%; object-fit: cover; }
.tile-body { display: grid; gap: 6px; padding: 16px 18px 18px; align-content: start; }
.tile-body > span { color: var(--muted); font-size: 15px; }
.tile-body .tile-meta { font-size: 13px; }
.tile-placeholder { background: var(--soft); color: var(--muted); display: grid; place-items: center; font-size: 15px; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.gallery figure { margin: 0; border-radius: 10px; overflow: hidden; position: relative; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 8px 12px; font-size: 14px; color: var(--fg);
                      background: color-mix(in srgb, var(--surface) 85%, transparent); }
@media (max-width: 520px) { .hero h1 { font-size: 34px; } }
