:root {
  --paper: #e6e4dc;
  --paper-2: #dcd9cf;
  --ink: #1c1d1a;
  --ink-2: #4a4b45;
  --rust: #8c3b1f;
  --moss: #556048;
  --rule: #c4c0b4;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Source Serif 4", Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171816;
    --paper-2: #1f201d;
    --ink: #e4e2da;
    --ink-2: #b2b0a7;
    --rust: #d26a3f;
    --moss: #9aa88c;
    --rule: #35372f;
  }
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--paper);
}
a { color: var(--rust); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: 0; margin: 0; }

.masthead {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  max-width: 48rem; margin: 0 auto;
}
.brand { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.masthead nav { display: flex; gap: 1rem; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.masthead nav a { color: var(--ink-2); text-decoration: none; }
.masthead nav a:hover { color: var(--rust); }

main { max-width: 48rem; margin: 0 auto; padding: 0 1rem 3rem; }

/* post header */
.post-head { padding: 2.2rem 0 1.4rem; }
.where { margin: 0 0 .6rem; color: var(--moss); font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.post-head h1 { font-size: clamp(2.2rem, 6.5vw, 3.8rem); max-width: 18ch; }
.dek { margin: 1rem 0 0; font-size: 1.15rem; color: var(--ink-2); max-width: 60ch; }

/* video */
.video { margin: 0 0 1.6rem; }
.frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video figcaption { display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: baseline; padding: .7rem 0 0; font-family: var(--display); font-size: 1.1rem; }
.watch { font-weight: 700; }
.handle { color: var(--ink-2); font-weight: 600; }
.handle b { color: var(--ink); font-weight: 700; }

/* chapters */
.chapters { margin: 0 0 2rem; padding: 1rem 0 1.2rem; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.chapters h2, .finds h2, .gear h2, .sources h2, .related h2 { font-size: 1.6rem; margin-bottom: .6rem; }
.chapters ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }
.chapters li { break-inside: avoid; padding: .18rem 0; font-family: var(--display); font-size: 1.1rem; font-weight: 600; }
.chapters a { text-decoration: none; color: var(--ink); }
.chapters a:hover { color: var(--rust); }
.chapters time { display: inline-block; min-width: 3.4rem; color: var(--rust); font-variant-numeric: tabular-nums; }
@media (max-width: 36rem) { .chapters ol { columns: 1; } }

/* body copy */
.body { max-width: 66ch; }
.body p { margin: 0 0 1.1rem; }
.body h2 { font-size: 1.9rem; margin: 2rem 0 .7rem; }
.body h3 { font-size: 1.4rem; margin: 1.6rem 0 .5rem; }
.body ul, .body ol { padding-left: 1.3rem; }
.body blockquote { margin: 1.2rem 0; padding-left: 1rem; border-left: 3px solid var(--rust); color: var(--ink-2); }

/* finds, gear, sources */
.finds, .gear, .sources, .related, .patreon { margin: 2.2rem 0 0; max-width: 66ch; }
.finds ul { list-style: none; padding: 0; margin: 0; }
.finds li { padding: .5rem 0; border-top: 1px solid var(--rule); }
.finds li:last-child { border-bottom: 1px solid var(--rule); }
.gear ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: .2rem 1.5rem; }
.gear li { padding: .25rem 0; }
.sources ul { padding-left: 1.2rem; }
.sources li { margin: .3rem 0; font-size: .95rem; }
.fine { font-size: .9rem; color: var(--ink-2); }

/* related */
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { border-top: 1px solid var(--rule); }
.related li:last-child { border-bottom: 1px solid var(--rule); }
.related a { display: flex; gap: 1rem; align-items: center; padding: .7rem 0; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.15rem; }
.related a:hover span { color: var(--rust); }
.related img { width: 7.5rem; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); flex: none; }

.patreon { background: var(--paper-2); padding: 1rem 1.1rem; }
.patreon p { margin: 0; }

/* index */
.intro { padding: 2.4rem 0 1.4rem; }
.intro h1 { font-size: clamp(2.4rem, 8vw, 4.6rem); max-width: 12ch; }
.intro p { max-width: 50ch; color: var(--ink-2); font-size: 1.15rem; margin: .8rem 0 0; }
.list ul { list-style: none; padding: 0; margin: 0; }
.list li { border-top: 1px solid var(--rule); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list a { display: grid; grid-template-columns: 11rem 1fr; gap: 1.1rem; align-items: center; padding: 1rem 0; text-decoration: none; color: var(--ink); }
.list img { aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); }
.list .t { display: grid; gap: .2rem; }
.list .where { font-size: 1rem; margin: 0; }
.list .title { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.05; }
.list .when { color: var(--ink-2); font-size: .9rem; }
.list a:hover .title { color: var(--rust); }
@media (max-width: 36rem) { .list a { grid-template-columns: 1fr; } }

/* footer */
.colophon { max-width: 48rem; margin: 0 auto; padding: 1.4rem 1rem 3rem; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: .95rem; }
.boilerplate { color: var(--ink); }
.socials { font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.socials a { color: var(--ink); text-decoration: none; }
.socials a:hover { color: var(--rust); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* screen grabs inside the article */
.shot { margin: 1.4rem 0 1.6rem; }
.shot a { display: block; }
.shot img { width: 100%; height: auto; background: var(--paper-2); }
.shot figcaption { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--ink-2); padding: .4rem 0 0; }
.shot .tc { color: var(--rust); font-variant-numeric: tabular-nums; margin-left: .4rem; }

/* guide CTA + share */
.cta { margin: 2rem 0 0; max-width: 66ch; padding: 1rem 1.1rem; border: 1px solid var(--rule); border-left: 4px solid var(--rust); }
.cta p { margin: 0; }
.cta-title { font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1.1; margin-bottom: .3rem !important; }
.cta-title a { text-decoration: none; color: var(--ink); }
.cta-title a:hover { color: var(--rust); }
.share { margin: 1.6rem 0 0; font-family: var(--display); font-weight: 600; font-size: 1.05rem; }
.list h2 { font-size: 1.6rem; margin: 1.6rem 0 .6rem; }
.guides .list a, .guides a { grid-template-columns: 1fr; }

/* glossary links */
a.term { text-decoration-style: dotted; }

/* glossary hub */
.glossary dl { margin: 0; max-width: 66ch; }
.glossary dt { font-family: var(--display); font-weight: 700; font-size: 1.5rem; margin: 1.2rem 0 .2rem; }
.glossary dt a { color: var(--ink); text-decoration: none; }
.glossary dt a:hover { color: var(--rust); }
.glossary dd { margin: 0; color: var(--ink-2); }

/* comparison tables in guides: scroll sideways on narrow screens instead of breaking the page */
.body table { display: block; width: min(46rem, calc(100vw - 2rem)); overflow-x: auto; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: .9rem; line-height: 1.35; }
.body th, .body td { text-align: left; vertical-align: top; padding: .5rem .65rem; border-top: 1px solid var(--rule); min-width: 6.5rem; }
.body th { font-family: var(--display); font-weight: 700; font-size: 1rem; border-top: 0; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.body td:first-child { min-width: 9rem; }
