/*
  DokuJoy website styles.

  Self-contained on purpose: no web fonts, no CDN, no JavaScript, no analytics and no cookies.
  Everything a browser needs is in this file and the HTML next to it, so the site can be served
  from any static host and makes no third-party requests at all.

  Colours mirror the app so the site and the product look like the same thing.
*/

:root {
  --accent: #1273c7;
  --text: #1c1c20;
  --text-muted: #55555f;
  --background: #f7fbff;
  --surface: #ffffff;
  --border: #dfe8f2;
  --focus: #0a58a8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #56a8ff;
    --text: #f2f4f8;
    --text-muted: #a8b0bd;
    --background: #0d1420;
    --surface: #16202f;
    --border: #27344a;
    --focus: #8cc4ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1rem 4rem;
  background: var(--background);
  color: var(--text);
  /* System stack only — no font is downloaded. */
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap { max-width: 44rem; margin: 0 auto; }

header.site {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
}

header.site .name { font-size: 1.15rem; font-weight: 700; }
header.site .name a { color: inherit; text-decoration: none; }

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 2rem 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 2rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }

.lead { font-size: 1.1rem; color: var(--text-muted); }
.meta { color: var(--text-muted); font-size: 0.92rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.notice {
  border-left: 4px solid var(--accent);
  background: var(--surface);
  padding: 0.75rem 1rem;
  border-radius: 0 10px 10px 0;
  margin: 1.25rem 0;
}

footer.site {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.92rem;
}

dl dt { font-weight: 600; margin-top: 1rem; }
dl dd { margin: 0.15rem 0 0; }

/* Respect a reader who asked for less motion; there is none, but be explicit. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
