/* daniel.snor.cz – the look of the apps: system font, quiet greys, orange
   only for the mark and links. Light and dark follow the system. */

:root {
  color-scheme: light dark;
  --accent: #f76902;
  --link: #d4570a;
  --bg: #ffffff;
  --bg2: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --link: #ff9a4d;
    --bg: #1d1d1f;
    --bg2: #2a2a2d;
    --text: #f2f2f2;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.12);
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font: 0.9em ui-monospace, Menlo, monospace; background: var(--bg2); border-radius: 5px; padding: 1px 5px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 0.5px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; }
header.site .name { font-weight: 700; color: var(--text); }
header.site nav { margin-left: auto; display: flex; gap: 16px; font-size: 15px; }
header.site nav a { color: var(--muted); }
header.site nav a[aria-current] { color: var(--text); }

main.wrap { padding-top: 40px; padding-bottom: 56px; }
h1 { font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 10px; }
h3 { font-size: 17px; margin: 24px 0 4px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.lead { font-size: 20px; color: var(--muted); margin-bottom: 28px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* The wordmark: the orange square is the exclamation mark of the name. */
.wordmark { display: inline-flex; align-items: center; gap: 0.08em; font-weight: 700; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.wordmark .m { display: inline-flex; align-items: center; justify-content: center; width: 1.06em; height: 1.06em; border-radius: 0.26em; background: var(--accent); color: #fff; font-weight: 800; }
.wordmark .m::before { content: "!"; font-size: 0.78em; }

.app { display: flex; gap: 18px; align-items: flex-start; padding: 20px; border: 0.5px solid var(--line); border-radius: 14px; background: var(--bg2); margin-bottom: 14px; }
.app img { width: 64px; height: 64px; border-radius: 14px; flex: none; }
.app .mono { width: 64px; height: 64px; border-radius: 14px; flex: none; display: grid; place-items: center; background: var(--text); color: var(--bg); font: 700 15px ui-monospace, Menlo, monospace; }
.app h3 { margin: 0 0 4px; font-size: 19px; }
.app p { margin: 0 0 8px; }
.app .links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; }

.hero { display: flex; gap: 22px; align-items: center; margin-bottom: 8px; }
.hero img { width: 96px; height: 96px; border-radius: 22px; flex: none; }
.hero h1 { margin: 0 0 4px; }

.features { list-style: none; padding: 0; display: grid; gap: 14px; }
.features li { margin: 0; padding-left: 18px; position: relative; }
.features li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.features b { display: block; }

.qa h3 { margin-top: 26px; }
.note { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; color: var(--muted); }

footer.site { border-top: 0.5px solid var(--line); padding: 20px 0 40px; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Test boxes for the example styles (important/examples/). */
.demo { border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px 18px; margin: 0 0 12px; background: var(--bg2); }
.demo b { display: block; margin-bottom: 2px; }

@media (max-width: 560px) {
  h1 { font-size: 28px; }
  .lead { font-size: 18px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .app { flex-direction: column; }
}
