/* fieldnotes-gimp 3.1.0 - newsroom layout for TheGIMP.net */
@font-face {
  font-family: 'Source Sans 3';
  font-style: italic;
  font-weight: 400;
  font-display: optional;
  src: url(../fonts/source-sans-3-400-italic.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: 'Source Sans 3';
  font-style: normal;
  font-weight: 400 700;
  font-display: optional;
  src: url(../fonts/source-sans-3-400-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: 'Zilla Slab';
  font-style: normal;
  font-weight: 600;
  font-display: optional;
  src: url(../fonts/zilla-slab-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: 'Zilla Slab';
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url(../fonts/zilla-slab-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;
}

:root {
  --paper: #F4EDE3;
  --paper-2: #EBE2D5;
  --ink: #1A120B;
  --text: #2A2622;
  --muted: #3D3833;
  --link: #9A4A10;
  --rule: #DBD4CA;
  --rule-strong: #79726A;
  --colrule: #C7C0B6;
  --ticker: #FA9332;
  --ticker-ink: #2A1A0A;
  --accent: #D46C16;
  --on-accent: #FFFFFF;
  --focus: #1A120B;
  --sheet: #FBF7F1;
  --blank: #CFC9C1;
  --checker-a: #F1E9DE;
  --checker-b: #DFD5C8;
  --ramp-1: #A0450F;
  --ramp-2: #7A5410;
  --ramp-3: #8E3A2A;
  --ramp-4: #5E4B3B;
  --ramp-5: #3F2A1C;
  --on-ramp: #FFFFFF;
  --wrap: 1360px;
  --gut: 16px;
  --slab: var(--gh-font-heading, 'Zilla Slab', Rockwell, 'Roboto Slab', Georgia, serif);
  --sans: var(--gh-font-body, 'Source Sans 3', 'Segoe UI', system-ui, -apple-system, sans-serif);
}
.scheme-graphite {
  --paper: #221D19;
  --paper-2: #2D2722;
  --ink: #F6EEE3;
  --text: #E8DFD3;
  --muted: #C2B6A8;
  --link: #F5A65B;
  --rule: #4A413A;
  --rule-strong: #8A7E72;
  --colrule: #5A5048;
  --ticker: #F08A24;
  --ticker-ink: #1C140E;
  --accent: #F08A24;
  --on-accent: #1C140E;
  --focus: #F5A65B;
  --sheet: #3A332D;
  --blank: #5B534C;
  --checker-a: #2A241F;
  --checker-b: #322B25;
  --ramp-1: #B4561A;
  --ramp-2: #8A6420;
  --ramp-3: #A2463A;
  --ramp-4: #6E5A48;
  --ramp-5: #8C4A26;
  --on-ramp: #FFFFFF;
}
.scheme-umber {
  --paper: #5E4B3B;
  --paper-2: #6B5645;
  --ink: #FBF3E8;
  --text: #F1E7DA;
  --muted: #E0D2C1;
  --link: #FFD3A6;
  --rule: #7D6855;
  --rule-strong: #CDBBA6;
  --colrule: #8A7461;
  --ticker: #F08A24;
  --ticker-ink: #1C140E;
  --accent: #F08A24;
  --on-accent: #1C140E;
  --focus: #FFD3A6;
  --sheet: #7A6553;
  --blank: #9C8A79;
  --checker-a: #544334;
  --checker-b: #4A3B2E;
  --ramp-1: #A0450F;
  --ramp-2: #7A5410;
  --ramp-3: #8E3A2A;
  --ramp-4: #3B2E24;
  --ramp-5: #2E1F14;
  --on-ramp: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.0625rem/1.55 var(--sans); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--link); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--slab); color: var(--ink); margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
.label, .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ticker + header */
.ticker { background: var(--ticker); color: var(--ticker-ink); font: 600 0.875rem/1.3 var(--sans); }
.ticker-list { display: flex; gap: 0; padding: 10px 0; overflow: hidden; white-space: nowrap; }
.ticker-list li { display: flex; min-width: 0; flex: 0 1 auto; }
.ticker-list a { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ticker-list li + li::before { content: "\2022"; margin: 0 14px; flex: none; }
.ticker-list li:nth-child(n+4) { display: none; }
@media (max-width: 699px) { .ticker-list li:nth-child(n+2) { display: none; } }
.ticker a { text-decoration: none; }
.ticker a:hover { color: inherit; text-decoration: underline; }
.mast-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; padding: 14px 0; border-bottom: 1px solid var(--rule-strong); }
.wordmark { font: 700 2rem/1 var(--slab); letter-spacing: -0.025em; color: var(--ink); text-decoration: none; margin-right: auto; }
.wordmark img { max-height: 44px; width: auto; }
.mast-tools { display: flex; align-items: center; gap: 4px; }
.search-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px; color: var(--ink); }
.search-btn svg { width: 22px; height: 22px; }
.menu-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 4px 10px 10px; font: 600 1rem/1 var(--sans); color: var(--ink); }
.menu-bars { display: inline-grid; gap: 5px; width: 20px; }
.menu-bars span { height: 2px; background: currentColor; transition: transform .2s; }
.masthead.is-open .menu-bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.masthead.is-open .menu-bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.site-nav { display: none; order: 3; flex-basis: 100%; }
.masthead.is-open .site-nav { display: block; }
.site-nav .nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rule); text-decoration: none; font: 500 1.25rem/1.2 var(--slab); color: var(--ink); }
.site-nav .nav { padding: 4px 0 12px; }
.site-nav .nav-current a { color: var(--link); }
.site-nav .topic-index-link { display: block; padding: 12px 0; margin-bottom: 12px; border-bottom: 1px solid var(--rule); text-decoration: none; font: 500 1.25rem/1.2 var(--slab); color: var(--ink); }
.site-nav .topic-index-link:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 1100px) {
  .menu-btn { display: none; }
  .wordmark { font-size: 3.25rem; margin-right: 0; }
  .mast-row { padding-top: 20px; padding-bottom: 18px; }
  .site-nav, .masthead.is-open .site-nav { display: block; order: 0; flex: 1 1 auto; padding: 0 1.5rem 0 clamp(16px, calc(31vw - 335px), 112px); }
  .site-nav .nav { display: flex; justify-content: flex-start; gap: clamp(20px, 3.05vw, 44px); padding: 0; }
  .site-nav .nav li a { border: 0; padding: 6px 0; font: 500 1.125rem/1.2 var(--slab); }
  .mast-tools { border-left: 1px solid var(--rule-strong); padding-left: 14px; }
  .ticker-list li:nth-child(-n+3) { display: block; }
}
@media (min-width: 1100px) {
  .site-nav, .masthead.is-open .site-nav { display: flex; align-items: center; gap: clamp(20px, 3.05vw, 44px); }
  .site-nav .topic-index-link { flex: none; margin: 0; border: 0; padding: 6px 0; font-size: 1.125rem; }
}

