:root {
  --ink: #2a2117;
  --orange: #c75b2c;
  --mustard: #e3a72f;
  --green: #2e5d4b;
  --pine: #24493b;
  --red: #a83232;
  --paper: #f3e7ce;
  --band: #f8efda;
  --card: #fffefa;
  --receipt: #faf3e0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange); text-underline-offset: 0.16em; }
a:hover { color: var(--red); }
img, svg { max-width: 100%; }
.display { font-family: "Young Serif", Georgia, serif; font-weight: 400; }
.mono, .mono-label { font-family: "IBM Plex Mono", Menlo, monospace; }
.mono-label { font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--mustard); border: 2px solid var(--ink); border-radius: 8px; color: var(--ink); padding: 10px 14px; font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header { border-bottom: 2px solid var(--ink); background: rgba(243,231,206,.97); position: relative; z-index: 20; }
.header-inner { min-height: 64px; max-width: 1248px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 20px/1 "Young Serif", Georgia, serif; white-space: nowrap; }
.brand b { color: var(--orange); font-weight: 400; }
.ticket-mark { width: 31px; height: 21px; position: relative; display: inline-block; flex: none; border: 2px solid var(--ink); border-radius: 4px; background: var(--orange); transform: rotate(-8deg); }
.ticket-mark::before { content: ""; position: absolute; top: 2px; bottom: 2px; right: 9px; border-left: 2px dashed rgba(243,231,206,.9); }
.ticket-mark::after { content: "★"; position: absolute; right: 1px; top: 50%; color: var(--paper); font: 7px/1 Archivo, sans-serif; transform: translateY(-55%); }
.site-nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 800; }
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { border-bottom: 3px solid var(--mustard); padding-bottom: 18px; margin-bottom: -21px; }
.nav-cta, .button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; border: 2px solid var(--ink); border-radius: 9px; background: var(--mustard); box-shadow: 2px 2px 0 var(--ink); color: var(--ink) !important; padding: 10px 18px; font-weight: 800; text-decoration: none; }
.mobile-nav { display: none; }

.ticker { overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--ink); color: rgba(243,231,206,.78); padding: 7px 12px; text-align: center; white-space: nowrap; font: 700 9px/1.3 "IBM Plex Mono", monospace; letter-spacing: .22em; }
.page-shell { max-width: 1248px; margin: 0 auto; padding: 42px 24px 72px; }
.breadcrumb { color: rgba(42,33,23,.58); font: 700 10px/1.5 "IBM Plex Mono", monospace; letter-spacing: .13em; text-transform: uppercase; }
.breadcrumb a { color: inherit; }

.guide-grid { display: grid; grid-template-columns: 220px minmax(0,680px) 180px; gap: 36px; align-items: start; margin-top: 18px; }
.guide-rail { position: sticky; top: 18px; display: flex; flex-direction: column; gap: 14px; }
.rail-card { border: 1.5px solid rgba(42,33,23,.32); border-radius: 12px; background: var(--band); padding: 16px 18px; }
.rail-card ol { list-style: none; margin: 10px 0 0; padding: 0; }
.rail-card li + li { margin-top: 8px; }
.rail-card a { display: block; border-left: 2px solid rgba(42,33,23,.2); color: rgba(42,33,23,.7); padding-left: 9px; font-size: 12px; font-weight: 700; text-decoration: none; }
.rail-card a:hover { border-color: var(--orange); color: var(--orange); }
.rail-note, .margin-note { border: 1.5px dashed rgba(42,33,23,.36); border-radius: 10px; background: rgba(255,254,250,.65); padding: 12px; color: rgba(42,33,23,.7); font-size: 12px; line-height: 1.55; }
.rail-note strong, .margin-note strong { display: block; margin-bottom: 5px; color: var(--orange); font: 700 9px/1.4 "IBM Plex Mono", monospace; letter-spacing: .15em; text-transform: uppercase; }
.mobile-jump { display: none; }

