/* Daily Intention - static site. No build step, no dependencies.
   If you are reading this years from now: it is one stylesheet, hand-written,
   and every page links it directly. Nothing compiles it. */

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --fg: #3f4651;
  --heading: #111827;
  --muted: #6b7280;
  --link: #2563eb;
  --rule: #e5e7eb;
  --quote-bg: #f9fafb;
  --quote-bar: #d1d5db;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090e1a;
    --fg: #a7afbb;
    --heading: #ffffff;
    --muted: #7d8694;
    --link: #93c5fd;
    --rule: #1f2937;
    --quote-bg: #141b2b;
    --quote-bar: #4b5563;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  max-width: 38rem;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

h1, h2, h3 { color: var(--heading); line-height: 1.25; text-wrap: balance; }
h1 { font-size: 1.75rem; margin: 0 0 1.5rem; }
h2 { font-size: 1.25rem; margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.0625rem; margin: 2rem 0 0.5rem; }

p, ul, ol { margin: 0 0 1.1rem; }
ul, ol { padding-left: 1.4rem; }
li { margin-bottom: 0.4rem; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

blockquote {
  margin: 1.5rem 0;
  padding: 0.9rem 1.1rem;
  border-left: 4px solid var(--quote-bar);
  background: var(--quote-bg);
  font-size: 1rem;
}
blockquote p:last-child { margin-bottom: 0; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 3rem 0; }

.masthead {
  margin-bottom: 2.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.masthead a { color: inherit; text-decoration: none; }
.masthead a:hover { color: var(--heading); }

.lede { font-size: 1.1875rem; color: var(--heading); }

.onward { margin: 2rem 0; padding-left: 0; list-style: none; }
.onward li { margin-bottom: 0.6rem; }

.note {
  margin: 2rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-size: 1rem;
}
.note :last-child { margin-bottom: 0; }


footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}
footer ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
footer li { margin: 0; }
footer a { color: var(--muted); }

code {
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: var(--quote-bg);
  border: 1px solid var(--rule);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
}