/* hero */
.hero { padding: 24px 0 32px; overflow-x: clip; }
.hero-grid { display: grid; gap: 22px; }
.hero-text { container-type: inline-size; }
.hero h1 { font-weight: 700; }
.h1-display { display: block; font-size: min(6.7rem, 15.5cqw); line-height: 0.92; letter-spacing: -0.03em; }
.h1-display span { display: block; }
.h1-lead { display: block; margin-top: 18px; font: 400 clamp(1.2rem, 4.6vw, 1.75rem)/1.3 var(--sans); color: var(--text); letter-spacing: 0; max-width: 30ch; }
.find-btn {
  margin-top: 26px; display: inline-flex; align-items: center; min-height: 52px; padding: 10px 30px;
  background: var(--accent); color: var(--on-accent); border-radius: 6px; font: 700 1.25rem/1 var(--sans);
}
.find-btn:hover { filter: brightness(0.94); color: var(--on-accent); }
/* layered-print stack: five parallel prints, each rotateY(-30deg) and pushed back along Z, one shared vanishing point.
   Geometry fitted to the approved mockup (front print right edge 0.36 x stack width tall, last print ends at the content edge);
   every length is a % of the stack or cqw, so the picture scales without changing shape. */
.stack { position: relative; container-type: inline-size; aspect-ratio: 1.24; width: 100%; }
.stack-3d { position: absolute; inset: 0; perspective: 81.3cqw; perspective-origin: 52.5% 46.9%; }
.stack-3d::after {
  content: ""; position: absolute; left: 1%; right: -1%; top: 85%; height: 13%; z-index: 0; transform: rotate(-2.5deg);
  background: radial-gradient(closest-side, rgba(26, 18, 11, .30), rgba(26, 18, 11, 0)); filter: blur(5px);
}
.sheet {
  position: absolute; top: 8.9%; height: 76%; width: 51.9%; overflow: hidden; margin: 0;
  background: var(--sheet); border: 4px solid var(--sheet); box-shadow: 0 12px 26px rgba(26, 18, 11, .24);
  transform-origin: 50% 50%; transform: rotateY(-30deg); backface-visibility: hidden;
}
.sheet img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }
.sheet.s1 { left: -10.2%; z-index: 5; }
.sheet.s2 { left: 6.65%; z-index: 4; transform: translateZ(-5.49cqw) rotateY(-30deg);
  background-color: #fff; background-image: conic-gradient(#cfcfcf 25%, #fff 0 50%, #cfcfcf 0 75%, #fff 0); background-size: 18px 18px; }
.sheet.s3 { left: 23.5%; z-index: 3; transform: translateZ(-10.98cqw) rotateY(-30deg); }
.sheet.s3 img { filter: sepia(.45) saturate(1.6) hue-rotate(-10deg) brightness(1.04); }
.sheet.s4 { left: 40.35%; z-index: 2; transform: translateZ(-16.47cqw) rotateY(-30deg); }
.sheet.s4 img { filter: grayscale(1) contrast(1.08); }
.sheet.s5 { left: 57.19%; z-index: 1; transform: translateZ(-21.95cqw) rotateY(-30deg); background: var(--blank); border-color: var(--sheet); }

@media (min-width: 1000px) {
  .hero { padding: 22px 0 30px; }
  .hero-grid { grid-template-columns: minmax(0, 47fr) minmax(0, 53fr); align-items: center; gap: 24px; }
  .h1-display { font-size: min(6.7rem, 17cqw); }
  .h1-lead { font-size: 1.75rem; margin-top: 24px; }
  .find-btn { font-size: 1.5rem; min-height: 60px; padding: 12px 36px; margin-top: 34px; }
}

/* front page: lead + latest, then the transparency canvas under both */
.front-grid { display: grid; gap: 30px; padding: 26px 0 36px; border-top: 1px solid var(--rule); }
.lead-ph, .topic-ph, .post-feature .frame, .rel-ph { position: relative; isolation: isolate; margin: 0 8px 8px 0; }
.lead-ph::before, .topic-ph::before, .post-feature .frame::before, .rel-ph::before {
  content: ""; position: absolute; inset: 0; transform: translate(8px, 8px); z-index: -1;
  background: var(--paper-2); border: 1px solid var(--colrule);
}
.lead-ph img { width: 100%; aspect-ratio: 1.9; object-fit: cover; }
.lead-meta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 0.9375rem; }
.lead-title { margin-top: 18px; font-size: clamp(1.75rem, 6vw, 2.5rem); line-height: 1.08; font-weight: 700; }
.lead-meta + .lead-title { margin-top: 10px; }
.lead-title a, .latest h3 a, .layer h3 a, .hubs h3 a, .hub-list a { text-decoration: none; }
.lead-title a:hover, .latest h3 a:hover, .layer h3 a:hover, .hub-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lead-dek { margin-top: 10px; font-size: 1.1875rem; color: var(--muted); max-width: 46em; }
.latest > h2, .hubs-title { font-size: 2.5rem; line-height: 1; padding-bottom: 12px; border-bottom: 1px solid var(--rule-strong); }
.latest-list li { padding: 14px 0 15px; border-bottom: 1px solid var(--rule); }
.latest-list li:last-child { border-bottom: 0; }
.latest-list li:nth-child(n+6) { display: none; }
.latest h3 { font-size: 1.3125rem; line-height: 1.18; font-weight: 600; }
.feed-meta { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 0.9375rem; }
.feed-hub .feed-meta { display: block; font-size: 1rem; line-height: 1.45; color: var(--muted); }
.hub-link { color: var(--link); text-decoration: none; font-weight: 600; }
.hub-link:hover { text-decoration: underline; }
/* dates: a static marching-ants selection outline, as GIMP draws an active selection */
.ants {
  display: inline-block; padding: 1px 7px; white-space: nowrap; font: 600 0.875rem/1.45 var(--sans); color: var(--ink);
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 4px, var(--sheet) 4px 8px) left top / 100% 1px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 4px, var(--sheet) 4px 8px) left bottom / 100% 1px no-repeat,
    repeating-linear-gradient(180deg, var(--ink) 0 4px, var(--sheet) 4px 8px) left top / 1px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--ink) 0 4px, var(--sheet) 4px 8px) right top / 1px 100% no-repeat;
}
/* the canvas: feed posts 6 to 8 as paper layers on an empty, transparent canvas */
.canvas {
  padding: 24px 16px 18px; border: 1px solid var(--colrule);
  background: conic-gradient(var(--checker-a) 25%, var(--checker-b) 0 50%, var(--checker-a) 0 75%, var(--checker-b) 0) 0 0 / 24px 24px;
}
.layers { display: grid; gap: 20px; }
.layer, .older a {
  background: var(--sheet); border: 1px solid var(--colrule);
  box-shadow: 8px 8px 0 0 var(--paper-2), 8px 8px 0 1px var(--colrule);
}
.layer { padding: 14px 18px 18px; margin: 0 8px 8px 0; }
.layer:nth-child(1) { margin-right: 30px; }
.layer:nth-child(2) { margin-left: 18px; }
.layer:nth-child(3) { margin-right: 14px; }
.layer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 0.9375rem; }
.layer .hub-link { color: var(--ink); }
.layer h3 { margin-top: 10px; font-size: 1.375rem; line-height: 1.18; font-weight: 600; }
.older { margin-top: 22px; text-align: right; }
.older a { display: inline-block; padding: 8px 14px; margin: 0 8px 8px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.older a:hover { text-decoration: underline; color: var(--ink); }

@media (min-width: 700px) {
  .canvas { padding: 30px 28px 22px; }
  .layers { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px 0; align-items: start; }
  .layer:nth-child(n) { margin-left: 0; margin-right: 8px; }
  .layer:nth-child(1) { grid-column: 1 / span 8; }
  .layer:nth-child(2) { grid-column: 5 / span 8; }
  .layer:nth-child(3) { grid-column: 2 / span 8; }
}
@media (min-width: 1000px) {
  .front-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 34px 48px; padding: 30px 0 40px; }
  .latest { border-left: 1px solid var(--colrule); padding-left: 48px; }
  .latest > h2 { margin-top: -4px; }
  .canvas { grid-column: 1 / -1; padding: 34px 32px 24px; }
  .layers { gap: 0 30px; }
  .layer:nth-child(1) { grid-column: 1 / span 4; }
  .layer:nth-child(2) { grid-column: 5 / span 5; margin-top: 36px; }
  .layer:nth-child(3) { grid-column: 10 / span 3; margin-top: 12px; }
  .older { margin-top: 10px; }
}

