/* about.kapitolworld.com - one style for every page (2 Dec 2026, World\design\9.23-about-site.md). Static: no framework, no
   web font (the system's own), light and dark from the visitor's setting, motion only when the visitor allows it. */
:root {
  --bg: #f6f4ef; --paper: #ffffff; --ink: #1f2328; --soft: #5b6470; --line: #e2ddd3; --accent: #8a5a12; --accent-ink: #ffffff;
  --code: #f0ece4; --shadow: 0 1px 2px rgba(31,35,40,.06), 0 8px 24px rgba(31,35,40,.06);
  --swnd: #6b3f1f; --libr: #1f4a3a; --epf: #2a3240; --dlvr: #1a3a9a; --rest: #8a3e28; --xtrm: #8c0f23; --ward: #24405c;
  --ok: #1a7f37; --warn: #9a6700; --crit: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14161a; --paper: #1d2025; --ink: #e8e6e1; --soft: #a3abb5; --line: #2f343b; --accent: #e0a64a; --accent-ink: #1d1503;
          --code: #23272e; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
          --swnd: #c08457; --libr: #5fb08f; --epf: #9aa7bb; --dlvr: #7b9bff; --rest: #e08a6a; --xtrm: #ff6b7f; --ward: #7fb0e0;
          --ok: #3fb950; --warn: #d29922; --crit: #f85149; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif; }
a { color: var(--accent); text-underline-offset: 3px; }
img, svg, video { max-width: 100%; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* header and menu */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px);
       border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; white-space: nowrap; }
.brand svg { width: 28px; height: 28px; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; color: var(--ink);
               font: inherit; font-size: 15px; padding: 6px 12px; cursor: pointer; }
nav.menu { margin-left: auto; display: flex; flex-wrap: wrap; gap: 2px 4px; justify-content: flex-end; }
nav.menu a { color: var(--soft); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
nav.menu a:hover, nav.menu a:focus-visible { color: var(--ink); background: var(--paper); outline: none; }
nav.menu a[aria-current="page"] { color: var(--ink); background: var(--paper); box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  nav.menu { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line);
             flex-direction: column; padding: 8px 16px 16px; }
  nav.menu.open { display: flex; }
  nav.menu a { font-size: 17px; padding: 10px 12px; }
}

/* page head */
main { padding: 48px 0 24px; }
.kicker { color: var(--accent); font-weight: 650; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 18px; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -0.01em; margin: 56px 0 14px; }
h3 { font-size: 20px; margin: 28px 0 8px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--soft); max-width: 760px; margin: 0 0 24px; }
p, ul, ol { max-width: 760px; }
li { margin: 4px 0; }
.dated { color: var(--soft); font-size: 14px; }
code, .mono { font-family: Consolas, "Cascadia Mono", monospace; font-size: .92em; background: var(--code); padding: 1px 5px; border-radius: 5px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.ghost { color: var(--accent); background: transparent; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line);
         border-radius: 14px; overflow: hidden; margin: 44px 0 0; }
.facts div { background: var(--paper); padding: 18px 20px; }
.facts b { display: block; font-size: 30px; line-height: 1.1; letter-spacing: -0.01em; }
.facts span { color: var(--soft); font-size: 14px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* the worlds */
.worlds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
a.world { position: relative; display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 18px 26px;
          color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; overflow: hidden; }
a.world::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--hue); }
a.world:hover, a.world:focus-visible { transform: translateY(-2px); border-color: var(--hue); outline: none; }
.world .name { font-weight: 650; font-size: 19px; padding-right: 58px; }
.world .tag { color: var(--soft); font-size: 15px; margin-top: 4px; }
.world .host { color: var(--hue); font-size: 13px; margin-top: 12px; font-family: Consolas, monospace; }
.world .code { position: absolute; right: 16px; top: 16px; font: 600 12px Consolas, monospace; color: var(--hue); border: 1px solid var(--hue);
               border-radius: 6px; padding: 1px 6px; opacity: .85; }

/* tiles to the other pages */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
a.tile { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: inherit; text-decoration: none; }
a.tile:hover, a.tile:focus-visible { border-color: var(--accent); outline: none; }
.tile b { display: block; margin-bottom: 4px; }
.tile span { color: var(--soft); font-size: 15px; }

/* figures, panels, tables */
figure { margin: 28px 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
figure.bare { background: none; border: 0; box-shadow: none; padding: 0; }
figcaption { color: var(--soft); font-size: 14px; margin-top: 10px; }
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.panel h3 { margin-top: 0; }
.panel.chosen { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
table { border-collapse: collapse; width: 100%; max-width: 900px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 14px; color: var(--soft); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.words td:first-child { width: 220px; }
table.dated td:first-child { white-space: nowrap; }   /* a date never breaks between day and month (WebKit narrowed it, 3 Dec) */
table.words tr:target td { background: color-mix(in srgb, var(--accent) 14%, var(--paper)); }
@media (max-width: 600px) { table.words td:first-child { width: auto; } }
/* phones: a wide table or diagram scrolls sideways at a readable size instead of shrinking (2 Dec 2026, its phone picture) */
@media (max-width: 700px) {
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  th, td { padding: 8px 10px; font-size: 15px; }
  td { min-width: 110px; }
  table.words td { min-width: 0; }
  figure:not(.bare) { overflow-x: auto; padding: 14px; }
  figure:not(.bare) svg.dg { min-width: 720px; }
  figure:not(.bare) figcaption { position: sticky; left: 0; max-width: calc(100vw - 80px); }
}
.quote { border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; margin: 24px 0; font-size: 19px; max-width: 760px; }
.quote cite { display: block; color: var(--soft); font-size: 14px; font-style: normal; margin-top: 6px; }

/* footer */
footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 24px 0 40px; color: var(--soft); font-size: 14px; }
footer p { max-width: none; margin: 4px 0; }

/* the SVG diagrams' shared marks */
.dg text { font-family: "Segoe UI", system-ui, sans-serif; fill: var(--ink); }
.dg .soft { fill: var(--soft); }
.dg .stroke { stroke: var(--line); }
.dg .ink-stroke { stroke: var(--ink); }
.dg .paper { fill: var(--paper); }
.dg .bg { fill: var(--bg); }
.dg .accent { fill: var(--accent); }
.dg .flow { stroke-dasharray: 4 10; animation: flow 2.4s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.dg .pulse { animation: pulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
.dg .orbit { animation: spin 90s linear infinite; transform-origin: 300px 300px; }
.dg .counter { animation: spin 90s linear infinite reverse; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.dg .patrol { animation: patrol 22s ease-in-out infinite alternate; }
.dg .patrol.late { animation-duration: 29s; animation-delay: -9s; }
@keyframes patrol { from { transform: translateX(0); } to { transform: translateX(640px); } }
.dg .blink { animation: blink 1.6s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: .25; } }