.guide-hero { margin-bottom: 26px; }
.motif { min-height: 86px; border: 2px solid var(--ink); border-radius: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px; }
.motif-dots { background-color: var(--band); background-image: radial-gradient(var(--orange) 1.8px, transparent 1.8px); background-size: 14px 14px; }
.motif-stripes-orange { background: repeating-linear-gradient(135deg, rgba(199,91,44,.55) 0 6px, var(--band) 6px 18px); }
.motif-stripes-green { background: repeating-linear-gradient(135deg, rgba(46,93,75,.5) 0 6px, var(--band) 6px 18px); }
.motif-stripes-mustard { background: repeating-linear-gradient(135deg, rgba(227,167,47,.7) 0 6px, var(--band) 6px 18px); }
.badge { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--card); color: var(--ink); padding: 5px 10px; font: 700 9px/1 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.guide-title { margin: 20px 0 0; font: 400 46px/1.1 "Young Serif", Georgia, serif; letter-spacing: -.01em; text-wrap: balance; }
.standfirst { max-width: 640px; margin: 14px 0 0; color: rgba(42,33,23,.74); font-size: 18px; font-weight: 500; line-height: 1.55; }
.byline { margin-top: 20px; border-block: 2px solid var(--ink); padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.byline-person { display: flex; align-items: center; gap: 11px; }
.author-mark { width: 42px; height: 29px; border: 2px solid var(--ink); border-radius: 5px; background: var(--orange); color: var(--paper); display: grid; place-items: center; transform: rotate(-7deg); font-size: 11px; font-weight: 900; }
.byline strong { display: block; font-size: 14px; }
.byline-meta { margin-top: 3px; color: rgba(42,33,23,.58); font: 600 9px/1.5 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; }

.answer-panel { margin: 0 0 28px; border: 2px solid var(--ink); border-radius: 0; background: var(--receipt); box-shadow: 6px 6px 0 var(--ink); padding: 24px; }
.answer-panel .short-answer { margin: 0 0 22px; border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: 0 0 20px; border-bottom: 2px solid var(--ink); }
.answer-panel .short-answer::before { display: none; }
.answer-panel .short-answer h2 { margin: 0; font-size: 30px; }
.answer-panel .short-answer p:last-child { margin-bottom: 0; }
.in-short { margin: 0; }
.in-short-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 10px; }
.short-stub { min-height: 100%; position: relative; border: 2px solid var(--ink); border-radius: 12px; background: var(--card); box-shadow: 3px 3px 0 rgba(42,33,23,.15); padding: 16px 15px 16px 20px; font-size: 14px; font-weight: 650; line-height: 1.55; }
.short-stub::before { content: ""; position: absolute; left: 9px; top: 9px; bottom: 9px; border-left: 1.5px dashed rgba(42,33,23,.3); }
.short-stub b { display: inline-grid; width: 24px; height: 24px; place-items: center; margin: 0 6px 5px 0; border-radius: 50%; background: var(--orange); color: var(--paper); font: 800 11px/1 Archivo, sans-serif; }

