:root {
  color-scheme: dark;
  --bg: #000000;
  --border: #2c2515;
  --rule: #1e1910;
  --hover: #151109;
  --text: #f0e8d6;
  --muted: #a89f8a;
  --accent: #dba43a;
  --on-accent: #000000;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --max: 964px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-padding-top: 80px; }   /* keeps anchor targets clear of the sticky header */
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--border); }
math.frac { font-size: 1.2em; }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 8px 20px; padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 8px; }
.mark { width: 36px; height: 36px; flex: none; display: block; }
.brand-name { display: block; font-family: var(--serif); font-size: 26px; line-height: 1; letter-spacing: -0.3px; transform: translateY(0.11em); } /* optical centring: serif caps sit high in the line box */
.nav { --nav-gap: 22px; display: flex; align-items: center; gap: var(--nav-gap); }
.nav-link { font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding: 4px 0; border-bottom: 1px solid transparent; }
.nav-link[aria-current="page"] { color: var(--text); border-bottom: 1px solid var(--accent); }
.nav-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
/* diamond separators between nav links (same motif as the clock's row markers), centred in the gap */
.nav-link { position: relative; }
.nav-link + .nav-link::before {
  content: ""; position: absolute; left: calc(var(--nav-gap) / -2); top: calc(50% - 1px);
  width: 4px; height: 4px; border: 1px solid #7a5e22; transform: translate(-50%, -50%) rotate(45deg); pointer-events: none;
}
.nav-soon { cursor: default; }
.nav-soon:hover { color: var(--muted); border-bottom-color: transparent; }
.btn {
  display: inline-block; padding: 4px 12px; border: 1px solid var(--accent); border-radius: 4px;
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; line-height: 16px;
}
.btn:hover { filter: brightness(1.1); }

/* Post list */
main { flex: 1; width: 100%; padding-top: 24px; padding-bottom: 40px; }
.list-head { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0; }
.list-head h1 { margin: 0; font-size: 10px; font-weight: 400; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.list-head a { font-size: 11.5px; font-weight: 500; color: var(--accent); }
.list-head a:hover { text-decoration: underline; }
.posts { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.posts li + li { border-top: 1px solid var(--rule); }
.posts a { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; padding: 6px 14px; }
.posts a:hover { background: var(--hover); }
.when { flex: 0 0 178px; white-space: nowrap; font-size: 12px; line-height: 18px; color: var(--muted); font-variant-numeric: tabular-nums; }
.title { flex: 1 1 280px; font-size: 14px; line-height: 18px; font-weight: 500; }
.go { font-size: 12px; line-height: 18px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); -webkit-user-select: none; user-select: none; }
.site-footer a[href^="mailto:"] { -webkit-user-select: text; user-select: text; }   /* the email stays copyable */
.footer-row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 6px 20px; padding-top: 10px; padding-bottom: 8px; font-size: 11px; color: var(--muted);
}
.footer-brand { display: flex; align-items: baseline; gap: 6px; color: var(--text); font-family: var(--serif); font-size: 13px; }
.footer-mark { width: 20px; height: 20px; flex: none; display: block; align-self: center; transform: translateY(-4.4px); } /* centre the mark on the wordmark capitals */
.footer-tag { font-family: var(--serif); font-size: 12px; }
@media screen and (min-width: 980px) {   /* tagline centred on the page, not just between its neighbours */
  .footer-row { display: grid; grid-template-columns: 1fr auto 1fr; }
  .footer-row > :last-child { justify-self: end; }
}
.footer-tag em { font-style: italic; }
.footer-tag strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.site-footer a {
  color: var(--accent);
  text-decoration: underline dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 1px;
  text-decoration-skip-ink: auto;
}
.site-footer a:hover { text-decoration-style: solid; }
.disclosure p { margin: 0 0 6px; }
.disclosure p:last-child { margin-bottom: 0; }
.disclosure { margin: 0 auto; max-width: var(--max); padding: 0 24px 14px; font-size: 7px; line-height: 1.5; color: var(--muted); text-align: justify; text-justify: inter-word; hyphens: manual; }

