/* rsvr-apps.github.io: plain pages, light by default, dark when the system is. */
:root {
  --bg: #f7f5f1;
  --text: #1f1d1b;
  --muted: #6c675f;
  --line: #dcd6cc;
  --soft: #eeeae3;
  --link: #a8324e;
  --dl: #1f1d1b;
  --dl-text: #f7f5f1;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161514;
    --text: #e9e5df;
    --muted: #9b958c;
    --line: #34302b;
    --soft: #201e1c;
    --link: #ee9aad;
    --dl: #e9e5df;
    --dl-text: #161514;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--link); text-underline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* header */
.top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 20px; padding-top: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.brand img { border-radius: 5px; }
.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.95rem; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); text-decoration: underline; }

main { padding-top: 28px; }
h1 { font-size: 2rem; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 6px; display: flex; align-items: center; gap: 12px; }
h1 img, h2 img { border-radius: 8px; }
h2 { font-size: 1.35rem; font-weight: 650; margin: 2.2em 0 0.5em; display: flex; align-items: center; gap: 10px; }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { text-decoration: underline; }
h3 { font-size: 1.05rem; font-weight: 650; margin: 1.4em 0 0.2em; }
p { margin: 0.6em 0; }
ul, ol { padding-left: 1.3em; margin: 0.4em 0; }
li { margin: 0.25em 0; }
.lede { font-size: 1.15rem; max-width: 40em; }
.muted { color: var(--muted); }
.crumb { margin: 0 0 14px; font-size: 0.9rem; color: var(--muted); }
.crumb a { color: var(--muted); }
.meta { font-family: var(--mono); font-size: 0.85em; color: var(--muted); white-space: nowrap; }

/* the one download link per page */
.actions { margin: 18px 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
a.dl {
  background: var(--dl); color: var(--dl-text); text-decoration: none; font-weight: 600;
  padding: 9px 16px; border-radius: 4px;
}
a.dl:hover { opacity: 0.85; }

/* facts list on app pages */
.facts {
  display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px;
  margin: 20px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }

/* screenshots */
figure.shot { margin: 18px 0; }
figure.shot img { width: 100%; height: auto; display: block; border: 1px solid var(--line); border-radius: 4px; background: #000; }
figure.shot.tall img { max-width: 560px; }
figure.shot figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 6px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.gallery figure.shot { margin: 8px 0 14px; }
.gallery figure.shot.tall img { aspect-ratio: 16 / 11; object-fit: cover; object-position: top; max-width: none; }

/* apps table on the home page */
table.apps { width: 100%; border-collapse: collapse; margin: 26px 0 8px; font-size: 0.96rem; }
table.apps th { text-align: left; font-weight: 600; font-size: 0.85rem; color: var(--muted); padding: 6px 10px 6px 0; border-bottom: 1px solid var(--line); }
table.apps td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.apps td.name { white-space: nowrap; font-weight: 600; }
table.apps td.name img { vertical-align: -6px; margin-right: 8px; border-radius: 5px; }
table.apps td.name a { color: var(--text); }

section.app { margin-top: 8px; }
.latest { font-size: 0.95rem; }
.note { border-left: 3px solid var(--line); padding: 2px 0 2px 14px; margin: 1.2em 0; }
ul.rel { list-style: none; padding: 0; }
ul.rel li { padding: 6px 0; border-bottom: 1px solid var(--soft); }

footer { margin-top: 64px; padding-top: 16px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
footer a { color: var(--muted); }

@media (max-width: 620px) {
  body { font-size: 16px; }
  h1 { font-size: 1.7rem; }
  .gallery { grid-template-columns: 1fr; }
  table.apps th:nth-child(3), table.apps td:nth-child(3) { display: none; }
  table.apps td.name { white-space: normal; }
}
