/* ============================================================
   Mr. Kurt — style.css
   Kurt built this himself, in the room, on a classifieds-board
   look: grey left rail, grey section bars, dense default-blue
   links, a blue band for the tagline. Then he "customized" it:
   his own background tile, an orange ticker, hazard tape on
   every page, a counter. The badness is a system; the page
   underneath is sound. Site-local variables only.
   ============================================================ */

:root {
  /* Kurt's tile */
  --tile: #0d1b3d;
  --tile-mark: #ff6a00;

  /* the template */
  --page: #ffffff;
  --rail: #eeeeee;
  --rail-line: #d6d6d6;
  --bar: #e2e2e2;
  --ink: #111111;
  --muted: #555555;          /* on white 7.5:1, on --rail 6.4:1 */
  --link: #0000cc;
  --visited: #5a1e8c;
  --band: #003399;
  --label: #b8d3f0;
  --label-cell: #f3f8fd;
  --orange: #b84000;         /* headings on white 5.6:1 */
  --today: #fff8b0;          /* "you are here" */
  --today-line: #b5ac4f;
  --alert: #c40000;          /* on white 6.0:1 */
  --hazard: #ffd400;

  /* bevels */
  --silver: #d4d0c8;
  --hi: #ffffff;
  --lo: #808080;

  --f-sans: Verdana, Geneva, Tahoma, Arial, sans-serif;  /* the template's */
  --f-serif: "Times New Roman", Times, serif;            /* anything Kurt typed */
  --f-mono: "Courier New", Courier, monospace;           /* dates, logs, the counter */
  --f-loud: "Rubik Mono One", "Arial Black", Impact, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font: 15px/1.5 var(--f-sans);
  background-color: var(--tile);
  /* Kurt's custom background: a small desk phone, repeated forever. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36'%3E%3Cg fill='%23ff6a00' transform='translate(3 3)'%3E%3Crect x='1' y='0' width='9' height='1'/%3E%3Crect x='0' y='1' width='11' height='1'/%3E%3Crect x='0' y='2' width='2' height='1'/%3E%3Crect x='9' y='2' width='2' height='1'/%3E%3Crect x='3' y='3' width='5' height='1'/%3E%3Crect x='2' y='4' width='3' height='1'/%3E%3Crect x='6' y='4' width='3' height='1'/%3E%3Crect x='1' y='5' width='3' height='1'/%3E%3Crect x='7' y='5' width='3' height='1'/%3E%3Crect x='1' y='6' width='4' height='1'/%3E%3Crect x='6' y='6' width='4' height='1'/%3E%3Crect x='0' y='7' width='11' height='1'/%3E%3Crect x='0' y='8' width='11' height='1'/%3E%3C/g%3E%3Cg fill='%23223a7a' transform='translate(21 21)'%3E%3Crect x='1' y='0' width='9' height='1'/%3E%3Crect x='0' y='1' width='11' height='1'/%3E%3Crect x='0' y='2' width='2' height='1'/%3E%3Crect x='9' y='2' width='2' height='1'/%3E%3Crect x='3' y='3' width='5' height='1'/%3E%3Crect x='2' y='4' width='3' height='1'/%3E%3Crect x='6' y='4' width='3' height='1'/%3E%3Crect x='1' y='5' width='3' height='1'/%3E%3Crect x='7' y='5' width='3' height='1'/%3E%3Crect x='1' y='6' width='4' height='1'/%3E%3Crect x='6' y='6' width='4' height='1'/%3E%3Crect x='0' y='7' width='11' height='1'/%3E%3Crect x='0' y='8' width='11' height='1'/%3E%3C/g%3E%3C/svg%3E");
}
a { color: var(--link); }
a:visited { color: var(--visited); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--tile-mark); outline-offset: 2px; }
img, svg { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 10; background: var(--today); color: var(--ink); padding: 8px 12px; border: 2px solid var(--ink); font-weight: 700; }
.skip:focus { top: 8px; }
.inert { color: var(--muted); font-family: var(--f-mono); font-weight: 700; }

/* ---------- frame ---------- */
.page { max-width: 1080px; margin: 0 auto; background: var(--page); display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 100vh; }
.page > * { min-width: 0; }
.body { display: flex; flex-direction: column; }
.body > main { flex: 1; }

/* ---------- rail ---------- */
.rail { background: var(--rail); border-right: 1px solid var(--rail-line); padding: 16px 12px 24px; text-align: center; }
.brand { display: inline-flex; align-items: center; gap: 6px; color: var(--ink) !important; text-decoration: none; margin-bottom: 12px; }
.brand .head { width: 34px; height: auto; }
.brand span:last-child { font: 700 23px/1 var(--f-serif); }
.brand:hover span:last-child { text-decoration: underline; }
.post { display: inline-block; color: var(--ink) !important; background: var(--today); border: 1px solid var(--today-line); padding: 5px 12px; text-decoration: none; font-size: 15px; }
.post:hover { text-decoration: underline; }
.rail h2 { font: 700 13px var(--f-sans); color: var(--band); margin: 22px 0 6px; text-transform: lowercase; }
.rail ul { list-style: none; margin: 0; padding: 0; }
.rail li { padding: 3px 0; }
.rail a.nav { display: inline-block; padding: 3px 9px; font-size: 15px; text-decoration: none; border: 1px solid transparent; }
.rail a.nav:hover { text-decoration: underline; }
.rail a.nav[aria-current="page"] { background: var(--today); border-color: var(--today-line); color: var(--ink); font-weight: 700; }
.rail .mini li { font-size: 13px; }
.rail .tbd { color: var(--muted); }
.new { display: inline-block; font: 700 10px/1 var(--f-mono); color: #fff; background: var(--alert); padding: 2px 3px; vertical-align: 2px; animation: blink 1s steps(1) infinite; }
.menu-btn { display: none; }

/* ---------- header ---------- */
.crumb { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; background: var(--bar); padding: 7px 14px; border-bottom: 1px solid var(--rail-line); }
.crumb p { margin: 0; font-size: 15px; }
.crumb strong { font-weight: 700; }
.motion-btn, button[type="submit"] {
  font: 13px var(--f-sans); color: #000; background: var(--silver); cursor: pointer;
  border: 2px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi); padding: 4px 10px;
}
.motion-btn:active, button[type="submit"]:active { border-color: var(--lo) var(--hi) var(--hi) var(--lo); }
.motion-btn[aria-pressed="true"] { border-color: var(--lo) var(--hi) var(--hi) var(--lo); background: #c4c0b8; }
.band { background: var(--band); color: #fff; display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.band .head { width: 64px; height: auto; flex: none; }
.tagline { margin: 0; font: 400 clamp(15px, 2.1vw, 22px)/1.35 var(--f-loud); letter-spacing: .01em; }
.ticker { background: #000; color: var(--tile-mark); font: 700 13px/1 var(--f-mono); overflow: hidden; white-space: nowrap; padding: 6px 0; }
.ticker span { display: inline-block; padding-left: 100%; animation: crawl 30s linear infinite; }

/* ---------- main ---------- */
main { padding: 18px 20px 34px; }
main:focus { outline: none; }
.uc { font: 700 12px var(--f-mono); background: repeating-linear-gradient(45deg, var(--hazard) 0 10px, #000 10px 20px); padding: 5px; margin: 0 0 16px; }
.uc span { background: var(--hazard); padding: 1px 6px; }
h1 { font: 400 clamp(26px, 4vw, 38px)/1.1 var(--f-loud); color: var(--band); margin: 4px 0 14px; letter-spacing: .01em; }
h1 .sub { display: block; font: 700 15px/1.4 var(--f-sans); color: var(--orange); letter-spacing: 0; margin-top: 6px; }
.bar { margin: 26px 0 0; background: var(--bar); text-align: center; font: 700 17px var(--f-sans); padding: 6px 8px; }
.bar + * { margin-top: 10px; }
h3 { color: var(--orange); font: 700 16px var(--f-sans); margin: 18px 0 6px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.prose { font: 19px/1.55 var(--f-serif); max-width: 40em; }
.prose p { margin: 0 0 14px; }
.signed { font: 700 15px var(--f-mono); }
hr { border: 0; border-top: 3px double #999; margin: 22px 0; }

figure.scan { margin: 0 0 16px; border: 1px solid #999; background: #fff; padding: 6px; }
figure.scan img { width: 100%; height: auto; display: block; }
figure.scan figcaption { font: 12px/1.35 var(--f-mono); padding: 6px 2px 0; }
figure.scan.float { float: right; width: min(300px, 46%); margin: 4px 0 12px 18px; }

.box { border: 1px solid var(--band); margin: 0 0 18px; background: #fff; }
.box > h2 { margin: 0; background: var(--band); color: #fff; font: 700 14px var(--f-sans); padding: 5px 9px; }
.box > *:not(h2) { margin: 10px; }

/* "also on this site": one strip under the manifesto, label left, links in a row */
.also { display: flex; max-width: 760px; margin: 24px 0 0; border: 1px solid var(--band); background: #fff; }
.also h2 { margin: 0; flex: none; display: flex; align-items: center; background: var(--band); color: #fff; font: 700 14px var(--f-sans); padding: 8px 12px; }
.also ul { list-style: none; margin: 0; padding: 8px 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-size: 15px; }
@media (max-width: 520px) { .also { flex-direction: column; } }

/* ---------- associates ---------- */
.cards { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.card { border: 1px solid #b0b8c8; background: #fff; display: flex; flex-direction: column; }
.card .shot { aspect-ratio: 16 / 9; background: #e9eef6; border-bottom: 1px solid #b0b8c8; display: grid; place-items: center; text-align: center; padding: 8px; font: 12px/1.3 var(--f-mono); color: var(--muted); }
.card.tbd { border-style: dashed; }
.card.tbd .shot { background: #f2f2f2; color: #999; }
.card .shot b { display: block; font: 400 17px/1.2 var(--f-loud); color: var(--band); margin-bottom: 4px; }
.card .shot.logo { display: block; position: relative; background: #fff; padding: 0; }
.card .shot.logo img { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); object-fit: contain; }
.shot.photo { display: block; position: relative; padding: 0; overflow: hidden; }
.shot.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.card .body-c { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 15px; }
.card .links { margin: auto 0 0; padding-top: 4px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.card .links .inert { font: inherit; font-weight: 400; color: var(--muted); }
.card .fine { margin: 0; font-size: 12px; color: var(--muted); }
.card .code { font: 700 13px var(--f-mono); background: var(--today); border: 1px dashed var(--today-line); padding: 3px 6px; align-self: flex-start; }

/* ---------- associates: the film ---------- */
.film-line { font: 19px/1.5 var(--f-serif); margin: 12px 0 10px; }
.film { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; border: 1px solid #000; color: #fff; }
.film iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-play { position: absolute; inset: 0; width: 100%; border: 0; background: #000; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.film-title { font: 400 clamp(22px, 4vw, 40px)/1.1 var(--f-loud); letter-spacing: .04em; }
.film-btn { font: 700 16px var(--f-sans); color: #000; background: var(--silver); border: 3px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi); padding: 8px 22px; }
.film-play:hover .film-btn, .film-play:focus-visible .film-btn { background: var(--today); }
.film-play:active .film-btn { border-color: var(--lo) var(--hi) var(--hi) var(--lo); }
.film-note { font: 12px var(--f-mono); color: #fff; background: #000; padding: 2px 6px; }
.film-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-play:has(.film-img) { justify-content: flex-end; align-items: flex-start; }
.film-bar { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 0 14px 14px; }
.film.tbd { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.film.tbd p { margin: 0; }
.film-soon { font: 700 13px var(--f-mono); color: #bbb; letter-spacing: .08em; }

/* ---------- associates: people (no site, no link) ---------- */
.people { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.person { border: 1px solid #b0b8c8; background: #fff; }
.person .shot { aspect-ratio: 16 / 9; background: #f2f2f2; display: grid; place-items: center; font: 12px var(--f-mono); color: var(--muted); border-bottom: 1px solid #b0b8c8; }
.person h3 { margin: 10px 12px 0; font: 700 18px var(--f-sans); color: var(--ink); }
.person p { margin: 2px 12px 12px; font-size: 14px; color: var(--muted); }
.plea { font: 400 clamp(17px, 2.6vw, 24px)/1.3 var(--f-loud); color: var(--band); text-align: center; margin: 30px 0 6px; }

/* ---------- FAQ ---------- */
.faq { margin: 0; }
.faq dt { font: 700 16px var(--f-sans); color: var(--band); background: var(--label-cell); border-left: 4px solid var(--band); padding: 6px 10px; margin-top: 14px; }
.faq dt::before { content: "Q: "; color: var(--orange); }
.faq dd { margin: 6px 0 0 14px; font: 19px/1.5 var(--f-serif); }
.faq dd::before { content: "A: "; font: 700 15px var(--f-sans); color: var(--orange); }

/* ---------- blog ---------- */
.post-list { list-style: none; margin: 10px 0 0; padding: 0; max-width: 46em; }
.post-item { border: 1px solid #b0b8c8; background: #fff; margin-bottom: 12px; padding: 0 0 10px; }
.post-item .post-date { margin: 0; background: var(--label); color: var(--band); padding: 4px 10px; }
.post-item h2 { margin: 10px 12px 4px; font: 700 18px/1.3 var(--f-sans); }
.post-item p:last-child { margin: 0 12px; font: 17px/1.5 var(--f-serif); }
.post-date { font: 700 13px var(--f-mono); color: var(--orange); margin: 0 0 6px; }
.post-full { max-width: 44em; }
.post-full h1 { margin-top: 0; }
.post-nav { margin: 26px 0 0; padding: 10px 12px; background: var(--bar); font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 6px; max-width: 44em; }

/* ---------- forms ---------- */
.form-block { border: 1px solid var(--band); background: #fff; margin: 0 0 18px; }
.form-block > h2 { margin: 0; background: var(--band); color: #fff; font: 700 14px var(--f-sans); padding: 5px 9px; }
.form-block form, .form-block .form-success, .form-block .form-error { padding: 12px; }
.field { margin: 0 0 12px; }
.field label { display: block; font: 700 14px var(--f-sans); margin-bottom: 3px; }
.field input, .field textarea { width: 100%; font: 16px var(--f-sans); color: var(--ink); background: #fff; padding: 6px 7px; border: 2px solid; border-color: var(--lo) var(--hi) var(--hi) var(--lo); box-shadow: inset 1px 1px 0 #404040; }
.field textarea { min-height: 130px; resize: vertical; font-family: var(--f-serif); font-size: 17px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--tile-mark); outline-offset: 1px; }
.field.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-zip input { width: 9em; }
.opt { font-weight: 400; color: var(--muted); }
.form-note { font-size: 13px; line-height: 1.45; margin: 0 0 12px; padding: 6px 8px; background: var(--today); border: 1px dashed var(--lo); }
.submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
button[type="submit"] { font: 700 15px var(--f-sans); padding: 6px 18px; }
button[type="submit"]:disabled { color: #555; cursor: wait; }
.form-privacy { font-size: 13px; margin: 0; }
.form-success { background: var(--today); }
.form-success p { margin: 0 0 6px; font: 400 clamp(16px, 2.4vw, 21px)/1.35 var(--f-loud); color: var(--band); }
.form-success p + p { font: 14px var(--f-sans); color: var(--ink); }
.form-error { background: #ffeaea; border-top: 3px solid var(--alert); }
.form-error p { margin: 0; color: var(--alert); font-weight: 700; }

/* ---------- privacy ---------- */
.notice { font: 16px/1.6 var(--f-sans); max-width: 44em; }
.notice h2 { font: 700 18px var(--f-sans); color: var(--band); margin: 26px 0 6px; }
.notice p, .notice ul { margin: 0 0 12px; }
.disclosure { border: 2px solid var(--ink); background: var(--today); padding: 12px 14px; margin: 0 0 20px; }
.disclosure p { margin: 0 0 8px; }
.disclosure p:last-child { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--rail); border-top: 1px solid var(--rail-line); text-align: center; padding: 18px 14px 28px; font-size: 14px; }
.site-footer p { margin: 0 0 8px; }
.count-label { font: 700 12px var(--f-mono); letter-spacing: .08em; }
.counter .digits { display: inline-flex; gap: 1px; }
.counter b { background: #000; color: #ff9a3c; padding: 2px 5px; font: 700 18px var(--f-mono); }
.tie-in { font-size: 13px; }

/* ---------- motion ---------- */
@keyframes crawl { to { transform: translateX(-100%); } }
@keyframes blink { 50% { visibility: hidden; } }
html.still *, html.still *::before, html.still *::after { animation: none !important; }
html.still .ticker { white-space: normal; padding: 6px 14px; }
html.still .ticker span { padding-left: 0; }
@media (prefers-reduced-motion: reduce) {
  html:not(.moving) *, html:not(.moving) *::before, html:not(.moving) *::after { animation: none !important; }
  html:not(.moving) .ticker { white-space: normal; padding: 6px 14px; }
  html:not(.moving) .ticker span { padding-left: 0; }
}

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page { grid-template-columns: 1fr; }
  .rail { border-right: 0; border-bottom: 1px solid var(--rail-line); padding: 12px 16px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; text-align: left; }
  .brand { margin: 0; }
  .post { justify-self: end; }
  .menu-btn { display: flex; align-items: center; justify-content: center; gap: 8px; grid-column: 1 / -1; width: 100%; font: 700 15px var(--f-sans); color: #000; background: var(--silver); border: 2px solid; border-color: var(--hi) var(--lo) var(--lo) var(--hi); padding: 9px 12px; cursor: pointer; }
  .menu-btn .menu-where { font-weight: 400; font-size: 13px; }
  .rail.open .menu-btn { border-color: var(--lo) var(--hi) var(--hi) var(--lo); }
  .rail-menu { display: none; grid-column: 1 / -1; text-align: center; }
  .rail.open .rail-menu { display: block; }
  .rail h2 { margin-top: 10px; }
  .rail a.nav { padding: 7px 14px; }
  main { padding: 16px 16px 28px; }
  .band { padding: 12px 16px; }
  .band .head { width: 48px; }
  figure.scan.float { float: none; width: 100%; margin: 0 0 14px; }
  .prose { font-size: 18px; }
}