.article-body { font-size: 17px; font-weight: 500; line-height: 1.76; }
.article-body h2 { scroll-margin-top: 20px; margin: 38px 0 12px; font: 400 27px/1.25 "Young Serif", Georgia, serif; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { scroll-margin-top: 20px; margin: 28px 0 8px; font-size: 18px; line-height: 1.35; }
.article-body p { margin: 0 0 17px; color: rgba(42,33,23,.88); }
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 25px; }
.article-body li + li { margin-top: 7px; }
.article-body blockquote { margin: 24px 0; border: 2px solid var(--green); border-radius: 12px; background: rgba(46,93,75,.08); padding: 17px 20px; }
.article-body blockquote p:last-child { margin-bottom: 0; }
.short-answer { position: relative; margin: 0 0 24px; border: 2px solid var(--ink); border-radius: 12px; background: var(--receipt); box-shadow: 4px 4px 0 var(--ink); padding: 22px; }
.short-answer::before { content: "Short answer"; position: absolute; right: 12px; top: -12px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--mustard); padding: 5px 9px; font: 700 8px/1 "IBM Plex Mono", monospace; letter-spacing: .13em; text-transform: uppercase; }
.short-answer h2 { margin-top: 0; }
.short-answer p:last-child { margin-bottom: 0; }
.receipt-table { width: 100%; margin: 24px 0; border: 2px solid var(--ink); border-radius: 12px; border-spacing: 0; overflow: hidden; background: var(--receipt); box-shadow: 3px 3px 0 rgba(42,33,23,.15); font: 500 12px/1.5 "IBM Plex Mono", monospace; }
.receipt-table th, .receipt-table td { padding: 10px 12px; border-bottom: 1.5px dashed rgba(42,33,23,.25); text-align: left; vertical-align: top; }
.receipt-table th { background: rgba(227,167,47,.25); font-weight: 800; }
.receipt-table tr:last-child td { border-bottom: 0; }
.figure-placeholder { margin: 24px 0; border: 2px solid var(--ink); border-radius: 12px; background: var(--band); padding: 28px; text-align: center; box-shadow: 3px 3px 0 rgba(42,33,23,.14); }
.figure-placeholder strong { display: block; color: var(--orange); font: 700 10px/1.4 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.figure-placeholder span { display: block; margin-top: 7px; color: rgba(42,33,23,.66); font-size: 13px; }
.inline-cta { margin: 34px 0; border-radius: 14px; background: var(--ink); color: var(--paper); padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.inline-cta p { margin: 4px 0 0; color: rgba(243,231,206,.76); font-size: 13px; line-height: 1.55; }
.inline-cta .display { font-size: 21px; }

.faq-section, .sources, .author-card, .up-next { margin-top: 38px; }
.section-rule { border-top: 2px solid var(--ink); padding-top: 20px; }
.faq-item { border-bottom: 2px solid var(--ink); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 0; position: relative; font-weight: 800; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0; top: 10px; width: 30px; height: 30px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 7px; background: var(--card); font: 700 18px/1 "IBM Plex Mono", monospace; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 44px 17px 0; color: rgba(42,33,23,.78); font-size: 15px; line-height: 1.65; }
.sources-card { border: 2px solid var(--ink); border-radius: 12px; background: var(--receipt); box-shadow: 3px 3px 0 rgba(42,33,23,.15); padding: 18px 20px; }
.source-row { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(42,33,23,.26); align-items: start; font: 500 11px/1.5 "IBM Plex Mono", monospace; }
.source-row:last-child { border-bottom: 0; }
.source-row .num { color: var(--orange); font-weight: 800; }
.source-row .domain { color: rgba(42,33,23,.55); overflow-wrap: anywhere; }
.author-card { border: 2px solid var(--ink); border-radius: 12px; background: var(--card); padding: 20px; display: flex; align-items: center; gap: 18px; box-shadow: 3px 3px 0 rgba(42,33,23,.14); }
.author-ticket { width: 64px; height: 44px; flex: none; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 8px; background: var(--orange); color: var(--paper); transform: rotate(-7deg); font-size: 18px; font-weight: 900; }
.author-card h2 { margin: 3px 0; font: 400 22px/1.2 "Young Serif", Georgia, serif; }
.author-card p { margin: 0; color: rgba(42,33,23,.72); font-size: 13px; line-height: 1.55; }
.up-next-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.next-card, .guide-card { border: 2px solid var(--ink); border-radius: 12px; background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 3px 3px 0 rgba(42,33,23,.13); overflow: hidden; }
.next-card { display: flex; }
.next-card .strip { width: 56px; flex: none; border-right: 2px solid var(--ink); }
.next-card .copy { padding: 14px; }
.next-card strong { display: block; margin-top: 5px; font-size: 14px; line-height: 1.35; }
.next-card:hover, .guide-card:hover { color: var(--ink); transform: translate(-1px,-1px); box-shadow: 5px 5px 0 rgba(42,33,23,.16); }
.site-footer { border-top: 2px solid var(--ink); background: var(--ink); color: rgba(243,231,206,.62); }
.footer-inner { max-width: 1248px; margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; gap: 24px; font: 600 9px/1.6 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }

.guides-hero { max-width: 860px; margin: 0 auto 34px; text-align: center; }
.guides-hero h1 { margin: 12px 0; font: 400 52px/1.08 "Young Serif", Georgia, serif; }
.guides-hero p { margin: 0 auto; max-width: 680px; color: rgba(42,33,23,.73); font-size: 17px; line-height: 1.6; }
.guide-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.guide-card { display: flex; flex-direction: column; }
.guide-card .art { min-height: 88px; border-bottom: 2px solid var(--ink); padding: 12px; }
.guide-card .copy { padding: 18px; }
.guide-card h2 { margin: 7px 0 8px; font-size: 17px; line-height: 1.35; }
.guide-card p { margin: 0; color: rgba(42,33,23,.7); font-size: 13px; line-height: 1.55; }

@media (max-width: 1050px) {
  .guide-grid { grid-template-columns: minmax(0,680px) 180px; justify-content: center; }
  .guide-rail { display: none; }
  .mobile-jump { display: flex; gap: 8px; margin: 0 0 24px; overflow-x: auto; padding-bottom: 5px; }
  .mobile-jump a { flex: none; border: 1.5px solid rgba(42,33,23,.35); border-radius: 999px; background: var(--card); color: var(--ink); padding: 7px 10px; font: 700 10px/1.2 "IBM Plex Mono", monospace; text-decoration: none; }
  .guide-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
  .header-inner { min-height: 58px; padding-inline: 16px; }
  .site-nav { display: none; }
  .mobile-nav { display: block; }
  .mobile-nav summary { cursor: pointer; list-style: none; border: 2px solid var(--ink); border-radius: 7px; background: var(--card); padding: 8px 10px; font-weight: 800; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { position: absolute; left: 0; right: 0; top: 58px; display: grid; gap: 1px; border-bottom: 2px solid var(--ink); background: var(--ink); }
  .mobile-nav nav a { background: var(--band); color: var(--ink); padding: 13px 18px; font-weight: 800; text-decoration: none; }
  .ticker { text-align: left; }
  .page-shell { padding: 28px 16px 54px; }
  .guide-grid { display: block; margin-top: 14px; }
  .margin-column { display: none; }
  .motif { min-height: 62px; border-radius: 12px; }
  .guide-title { font-size: 32px; line-height: 1.14; }
  .standfirst { font-size: 16px; }
  .byline { align-items: flex-start; }
  .byline-meta { max-width: 230px; }
  .in-short-grid { grid-template-columns: 1fr; }
  .answer-panel { padding: 18px 16px; box-shadow: 4px 4px 0 var(--ink); }
  .answer-panel .short-answer { padding-bottom: 16px; }
  .answer-panel .short-answer h2 { font-size: 25px; }
  .short-stub { font-size: 13.5px; }
  .article-body { font-size: 16px; line-height: 1.72; }
  .article-body h2 { font-size: 24px; }
  .short-answer { padding: 20px 17px 17px; }
  .receipt-table { display: block; overflow-x: auto; white-space: normal; }
  .inline-cta { align-items: stretch; flex-direction: column; }
  .inline-cta .button { width: 100%; }
  .source-row { grid-template-columns: 25px 1fr; }
  .source-row .domain { display: none; }
  .author-card { align-items: flex-start; }
  .up-next-grid, .guide-list { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; padding-inline: 16px; }
  .guides-hero h1 { font-size: 37px; }
}

@media print {
  .site-header, .ticker, .guide-rail, .mobile-jump, .inline-cta, .site-footer { display: none !important; }
  body { background: white; }
  .page-shell { max-width: 760px; padding: 0; }
  .guide-grid { display: block; }
  .margin-column { display: none; }
  a { color: inherit; }
}
