/* Reboot Theory blog: shares the main site's tokens and type */
:root {
  --bg: #f5f7fa; --surface: #e8eef7; --ink: #0f1a2c; --muted: #536079; --line: #d0d9e6;
  --accent: #004aad; --accent-ink: #f7f9fc; --signal: #b8742a;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 72rem; --read: 42rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1320; --surface: #131e31; --ink: #e6ecf5; --muted: #9aa8bf; --line: #253550;
    --accent: #7aa9ff; --accent-ink: #0a1120; --signal: #e0a45c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1320; --surface: #131e31; --ink: #e6ecf5; --muted: #9aa8bf; --line: #253550;
  --accent: #7aa9ff; --accent-ink: #0a1120; --signal: #e0a45c; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.125rem; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); padding-inline: 16px; }
.top .wrap { max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.brand { font-family: var(--display); font-weight: 700; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.brand-mark { width: 2rem; height: 2rem; background: var(--accent); -webkit-mask: url("/reboot-theory-mark.png") center / contain no-repeat; mask: url("/reboot-theory-mark.png") center / contain no-repeat; }
.brand-name { letter-spacing: 0.04em; text-transform: uppercase; font-size: 1rem; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; font-family: var(--display); font-size: 0.95rem; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--accent); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }
.btn { display: inline-flex; align-items: center; font-family: var(--display); font-weight: 600; padding: 0.75rem 1.3rem; border-radius: 999px; text-decoration: none; border: 1.5px solid var(--accent); background: var(--accent); color: var(--accent-ink); }
.nav-links .btn { padding: 0.5rem 1rem; font-size: 0.9rem; color: var(--accent-ink); }
.nav-links .btn:hover { color: var(--accent-ink); }

main { padding: clamp(2.5rem, 6vw, 4.5rem) 16px; }
.read { max-width: var(--read); margin-inline: auto; }
.wide { max-width: var(--wrap); margin-inline: auto; }

/* article */
.post-head { display: grid; gap: 1rem; margin-bottom: 2rem; }
.post-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); font-weight: 700; }
.meta { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.cover { border-radius: 12px; margin: 0 0 2.5rem; border: 1px solid var(--line); }
.post p, .post ul, .post ol { margin: 0 0 1.2rem; }
.post h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 2.6rem 0 1rem; }
.post h3 { font-size: 1.3rem; margin: 2.2rem 0 0.7rem; display: flex; gap: 0.7rem; align-items: baseline; }
.post h3 .n { font-family: var(--mono); font-size: 0.85rem; color: var(--accent-ink); background: var(--accent); border-radius: 50%; width: 1.8rem; height: 1.8rem; display: inline-grid; place-items: center; flex: none; transform: translateY(-0.15rem); }
.keep { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1rem; color: var(--ink); }
.keep strong { font-family: var(--display); }
.promote { color: var(--muted); font-style: italic; }
.post ol.start { padding-left: 1.4rem; }
.post ol.start li { margin-bottom: 0.4rem; }
.cta { background: var(--accent); color: var(--accent-ink); border-radius: 14px; padding: 1.8rem; margin: 2.8rem 0 2rem; display: grid; gap: 0.9rem; }
.cta h2 { margin: 0; color: var(--accent-ink); }
.cta p { margin: 0; opacity: 0.92; }
.cta .btn { background: var(--bg); color: var(--accent); border-color: var(--bg); justify-self: start; }
.bio { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; align-items: center; border-top: 1px solid var(--line); padding-top: 1.5rem; font-size: 0.98rem; color: var(--muted); }
.bio img { width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; object-position: center 20%; }
.back { font-family: var(--display); font-size: 0.95rem; text-decoration: none; display: inline-block; margin-bottom: 1.5rem; }

/* blog index */
.list-head { display: grid; gap: 0.9rem; margin-bottom: 2.5rem; }
.list-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.list-head p { color: var(--muted); max-width: 60ch; margin: 0; font-size: 1.2rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); gap: 1.5rem; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); display: grid; transition: transform .15s ease, border-color .15s ease; }
.card:hover { transform: translateY(-2px); border-color: var(--accent); }
.card img { aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; }
.card .c { padding: 1.2rem 1.3rem 1.4rem; display: grid; gap: 0.5rem; }
.card h2 { font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.55; }

footer { padding: 2rem 16px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); border-top: 1px solid var(--line); }
footer .wrap { max-width: var(--wrap); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
