:root {
  --bg: #f6f7f9;
  --fg: #111111;
  --muted: #5b6773;
  --link: #0b69d2;
  --maxw: 72ch;
}

/* Dark-mode override */

html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Header: lighter glass for light theme */
.reader__header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 16px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.04), transparent);
  backdrop-filter: saturate(120%) blur(6px);
}

.reader__crumbs { color: var(--muted); font-size: 14px; }
.reader__crumbs a { color: var(--link); text-decoration: none; }
.reader__crumbs .sep { margin: 0 6px; opacity: 0.6; }

.reader__controls button {
  appearance: none;
  border: 1px solid rgba(0,0,0,0.15);
  background: transparent;
  color: var(--fg);
  padding: 6px 10px; border-radius: 8px; cursor: pointer; font-weight: 600;
}
.reader__controls button:hover { border-color: rgba(0,0,0,0.35); }

.reader__main { max-width: var(--maxw); padding: 24px 18px 64px; margin: 0 auto; }
#reader-title { line-height: 1.2; margin: 6px 0 10px; font-size: clamp(28px, 3.5vw, 42px); }
.byline { color: var(--muted); margin-bottom: 18px; }

#reader-content img, #reader-content video, #reader-content iframe { max-width: 100%; height: auto; }
#reader-content a { color: var(--link); }
#reader-content h2, #reader-content h3, #reader-content h4 { line-height: 1.25; margin-top: 2.2em; }
#reader-content p { margin: 1em 0; }
#reader-content blockquote { margin: 1.2em 0; padding: 0 1em; opacity: 0.9; border-left: 3px solid rgba(127,127,127,0.35); }

/* Brand */
.reader__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.brand__word {
  font-family: "Figtree", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 15px;
  line-height: 1;
}

/* Circular “F” badge */
.brand__mark {
  width: 18px; height: 18px; display: inline-block;
  color: #fff; /* the “F” stays white */
}
.brand__mark circle { fill: #111; } /* black badge works on white bg */

/* Crumbs */
.reader__crumbs {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px;
}
.reader__crumbs .sep { opacity: 0.5; }

/* Small screens */
@media (max-width: 480px) {
  .brand__word { font-size: 14px; }
  .brand__mark { width: 16px; height: 16px; }
  .reader__crumbs { font-size: 12px; gap: 4px; }
}

