/* Workroom theme: the landing page's type and chrome on the generated markup.
   Loaded after site.css; tokens only. Fonts are bundled with the kit and copied into assets/fonts/. */
body { font-feature-settings: 'kern'; }
::selection { background: var(--accent); color: var(--surface); }

/* links: ink text with a quiet underline, red on hover, as on the landing */
a { color: var(--text); text-decoration-color: var(--border); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--accent); text-decoration-color: currentColor; text-decoration-thickness: 1px; }
:focus-visible { outline-color: var(--accent); outline-offset: 3px; border-radius: 0; }

/* header: translucent paper, mono wordmark with the red dot, muted sans nav */
.site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--font-mono); font-weight: 400; font-size: 0.9rem; letter-spacing: 0;
}
.brand::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.top-nav a { color: var(--muted); font-weight: 600; }
.top-nav a:hover, .top-nav a[aria-current="page"] { background: transparent; color: var(--text); }
.top-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.5em; }
.theme-toggle { border-color: var(--border); border-radius: 50%; }
/* a long wordmark wraps inside its row instead of pushing the theme symbol onto its own line */
.brand { flex: 1 1 0; min-width: 0; line-height: 1.35; }

/* headings: tight, heavy sans; emphasis inside a heading turns Garamond italic */
h1, h2, h3, h4 { letter-spacing: -0.03em; line-height: 1.1; }
.note-head h1 { letter-spacing: -0.04em; line-height: 1.02; }
h1 em, h2 em, h3 em { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.side-title, th { font-family: var(--font-mono); font-weight: 400; font-size: 0.8rem; letter-spacing: 0; }

/* properties strip and small meta in mono, like the landing's captions */
.props, .where, .dv-source, .table-tools { font-family: var(--font-mono); font-size: 0.78rem; }
.sidebar a[aria-current="page"] { background: var(--surface-2); color: var(--text); }

/* quotes: Garamond italic behind a hanging red quote mark */
blockquote { background: transparent; padding: var(--space-1) 0 var(--space-1) var(--space-4); font-family: var(--font-serif); font-style: italic; font-size: 1.18em; line-height: 1.4; }
blockquote::before { left: 0; top: 0; font-family: var(--font-serif); color: var(--accent); }
blockquote code, blockquote .tag { font-style: normal; font-size: 0.75em; }

/* code and tags: square, paper-toned */
code, pre, .math { border-radius: 0; }
.tag { border-radius: 0; font-family: var(--font-mono); font-size: 0.78em; }

/* the header stays in view here, so whatever sticks or scrolls to an anchor has to clear it */
