/* Ajar's public pages: night-first, like the app. System fonts only; no scripts, no web fonts,
   nothing loaded from anywhere else. */

:root {
  color-scheme: dark light;
  --canvas: #0B0B0D;
  --surface: #16161A;
  --ink: #ECEAE6;
  --secondary: #9A978F;
  --hairline: rgba(236, 234, 230, 0.12);
  --ember: #FF9E4D;
}

@media (prefers-color-scheme: light) {
  :root {
    --canvas: #F6F4F0;
    --surface: #FFFFFF;
    --ink: #1C1B19;
    --secondary: #5F5B54;
    --hairline: rgba(28, 27, 25, 0.12);
    --ember: #B8590F;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: ui-rounded, -apple-system, BlinkMacSystemFont, "SF Pro Rounded", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.page { max-width: 40rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }

.masthead {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 2.25rem; color: inherit; text-decoration: none;
}
.masthead img { width: 2.5rem; height: 2.5rem; border-radius: 0.6rem; }
.masthead span { font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em; }

h1 { font-size: 2.25rem; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.4rem; font-weight: 600; }
h2 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.01em; margin: 2.25rem 0 0.5rem; font-weight: 600; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; font-weight: 600; }
p, ul { margin: 0 0 1rem; }
ul { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
a { color: var(--ember); text-underline-offset: 0.18em; }
.meta { color: var(--secondary); margin-bottom: 1.75rem; }
.path { white-space: nowrap; font-weight: 600; }

.summary {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem 0.4rem;
  margin-bottom: 1.5rem;
}

.hero { border-radius: 1.25rem; width: 100%; height: auto; margin: 0.5rem 0 1.5rem; display: block; }

footer {
  margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline);
  display: flex; gap: 1.25rem; font-size: 0.95rem;
}
