:root {
  color-scheme: dark;
  --text: #f5f5f5;
  --muted: #c7c7c7;
  --border: #393939;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body {
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: "Times New Roman", Times, serif;
  font-size: 18px;
  line-height: 1.6;
}
a { color: inherit; text-underline-offset: 4px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible, video:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}
.skip-link { position: absolute; left: 16px; top: -100px; padding: 8px 16px; background: #fff; color: #000; z-index: 10; }
.skip-link:focus { top: 12px; }
.site-header { text-align: center; padding: 30px 20px 24px; }
.site-title { margin: 0 0 20px; font-size: 32px; line-height: 1.2; font-weight: bold; }
.site-title a { text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; font-size: 16px; font-weight: bold; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }
.page-heading { max-width: 1160px; margin: 0 auto; padding: 28px 24px 36px; text-align: center; }
h1 { margin: 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.2; }
.page-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 55px; max-width: 1160px; margin: 0 auto; padding: 0 24px 72px; align-items: start; }
.contents { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; font-size: 16px; line-height: 1.4; padding-right: 12px; }
.contents summary { cursor: pointer; font-weight: bold; padding: 0 0 12px; font-size: 18px; }
.contents ol { margin: 0; padding-left: 22px; }
.contents ol ol { padding-left: 16px; margin-top: 8px; list-style-type: none; }
.contents li { margin: 0 0 10px; }
.contents a { text-decoration: none; }
.contents a:hover, .contents a:focus-visible { text-decoration: underline; }
.content { min-width: 0; }
.content > section { margin: 0 0 64px; padding-top: 32px; border-top: 1px solid var(--border); }
.content > section:first-child { border-top: 0; padding-top: 0; }
h2, h3, h4, h5 { line-height: 1.25; text-wrap: balance; }
h2 { margin: 0 0 22px; font-size: 28px; }
h3 { font-size: 25px; margin: 0 0 18px; }
h4 { font-size: 21px; margin: 32px 0 16px; }
h5 { font-size: 19px; margin: 24px 0 12px; }
p { margin: 0 0 20px; }
ul, ol { padding-left: 26px; }
li { padding-left: 4px; margin-bottom: 12px; }
.tool { margin: 44px 0 0; }
.tool + .tool { border-top: 1px solid var(--border); padding-top: 36px; }
.status { border-left: 2px solid #777; padding: 10px 0 10px 18px; color: var(--muted); }
.status p:last-child { margin-bottom: 0; }
.parts { list-style: decimal; font-size: 17px; }
.parts li { margin-bottom: 10px; }
.parts .vendor { color: var(--muted); font-size: .9em; }
.equations { border: 1px solid var(--border); padding: 20px 24px; margin: 24px 0; }
.equations p { margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.equations p:last-child { margin: 0; }
.steps > li { margin-bottom: 30px; padding-left: 8px; }
.steps > li > p:last-child { margin-bottom: 0; }
.step-title { display: block; margin-bottom: 10px; font-size: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.action { display: inline-flex; align-items: center; min-height: 44px; border: 1px solid #777; padding: 8px 16px; line-height: 1.4; text-decoration: none; }
.action:hover { background: #171717; }
figure { margin: 28px 0; min-width: 0; }
.photo-link { display: block; width: 100%; max-width: min(100%, var(--photo-max-width, 100%)); }
img { display: block; max-width: 100%; height: auto; }
figure img { background: #111; border: 1px solid var(--border); }
.photo-link img { width: 100%; height: auto; object-fit: contain; }
.overview-photo { max-width: 560px; }
figcaption { color: var(--muted); font-size: 16px; line-height: 1.5; margin-top: 12px; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin: 28px 0; align-items: start; }
.gallery figure { margin: 0; }
.gallery .photo-link { width: 100%; }
.gallery img { width: 100%; height: auto; }
.gallery.portraits { max-width: 680px; }
.video { width: 100%; max-width: 380px; height: auto; max-height: 620px; display: block; background: #111; border: 1px solid var(--border); }
.video-link { display: inline-flex; gap: 10px; align-items: center; }
.runsheet { padding: 20px 22px; border: 1px solid var(--border); margin: 20px 0; }
.runsheet h4, .runsheet h5 { margin: 0 0 12px; }
.runsheet p:last-child { margin: 0; }
.runsheet-help { color: var(--muted); font-size: 16px; }
.runsheet .actions { margin-bottom: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.moment { margin-top: 36px; }
.moment + .moment { margin-top: 48px; }
.back-top { display: inline-block; font-size: 16px; margin-top: 24px; }
.site-footer { padding: 26px 20px; background: #111; border-top: 1px solid var(--border); text-align: center; font-size: 16px; }
.site-footer p { margin: 0; }

@media (max-width: 850px) {
  .page-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; max-width: 800px; }
  .contents { position: static; max-height: none; padding: 20px 24px; border: 1px solid var(--border); }
  .contents > nav > ol { columns: 2; column-gap: 32px; }
  .contents > nav > ol > li { break-inside: avoid; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .site-header { padding-top: 24px; }
  .site-nav { gap: 12px 22px; }
  .page-heading { padding: 22px 20px 30px; }
  .page-layout { padding: 0 20px 40px; }
  .contents { padding: 18px; }
  .contents > nav > ol { columns: auto; }
  h2 { font-size: 25px; }
  h3 { font-size: 23px; }
  .gallery { grid-template-columns: 1fr; gap: 24px; }
  .steps { padding-left: 22px; }
  .steps > li { padding-left: 2px; }
  .equations { padding: 16px; }
  .content > section { margin-bottom: 48px; }
}
@media print {
  body { color: #000; background: #fff; font-size: 11pt; }
  .site-header, .contents, .site-footer, .back-top, .skip-link { display: none; }
  .page-layout { display: block; max-width: none; padding: 0; }
  .page-heading { padding: 0 0 24px; }
  .content > section { margin-bottom: 32px; }
  h2, h3, h4, h5 { break-after: avoid; }
  figure, .runsheet { break-inside: avoid; }
  figcaption, .status, .parts .vendor, .runsheet-help { color: #333; }
}
