:root {
  color-scheme: dark;
  --bg: #000;
  --ink: #ddd;
  --muted: #aaa;
  --rule: #555;
  --red: #e22;
  --amber: #e5b95f;
  --sans: 'Trebuchet MS', Tahoma, Verdana, Arial, sans-serif;
  --mono: 'Lucida Console', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
  margin: 0;
  padding: 0 24px;
  color: var(--ink);
  background: var(--bg);
  font: 15px/1.65 var(--sans);
}
a { color: var(--red); font-weight: 700; text-decoration: none; }
a:visited { color: #f55; }
a:hover { color: #ff8888; text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--amber); outline-offset: 4px; }
.skip-link { position: absolute; left: 1rem; top: -5rem; padding: .5rem .8rem; background: var(--amber); color: #000; z-index: 2; }
.skip-link:focus { top: 1rem; }
.page { max-width: 1120px; margin: 0 auto; }
.masthead { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 10px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font: 700 .8rem/1.35 var(--sans); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand:hover .brand-name { color: #ff8888; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 2px; }
.brand:hover small { color: var(--muted); }
.brand-mark { display: inline-grid; width: 46px; height: 46px; place-items: center; border: 1px solid #a00; background: #080000 url("assets/pbk-bga.svg") center / 100% 100% no-repeat; color: transparent; font: 700 .65rem/1 var(--mono); letter-spacing: -.08em; }
.brand small { color: var(--muted); font-size: .72rem; font-weight: 400; }
nav { display: flex; gap: 16px; }
nav a { font-size: .8rem; }
.intro { padding: 42px 10px 34px; border-bottom: 1px dashed #555; }
.overline, .section-label, .noscript-mark span, footer { font-family: var(--mono); letter-spacing: .025em; }
.overline { margin: 0 0 10px; color: var(--muted); font-size: .75rem; }
.intro-headline { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: center; gap: 28px; }
.bga-art { display: block; width: 100%; height: auto; }
.intro-title-block { display: flex; min-height: 240px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 9px; }
.intro-title-block h1 { margin: 0; }
.intro-subtext { margin: 0; color: var(--amber); font: .76rem/1.4 var(--mono); letter-spacing: 0; }
h1, h2 { color: #c00; font-weight: 700; text-transform: lowercase; }
h1 { max-width: none; margin: 0 0 18px; padding: 0; text-align: left; font: 700 clamp(2.2rem, 5vw, 3.4rem)/1.08 var(--sans); letter-spacing: -.045em; }
h1 em { color: var(--red); font-style: normal; font-weight: 700; }
.intro-copy { max-width: 720px; margin: 0 0 14px; font-size: 1rem; }
.hand-note { margin: 12px 0 0; color: var(--muted); font-style: italic; }
.content-section { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 20px; padding: 24px 10px; }
.section-label { padding-top: 6px; color: var(--red); font-size: .7rem; }
.section-label span { display: block; }
.section-label span:first-child { margin-bottom: 4px; color: var(--muted); }
.section-body { max-width: 750px; }
h2 { margin: 0 0 10px; padding-bottom: 3px; border-bottom: 1px solid #c00; font-size: 1.45rem; line-height: 1.35; }
.section-body > p { max-width: 700px; margin: 8px 0 12px; text-align: left; }
.aside-note { color: var(--muted); }
.email-link { display: inline-block; font: 700 .9rem var(--mono); }
.plain-list { list-style-type: square; margin: 13px 0 0; padding-left: 26px; }
.plain-list li { padding: 3px 0; }
.plain-list strong { font-weight: 700; }
.plain-list li span { color: var(--muted); }
.open-web { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 20px; margin: 8px 10px 18px; padding: 24px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.noscript-mark { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.noscript-mark a { display: block; padding: 3px; background: #fff; line-height: 0; }
.noscript-mark img { display: block; width: 88px; height: 88px; }
.noscript-mark span { color: var(--amber); font-size: .62rem; line-height: 1.5; }
.open-copy .overline { margin: 0 0 6px; }
.open-copy h2 { max-width: 540px; }
.open-copy > p:not(.overline) { max-width: 700px; margin: 9px 0; }
.open-copy .credit { color: var(--muted); font-size: .78rem; }
.contact-list { margin-top: 13px; }
.contact-list p { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 8px 0; }
.contact-list p span { min-width: 155px; color: var(--muted); }
.contact-list a { font-family: var(--mono); }
.symbol-tile { display: grid; place-items: center; width: 94px; height: 94px; max-width: 100%; margin: 0; padding: 3px; background: #fff; line-height: 0; }
.symbol-tile img { display: block; width: 88px; height: 88px; object-fit: cover; object-position: left center; }
.welcome-section .symbol-tile { width: 62px; height: 62px; }
.socialism-symbol img { object-fit: contain; object-position: center; }
.symbol-tile figcaption { max-width: 96px; padding-top: 5px; color: var(--muted); font: .58rem/1.4 var(--mono); }
.symbol-tile figcaption a { font-weight: 400; }
.welcome-section { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; margin: 0 10px 4px; padding: 12px 0; border-top: 1px dashed var(--rule); border-bottom: 0; }
.welcome-section .symbol-tile img { width: 56px; height: 56px; }
.welcome-section .open-copy h2 { margin: 0 0 5px; padding: 0; border: 0; font-size: 1.08rem; }
.welcome-section .open-copy > p { margin: 0; font-size: .82rem; }
section[aria-labelledby="antifascism-title"] { margin-bottom: 0; border-bottom: 0; }
section[aria-labelledby="socialism-title"] { margin-top: 0; border-bottom: 1px solid var(--rule); }
.contact-section { position: relative; margin-top: 8px; border-top: 0; }
.contact-section::before { content: ""; position: absolute; top: 0; left: 10px; right: 10px; border-top: 1px solid var(--rule); }
footer { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px 18px; min-height: 68px; margin-top: 10px; padding: 12px 10px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .65rem; }
footer a { color: var(--red); }
footer a { white-space: nowrap; }

@media (max-width: 620px) {
  body { padding: 0 16px; font-size: 14px; }
  .masthead { min-height: 76px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .intro { padding: 38px 10px 28px; }
  .intro-headline { grid-template-columns: clamp(84px, 28vw, 140px) minmax(0, 1fr); gap: 12px; }
  .intro-title-block { min-width: 0; min-height: 0; justify-content: center; gap: 7px; }
  .intro-title-block h1 { font-size: clamp(1.35rem, 6vw, 2rem); line-height: 1.08; }
  .intro-subtext { max-width: 100%; overflow-wrap: anywhere; font-size: .58rem; line-height: 1.45; }
  .content-section { grid-template-columns: 1fr; gap: 8px; padding: 20px 10px; }
  .section-label { display: flex; gap: 8px; padding: 0; }
  .section-label span:first-child { margin: 0; }
  .open-web { grid-template-columns: 1fr; gap: 15px; margin-top: 4px; padding: 20px 10px; }
  .noscript-mark { flex-direction: row; align-items: center; }
  .noscript-mark img { width: 62px; height: 62px; }
  .icon-section { grid-template-columns: 80px minmax(0, 1fr); gap: 15px; }
  .symbol-tile { width: 68px; height: 68px; }
  .symbol-tile img { width: 62px; height: 62px; }
  .welcome-section { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 10px 8px; }
  .welcome-section .symbol-tile { width: 58px; height: 58px; }
  .welcome-section .symbol-tile img { width: 52px; height: 52px; }
  .welcome-section .open-copy h2 { font-size: 1rem; }
  .welcome-section .open-copy > p { font-size: .76rem; }
  .symbol-tile figcaption { max-width: 68px; font-size: .52rem; }
  footer { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: 14px 10px; }
  footer span:last-child { justify-self: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.terminal, .geek-code {
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 10px;
  padding: 3px 0 3px 12px;
  overflow-x: auto;
  border: 0;
  border-left: 2px solid #a22;
  background: transparent;
  color: var(--ink);
  font: .78rem/1.65 var(--mono);
  white-space: pre-wrap;
}
.terminal span, .geek-code { color: var(--amber); }
.terminal .cursor { color: var(--red); }
.geek-code { margin-top: 22px; color: var(--amber); }