/* guides by topic: colour-to-alpha ramp rows and the three photo columns */
.hubs { padding: 8px 0 40px; }
.hubs-title { margin-bottom: 4px; }
.hubs h3 { font-weight: 700; }
.hub-row { display: grid; gap: 16px; padding: 22px 0 24px; border-bottom: 1px solid var(--rule); }
.tone-1 { --ramp: var(--ramp-1); }
.tone-2 { --ramp: var(--ramp-2); }
.tone-3 { --ramp: var(--ramp-3); }
.tone-4 { --ramp: var(--ramp-4); }
.tone-5 { --ramp: var(--ramp-5); }
.ramp {
  display: flex; margin: 0 8px 8px 0; min-height: 92px; border: 1px solid var(--colrule);
  background: conic-gradient(var(--checker-a) 25%, var(--checker-b) 0 50%, var(--checker-a) 0 75%, var(--checker-b) 0) 0 0 / 20px 20px;
  box-shadow: 8px 8px 0 0 var(--paper-2), 8px 8px 0 1px var(--colrule);
}
.ramp h3 {
  flex: 0 1 auto; max-width: 74%; display: flex; align-items: center; padding: 16px 6px 16px 20px;
  background: var(--ramp); color: var(--on-ramp); font-size: 1.625rem; line-height: 1.1;
}
.ramp::after { content: ""; flex: 1 1 26%; min-width: 72px; background: linear-gradient(90deg, var(--ramp), transparent); }
.ramp a, .ramp a:hover { color: var(--on-ramp); }
.ramp a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hub-desc { font-size: 1.0625rem; line-height: 1.5; color: var(--muted); max-width: 40em; }
.hub-list { margin-top: 8px; }
.hub-list li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px;
  padding: 10px 0; border-bottom: 1px solid var(--rule); font: 600 1.125rem/1.3 var(--slab); color: var(--ink);
}
.hub-list li:last-child { border-bottom: 0; }
.hub-list li:nth-child(n+4) { display: none; }
.hub-list a { flex: 1 1 15em; min-width: 0; }
.hub-tasks li { font: 400 1.0625rem/1.4 var(--sans); color: var(--text); }
.topics-grid { display: grid; gap: 34px; padding: 26px 0 30px; border-bottom: 1px solid var(--rule); }
.topic > h3 { font-size: 2rem; line-height: 1.05; margin-bottom: 16px; }
.topic-ph { align-self: start; }
.topic-ph img { width: 100%; aspect-ratio: 1.58; object-fit: cover; }
.topic .hub-desc { margin-top: 10px; }
@media (min-width: 900px) {
  .hub-row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 44px; align-items: start; padding: 26px 0 28px; }
  .ramp h3 { font-size: 1.875rem; padding-left: 24px; }
  .hub-body { padding-top: 4px; }
  .topics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; gap: 0 72px; padding: 30px 0 34px; }
  .topic { position: relative; display: grid; grid-row: span 4; grid-template-rows: subgrid; align-content: start; }
  .topic + .topic::before { content: ""; position: absolute; top: 0; bottom: 0; left: -36px; border-left: 1px solid var(--colrule); }
  .topic > h3 { font-size: clamp(1.75rem, 2.3vw, 2.25rem); align-self: end; }
}

