:root {
  --bg: #fbfaf8;
  --ink: #4b4845;
  --ink-strong: #1f1d1c;
  --muted: #6f6a64;
  --rule: #ebe7e0;
  --accent: #c4344c;
  --card: #f3f0eb;
  --panel-lo: #ffffff;
  --panel-hi: #ffffff;
  --border: #e7e2da;
  --footer-ink: #6f6a64;
  --shadow: 0 1px 2px rgba(30,25,20,.06), 0 10px 26px -16px rgba(30,25,20,.22);
  --label: color-mix(in srgb, var(--accent) 62%, var(--muted));
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  font: 16px/1.7 var(--mono);
  background: var(--bg); color: var(--ink);
  max-width: 980px; margin: 0 auto; padding: 1.4rem 2rem 3rem;
}
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

/* two-column shell: standing pages in a left rail, logo and content to its right */
.layout {
  min-height: calc(100vh - 4rem);
  display: grid; grid-template-columns: 218px minmax(0, 1fr);
  gap: 6.5rem; align-items: start;
}
.main { min-width: 0; max-width: 660px; }
/* pages with no left rail: one centred column */
.layout.solo { grid-template-columns: minmax(0, 680px); justify-content: center; }
.sidebar {
  position: sticky; top: 3rem;
  border: 1px solid var(--rule); border-radius: 10px;
  padding: 1rem 0.95rem 1.1rem;
  background: color-mix(in srgb, var(--card) 70%, transparent);
}
.rail-group {
  display: inline-flex; align-items: center; gap: 0.38rem;
  font-size: 0.67rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent); margin: 2.6rem 0 0.7rem;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  border-radius: 999px; padding: 0.3rem 0.65rem;
}
.rail-group:first-child { margin-top: 0; }
.rail-group svg { width: 0.85rem; height: 0.85rem; flex-shrink: 0; }

ul.pages { list-style: none; padding: 0; margin: 0; font-size: 0.84rem; line-height: 1.5; }
ul.pages li { padding: 0.3rem 0 0.3rem 0.6rem; border-left: 2px solid var(--rule); }
ul.pages li:hover { border-left-color: var(--muted); }
ul.pages li:has(a.current) { border-left-color: var(--accent); }
ul.pages a { color: var(--ink); text-decoration: none; display: block; }
ul.pages a:hover { color: var(--accent); }
ul.pages a.current { color: var(--accent); font-weight: 600; }
ul.pages li.pending { color: var(--muted); opacity: 0.5; }

@media (max-width: 780px) {
  .layout { grid-template-columns: 1fr; gap: 1.8rem; }
  .sidebar { position: static; order: 2; }
  .main { order: 1; }
  ul.pages { padding-top: 0.6rem; }
}

.title-row { display: flex; align-items: center; gap: 0.65rem; margin: 0 0 0.9rem; }
.logo-mark {
  width: 2.1rem; height: 2.1rem; flex-shrink: 0; border: 1.5px solid var(--accent); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.logo-mark .logo-i { font-size: 0.6em; vertical-align: 0.35em; }
.site-name a { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-strong); text-decoration: none; }
.site-name a:hover { color: var(--accent); }

nav.tabs {
  font-size: 0.86rem; font-weight: 600; display: flex; flex-wrap: wrap; gap: 1.4rem;
  padding: 0.9rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  margin: 0 0 3.6rem;
}
nav.tabs > a { color: var(--ink); text-decoration: none; }
nav.tabs > a:hover { color: var(--accent); }
nav.tabs > a.current { color: var(--accent); }

.bio { font-size: 0.98rem; margin: 0 0 2.2rem; color: var(--ink); }

h2.mycontent {
  font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
  margin: 0 0 1rem;
}
ul.entries { list-style: none; padding: 0; margin: 0; }
ul.entries li { padding: 1.05rem 0; border-bottom: 1px solid var(--rule); }
ul.entries li:first-child { padding-top: 0; }
ul.entries li.pending { opacity: 0.55; }
.entry-meta { font-size: 0.78rem; font-weight: 500; display: flex; gap: 0.6rem; align-items: baseline; margin-bottom: 0.25rem; letter-spacing: 0.02em; }
.entry-date { color: var(--accent); }
.entry-format { color: var(--muted); }
.entry-title { font-size: 1rem; font-weight: 600; }
.entry-title a { color: var(--ink-strong); text-decoration: none; }
.entry-title a:hover { color: var(--accent); }
.entry-title span.pending-label { color: var(--muted); font-weight: 400; }
.entry-sub { font-size: 0.88rem; font-weight: 400; color: var(--muted); margin: 0.25rem 0 0; }

