:root {
  --black: #111;
  --grey: #666;
  --line: #d9d9d9;
  --chalk: #f4f2ef;
  --muslin: #eae2d7;
  --accent: #eeff42;
  --red: #8b0000;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--chalk); color: var(--black); font: 15px/1.5 var(--sans); }
main { max-width: 1120px; margin: 0 auto; padding: 40px 32px 64px; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 44px; line-height: 1.1; margin: 8px 0 12px; }
h2 { font-size: 22px; margin: 0 0 14px; }
h2 a.anchor { color: var(--line); text-decoration: none; margin-left: 8px; font-family: var(--sans); font-weight: 400; }
h2 a.anchor:hover { color: var(--grey); }
h3 { font-size: 15px; margin: 18px 0 8px; }
p { margin: 0 0 10px; }
a { color: inherit; }
code { font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--grey); }
.lede { font-size: 18px; max-width: 760px; }
.lede mark { background: var(--accent); padding: 0 3px; }
.note { margin-top: 12px; font-size: 13px; color: var(--grey); }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 16px; }
.links a { text-decoration: none; background: var(--black); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; }
.links a span { opacity: 0.6; margin-left: 6px; }
.contents { position: sticky; top: 0; z-index: 5; background: var(--chalk); border-bottom: 1px solid var(--line); margin: 24px -32px 40px; padding: 10px 32px; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; }
.contents a { color: var(--grey); text-decoration: none; }
.contents a:hover { color: var(--black); text-decoration: underline; }
section { margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px 24px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--grey); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--grey); }
td a, .tight a { text-decoration-color: var(--line); text-underline-offset: 2px; }
td code { white-space: normal; overflow-wrap: anywhere; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; font-size: 14px; }
.steps li::before { content: counter(s); display: block; font: 600 28px/1 var(--serif); margin-bottom: 8px; }
.steps strong { display: block; margin-bottom: 4px; }
ul.tight { padding-left: 18px; margin: 0; }
ul.tight li { margin-bottom: 8px; }
.warn { border-left: 4px solid var(--red); }
.warn h2 { color: var(--red); }
.tip { background: var(--muslin); border-color: var(--muslin); }
figure { margin: 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: zoom-in; }
figcaption { font-size: 13px; color: var(--grey); margin-top: 8px; }
figcaption strong { color: var(--black); }
.hero-shot { margin-top: 20px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
/* Thumbnails share one shape; the zoomed view shows the whole screenshot. */
.shots img { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.shots img.contain { object-fit: contain; padding: 24px; }
figure img:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
details { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 24px; }
details summary { cursor: pointer; padding: 16px 0; font-family: var(--serif); font-weight: 600; font-size: 18px; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
details .inner { padding-bottom: 20px; }
#zoom:focus { outline: none; }
#zoom { position: fixed; inset: 0; background: rgba(17, 17, 17, 0.85); display: none; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; z-index: 10; }
#zoom.open { display: flex; }
#zoom img { max-width: 100%; max-height: 100%; border-radius: 6px; }
pre.prompt { white-space: pre-wrap; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; margin: 0; }
.copy { float: right; font: 600 12px var(--sans); background: var(--black); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
footer { border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--grey); }
@media print {
  body { background: #fff; font-size: 12px; }
  main { padding: 0; }
  .contents { display: none; }
  .links a { background: none; color: var(--black); border: 1px solid var(--black); }
  .card, .steps li, figure { break-inside: avoid; }
  details { border: 0; padding: 0; }
  details:not([open]) .inner { display: block; }
}