/* footer */
.site-foot { margin-top: 0; }
.foot-rule { border-top: 7px double var(--ink); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 32px; padding: 16px 0 28px; font-size: 0.9375rem; color: var(--muted); }
.foot-legal { max-width: 62em; }
.foot-nav .nav { display: flex; gap: 22px; }
.foot-nav a { color: var(--ink); text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; }

/* post */
.post-head { padding: 30px 0 22px; }
.post-head-inner { max-width: 880px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 0.9375rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--rule-strong); }
.crumbs a { color: var(--ink); }
.crumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28ch; }
.post-head h1, .list-head h1 { margin-top: 14px; font-size: clamp(2.25rem, 8vw, 4rem); line-height: 1.02; letter-spacing: -0.025em; font-weight: 700; }
.post-dek { margin-top: 14px; font-size: clamp(1.2rem, 3.4vw, 1.5rem); line-height: 1.35; color: var(--text); }
.byline { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule-strong); display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 0.9375rem; color: var(--muted); }
.byline a { color: var(--ink); }
.post-feature { margin: 8px 0 34px; }
.post-feature .frame { max-width: 1200px; }
.post-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.post-feature figcaption, .kg-card figcaption { margin-top: 10px; font-size: 0.9375rem; color: var(--muted); max-width: 720px; }
.gh-content { max-width: 720px; margin: 0 auto; padding: 0 var(--gut); font-size: 1.1875rem; line-height: 1.65; }
.gh-content > * + * { margin-top: 1.15em; }
.gh-content h2 { font-size: 2rem; line-height: 1.12; margin-top: 1.7em; font-weight: 700; }
.gh-content h3 { font-size: 1.5rem; line-height: 1.2; margin-top: 1.5em; font-weight: 600; }
.gh-content a { color: var(--link); text-underline-offset: 3px; }
.gh-content ul { list-style: disc; padding-left: 1.3em; }
.gh-content ol { list-style: decimal; padding-left: 1.3em; }
.gh-content li + li { margin-top: 0.45em; }
.gh-content blockquote { margin-left: 0; padding-left: 20px; border-left: 4px solid var(--accent); font-family: var(--slab); font-size: 1.375rem; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 1.0625rem; display: block; overflow-x: auto; }
.gh-content th, .gh-content td { text-align: left; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--rule); }
.gh-content th { font-family: var(--slab); font-weight: 600; border-bottom: 2px solid var(--ink); color: var(--ink); }
code, kbd, pre { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.86em; }
kbd, .gh-content code { background: var(--paper-2); border: 1px solid var(--colrule); border-radius: 4px; padding: 1px 5px; }
.gh-content pre { background: var(--paper-2); padding: 16px; overflow-x: auto; border-left: 4px solid var(--accent); }
.gh-content pre code { border: 0; padding: 0; background: none; }
.checker img { background-color: #fff; background-image: conic-gradient(#cfcfcf 25%, #fff 0 50%, #cfcfcf 0 75%, #fff 0); background-size: 18px 18px; }
.kg-callout-card { background: var(--paper-2); border-left: 5px solid var(--accent); padding: 16px 20px; }
.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content .kg-width-wide, .gh-content .kg-width-full { margin-top: 1.6em; margin-bottom: 1.6em; }
.kg-image-card img, .kg-gallery-image img { margin: 0 auto; }
.kg-width-wide { position: relative; width: min(1100px, 100vw - 2 * var(--gut)); left: 50%; transform: translateX(-50%); }
.kg-width-full { position: relative; width: 100vw; left: 50%; transform: translateX(-50%); }
.kg-width-full figcaption { padding: 0 var(--gut); }
.kg-width-wide img, .kg-width-full img { width: 100%; }
.kg-gallery-container { display: flex; flex-direction: column; gap: 8px; }
.kg-gallery-row { display: flex; gap: 8px; }
.kg-bookmark-card a { display: flex; border: 1px solid var(--colrule); text-decoration: none; color: var(--text); }
.kg-bookmark-content { padding: 16px; }
.kg-bookmark-thumbnail { display: none; }
.kg-button-card a, .kg-btn { display: inline-block; background: var(--accent); color: var(--on-accent); padding: 12px 22px; border-radius: 6px; font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.post-foot { max-width: 720px; margin: 40px auto 0; padding: 0 var(--gut); }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px 0; border-top: 1px solid var(--rule-strong); font-size: 0.9375rem; color: var(--muted); }
.post-tags a { color: var(--ink); }
.author-box { display: flex; gap: 18px; padding: 20px 0 6px; border-top: 1px solid var(--rule); }
.author-box h2 { font-size: 1.5rem; }
.author-box h2 a { text-decoration: none; }
.author-box p { margin-top: 6px; color: var(--muted); }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.related { margin-top: 44px; }
.related .wrap > h2 { font-size: 2.25rem; padding-bottom: 12px; border-bottom: 7px double var(--ink); }
.rel-list { display: grid; gap: 0; }
.rel-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: start; }
.rel-list li > div:only-child { grid-column: 1 / -1; }
.rel-ph { display: block; margin: 0 6px 6px 0; }
.rel-ph img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.rel-list h3 { font-size: 1.3125rem; line-height: 1.2; font-weight: 600; }
.rel-list h3 a { text-decoration: none; }
.rel-list p { margin-top: 6px; color: var(--muted); font-size: 1rem; }
@media (min-width: 900px) {
  .post-head { padding: 44px 0 28px; }
  .rel-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rel-list li { border-bottom: 0; padding: 18px 32px 26px; }
  .rel-list li:first-child { padding-left: 0; }
  .rel-list li + li { border-left: 1px solid var(--colrule); }
}