ul.people { list-style: none; padding: 0; margin: 0 0 1.5rem; }
ul.people li { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); font-size: 0.96rem; }
ul.people li:first-child { padding-top: 0; }
ul.people .role { color: var(--muted); font-size: 0.86rem; display: block; margin-top: 0.15rem; }

h1 { font-size: 1.25rem; margin: 2rem 0 0.8rem; color: var(--ink-strong); }
h1:first-of-type { margin-top: 0; }
p { font-size: 0.98rem; margin: 0 0 1.2rem; }
.muted { color: var(--muted); }

footer {
  margin-top: 3.2rem; padding-top: 1.3rem; border-top: 1px solid var(--rule);
  font-size: 0.8rem; color: var(--muted);
}
footer nav { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-bottom: 1rem; }
footer nav a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
footer nav a:hover { color: var(--accent); }
footer p { margin: 0; }


/* shared site chrome: menu button, title lockup, slide-out drawer, footer (all pages) */
html { scroll-behavior: smooth; }
.topbar { display: flex; align-items: center; gap: 1.5rem; margin: 0 0 1.5rem; }
.brand { display: flex; align-items: baseline; gap: 1.1rem; flex-wrap: wrap; }
.brand .title-row { margin: 0; gap: 0.75rem; }
.brand .site-name { margin: 0; line-height: 1.1; }
.brand .logo-mark { width: 1.9rem; height: 1.9rem; font-size: 0.85rem; border-radius: 4px; }
.brand .tagline { font-size: 0.82rem; color: var(--muted); }
.menu-btn { font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--ink); cursor: pointer; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 0.5rem 0.95rem; }
.menu-btn:hover { border-color: var(--accent); color: var(--accent); }

.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 10; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 290px; z-index: 11; padding: 1.6rem 1.4rem; overflow-y: auto; background: var(--panel-lo); border-right: 1px solid var(--rule); transform: translateX(-100%); transition: transform .22s ease; }
body.open .scrim { opacity: 1; pointer-events: auto; }
body.open .drawer { transform: none; }
.drawer .close { font: inherit; font-size: 0.8rem; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 0; margin: 0 0 1.4rem; }
.drawer .close:hover { color: var(--accent); }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: block; padding: 0.65rem 0; font-size: 1rem; font-weight: 600; color: var(--ink-strong); text-decoration: none; border-bottom: 1px solid var(--rule); }
.drawer li a:hover, .drawer li a.cur { color: var(--accent); }
.drawer ul.sub { margin: 0 0 0.3rem; }
.drawer ul.sub li a { font-size: 0.88rem; font-weight: 500; padding: 0.4rem 0 0.4rem 0.9rem; border-bottom: 0; color: var(--ink); }
.drawer ul.sub li a:hover, .drawer ul.sub li a.cur { color: var(--accent); }

/* pages without a rail: one left-aligned column under the title */
.layout.solo { grid-template-columns: minmax(0, 720px); justify-content: start; min-height: 0; }
.layout.solo .main { max-width: 720px; }

footer { margin-top: 2.2rem; padding-top: 1.2rem; }
footer p { font-size: 0.82rem; line-height: 1.6; max-width: 640px; color: var(--footer-ink); margin: 0; }

/* toolbar: stays at the top while scrolling; page links on wide screens, three-bar button on narrow ones */
.topbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 0.8rem 0; margin: 0 0 1.2rem; border-bottom: 1px solid var(--rule); }
.topnav { margin-left: auto; display: flex; gap: 1.3rem; font-size: 0.86rem; font-weight: 600; white-space: nowrap; }
.topnav a { color: var(--ink); text-decoration: none; }
.topnav a:hover, .topnav a.cur { color: var(--accent); }
.menu-btn { display: none; position: relative; width: 2.6rem; height: 2.4rem; padding: 0; font-size: 0; flex-shrink: 0; }
.menu-btn::before { content: ""; position: absolute; left: 50%; top: 50%; width: 1.15rem; height: 2px; background: currentColor; transform: translate(-50%, -50%); box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
@media (max-width: 900px) {
  .topnav { display: none; }
  .menu-btn { display: block; }
}
@media (max-width: 600px) {
  .brand .site-name a { font-size: 1.45rem; }
  .topbar { gap: 0.9rem; }
}
@media (max-width: 600px) { .brand .tagline { display: none; } }

/* council fixes, Dec 2026 */
html { scroll-padding-top: 6.5rem; }                 /* anchor jumps clear the sticky toolbar */
.drawer { visibility: hidden; transition: transform .22s ease, visibility 0s .22s; }
body.open .drawer { visibility: visible; transition: transform .22s ease; }
@media (max-width: 600px) {
  body { padding: 1rem 1.1rem 2.5rem; }
  .brand .site-name a { font-size: 1.3rem; }
  #top .panel, #top .duo .card { padding: 1.2rem 1.1rem; }
}