@media (max-width: 560px) {
  .disclosure { hyphens: auto; -webkit-hyphens: auto; }
  .when { flex-basis: 100%; line-height: 16px; }
  .title { flex-basis: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn, .posts a { transition: background-color .12s, filter .12s; }
}

/* Article page */
.crumbs { margin: 4px 0 26px; font-size: 14px; font-weight: 500; }
.crumbs a { color: var(--accent); }
.crumbs a:hover { text-decoration: underline; }
.post-head { margin: 0 0 26px; }
.post-title { margin: 0 0 14px; font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: 1.12; letter-spacing: -0.6px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.meta strong { font-weight: 600; color: var(--text); }
.badge { border: 1px solid var(--accent); border-radius: 999px; padding: 2px 10px; color: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 1px; line-height: 16px; text-transform: uppercase; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.tags li { border: 1px solid var(--border); border-radius: 4px; padding: 4px 10px; font-size: 12px; line-height: 16px; color: var(--text); }
.post-body { font-size: 16px; line-height: 1.65; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.post-body > :last-child { margin-bottom: 0; }
.post-body p { margin: 0 0 1em; }
.post-body strong { font-weight: 600; }
.post-body h2 { margin: 1.6em 0 .5em; font-size: 20px; font-weight: 600; line-height: 1.3; text-align: left; }
.post-body h3 { margin: 1.4em 0 .4em; font-size: 17px; font-weight: 600; line-height: 1.3; text-align: left; }
.post-body ul, .post-body ol { margin: 0 0 1em; padding-left: 22px; }
.post-body a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.post-body a:hover { text-decoration-thickness: 2px; }
.post-body a, .footnotes a { hyphens: manual; -webkit-hyphens: manual; }
blockquote { margin: 0 0 1em; padding: 0 0 0 16px; border-left: 2px solid var(--accent); }
blockquote p:last-child { margin-bottom: 0; }
sup { font-size: .7em; line-height: 0; }
sup.fn { margin-left: 1px; }
sup.fn a { color: var(--accent); font-size: 1.05em; font-weight: 600; text-decoration: none; }
.footnotes { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--border); }
.footnotes h2 { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.footnotes ol { margin: 0; padding-left: 22px; font-size: 12px; line-height: 1.3; color: #bdb49d; text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.footnotes li { padding: 4px 0; }
.footnotes li:first-child { padding-top: 0; }
.footnotes li + li { border-top: 1px solid var(--rule); }
.footnotes li::marker { color: var(--muted); }
.footnotes a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.footnotes a:hover { text-decoration: underline; }
.footnotes a.back { margin-left: 4px; text-decoration: none; }

@media (max-width: 560px) {
  .post-title { font-size: 30px; }
}

/* World clock HUD (bottom-right). Wide screens: always-open panel in the right-hand margin.
   Narrower screens: a small pill that expands on tap. Hidden until clock.js runs. */
.wc {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; width: auto; padding: 1px;
  background: #5a4719; color: var(--text);
  font: 500 10px/1 var(--sans); letter-spacing: 0.4px; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;   /* the clock is not selectable */
}
.wc[hidden] { display: none; }
.wc.open { width: 250px; }
.wc-in {
  display: flex; flex-direction: column; background: #000;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.wc-toggle {
  display: flex; align-items: center; gap: 7px; width: 100%; padding: 8px 12px 8px 10px;
  background: none; border: 0; color: inherit; font: inherit; letter-spacing: inherit; text-align: left; cursor: pointer;
}
.wc-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.wc-hex { width: 9px; height: 10px; flex: none; background: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.wc-date { flex: 1; font-size: 10px; line-height: 1.35; letter-spacing: 0.3px;  text-wrap: balance; }
.wc-date b { font-weight: 700; }
.wc-date sup { font-size: 0.7em; line-height: 0; vertical-align: super; }
.wc-caret { width: 5px; height: 5px; flex: none; border-right: 1px solid var(--muted); border-bottom: 1px solid var(--muted); transform: rotate(45deg) translate(-1px, -1px); }
.wc.open .wc-caret { transform: rotate(225deg) translate(-1px, -1px); }
.wc-list { display: none; order: -1; list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--border); }
.wc.open .wc-list { display: block; }
.wc-list li {
  display: grid; grid-template-columns: 9px 34px 1fr auto; align-items: baseline; gap: 7px;
  padding: 6px 12px 6px 10px; border-top: 1px solid var(--rule);
}
.wc-list li:first-child { border-top: 0; }
.wc-dot { align-self: center; justify-self: center; width: 5px; height: 5px; border: 1px solid #5a4719; transform: rotate(45deg); }
.is-day .wc-dot { background: var(--accent); border-color: var(--accent); }
.wc-c { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: 1.2px; }
.is-day .wc-c { color: var(--accent); }
.wc-t { display: flex; align-items: baseline; gap: 5px; }
.wc-tm { font-size: 11px; font-weight: 500; letter-spacing: 0.4px; }
.wc-d { color: var(--accent); font-size: 8px; font-style: normal; letter-spacing: 0.4px; }
.wc-o { color: var(--muted); font-size: 11px; }

@media (min-width: 1456px) {   /* the open panel needs the right-hand margin: from here it clears the footer column */
  .wc { width: 250px; }
  .wc-list { display: block; order: 0; }
  .wc-toggle { cursor: default; pointer-events: none; }
  .wc-caret { display: none; }
}
@media (max-width: 819px) { .wc { display: none !important; } }   /* no world clock on phones / small tablets */
@media (min-width: 820px) and (max-width: 1455px) {
  body.has-wc .site-footer { padding-bottom: 100px; }   /* keep the collapsed pill and the back-to-top button clear of the disclaimer */
}
@media (max-width: 819px) {
  body.has-wc .site-footer { padding-bottom: 48px; }    /* keep the back-to-top button clear of the disclaimer */
}
@media print { .wc { display: none; } }

/* Header nav on phones: nav drops to its own full-width row */
@media (max-width: 560px) {
  .nav { width: 100%; justify-content: space-between; gap: 6px; }
  .nav-link { font-size: 10.5px; letter-spacing: 0.6px; }
  .btn { padding: 4px 11px; font-size: 12px; }
}

/* Quotation-only page (Colophon) */
.quote-page { padding: clamp(0px, calc((100vh - 700px) * .3), 12vh) 0 clamp(0px, calc((100vh - 700px) * .2), 8vh); }   /* generous on tall screens, tight on short ones so the footer stays on screen */
.quote-page .post-body { text-align: left; hyphens: manual; -webkit-hyphens: manual; }
.quote-page blockquote { margin: 0; padding: 0; border: 0; font-family: var(--serif); font-size: 30px; line-height: 1.35; letter-spacing: -0.2px; }
.quote-page blockquote p { margin: 0 0 .9em; }
.quote-page blockquote p:not(:last-child) { text-indent: -0.33em; }   /* hang the opening quote mark so the text lines up with the lines below */
.quote-page blockquote p:last-child { font-family: var(--sans); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.quote-page blockquote p:last-child strong { font-weight: 700; color: var(--accent); }   /* names: bold gold */
.quote-page blockquote p:last-child em { font-style: italic; }                           /* game titles: italic */
.quote-page blockquote p:not(:last-child) strong { font-weight: 600; }                    /* emphasis inside the quote itself */
@media (max-width: 560px) { .quote-page { padding-top: 7vh; } .quote-page blockquote { font-size: 23px; } }
.quote-page blockquote + blockquote { margin-top: clamp(36px, 5vh, 56px); }

/* Touch / small screens: comfortable tap targets, nothing wider than the screen */
@media (max-width: 819px) {
  .nav { --nav-gap: 14px; flex-wrap: wrap; justify-content: flex-start; gap: 0 var(--nav-gap); }
  .nav-link { padding: 11px 0; }
  .nav .btn { padding: 7px 14px; }
  .list-head a, .crumbs a { display: inline-block; padding: 10px 0; }
  .site-footer a[href^="mailto:"] { display: inline-block; padding: 10px 0; }
}
@media (max-width: 560px) {
  .site-header .wrap { position: relative; }
  .nav .btn { position: absolute; top: 14px; right: 24px; }   /* chip sits on the logo row; links get their own row */
}
@media (max-width: 399px) {   /* five nav items: keep them on one row */
  .nav { --nav-gap: 10px; gap: 0 var(--nav-gap); }
  .nav-link { font-size: 10px; letter-spacing: 0.3px; }
}
@media (max-width: 359px) {
  .nav { --nav-gap: 8px; gap: 0 var(--nav-gap); }
  .nav-link { font-size: 9.5px; letter-spacing: 0.2px; }
  .brand-name { font-size: 20px; }
}

/* Human-authorship note at the foot of every article */
.postscript { margin: 48px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); font-family: var(--serif); font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; text-wrap: balance; }

/* Blog posts: body text, footnotes and the authorship note can't be selected or copied; links still work */
.post:not(.quote-page) .post-body,
.post:not(.quote-page) .footnotes,
.post:not(.quote-page) .postscript { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* Bullets in articles are en dashes */
.post-body ul { list-style: none; padding-left: 0; }
.post-body ul li { position: relative; padding-left: 22px; margin-bottom: .35em; text-align: left; }
.post-body ul li::before { content: "\2013"; position: absolute; left: 0; }


/* ---------- Deus Ex layer: chamfers, hex markers, targeting brackets, hex-grid, logo glitch ---------- */
:root {
  --brk: linear-gradient(var(--accent), var(--accent)) 0 0 / 7px 1px no-repeat,
         linear-gradient(var(--accent), var(--accent)) 0 0 / 1px 7px no-repeat,
         linear-gradient(var(--accent), var(--accent)) 100% 0 / 7px 1px no-repeat,
         linear-gradient(var(--accent), var(--accent)) 100% 0 / 1px 7px no-repeat,
         linear-gradient(var(--accent), var(--accent)) 0 100% / 7px 1px no-repeat,
         linear-gradient(var(--accent), var(--accent)) 0 100% / 1px 7px no-repeat,
         linear-gradient(var(--accent), var(--accent)) 100% 100% / 7px 1px no-repeat,
         linear-gradient(var(--accent), var(--accent)) 100% 100% / 1px 7px no-repeat;
}


/* 1. Chamfered corners (top-left and bottom-right cut). Borders are drawn as an outer shape (--bc)
   with an inner fill (::before) so the diagonal edges keep their outline. */
.btn { border-radius: 0; clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.badge, .tags li, .posts {
  --c: 6px; --bc: var(--border); --fill: var(--bg);
  position: relative; isolation: isolate; border: 0; border-radius: 0; background: var(--bc); padding: 1px;
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c));
}
.badge::before, .tags li::before, .posts::before {
  content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--fill);
  clip-path: polygon(calc(var(--c) - .4px) 0, 100% 0, 100% calc(100% - var(--c) + .4px), calc(100% - var(--c) + .4px) 100%, 0 100%, 0 calc(var(--c) - .4px));
}
.badge { --bc: var(--accent); padding: 3px 11px; }
.tags li { --c: 5px; padding: 5px 11px; }
.posts { --c: 12px; padding: 1px; overflow: visible; }
.posts li:first-child a { padding-top: 7px; }

/* 2. Hexagon list markers and a hex notch on the footnote rule */
.post-body ul li::before {
  content: ""; left: 3px; top: .62em; width: 7px; height: 8px; background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.footnotes { position: relative; }
.footnotes::before {
  content: ""; position: absolute; left: 50%; top: -5px; margin-left: -4.5px; width: 9px; height: 10px; background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

/* 5. Targeting brackets on hover / keyboard focus (nav links and post rows) */
.nav-link:not(.nav-soon), .posts a { position: relative; }
.nav-link:not(.nav-soon)::after, .posts a::after {
  content: ""; position: absolute; pointer-events: none; opacity: 0; background: var(--brk);
}
.nav-link:not(.nav-soon)::after { inset: -2px -8px; }
.posts a::after { inset: 2px 5px; }
.nav-link:not(.nav-soon):hover::after, .nav-link:not(.nav-soon):focus-visible::after,
.posts a:hover::after, .posts a:focus-visible::after { opacity: 1; }

/* 10. Logo glitch on hover: a quick gold/cyan split, once per hover */
@keyframes wc-glitch-mark {
  0%, 100% { transform: none; filter: none; }
  20% { transform: translate(-1.5px, 0); filter: drop-shadow(2px 0 0 rgba(0, 220, 255, .75)) drop-shadow(-2px 0 0 rgba(219, 164, 58, .8)); }
  40% { transform: translate(1.5px, 1px); filter: drop-shadow(-2px 0 0 rgba(0, 220, 255, .75)) drop-shadow(2px 0 0 rgba(219, 164, 58, .8)); }
  60% { transform: translate(-1px, -1px); filter: drop-shadow(1px 0 0 rgba(0, 220, 255, .6)); }
  80% { transform: translate(1px, 0); filter: none; }
}
@keyframes wc-glitch-name {
  0%, 100% { transform: translateY(.11em); text-shadow: none; clip-path: none; }
  20% { transform: translate(-2px, .11em); text-shadow: 2px 0 rgba(0, 220, 255, .7), -2px 0 rgba(219, 164, 58, .8); clip-path: inset(0 0 45% 0); }
  40% { transform: translate(2px, .11em); text-shadow: -2px 0 rgba(0, 220, 255, .7), 2px 0 rgba(219, 164, 58, .8); clip-path: inset(40% 0 0 0); }
  60% { transform: translate(-1px, .11em); text-shadow: 1px 0 rgba(0, 220, 255, .6); clip-path: none; }
  80% { transform: translate(1px, .11em); text-shadow: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .brand:hover .mark { animation: wc-glitch-mark .38s steps(2, end) 1; }
  .brand:hover .brand-name { animation: wc-glitch-name .38s steps(2, end) 1; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .nav-link:not(.nav-soon)::after, .posts a::after { transition: opacity .12s; }
}


/* Reading-progress rail (article pages): hexagon per section, fixed down the right edge */
.pr { position: fixed; z-index: 30; right: 6px; top: 76px; bottom: calc(80px + var(--wc-off, 0px)); width: 14px; }   /* clear the back-to-top button and the clock */
.pr[hidden] { display: none; }
.pr-line { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--gold-faint, #2a2210); }
.pr-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: var(--accent); }
.pr-hx {
  position: absolute; left: 50%; width: 11px; height: 12px; padding: 0; border: 0; cursor: pointer; transform: translate(-50%, -50%);
  background: #2a2210; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.pr-hx::after { content: ""; position: absolute; inset: 2px; background: #000; clip-path: inherit; }
.pr-hx.on { background: var(--accent); }
.pr-hx.on::after { background: var(--accent); }
.pr-hx.cur { background: #ffd88a; }
.pr-hx.cur::after { background: #000; }
.pr-hx:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; clip-path: none; }
.pr-tip {
  display: none; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); white-space: nowrap; z-index: 1;
  padding: 5px 9px; background: #000; border: 1px solid var(--border); color: var(--text);
  font: 600 9px/1 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; pointer-events: none;
}
.pr-hx:hover .pr-tip, .pr-hx:focus-visible .pr-tip { display: block; }
.pr-hx.cur .pr-tip { color: var(--accent); }
@media (min-width: 1456px) { .pr { right: 31px; } }                              /* centred over the button and clock column */
@media (min-width: 1100px) and (max-width: 1455px) { .pr { right: 16px; } }
@media (max-width: 560px) { .pr { top: 114px; } }                              /* the phone header is two rows tall */
@media print { .pr { display: none !important; } }


/* ---------- Effects: amber selection, page-change wipe, 404 ---------- */
::selection { background: var(--accent); color: #000; }
::-moz-selection { background: var(--accent); color: #000; }

/* Page change: gold-edged scan wipe. Out: closes down over the old page. In: opens downward on the new one. */
html.fx-in::after, html.fx-out::after {
  content: ""; position: fixed; left: 0; right: 0; top: 0; z-index: 9999; pointer-events: none;
  background: #000;
}
html.fx-out::after { height: 0; border-bottom: 2px solid var(--accent); box-shadow: 0 6px 18px rgba(219, 164, 58, .35); animation: fx-out .09s steps(5, end) forwards; }
html.fx-in::after { bottom: 0; border-top: 2px solid var(--accent); box-shadow: 0 -6px 18px rgba(219, 164, 58, .35); animation: fx-in .11s steps(6, end) forwards; }
@keyframes fx-out { to { height: 100vh; } }
@keyframes fx-in { to { top: 100%; } }
@media (prefers-reduced-motion: reduce) { html.fx-in::after, html.fx-out::after { display: none; } }

/* 404: "signal lost" panel */
.lost { --c: 14px; position: relative; isolation: isolate; max-width: 640px; margin: 9vh auto 4vh; padding: 1px; background: var(--gold-dim, #5a4719);
  clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.lost::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: #000;
  clip-path: polygon(calc(var(--c) - .4px) 0, 100% 0, 100% calc(100% - var(--c) + .4px), calc(100% - var(--c) + .4px) 100%, 0 100%, 0 calc(var(--c) - .4px)); }
.lost-in { position: relative; padding: 34px 36px 32px; overflow: hidden; }
.lost-in::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(219, 164, 58, .04) 0 1px, transparent 1px 3px); }
.lost-code { margin: 0 0 14px; display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.lost-code i { width: 9px; height: 10px; background: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.lost-title { margin: 0 0 14px; font: 400 54px/1.05 var(--serif); letter-spacing: -1px; }
.lost-line { margin: 0 0 24px; max-width: 46ch; font-size: 14px; line-height: 1.6; color: var(--muted); }
.lost-line::after { content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 4px; vertical-align: -2px; background: var(--accent); animation: lost-blink 1.1s steps(2, start) infinite; }
@keyframes lost-blink { to { visibility: hidden; } }
.lost-read { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 26px; padding: 14px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 11px; }
.lost-read dt { font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.lost-read dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; letter-spacing: .4px; }
.lost-read dd.bad { color: var(--accent); }
.lost-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 0; }
.lost-actions .btn { padding: 8px 16px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.lost-link { font-size: 12px; font-weight: 500; color: var(--accent); }
.lost-link:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .lost-line::after { animation: none; } }
@media (max-width: 560px) { .lost-in { padding: 26px 22px 24px; } .lost-title { font-size: 40px; } }
@media print { .lost { display: none; } }


/* ---------- Tools (index and the time zone converter) ---------- */
.tool-lede { margin: 0; max-width: 60ch; font-size: 14px; line-height: 1.6; color: var(--muted); }
.tool .post-head { margin-bottom: 22px; }
.tz[hidden] { display: none; }
.tz { display: grid; gap: 22px; }
.tz-pair { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: stretch; }
.tz-card { --c: 14px; position: relative; isolation: isolate; min-width: 0; padding: 18px 22px 18px; }
.tz-card::before, .tz-card::after { content: ""; position: absolute; z-index: -1; }
.tz-card::before { inset: 0; background: var(--border); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.tz-card::after { inset: 1px; background: #000; clip-path: polygon(calc(var(--c) - .4px) 0, 100% 0, 100% calc(100% - var(--c) + .4px), calc(100% - var(--c) + .4px) 100%, 0 100%, 0 calc(var(--c) - .4px)); }
.tz-card:focus-within::before { background: #5a4719; }
.tz-tag { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.tz-tag i { width: 9px; height: 10px; background: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.tz-t, .tz-d {
  display: block; width: 100%; margin: 0; padding: 2px 0 8px; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; outline: 0; background: transparent; color: var(--text);
  font: 500 46px/1.1 var(--sans); letter-spacing: .4px; font-variant-numeric: tabular-nums;
}
.tz-d { font-size: 30px; padding-bottom: 12px; }
.tz-t:focus, .tz-d:focus { border-bottom-color: var(--accent); }
.tz-t.bad { border-bottom-color: #d9674a; color: var(--muted); }
.tz-big input[hidden] { display: none; }
.tz-city { position: relative; display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.tz-c { flex: 1; min-width: 0; margin: 0; padding: 8px 0; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; outline: 0; background: transparent; color: var(--text); font: 600 17px/1.2 var(--sans); }
.tz-c:focus { border-bottom-color: var(--accent); }
.tz-c::placeholder { color: #6b6455; font-weight: 400; }
.tz-abbr { flex: none; padding: 4px 8px; font: 600 11px/1 var(--sans); letter-spacing: 1.4px; color: var(--accent); border: 1px solid #5a4719; }
.tz-list { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 4px; list-style: none; max-height: 320px; overflow-y: auto; background: #000; border: 1px solid #5a4719; box-shadow: 0 12px 28px rgba(0, 0, 0, .7); }
.tz-list[hidden] { display: none; }
.tz-list li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 8px 10px; cursor: pointer; font-size: 14px; }
.tz-list li .n { font-weight: 500; }
.tz-list li .co { font-size: 11px; color: var(--muted); }
.tz-list li .ab { min-width: 40px; text-align: right; font-size: 11px; font-weight: 600; letter-spacing: 1.2px; color: var(--accent); }
.tz-list li[aria-selected="true"], .tz-list li[role="option"]:hover { background: #151109; }
.tz-list li.none { cursor: default; color: var(--muted); font-size: 12.5px; }
.tz-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 16px 0 0; font-size: 13px; color: var(--text); }
.tz-chip { padding: 3px 8px; font-size: 9px; font-weight: 600; letter-spacing: 1.3px; text-transform: uppercase; color: var(--accent); border: 1px solid #5a4719; }
.tz-off { margin: 6px 0 0; font-size: 11px; letter-spacing: .5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tz-swap {
  align-self: center; width: 44px; height: 50px; padding: 0; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--accent); color: #000;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.tz-swap svg { width: 20px; height: 20px; }
.tz-swap:hover { filter: brightness(1.1); }
.tz-swap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; clip-path: none; }
.tz-sum { margin: 0; text-align: center; font-size: 15px; line-height: 1.5; }
.tz-over { padding-top: 20px; border-top: 1px solid var(--border); }
.tz-h { margin: 0 0 14px; font-size: 10px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.tz-h span { margin-left: 10px; font-weight: 500; letter-spacing: 1px; color: #8a826f; }
.tz-row { display: grid; grid-template-columns: 104px 1fr; gap: 12px; align-items: center; margin-bottom: 8px; }
.tz-rl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--text); }
.tz-cells { position: relative; display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; }
.tz-cells .c { display: block; height: 26px; background: #0d0b06; overflow: hidden; }
.tz-cells .c.w { background: #2a2210; }
.tz-cells .c.x { background: var(--accent); }
.tz-cells .c b { display: block; padding: 0 0 0 3px; font: 500 9px/26px var(--sans); color: #8a826f; font-variant-numeric: tabular-nums; }
.tz-cells .c.x b { color: #000; }
.tz-cells .c.dw { box-shadow: inset 2px 0 0 var(--text); }
.tz-mark { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: #ffd88a; box-shadow: 0 0 8px rgba(219, 164, 58, .8); pointer-events: none; }
.tz-note { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--muted); }
.tz-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-top: 20px; border-top: 1px solid var(--border); }
.tz-seg { display: inline-flex; }
.tz-seg button, .tz-now { padding: 9px 14px; font: 600 10px/1 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); background: #0a0804; border: 1px solid var(--border); cursor: pointer; }
.tz-seg button + button { border-left: 0; }
.tz-seg button[aria-pressed="true"] { color: #000; background: var(--accent); border-color: var(--accent); }
.tz-now { color: var(--accent); border-color: #5a4719; background: none; }
.tz-seg button:hover:not([aria-pressed="true"]), .tz-now:hover { color: var(--text); background: var(--hover); }
.tz-seg button:focus-visible, .tz-now:focus-visible, .tz-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tz-copy { margin-left: auto; padding: 9px 16px; border: 0; cursor: pointer; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; }
@media (max-width: 720px) {
  .tz-pair { grid-template-columns: 1fr; gap: 10px; }
  .tz-swap { justify-self: center; transform: rotate(90deg); }
  .tz-t { font-size: 40px; }
  .tz-row { grid-template-columns: 70px 1fr; gap: 8px; margin-top: 18px; }
  .tz-cells .c { position: relative; overflow: visible; }
  .tz-cells .c b, .tz-cells .c.x b { position: absolute; left: 0; top: -14px; padding: 0; line-height: 12px; white-space: nowrap; color: #8a826f; }
  .tz-copy { margin-left: 0; }
}
@media print { .tz-list { display: none; } }


/* ---------- Tools index: module cards ---------- */
.tools-head { margin: 4px 0 8px; }
.tools-eyebrow { margin: 0 0 10px; display: flex; align-items: center; gap: 9px; font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); }
.tools-eyebrow i { width: 9px; height: 10px; background: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.tools-head .post-title { margin-bottom: 10px; }
.tools-status { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 10px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.tools-status b { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.mods { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mods li { min-width: 0; display: flex; }
.mod {
  --c: 16px; position: relative; isolation: isolate; flex: 1; display: flex; flex-direction: column; gap: 0; min-height: 292px; padding: 18px 20px 18px;
  color: var(--text);
}
.mod::before, .mod::after { content: ""; position: absolute; z-index: -1; }
.mod::before { inset: 0; background: var(--border); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); transition: background .15s; }
.mod::after { inset: 1px; background: #000 linear-gradient(to bottom, rgba(219, 164, 58, .05), transparent 46%);
  clip-path: polygon(calc(var(--c) - .4px) 0, 100% 0, 100% calc(100% - var(--c) + .4px), calc(100% - var(--c) + .4px) 100%, 0 100%, 0 calc(var(--c) - .4px)); }
a.mod:hover::before, a.mod:focus-visible::before { background: #5a4719; }
a.mod:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.mod-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 9px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.mod-state { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); }
.mod-state i { width: 5px; height: 5px; background: var(--accent); transform: rotate(45deg); box-shadow: 0 0 8px rgba(219, 164, 58, .7); }
.mod-icon { width: 56px; height: 60px; margin: 24px 0 18px; color: var(--accent); filter: drop-shadow(0 0 10px rgba(219, 164, 58, .25)); transition: filter .15s; }
a.mod:hover .mod-icon { filter: drop-shadow(0 0 12px rgba(219, 164, 58, .55)); }
.mod-name { font: 400 24px/1.15 var(--serif); letter-spacing: -.3px; }
.mod-desc { margin: 10px 0 20px; font-size: 13px; line-height: 1.55; color: var(--muted); }
.mod-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; }
.mod-kind { color: var(--muted); }
.mod-go { color: var(--accent); }
a.mod:hover .mod-go { color: #ffd88a; }
.mod-br { position: absolute; inset: 7px; pointer-events: none; opacity: 0; background: var(--brk); transition: opacity .15s; }
a.mod:hover .mod-br, a.mod:focus-visible .mod-br { opacity: 1; }
.mod.empty { min-height: 292px; }
.mod.empty::before { background: var(--rule); }
.mod.empty .mod-top, .mod.empty .mod-state { color: #6b6455; }
.mod.empty .mod-state i { background: transparent; border: 1px solid #5a4719; box-shadow: none; }
.mod.empty .mod-icon { color: #2c2515; filter: none; }
.mod.empty .mod-name { font-size: 16px; color: #6b6455; font-family: var(--sans); font-weight: 500; letter-spacing: .4px; }
@media (max-width: 900px) { .mods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mods { grid-template-columns: 1fr; gap: 16px; } .mod, .mod.empty { min-height: 0; } .mod.empty { padding-bottom: 20px; } }
@media (prefers-reduced-motion: reduce) { .mod::before, .mod-br, .mod-icon { transition: none; } }
@media print { .mods li[aria-hidden] { display: none; } }


/* ---------- Tools: citation formatter ---------- */
.ct[hidden] { display: none; }
.ct { display: grid; gap: 22px; }
.ct-panel { --c: 14px; position: relative; isolation: isolate; padding: 1px; }
.ct-panel::before, .ct-panel::after { content: ""; position: absolute; z-index: -1; }
.ct-panel::before { inset: 0; background: var(--border); clip-path: polygon(var(--c) 0, 100% 0, 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, 0 100%, 0 var(--c)); }
.ct-panel::after { inset: 1px; background: #000; clip-path: polygon(calc(var(--c) - .4px) 0, 100% 0, 100% calc(100% - var(--c) + .4px), calc(100% - var(--c) + .4px) 100%, 0 100%, 0 calc(var(--c) - .4px)); }
.ct-panel:focus-within::before { background: #3a2f14; }
.ct-in { position: relative; padding: 20px 22px 22px; display: grid; gap: 18px; min-width: 0; }
.ct-types { justify-self: start; }
.ct-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; }
.ct-f { min-width: 0; }
.ct-f[hidden], .ct-lt[hidden], .ct-lu[hidden] { display: none; }
.ct-l .ct-lt { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
.ct-in .tz-h { margin: 0; }
.ct-f.full { grid-column: 1 / -1; }
.ct-l { display: block; margin: 0 0 7px; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.ct-l span { margin-left: 8px; font-weight: 500; letter-spacing: .6px; text-transform: none; color: #8a826f; }
.ct-i { display: block; width: 100%; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 0; outline: 0; background: #050402; color: var(--text); font: 400 14px/1.4 var(--sans); resize: vertical; }
.ct-i:focus { border-color: var(--accent); }
.ct-i::placeholder { color: #5d5748; }
.ct-opts { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.ct-chk { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--text); cursor: pointer; }
.ct-chk input { accent-color: var(--accent); margin: 0; }
.ct-chk code, .ct-out { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; }
.ct-warn { margin: 0; min-height: 0; font-size: 12.5px; line-height: 1.5; color: var(--accent); }
.ct-warn:empty { display: none; }
.ct-prev { margin: 0; padding: 14px 16px; background: #050402; border: 1px solid var(--rule); font-size: 14.5px; line-height: 1.65; color: #d8d0bd; overflow-wrap: anywhere; }
.ct-prev em { font-style: italic; }
.ct-prev a, .ct-li a { color: var(--accent); text-decoration: none; }
.ct-prev a:hover, .ct-li a:hover { text-decoration: underline; }
.ct-empty { color: #6b6455; }
.ct-saves { margin: -6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.ct-saves a { color: var(--accent); font-weight: 500; }
.ct-saves a:hover { text-decoration: underline; }
.ct-saves[hidden] { display: none; }
.ct-mdh { margin-bottom: -6px; }
.ct-mdh span { margin-left: 8px; font-weight: 500; letter-spacing: 1px; color: #8a826f; }
.ct-out { display: block; width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 0; background: #050402; color: #cfc7b2; font-size: 12.5px; line-height: 1.6; resize: vertical; }
.ct-act { padding-top: 0; border-top: 0; }
.ct-act button:disabled { opacity: .4; cursor: not-allowed; }
.ct-link { margin-left: 10px; padding: 0; border: 0; background: none; color: var(--accent); font: 500 11px/1 var(--sans); letter-spacing: .6px; text-transform: none; cursor: pointer; }
.ct-link:hover { text-decoration: underline; }
.ct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ct-list li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.6; color: #d8d0bd; }
.ct-list li:first-child { border-top: 0; padding-top: 0; }
.ct-tg { font-weight: 600; font-size: 11px; letter-spacing: 1px; color: var(--accent); text-transform: uppercase; }
.ct-li { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 640px) { .ct-form { grid-template-columns: 1fr; } .ct-in { padding: 18px 16px 18px; } .ct-types { flex-wrap: wrap; } }
@media print { .ct { display: none; } }


/* Back-to-top: its own floating hexagon above the clock; appears after the reader has scrolled */
.to-top {
  position: fixed; z-index: 50; right: 16px; bottom: calc(16px + var(--wc-off, 0px)); width: 44px; height: 48px; padding: 0; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #000; background: var(--accent);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility 0s .15s, filter .12s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; transition: opacity .15s, transform .15s, filter .12s; }
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { filter: brightness(1.12); }
.to-top:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; clip-path: none; }
@media (max-width: 819px) { .to-top { right: 12px; bottom: 12px; width: 38px; height: 42px; } .to-top svg { width: 19px; height: 19px; } .pr { bottom: 68px; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
@media print { .to-top { display: none; } }

/* ---------- Print: a clean black-on-white page ---------- */
.print-url { display: none; }
@media print {
  @page { size: A4; margin: 20mm 18mm; }
  html, body { background: #fff !important; color: #000 !important; }
  body { font-size: 11pt; min-height: 0; display: block; }
  .wc, .nav, .crumbs, .footer-tag, .mark, .footer-mark, .btn { display: none !important; }
  * { -webkit-print-color-adjust: economy; }

  .site-header { position: static; border: 0; border-bottom: 1px solid #000; }
  .site-header .wrap { padding: 0 0 6pt; }
  .brand-name { color: #000; font-size: 18pt; transform: none; }
  .wrap { max-width: none; padding-left: 0; padding-right: 0; }
  main { padding: 14pt 0 0; }

  .post-title { color: #000; font-size: 26pt; line-height: 1.12; margin-bottom: 8pt; }
  .meta { color: #333; }
  .meta strong { color: #000; }
  .badge { border: 1px solid #000; color: #000; background: none; }
  .tags li { border: 1px solid #888; color: #222; background: none; }
  .print-url { display: block; margin: 8pt 0 0; font-size: 9pt; color: #444; word-break: break-all; }

  .post-body { font-family: var(--serif); font-size: 11.5pt; line-height: 1.55; color: #000; }
  .post-body p, .post-body li { orphans: 3; widows: 3; }
  .post-body blockquote { border-left: 2pt solid #000; color: #000; break-inside: avoid-page; }
  .post-body strong { color: #000; }
  .post-body a, .footnotes a, .post a { color: #000; text-decoration: underline; }
  .post-body ul li::before { color: #000; }
  sup.fn a { text-decoration: none; }

  .footnotes { border-top: 1px solid #000; margin-top: 18pt; break-inside: auto; }
  .footnotes h2 { color: #333; }
  .footnotes li { color: #000; font-size: 9.5pt; line-height: 1.4; break-inside: avoid; text-align: left; }
  .footnotes .back { display: none; }
  /* shortened links: print the whole address instead of the abbreviated text */
  a.short { font-size: 0; }
  a.short::after { content: attr(href); font-size: 9pt; word-break: break-all; }

  .postscript { color: #333; border-top: 1px solid #999; margin-top: 18pt; break-inside: avoid; }

  .site-footer { border-top: 1px solid #000; margin-top: 18pt; break-inside: avoid; }
  .footer-row { padding: 6pt 0 2pt; color: #000; }
  .footer-brand { color: #000; font-size: 11pt; }
  .site-footer a { color: #000; text-decoration: underline; }
  .disclosure { color: #333; padding: 0 0 0; font-size: 6.5pt; line-height: 1.4; }
}

/* Print: lists and the Colophon (found in review: gold text and a screen-sized top margin carried over) */
@media print {
  .list-head h1 { color: #333; }
  .list-head a, .posts a, .go { color: #000; }
  .when { color: #333; }
  .posts { border-color: #888; }
  .posts li + li { border-top-color: #bbb; }
  .quote-page { padding: 24pt 0 0; }
  .quote-page blockquote { color: #000; }
  .quote-page blockquote p:last-child, .quote-page blockquote p:last-child strong, .quote-page blockquote p:last-child em { color: #333; }
}

@media print {
  .btn, .badge, .tags li, .posts, .badge::before, .tags li::before, .posts::before { clip-path: none; }
  .badge::before, .tags li::before, .posts::before, .footnotes::before, .nav-link::after, .posts a::after { display: none; }
  .badge { background: none; border: 1px solid #000; padding: 2px 10px; }
  .tags li { background: none; border: 1px solid #888; padding: 4px 10px; }
  .posts { background: none; padding: 0; }
  .post-body ul li::before { content: "\2013"; background: none; clip-path: none; width: auto; height: auto; top: 0; left: 0; }
}