/* tag, author, index archives */
.list-head { padding-bottom: 8px; }
.tag-cover img { width: 100%; aspect-ratio: 2.6; max-height: 420px; object-fit: cover; }
.list-panel { padding: 26px 0 18px; max-width: 880px; }
.list-panel > p { margin-top: 12px; font-size: 1.25rem; line-height: 1.4; }
.list-panel .avatar { width: 88px; height: 88px; margin-bottom: 10px; }
.list-body .rows { border-top: 7px double var(--ink); }
.row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.row.no-image { grid-template-columns: minmax(0, 1fr); }
.row .ph img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.row-tag { font-size: 0.9375rem; color: var(--link); text-decoration: none; font-weight: 600; }
.row h2, .row h3 { margin-top: 2px; font-size: clamp(1.25rem, 3.6vw, 1.625rem); line-height: 1.15; font-weight: 600; }
.row h2 a, .row h3 a { text-decoration: none; }
.row-excerpt { margin-top: 6px; color: var(--muted); }
.row-meta { margin-top: 6px; font-size: 0.9375rem; color: var(--muted); }
@media (min-width: 700px) {
  .row { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
}
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 0 48px; font-size: 1rem; }
.pagination a { color: var(--ink); font-weight: 600; }
.page-number { color: var(--muted); }
.rel-list .rel-meta { margin-top: 10px; }
.tag-template .pagination { padding-bottom: 18px; }
/* tag pages: the other hubs, split by a tiny two-square layer glyph */
.other-topics { padding: 16px 0 48px; border-top: 1px solid var(--rule); }
.other-topics p { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 0; font-size: 1.0625rem; }
.ot-label { color: var(--muted); margin-right: 14px; }
.other-topics a { color: var(--ink); text-underline-offset: 3px; display: inline-flex; align-items: center; }
.other-topics a + a::before {
  content: ""; flex: none; width: 10px; height: 10px; margin: 0 16px 0 12px; background: var(--sheet);
  border: 1px solid var(--ink); box-shadow: 3px 3px 0 0 var(--accent);
}

