@font-face {
  font-family: 'Sofia Sans';
  src: url('https://images.zohner.com/fonts/SofiaSans-Regular.woff2') format('woff2');
  font-weight: 1 1000; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sofia Sans';
  src: url('https://images.zohner.com/fonts/SofiaSans-Italic.woff2') format('woff2');
  font-weight: 1 1000; font-style: italic; font-display: swap;
}
:root {
  --paper: #f7f7f5; --ink: #1a1a1a; --muted: #888; --light-muted: #999;
  --ghost-line: rgba(26,26,26,0.06);
  --burgundy: #8b1a2b; --amber: #c67a1a; --emerald: #1a6b42;
  --sapphire: #1a3d6e; --plum: #4a2066;
  --dark-bg: #111; --dark-text: #f7f7f5;
  --burgundy-light: #d4566a; --sapphire-light: #5a8ec4;
  --font: 'Sofia Sans', sans-serif;
  --content-width: 720px; --prose-width: 620px; --rail-width: 52px;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 17px; -webkit-font-smoothing: antialiased; }
body { background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.6; padding-left: var(--rail-width); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
::selection { background: var(--sapphire); color: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
.nav-rail { position: fixed; left: 0; top: 0; width: var(--rail-width); height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 1.2rem 0; border-right: 1px solid var(--ghost-line); z-index: 100; background: var(--paper); }
.nav-monogram { font-size: 14px; font-weight: 700; text-decoration: none; margin-bottom: 1.8rem; }
.nav-monogram:hover { opacity: 0.6; }
.nav-rect { width: 22px; height: 14px; border-radius: 2px; margin-bottom: 1.1rem; cursor: pointer; opacity: 0.85; transition: opacity 0.12s ease, transform 0.12s ease; position: relative; display: block; text-decoration: none; }
.nav-rect:hover { opacity: 1; transform: scale(1.12); }
.nav-rect::after { content: attr(data-tooltip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%); font-size: 0.72rem; color: var(--ink); background: var(--paper); border: 1px solid var(--ghost-line); padding: 4px 10px; border-radius: 3px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.12s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.nav-rect:hover::after { opacity: 1; }
.nav-rect--burgundy { background: var(--burgundy); }
.nav-rect--amber { background: var(--amber); }
.nav-rect--emerald { background: var(--emerald); }
.nav-rect--sapphire { background: var(--sapphire); }
.nav-rect--plum { background: var(--plum); }
.nav-divider { width: 16px; height: 1px; background: rgba(26,26,26,0.1); margin: 0.5rem 0 0.9rem; }
.nav-lang { font-size: 0.6rem; font-weight: 600; margin-bottom: 0.3rem; cursor: pointer; text-decoration: none; display: block; text-align: center; line-height: 1; padding: 2px 0; }
.nav-lang--active { background: #777; color: var(--paper); padding: 2px 7px; border-radius: 2px; }
.nav-lang--inactive { color: var(--light-muted); }
.nav-lang--inactive:hover { color: var(--ink); }
.mobile-pill { display: none; position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%); font-size: 0.72rem; font-weight: 500; color: var(--dark-text); background: var(--dark-bg); padding: 0.6rem 1.5rem; border-radius: 100px; border: none; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.18); z-index: 200; }
.mobile-sheet-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 300; }
.mobile-sheet { position: fixed; bottom: 0; left: 0; right: 0; background: var(--paper); border-radius: 16px 16px 0 0; padding: 1.5rem 1.5rem 2.5rem; box-shadow: 0 -8px 32px rgba(0,0,0,0.12); max-height: 75vh; overflow-y: auto; z-index: 301; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1); }
.mobile-sheet.is-open { transform: translateY(0); }
.mobile-sheet-handle { width: 36px; height: 4px; background: rgba(26,26,26,0.15); border-radius: 2px; margin: 0 auto 1.2rem; }
.mobile-sheet-group-label { font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--light-muted); margin-bottom: 0.6rem; margin-top: 1.2rem; }
.mobile-sheet-group-label:first-child { margin-top: 0; }
.mobile-sheet-link { display: block; font-size: 0.9rem; padding: 0.7rem 0; border-bottom: 1px solid var(--ghost-line); text-decoration: none; color: var(--ink); }
.page { max-width: calc(var(--content-width) + 5rem); padding: 2rem 2.5rem 4rem; margin-left: auto; margin-right: auto; }
.back-link { font-size: 0.82rem; color: var(--muted); text-decoration: none; display: inline-block; margin-bottom: 1.5rem; }
.back-link:hover { color: var(--ink); }
.title-0 { font-size: 2.2rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 0.3rem; }
.article-lead { font-size: 1.05rem; font-style: italic; color: #444; line-height: 1.6; margin-bottom: 1.5rem; max-width: var(--prose-width); }
.toc { max-width: var(--prose-width); margin: 1.5rem 0 2rem; padding: 0.9rem 1.1rem; border-left: 2px solid var(--sapphire); background: rgba(26,26,26,0.015); }
.toc-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.4rem; }
.toc-list { list-style: decimal; padding-left: 1.3rem; margin: 0; font-size: 0.88rem; line-height: 1.55; }
.toc-list li { margin-bottom: 0.15rem; }
.toc-list a { color: var(--ink); text-decoration: none; }
.toc-list a:hover { color: var(--sapphire); text-decoration: underline; }
.meta-line { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; }
.lang-tag { font-size: 0.62rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 1px 5px; border-radius: 2px; background: rgba(26,61,110,0.08); color: var(--sapphire); }
.feature-image { margin: 1.5rem 0 2rem; border-radius: 4px; overflow: hidden; }
.feature-image img { width: 100%; display: block; }
.feature-caption { font-size: 0.78rem; color: var(--muted); margin-top: 0.4rem; line-height: 1.4; }
.prose { max-width: var(--prose-width); font-size: 0.95rem; line-height: 1.7; color: var(--ink); }
.prose p { margin-bottom: 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 0.8rem; }
.prose h3 { font-size: 1.1rem; font-weight: 600; margin: 1.5rem 0 0.6rem; }
.prose h4 { font-size: 0.95rem; font-weight: 600; margin: 1.2rem 0 0.5rem; }
.prose blockquote { border-left: 3px solid var(--sapphire); padding: 0.4rem 0 0.4rem 1.2rem; margin: 1rem 0; font-style: italic; color: #444; }
.prose img { margin: 1.5rem 0; border-radius: 3px; }
.prose figure { margin: 1.5rem 0; }
.prose figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 0.4rem; }
.prose hr { border: none; border-top: 1px solid var(--ghost-line); margin: 2rem 0; }
.prose a { color: var(--sapphire); }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { margin: 1rem 0; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.4rem; }
.faq-toggle { border: 1px solid var(--ghost-line); border-radius: 5px; margin-bottom: 0.5rem; }
.faq-toggle-heading { padding: 0.8rem 1rem; cursor: pointer; font-size: 0.92rem; display: flex; justify-content: space-between; align-items: center; }
.faq-toggle-heading:hover { background: rgba(26,61,110,0.03); }
.faq-chevron { transition: transform 0.2s ease; flex-shrink: 0; color: var(--muted); }
.faq-toggle[data-state="open"] .faq-chevron { transform: rotate(180deg); }
.faq-toggle-content { padding: 0 1rem 0.8rem; font-size: 0.88rem; line-height: 1.6; color: #444; display: none; }
.faq-toggle[data-state="open"] .faq-toggle-content { display: block; }
.prose .kg-bookmark-card { margin: 1.5rem 0; }
.prose .kg-bookmark-card.kg-card-hascaption { margin-bottom: 0.4rem; }
.prose .kg-bookmark-card + figcaption { font-size: 0.78rem; color: var(--muted); margin: 0 0 1.5rem; line-height: 1.45; }
.prose .kg-bookmark-container { display: flex; border: 1px solid var(--ghost-line); border-radius: 5px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.12s ease; }
.prose .kg-bookmark-container:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); text-decoration: none; }
.prose .kg-bookmark-content { flex: 1; padding: 1rem; min-width: 0; }
.prose .kg-bookmark-title { font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; color: var(--ink); }
.prose .kg-bookmark-description { font-size: 0.8rem; color: #666; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prose .kg-bookmark-metadata { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; font-size: 0.72rem; color: var(--muted); }
.prose .kg-bookmark-icon { width: 16px; height: 16px; border-radius: 2px; }
.prose .kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; background: rgba(26,26,26,0.04); }
.prose .kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 600px) {
  .prose .kg-bookmark-container { flex-direction: column; }
  .prose .kg-bookmark-thumbnail { width: 100%; height: 140px; }
}
.tags-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--ghost-line); }
.tag-pill { font-size: 0.72rem; font-weight: 500; padding: 3px 10px; border-radius: 100px; background: rgba(26,61,110,0.06); color: var(--sapphire); text-decoration: none; }
.dark-block { padding: 1.75rem; border-radius: 5px; margin: 1.5rem 0; }
.dark-block--sapphire { background: #1a2a3a; color: var(--dark-text); }
.dark-block--burgundy { background: #2a1a1e; color: var(--dark-text); }
.dark-block a { color: var(--dark-text); text-decoration-color: rgba(247,247,245,0.4); }
.dark-block a:hover { text-decoration-color: var(--dark-text); }
.dark-block-heading { font-size: 1.05rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.6rem; }
.subscribe-row { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
.subscribe-input { flex: 1; padding: 0.5rem 0.7rem; font-size: 0.88rem; background: rgba(247,247,245,0.08); border: 1px solid rgba(247,247,245,0.15); border-radius: 3px; color: var(--dark-text); outline: none; }
.subscribe-input::placeholder { color: rgba(247,247,245,0.35); }
.subscribe-btn { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.5rem 1rem; background: var(--dark-text); color: var(--dark-bg); border: none; border-radius: 3px; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; }
.action-link { font-size: 1rem; font-weight: 600; color: var(--sapphire); text-decoration: none; }
.action-link:hover { text-decoration: underline; }
.detail { font-size: 0.88rem; color: #555; line-height: 1.5; }
.footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--ghost-line); font-size: 0.78rem; color: var(--muted); line-height: 1.8; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }
@media (max-width: 900px) {
  body { padding-left: 0; }
  .nav-rail { display: none; }
  .mobile-pill { display: block; }
  .page { margin-left: 0; padding: 1.5rem 1.2rem 5rem; }
  .title-0 { font-size: 1.8rem; }
}
