@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/barlow-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/barlow-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/barlow-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/barlow-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Big Shoulders Text';
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url(../fonts/big-shoulders-text-700-900-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* SolidsWorks.com v3 - skeleton C (quick answers). Red diagonal slab over a graphite studio photo,
   warm light ground below, flat ink type, red only in thick rules and link underlines. */

:root {
  --red: #CF2620;
  --slab: #CF2620;
  --slab-edge: #CF2620;
  --wedge: #1E2126;
  --night: #1E2126;
  --ground: #EEEDE8;
  --paper: #FFFFFF;
  --ink: #12151A;
  --text: #3D3E3B;
  --muted: #565653;
  --rule: #CF2620;
  --date: #B3211B;
  --head-display: #12151A;
  --topic: #12151A;
  --line: rgba(18, 21, 26, .18);
  --focus: #12151A;
  --display: var(--gh-font-heading, "Big Shoulders Text", "Barlow", "Arial Narrow", sans-serif);
  --body: var(--gh-font-body, "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gut: clamp(16px, 4vw, 64px);
  --head-h: 88px;
  --slant: skewX(-9deg);
}

/* scheme 2: the page below the hero turns graphite, light ink, red rules */
.scheme-night {
  --ground: #17191D;
  --paper: #23262B;
  --ink: #F2F0EB;
  --text: #C9C7C1;
  --muted: #A9A7A1;
  --rule: #E0342C;
  --date: #F2685F;
  --head-display: #F2F0EB;
  --topic: #F2F0EB;
  --line: rgba(242, 240, 235, .2);
  --focus: #F2F0EB;
  --wedge: #0E1013;
}

/* scheme 3: graphite slab with a red edge, red headings on the warm ground */
.scheme-steel {
  --slab: #2B2D31;
  --slab-edge: #CF2620;
  --wedge: #CF2620;
  --ground: #F1F0EC;
  --head-display: #B3211B;
  --topic: #B3211B;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 18px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.site-head :focus-visible, .hero :focus-visible, .post-head :focus-visible, .tag-head :focus-visible,
.list-head :focus-visible, .error-page :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: #fff; color: #12151A; padding: 10px 14px; font-weight: 600; }
.skip:focus { left: 16px; }
.icon { display: block; flex: none; }

/* ------------------------------------------------------------------ header */
.site-head { position: absolute; top: 0; left: 0; right: 0; z-index: 30; color: #fff; }
.head-inner { display: flex; align-items: center; gap: 24px; height: var(--head-h); padding: 0 var(--gut); }
.brand {
  display: inline-block; margin-right: auto; color: #fff; text-decoration: none; white-space: nowrap;
  font: 900 clamp(27px, 2.9vw, 42px)/1 var(--display); letter-spacing: .01em; transform: var(--slant);
}
.brand-logo { display: block; height: 40px; width: auto; }
.site-nav .nav { display: flex; gap: clamp(16px, 1.7vw, 30px); list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 6px 0; color: #fff; text-decoration: none; white-space: nowrap;
  font: 500 17px/1.2 var(--body); border-bottom: 2px solid transparent;
}
.site-nav a:hover, .site-nav .nav-current a { border-bottom-color: currentColor; }
.search-btn, .menu-btn {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0 -10px 0 0;
  background: none; border: 0; color: #fff; cursor: pointer;
}
.search-btn .icon { width: 22px; height: 22px; }
.menu-btn { display: none; gap: 5px; align-content: center; }
.menu-btn span { display: block; width: 26px; height: 2.5px; background: currentColor; }

@media (max-width: 1180px) {
  .menu-btn { display: grid; }
  .search-btn { margin-right: 0; }
  .site-nav { display: none; }
  .nav-open .site-nav {
    display: block; position: absolute; top: var(--head-h); left: 0; right: 0;
    background: var(--night); padding: 8px var(--gut) 22px; border-top: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  }
  .nav-open .site-nav .nav { flex-direction: column; gap: 0; }
  .nav-open .site-nav a { padding: 12px 0; font-size: 20px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
}
@media (max-width: 1100px) { :root { --head-h: 72px; } }
@media (max-width: 760px) { :root { --head-h: 64px; } }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 45vw, 680px); background: var(--night);
}
.hero-photo { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; display: block; }
.axis {
  position: absolute; left: 40%; right: 0; top: 56%; height: 1px; opacity: .42;
  background: repeating-linear-gradient(90deg, #fff 0 34px, transparent 34px 42px, #fff 42px 46px, transparent 46px 54px);
}
.hero-slab { position: absolute; inset: 0; z-index: -1; }
.hero-slab::before, .hero-slab::after { content: ""; position: absolute; inset: 0; }
.hero-slab::before { background: var(--slab-edge); clip-path: polygon(0 0, calc(49% + 12px) 0, calc(33% + 12px) 100%, 0 100%); }
.hero-slab::after { background: var(--slab); clip-path: polygon(0 0, 49% 0, 33% 100%, 0 100%); }
.hero-copy { position: relative; padding: calc(var(--head-h) + 22px) 0 52px var(--gut); width: min(44%, 640px); }
.hero h1 { margin: 0; color: #fff; font-weight: 400; }
.h1-display { display: block; font: 900 clamp(60px, 8.9vw, 128px)/.86 var(--display); letter-spacing: .005em; }
.h1-display span { display: block; transform: var(--slant); transform-origin: 0 100%; }
.h1-lead { display: block; max-width: 470px; margin-top: 22px; font: 400 clamp(17px, 1.53vw, 22px)/1.4 var(--body); }
.hero-search {
  display: flex; align-items: center; gap: 14px; width: clamp(300px, 36vw, 520px); height: 56px; margin-top: 28px;
  padding: 0 20px; border: 0; border-radius: 12px; background: #fff; color: #5E5F5B; cursor: pointer;
  font: 400 18px/1 var(--body); text-align: left; box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}
.hero-search .icon { width: 22px; height: 22px; color: #12151A; }
.hero-search:hover span { color: #12151A; }

@media (max-width: 1100px) {
  .hero-slab::before { clip-path: polygon(0 0, calc(56% + 10px) 0, calc(40% + 10px) 100%, 0 100%); }
  .hero-slab::after { clip-path: polygon(0 0, 56% 0, 40% 100%, 0 100%); }
  .hero-copy { width: 54%; }
  .h1-lead { max-width: min(470px, 38vw); }
  .hero-search { width: clamp(300px, 46vw, 520px); }
  .axis { left: 47%; }
}
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column; min-height: 0; background: var(--slab); }
  .hero-slab { display: none; }
  .hero-copy { order: 1; width: auto; padding: calc(var(--head-h) + 18px) var(--gut) 30px; }
  .h1-display { font-size: clamp(54px, 17vw, 78px); }
  .h1-lead { font-size: 18px; margin-top: 16px; max-width: none; }
  .hero-search { width: 100%; height: 54px; margin-top: 22px; font-size: 17px; }
  .hero-photo { position: relative; z-index: 0; order: 2; height: 250px; margin-top: -1px;
    clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%); background: var(--night); }
  .hero-img { object-position: 97% 50%; }
  .axis { left: 0; top: 60%; }
}

/* ------------------------------------------------------------------ quick answers */
.answers { padding: 44px var(--gut) 30px; }
.answers h2, .related h2, .hubs h2 {
  display: inline-block; margin: 0 0 14px; color: var(--head-display);
  font: 900 clamp(44px, 5vw, 72px)/1 var(--display); transform: var(--slant); transform-origin: 0 100%;
}
.answer-list, .shot-list, .rows { list-style: none; margin: 0; padding: 0; }
.answer { padding: 18px 0 21px; border-top: 4px solid var(--rule); }
.answer:first-child { border-top: 0; padding-top: 6px; }
.answer h3 { margin: 0; font: 800 clamp(26px, 2.5vw, 36px)/1.1 var(--display); letter-spacing: .005em; }
.answer h3 a, .row h2 a, .row h3 a, .gh-content a, .error-hubs a {
  color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule);
  text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.answer h3 a:hover, .row h2 a:hover, .row h3 a:hover, .gh-content a:hover { text-decoration-thickness: 4px; }
.answer p { margin: 8px 0 0; color: var(--text); font: 400 clamp(17px, 1.32vw, 19px)/1.45 var(--body); }
.answer.lead { padding-bottom: 26px; }
.answer.lead h3 { font-size: clamp(36px, 3.7vw, 54px); line-height: 1.02; max-width: 1080px; }
.answer.lead p { max-width: 760px; margin-top: 12px; font-size: clamp(18px, 1.5vw, 21px); }
/* feed date: a solid red tab hanging from the thick rule, slanted on its right edge, hub name beside it */
.answer:not(.lead) { padding-top: 0; }
.answer .stamp + h3 { margin-top: 12px; }
.stamp { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0; }
.answer .stamp, .answer p.stamp { margin: 0; }
.tab {
  display: inline-block; padding: 6px 17px 7px 10px; background: var(--red); color: #fff;
  font: 600 15px/1 var(--body); letter-spacing: .01em; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}
.stamp-hub { color: var(--muted); font: 500 15.5px/1.3 var(--body); text-decoration: none; }
.stamp-hub:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }

/* ------------------------------------------------------------------ photo row (heights differ, bottoms align) */
.shots { padding: 34px var(--gut) 8px; }
.shot-list { --ph: min(33.4vw, 482px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 1.7vw; }
.shot-ph { display: block; height: var(--ph); overflow: hidden; background: #2B2D31; }
.shot:nth-child(1) .shot-ph { height: calc(var(--ph) * .975); margin-top: calc(var(--ph) * .025); }
.shot:nth-child(2) .shot-ph { height: calc(var(--ph) * .915); margin-top: calc(var(--ph) * .085); }
.shot:nth-child(4) .shot-ph { height: calc(var(--ph) * .945); margin-top: calc(var(--ph) * .055); }
.shot-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot h3 { margin: 14px 0 0; font: 800 clamp(21px, 1.67vw, 24px)/1.15 var(--display); }
.shot .stamp + h3 { margin-top: 10px; }
.shot h3 a { color: var(--ink); text-decoration: none; }
.shot h3 a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.shot p { margin: 6px 0 0; color: var(--text); font: 400 16.5px/1.45 var(--body); }
.shot p.stamp { margin: 0; }
.older { margin: 30px 0 0; text-align: right; }
.older a {
  display: inline-block; color: var(--head-display); font: 800 clamp(30px, 2.8vw, 40px)/1 var(--display);
  transform: var(--slant); transform-origin: 0 100%;
  text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 4px; text-underline-offset: 7px;
}
.older a:hover { text-decoration-thickness: 6px; }
@media (max-width: 760px) {
  .shots { padding-top: 26px; }
  .shot-list { --ph: 66vw; grid-template-columns: repeat(2, 1fr); gap: 28px 14px; }
  .shot:nth-child(3) .shot-ph { height: calc(var(--ph) * .93); margin-top: calc(var(--ph) * .07); }
  .shot:nth-child(4) .shot-ph { height: var(--ph); margin-top: 0; }
  .shot h3 { font-size: 20px; }
  .shot p { font-size: 15.5px; }
  .tab { font-size: 14px; padding-right: 15px; }
  .older { margin-top: 26px; text-align: left; }
}

/* ------------------------------------------------------------------ guides by topic
   four columns over two tiers; column tops climb to the right along the hero slab's diagonal;
   slanted hub names over a red dash-dot centre-line; titles run in after slanted red dates */
.hubs { padding: 64px var(--gut) 40px; }
.hubs h2 { margin-bottom: 0; }
.hub-tier {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 clamp(26px, 2.8vw, 48px); align-items: start; padding: 30px 0 44px;
}
.hub-tier + .hub-tier { padding-top: 40px; }
.hub-tier + .hub-tier::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; opacity: .55;
  background: repeating-linear-gradient(90deg, var(--ink) 0 34px, transparent 34px 42px, var(--ink) 42px 46px, transparent 46px 54px);
}
.hub:nth-child(4n+1) { margin-top: 81px; }
.hub:nth-child(4n+2) { margin-top: 54px; }
.hub:nth-child(4n+3) { margin-top: 27px; }
.hub h3 { margin: 0; font: 800 clamp(30px, 2.65vw, 40px)/1 var(--display); letter-spacing: .004em; }
.hub h3 a {
  display: inline-block; color: var(--head-display); text-decoration: none;
  transform: var(--slant); transform-origin: 0 100%;
}
.hub h3 a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.hub h3::after {
  content: ""; display: block; height: 2px; margin-top: 14px;
  background: repeating-linear-gradient(90deg, var(--rule) 0 30px, transparent 30px 37px, var(--rule) 37px 42px, transparent 42px 49px);
}
.hub-line { margin: 12px 0 0; color: var(--text); font: 400 17px/1.45 var(--body); }
.hub-titles { list-style: none; margin: 14px 0 0; padding: 0; }
.hub-titles li { margin: 0 0 11px; color: var(--ink); font: 500 17px/1.38 var(--body); }
.hub-titles time {
  display: inline-block; margin-right: 6px; color: var(--date); white-space: nowrap;
  font: 700 18px/1 var(--display); letter-spacing: .01em; transform: var(--slant);
}
.hub-titles a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.hub-titles a:hover { text-decoration-color: var(--rule); }
.hub-tasks li { color: var(--text); font-weight: 400; }
.hub-note { margin: 2px 0 0; color: var(--text); font: 400 16px/1.45 var(--body); }
.hub-note a { color: var(--ink); text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (max-width: 1100px) {
  .hub-tier { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .hub:nth-child(odd) { margin-top: 30px; }
  .hub:nth-child(even) { margin-top: 0; }
}
@media (max-width: 760px) {
  .hubs { padding-top: 46px; }
  .hub-tier { grid-template-columns: 1fr; row-gap: 32px; padding: 24px 0 34px; }
  .hub-tier + .hub-tier { padding-top: 32px; }
  .hub:nth-child(n) { margin-top: 0; }
  .hub h3 { font-size: 34px; }
}

/* ------------------------------------------------------------------ other topics (tag pages) */
.other-topics { padding: 6px 0 10px; }
.other-topics p { margin: 0; color: var(--ink); font: 500 17px/1.7 var(--body); }
.ot-label { margin-right: 12px; font: 800 22px/1 var(--display); color: var(--head-display); display: inline-block; transform: var(--slant); }
.ot { white-space: nowrap; }
.ot + .ot::before { content: "/"; display: inline-block; margin: 0 10px 0 4px; color: var(--rule); font: 800 20px/1 var(--display); transform: var(--slant); }
.ot a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* ------------------------------------------------------------------ footer */
.site-foot { padding: 12px var(--gut) 34px; }
.foot-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 28px; align-items: baseline;
  border-top: 2px solid var(--rule); padding-top: 18px;
}
.foot-line { margin: 0; color: var(--muted); font: 400 15px/1.5 var(--body); }
.foot-nav .nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.foot-nav a { color: var(--ink); font: 500 15px/1.5 var(--body); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-decoration-color: var(--rule); text-decoration-thickness: 2px; }
.foot-tm { grid-column: 1 / -1; margin: 0; color: var(--muted); font: 400 13.5px/1.5 var(--body); }
@media (max-width: 760px) { .foot-inner { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ bands shared by post, tag, list, error */
.post-head, .list-head {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--slab);
  padding: calc(var(--head-h) + 40px) var(--gut) calc(56px + 3vw);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 3vw));
}
.post-head::after, .list-head::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wedge);
  clip-path: polygon(84% 0, 100% 0, 100% 100%, 76% 100%);
}
.post-head::before, .list-head::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--head-h) + 8px); height: 1px; opacity: .4;
  background: repeating-linear-gradient(90deg, #fff 0 34px, transparent 34px 42px, #fff 42px 46px, transparent 46px 54px);
}
.post-head > *, .list-head > * { position: relative; max-width: 940px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font: 400 15px/1.4 var(--body); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .75; }
.crumbs a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current] { opacity: .9; }
.post-head h1, .list-head h1, .tag-panel h1 {
  margin: 0; font: 900 clamp(40px, 5.4vw, 80px)/.98 var(--display); letter-spacing: .004em;
}
.post-dek, .list-head p, .tag-panel p { max-width: 720px; margin: 16px 0 0; font: 400 clamp(18px, 1.5vw, 22px)/1.45 var(--body); }
.list-head a { color: #fff; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 22px; font: 400 15.5px/1.4 var(--body); }
.byline a { color: #fff; font-weight: 600; }
.band-spacer { height: calc(var(--head-h) + 12px); background: var(--slab); }
.list-head .avatar { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; margin-bottom: 16px; }

/* ------------------------------------------------------------------ post */
.post-feature { margin: calc(-3vw - 2px) 0 0; position: relative; z-index: -1; }
.post-feature img { display: block; width: 100%; height: auto; max-height: 76vh; object-fit: cover; }
.post-feature figcaption, .gh-content figcaption { padding: 10px var(--gut) 0; color: var(--muted); font: 400 15px/1.45 var(--body); }
.gh-content figcaption { padding: 10px 0 0; }
.post-body { width: min(100% - 2 * var(--gut), 740px); margin: 0 auto; padding: 38px 0 18px; }
.gh-content { font: 400 19px/1.65 var(--body); color: var(--ink); }
.gh-content > * { margin: 0 0 1.1em; }
.gh-content h2 { margin: 1.7em 0 .5em; font: 800 clamp(30px, 2.6vw, 38px)/1.1 var(--display); }
.gh-content h3 { margin: 1.5em 0 .4em; font: 800 clamp(24px, 2vw, 28px)/1.15 var(--display); }
.gh-content ol, .gh-content ul { padding-left: 1.3em; }
.gh-content li { margin: .35em 0; }
.gh-content li::marker { color: var(--rule); font-weight: 700; }
.gh-content blockquote { margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 6px solid var(--rule); font-size: 21px; }
.gh-content hr { border: 0; border-top: 4px solid var(--rule); margin: 2em 0; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.45; display: block; overflow-x: auto; }
.gh-content th { text-align: left; padding: 10px 14px 10px 0; border-bottom: 4px solid var(--rule); font-weight: 700; }
.gh-content td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
code, kbd, pre, samp { font-family: var(--mono); }
.gh-content code { font-size: .86em; padding: .1em .3em; background: var(--line); }
kbd { display: inline-block; padding: .05em .45em; font-size: .85em; line-height: 1.4; background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 4px; }
.gh-content pre { padding: 18px 20px; overflow-x: auto; background: #1E2126; color: #EEEDE8; font-size: 15px; line-height: 1.55; }
.gh-content pre code { padding: 0; background: none; }
.gh-content figure { margin: 2em 0; }
.gh-content img { display: block; width: 100%; height: auto; }
.kg-width-wide { position: relative; width: min(1120px, calc(100vw - 2 * var(--gut))); left: 50%; transform: translateX(-50%); }
.kg-width-full { width: auto; margin-left: calc(50% - 50vw) !important; margin-right: calc(50% - 50vw) !important; }
.kg-width-full figcaption { padding-left: var(--gut); }
.kg-callout-card { display: flex; gap: 12px; padding: 18px 22px; background: var(--paper); border-left: 6px solid var(--rule); }
.kg-callout-emoji { font-size: 22px; }
.kg-callout-text { font-size: 18px; }
.kg-bookmark-card a { display: block; padding: 16px 18px; background: var(--paper); text-decoration: none; }
.kg-bookmark-thumbnail, .kg-bookmark-icon { display: none; }
.kg-gallery-row { display: flex; gap: 10px; }
.kg-gallery-image img { height: 100%; object-fit: cover; }
.kg-embed-card iframe, .kg-video-card video { max-width: 100%; }
.kg-button-card a, .kg-btn { display: inline-block; padding: 12px 20px; background: var(--ink); color: var(--ground); text-decoration: none; font-weight: 600; }
.post-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 10px; }
.post-tags a { padding: 5px 12px; border: 2px solid var(--ink); color: var(--ink); font: 600 15px/1.3 var(--body); text-decoration: none; }
.post-tags a:hover { background: var(--ink); color: var(--ground); }
.bio { display: grid; grid-template-columns: 72px 1fr; gap: 18px; margin-top: 26px; padding-top: 22px; border-top: 4px solid var(--rule); }
.bio-mark { display: block; width: 72px; height: 72px; background: var(--slab); clip-path: polygon(0 0, 100% 0, 76% 100%, 0 100%); }
.bio-mark i { display: none; }
.bio-img { width: 72px; height: 72px; object-fit: cover; }
.bio-name { margin: 0 0 4px; font: 800 24px/1.1 var(--display); }
.bio-name a { color: var(--ink); text-decoration: none; }
.bio p { margin: 0; color: var(--text); font-size: 17px; line-height: 1.5; }

/* ------------------------------------------------------------------ rows: related, tag, index, author */
.related { padding: 34px var(--gut) 34px; }
.related-inner, .list-body { width: min(100%, 1180px); margin: 0 auto; }
.list-body { width: min(100% - 2 * var(--gut), 1180px); padding: 30px 0 24px; }
.row { display: grid; grid-template-columns: 240px 1fr; gap: 26px; align-items: start; padding: 20px 0 22px; border-top: 4px solid var(--rule); }
.row:first-child { border-top: 0; }
.row.no-image { grid-template-columns: 1fr; }
.row-ph img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.row-tag { color: var(--text); font: 600 15px/1.3 var(--body); text-decoration: none; }
.row h2, .row h3 { margin: 6px 0 6px; font: 800 clamp(24px, 2.3vw, 32px)/1.1 var(--display); }
.row-excerpt { margin: 0 0 6px; color: var(--text); font-size: 18px; line-height: 1.5; }
.row-meta { margin: 0; color: var(--muted); font-size: 15px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0; border-top: 2px solid var(--rule); font-size: 16px; }
.pagination a { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .row { grid-template-columns: 32vw 1fr; gap: 14px; }
  .row h2, .row h3 { font-size: 22px; }
  .row-excerpt { font-size: 16px; }
}

/* ------------------------------------------------------------------ tag cover band */
.tag-head { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: flex-end; min-height: clamp(440px, 36vw, 540px); background: var(--night); color: #fff; }
.tag-cover { position: absolute; inset: 0; margin: 0; }
.tag-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* top scrim: the transparent header (white nav, search, burger) stays legible over light tag photos */
.tag-cover::after, .error-photo::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: clamp(150px, 14vw, 210px); pointer-events: none;
  background: linear-gradient(rgba(14, 16, 19, .86), rgba(14, 16, 19, .66) 45%, rgba(14, 16, 19, 0));
}
.tag-head::after { content: ""; position: absolute; inset: 0; background: var(--slab); clip-path: polygon(0 0, 60% 0, 47% 100%, 0 100%); }
.tag-panel { position: relative; z-index: 1; width: min(44%, 640px); padding: calc(var(--head-h) + 40px) 0 52px var(--gut); }
.tag-panel h1 { display: inline-block; font-size: clamp(48px, 6vw, 92px); transform: var(--slant); transform-origin: 0 100%; }

/* ------------------------------------------------------------------ error */
.error-page { position: relative; isolation: isolate; overflow: hidden; min-height: 680px; background: var(--night); color: #fff; }
.error-photo { position: absolute; inset: 0; margin: 0; z-index: -2; }
.error-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.error-page::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--slab); clip-path: polygon(0 0, 58% 0, 44% 100%, 0 100%); }
.error-panel { width: min(46%, 600px); padding: calc(var(--head-h) + 30px) 0 10px var(--gut); }
.error-panel h1 { margin: 0; font: 900 clamp(110px, 13vw, 190px)/.9 var(--display); transform: var(--slant); transform-origin: 0 100%; }
.error-panel p { font-size: 20px; margin: 14px 0 0; }
.error-panel a { color: #fff; }
.find { display: flex; align-items: center; gap: 12px; width: min(100%, 440px); height: 54px; margin-top: 22px; padding: 0 18px; border: 0; border-radius: 12px; background: #fff; color: #12151A; font: 400 17px/1 var(--body); cursor: pointer; }
.error-hubs { width: min(44%, 580px); padding: 22px 0 48px var(--gut); }
.error-hubs h2 { margin: 0 0 8px; font: 800 26px/1.1 var(--display); }
.error-hubs ul { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.error-hubs a { color: #fff; text-decoration-color: rgba(255, 255, 255, .7); }

@media (max-width: 760px) {
  .post-head, .list-head { padding-top: calc(var(--head-h) + 26px); }
  .post-head::after, .list-head::after { clip-path: polygon(90% 0, 100% 0, 100% 100%, 82% 100%); }
  .tag-head { flex-direction: column; align-items: stretch; background: var(--slab); min-height: 0; }
  .tag-head::after { display: none; }
  .tag-panel { order: 1; width: auto; padding: calc(var(--head-h) + 24px) var(--gut) 28px; }
  .tag-cover::after { display: none; }
  .tag-cover { position: relative; order: 2; height: 210px; clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%); }
  .error-page::before { clip-path: none; }
  .error-photo { opacity: .0; }
  .error-panel, .error-hubs { width: auto; padding-right: var(--gut); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Published topic availability: labels stay visible without dead links. */
a[data-empty-topic] { cursor: default; text-decoration: none; }

/* hide-empty: topics without a published guide are not rendered.
   Hub tiers with fewer than four hubs (desktop): the hubs share the tier width and the column tops keep climbing to the
   right at the same slope, the last hub level with the tier top (fallback without :has: three hubs keep a 4-column
   grid). A tier without hubs is hidden. Quick answers: when no lead card is rendered, the first dated answer keeps the
   thick rule its red date tab hangs from. */
@media (min-width: 1101px) {
  .hub-tier > .hub:first-child:nth-last-child(2), .hub-tier > .hub:first-child:nth-last-child(2) ~ .hub,
  .hub-tier > .hub:only-child { grid-column: span 2; }
  .hub-tier:has(> .hub:first-child:nth-last-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hub-tier > .hub:first-child:nth-last-child(3) { margin-top: 72px; }
  .hub-tier > .hub:first-child:nth-last-child(3) + .hub { margin-top: 36px; }
  .hub-tier > .hub:first-child:nth-last-child(2) { margin-top: 54px; }
  .hub-tier > .hub:last-child { margin-top: 0; }
}
.hub-tier:not(:has(> .hub)) { display: none; }
.answer-list > .answer:not(.lead):first-child { border-top: 4px solid var(--rule); }