/* Task routes appear before the chronological tag archive. */
.hub-routes { padding: 8px 0 32px; }
.hub-routes h2 { font-size: clamp(1.875rem, 4vw, 2.25rem); line-height: 1.1; padding-bottom: 14px; border-bottom: 1px solid var(--rule-strong); }
.hub-route-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 24px 32px; margin-top: 20px; }
.hub-route-group { min-width: 0; }
.hub-route-group h3 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 8px; }
.hub-route-group li + li { border-top: 1px solid var(--rule); }
.hub-route-group a { display: block; padding: 12px 0; text-decoration: none; }
.hub-route-label { display: block; font: 600 1.125rem/1.3 var(--sans); color: var(--ink); }
.hub-route-detail { display: block; margin-top: 4px; font-size: 1rem; line-height: 1.4; color: var(--muted); }
.hub-route-group a:hover .hub-route-label { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* error */
.error-page { padding: 36px 0 56px; }
.err-grid { display: grid; gap: 28px; align-items: center; }
.err-photo { margin: 0 8px 8px 0; position: relative; isolation: isolate; }
.err-photo::before { content: ""; position: absolute; inset: 0; transform: translate(8px, 8px); z-index: -1; background: var(--paper-2); border: 1px solid var(--colrule); }
.err-photo img { width: 100%; aspect-ratio: 1.58; object-fit: cover; }
.error-code { font: 700 clamp(4rem, 16vw, 8rem)/0.9 var(--slab); color: var(--ink); letter-spacing: -0.03em; }
.error-page h1 { margin-top: 10px; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.05; }
.error-page p { margin-top: 14px; font-size: 1.1875rem; }
.error-page .search-btn { margin-top: 4px; background: var(--accent); color: var(--on-accent); border-radius: 6px; padding: 12px 24px; font: 700 1.25rem/1 var(--sans); }
.error-page .search-btn .label { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
.err-hubs { margin-top: 18px; border-top: 1px solid var(--rule-strong); }
.err-hubs li { border-bottom: 1px solid var(--rule); }
.err-hubs a { display: block; padding: 10px 0; font: 600 1.25rem/1.2 var(--slab); color: var(--ink); text-decoration: none; }
@media (min-width: 900px) {
  .err-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
}

@media (min-width: 640px) { :root { --gut: 28px; } }
@media (min-width: 1200px) { :root { --gut: 40px; } }
@media (max-width: 999px) {
  .stack { max-width: 680px; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !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.
   Photo columns: two topics share the row in two columns (:has; fallback: the third column stays empty); a single
   topic spans the row, photo left and copy right. Front: with nothing featured and "Cutouts" empty there is no lead
   card, so "Latest" takes the full width without its column rule. Ticker bullets and ramp rows need nothing. */
@media (min-width: 900px) {
  .topics-grid:has(> .topic:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics-grid > .topic:only-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 44px; }
  .topics-grid > .topic:only-child > .topic-ph { grid-column: 1; grid-row: 1 / -1; }
  .topics-grid > .topic:only-child > :not(.topic-ph) { grid-column: 2; }
}
@media (min-width: 1000px) {
  .front-grid > .latest:first-child { grid-column: 1 / -1; border-left: 0; padding-left: 0; }
}

/* Homepage task heading and separate explanatory deck. */
.h1-display.h1-guides { font-size: min(5.5rem, 11.5cqw); line-height: 1.02; }

/* Homepage covers share the eight existing hub assets at their complete 3:2 ratio. */
.home-hero-cover { min-width: 0; margin: 0; }
.home-hero-cover img,
.lead-ph img.home-hub-cover,
.hubs .topic-ph img.home-hub-cover {
  width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain;
}
.home-hub-visual { min-width: 0; }
.home-hub-visual > h3 { font-size: 2rem; line-height: 1.05; margin-bottom: 16px; }
.home-hub-visual > h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 900px) {
  .home-hub-visual > h3 { font-size: clamp(1.75rem, 2.3vw, 2.25rem); }
}
