:root {
  --paper: #f6f1e7; --card: #fffdf8; --ink: #23201a; --soft: #6b6456; --line: #d9d0bd;
  --birch: #e3c99a; --birch2: #d4b782; --heat: #c8502e; --cool: #2f7ea6; --wood: #a88a60; --white: #fbfaf5; --wall: #cfc6b4;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.55 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
p { margin: 0; }

/* Hero */
.hero { padding: 56px 0 8px; }
.head { max-width: 1180px; margin-bottom: 28px; }
.kicker { font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--heat); margin-bottom: 18px; }
h1 { font-size: clamp(36px, 5.6vw, 68px); line-height: 1.04; max-width: 15em; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--soft); max-width: 36em; margin-top: 20px; }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(#efe8da, #e4dccb); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; outline: none; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage.live .poster { display: none; }
.stage.nogl canvas, .stage.nogl .onstage { display: none; }
.tags { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tag { position: absolute; left: 0; top: 0; font: 600 12.5px/1 var(--sans); background: var(--ink); color: #fff; padding: 5px 9px; border-radius: 99px; white-space: nowrap; }
.onstage { position: absolute; z-index: 2; }
.tl { left: 12px; top: 12px; } .tr { right: 12px; top: 12px; } .bl { left: 14px; bottom: 12px; } .br { right: 12px; bottom: 12px; }
.pill { font: 600 14px/1 var(--sans); padding: 10px 15px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 253, 248, .92); color: var(--ink); cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.zoom { display: flex; gap: 6px; }
.zoom button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 253, 248, .92); color: var(--ink); font: 500 20px/1 var(--sans); cursor: pointer; }
.hint { font: 500 12.5px/1 var(--sans); color: var(--soft); background: rgba(255, 253, 248, .8); padding: 6px 10px; border-radius: 99px; margin: 0; }
.under { display: grid; grid-template-columns: auto 1fr; gap: 14px 28px; align-items: start; margin-top: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: 600 14.5px/1 var(--sans); padding: 11px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.say { color: var(--soft); font-size: 15.5px; max-width: 44em; min-height: 4.6em; padding-top: 2px; }
.facts { list-style: none; padding: 22px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 44px; font-size: 14px; color: var(--soft); }
.facts b { display: block; font: 600 34px/1 var(--serif); color: var(--ink); margin-bottom: 4px; }

/* Sections */
main section.wrap { padding: 92px 24px 0; }
.sechead { display: flex; align-items: baseline; gap: 16px; border-top: 1px solid var(--ink); padding-top: 16px; margin-bottom: 26px; }
.sechead .no { font: 600 13px/1 var(--mono); color: var(--heat); }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.08; }
h3 { font-size: 21px; line-height: 1.2; }
h3.sub { margin: 36px 0 12px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 56px; align-items: start; margin-bottom: 30px; }
.intro { font-size: 19px; line-height: 1.55; max-width: 34em; }
.small { color: var(--soft); font-size: 15px; max-width: 44em; margin-bottom: 16px; }
.finds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: max-content 1fr; gap: 12px 18px; font-size: 15px; color: var(--soft); }
.finds li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: baseline; border-top: 1px solid var(--line); padding-top: 12px; }
.finds b { font: 600 24px/1 var(--serif); color: var(--ink); white-space: nowrap; }

/* Drawings */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
figure { margin: 0; }
figure.draw { padding: 18px 18px 14px; }
figcaption { font-size: 13.5px; color: var(--soft); margin-top: 10px; }
.drawing { overflow-x: auto; }
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pair.wide-first { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px 48px; align-items: start; }
.split.rev { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.points { list-style: none; counter-reset: p; margin: 0; padding: 0; display: grid; gap: 22px; }
.points li { counter-increment: p; border-top: 1px solid var(--line); padding-top: 16px; }
.points h3::before { content: counter(p); font: 600 13px/1 var(--mono); color: var(--heat); margin-right: 12px; vertical-align: 3px; }
.points p { color: var(--soft); margin-top: 6px; font-size: 16px; }
.specs { list-style: none; margin: 0; padding: 0; font-size: 15.5px; }
.specs li { display: grid; grid-template-columns: 7.2em 1fr; gap: 14px; border-top: 1px solid var(--line); padding: 13px 0; }
.specs b { font-family: var(--serif); font-size: 17px; }
.specs span { color: var(--soft); }
.legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; color: var(--soft); }
.legend li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: baseline; }
.legend i { width: 12px; height: 12px; border-radius: 50%; display: block; transform: translateY(1px); }
.legend b { color: var(--ink); display: block; }

/* Photos */
.photos { display: grid; gap: 16px; }
.photos.three { grid-template-columns: 1fr 1fr 1fr; }
.photos.two { grid-template-columns: 1.25fr 1fr; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); background: var(--line); }
.photos.two img { aspect-ratio: auto; height: 560px; }
.photos.pair { grid-template-columns: 1fr 1fr; }
.photos.pair img, .photos.tall img { height: auto; }
.photos + .photos { margin-top: 22px; }
.photos.tall img { aspect-ratio: 3 / 4; }
section.wrap.real { padding-top: 34px; }
.real img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 42%; border-radius: 14px; border: 1px solid var(--line); background: var(--line); }
.real figcaption { font-size: 15px; }
.real figcaption b { color: var(--ink); }

/* Machine files */
.ops { list-style: none; margin: 0; padding: 0; font-size: 14.5px; color: var(--soft); }
.ops li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; align-items: start; }
.ops i { height: 5px; border-radius: 3px; margin-top: 9px; display: block; }
.ops b { color: var(--ink); display: block; }
.files { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.file { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.file .prev { background: #fff; border: 1px solid var(--line); border-radius: 8px; aspect-ratio: 2 / 1; display: grid; place-items: center; overflow: hidden; padding: 10px; }
.file .prev svg { width: 100%; height: 100%; }
.file .prev svg rect { fill: #f1e4c7; stroke: var(--wood); vector-effect: non-scaling-stroke; stroke-width: 1px; }
.file .prev svg path, .file .prev svg circle { vector-effect: non-scaling-stroke; stroke-width: 1.15px; }
.file b { font: 600 17px/1.25 var(--serif); }
.file span { font-size: 13.5px; color: var(--soft); flex: 1; }
.file .dls { display: flex; gap: 6px; flex-wrap: wrap; }
.file .dls a { font: 600 12.5px/1 var(--mono); padding: 8px 11px; border-radius: 99px; background: var(--ink); color: #fff; text-decoration: none; }
.file .dls a:hover { background: var(--heat); }

/* One model */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 600 14px/1.2 var(--sans); }
.flow span.in, .flow span.mid, .flow .outs span { padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.flow span.mid { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow .arr { width: 22px; height: 1px; background: var(--ink); position: relative; }
.flow .arr::after { content: ""; position: absolute; right: 0; top: -3px; border: solid var(--ink); border-width: 1px 1px 0 0; width: 6px; height: 6px; transform: rotate(45deg); }
.flow .outs { display: grid; gap: 6px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; font-size: 14.5px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 2px 10px; align-content: start; border-top: 1px solid var(--line); padding: 11px 0; }
.checks .ok { width: 9px; height: 5px; border: solid #2e7d4f; border-width: 0 0 2px 2px; transform: rotate(-45deg); margin: 6px 0 0 3px; }
.checks .cv { grid-column: 2; color: var(--soft); font: 13px/1.4 var(--mono); }

.foot { margin-top: 96px; padding-top: 22px; padding-bottom: 56px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--soft); }
.foot > * { border: 0; }

svg text.coolt { fill: var(--cool); font-weight: 600; }
.inside { fill: var(--paper); stroke: none; }
.slotcut { fill: var(--paper); stroke: none; }

@media (max-width: 900px) {
  .cols, .split, .split.rev, .pair, .pair.wide-first { grid-template-columns: minmax(0, 1fr); }
  .files { grid-template-columns: 1fr 1fr; }
  .checks { grid-template-columns: 1fr; }
  .under { grid-template-columns: 1fr; }
  .say { min-height: 6.2em; }
  .photos.two img { height: auto; aspect-ratio: 4 / 5; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  main section.wrap { padding: 64px 16px 0; }
  .hero { padding-top: 36px; }
  .stage { aspect-ratio: 1 / 1.05; }
  .facts { gap: 14px 28px; } .facts b { font-size: 28px; }
  .photos.three, .photos.two, .photos.pair { grid-template-columns: 1fr; }
  .real img { aspect-ratio: 4 / 3; }
  .scroll .drawing svg { min-width: 640px; }
  figure.draw { padding: 12px 12px 10px; }
  .files { grid-template-columns: 1fr; }
  .intro { font-size: 17.5px; }
  .scroll figcaption::before { content: "Swipe sideways to see all of it. "; font-weight: 600; color: var(--ink); }
  .flow { flex-direction: column; align-items: flex-start; gap: 4px; }
  .flow .arr { transform: rotate(90deg); margin: 10px 0 10px 24px; }
  .flow .outs { display: flex; flex-wrap: wrap; }
}

/* Styles the drawings need. Copied from site/style.css, site/c/c.css and site/measure.html. */
svg { display: block; width: 100%; height: auto; font-family: var(--sans); }

/* Drawing styles */
svg text { fill: var(--ink); paint-order: stroke; stroke: var(--card); stroke-linejoin: round; }
svg rect, svg line, svg path, svg polygon, svg circle { vector-effect: non-scaling-stroke; }
.dim, .ext, .exthot, .dimhot, .lead, .leadhot, .ink { fill: none; }
.dim { stroke: var(--ink); stroke-width: 1px; }
.dimt { fill: var(--ink); font-weight: 500; }
.dimhot { stroke: var(--heat); stroke-width: 1px; }
.dimhott, .hott { fill: var(--heat); font-weight: 600; }
.ext { stroke: var(--soft); stroke-width: .6px; stroke-dasharray: 2 2; }
.exthot { stroke: var(--heat); stroke-width: .8px; stroke-dasharray: 3 2; }
.ink { stroke: var(--ink); stroke-width: 1px; }
.lead { stroke: var(--soft); stroke-width: .7px; }
.leadhot { stroke: var(--heat); stroke-width: .7px; }
.wallfill, .wallcut { fill: var(--wall); stroke: var(--ink); stroke-width: .8px; }
.kitchen { fill: #e7e1d3; stroke: var(--soft); stroke-width: .8px; }
.ghost { fill: rgba(110,90,66,.08); stroke: var(--soft); stroke-width: .8px; stroke-dasharray: 4 3; }
.ghostt { fill: var(--soft); }
.birch { fill: var(--birch); stroke: var(--ink); stroke-width: 1px; }
.birch2 { fill: var(--birch2); stroke: var(--ink); stroke-width: 1px; }
.slot { fill: var(--ink); fill-opacity: .72; stroke: none; }
.slotted { fill: var(--birch); stroke: var(--ink); stroke-width: 1px; stroke-dasharray: 2 1.5; }
.slotband { fill: var(--birch); stroke: var(--ink); stroke-width: 1px; stroke-dasharray: 2 1.5; }
.lab { fill: var(--ink); }
.labb { fill: var(--ink); font-weight: 700; }
.radline { fill: rgba(200,80,46,.14); stroke: var(--heat); stroke-width: 1.1px; stroke-dasharray: 4 2.5; }
.radsolid { fill: rgba(200,80,46,.2); stroke: var(--heat); stroke-width: 1.1px; }
.radt { fill: var(--heat); font-weight: 600; }
.bearer { fill: var(--wood); stroke: var(--ink); stroke-width: .7px; }
.carcass { fill: var(--white); stroke: var(--ink); stroke-width: 1px; }
.board { fill: #f2efe6; stroke: var(--ink); stroke-width: 1px; }
.front, .frontplan { fill: #fff; stroke: var(--ink); stroke-width: 1px; }
rect.cut { fill: #ece6d8; stroke: var(--ink); stroke-width: .8px; }
.floor { fill: var(--wood); stroke: none; }
.windowfill { fill: #dbe7ea; stroke: var(--soft); stroke-width: .7px; }
.hinge { fill: var(--ink); stroke: none; }
.arrowhot, .arrowcool, .arrowink { fill: none; stroke-width: 2px; }
.arrowhot { stroke: var(--heat); }
.arrowcool { stroke: var(--cool); }
.arrowink { stroke: var(--ink); stroke-width: 1px; }
.ahot { fill: var(--heat); }
.acool { fill: var(--cool); }
.headink { fill: var(--ink); }
.cutout { fill: var(--card); stroke: var(--heat); stroke-width: 1.2px; }
.hingeband { fill: var(--heat); stroke: none; }
.rib { fill: var(--birch2); stroke: var(--ink); stroke-width: .8px; stroke-dasharray: 3 2; }
.drill { fill: var(--heat); stroke: none; }
.screw { stroke: var(--ink); stroke-width: 2.4px; fill: none; }
.screwhead { fill: var(--ink); stroke: none; }
.tagc { fill: var(--card); stroke: var(--ink); stroke-width: 1px; }
.sheetbg { fill: #efe6d3; stroke: var(--ink); stroke-width: 1px; }
.leg { fill: var(--wood); stroke: var(--ink); stroke-width: .7px; }
.legside { fill: #b9b2a3; stroke: var(--ink); stroke-width: .7px; }
.white { fill: #fff; stroke: var(--ink); stroke-width: 1px; }
.lidcut { fill: none; stroke: var(--heat); stroke-width: 1.4px; }
.under { fill: none; stroke: var(--soft); stroke-width: .7px; stroke-dasharray: 4 3; }
.behind { fill: none; stroke: var(--heat); stroke-width: 1px; }
.hingeline { stroke: var(--ink); stroke-width: 2.6px; fill: none; }
.pocket { fill: var(--ink); fill-opacity: .55; stroke: none; }
.milled { fill: var(--birch2); fill-opacity: .9; stroke: var(--ink); stroke-width: .7px; stroke-dasharray: 3 2; }
.grille { fill: #e9d3a6; stroke: var(--ink); stroke-width: 1px; }
.grilletop { fill: #e9d3a6; stroke: var(--ink); stroke-width: 1px; }
.ringline { fill: none; stroke: var(--ink); stroke-width: .8px; stroke-dasharray: 3 2; }
.cable { fill: none; stroke: var(--ink); stroke-width: 1px; stroke-dasharray: 2 2; }
.socketp { fill: none; stroke: var(--heat); stroke-width: 1px; stroke-dasharray: 2 1.5; }
.radghost { fill: none; stroke: var(--heat); stroke-width: 1.1px; stroke-dasharray: 4 2.5; }
.felt { fill: #8a6f9e; stroke: none; }
.mwall { fill: var(--wall); stroke: none; }
.mwin { fill: #dbe7ea; stroke: none; }
svg text.mwallt { fill: var(--soft); stroke: none; letter-spacing: .06em; text-transform: uppercase; }
.mcab { fill: #fff; stroke: var(--ink); stroke-width: 1px; }
.mfront { fill: #b9ad93; stroke: var(--ink); stroke-width: .7px; }
svg text.mid { fill: #bdb4a0; stroke: none; font-family: var(--serif); font-weight: 600; }
.mhole { fill: #e6dfd0; stroke: var(--ink); stroke-width: 1px; stroke-dasharray: 4 3; }
.mrad { fill: url(#fins); stroke: var(--heat); stroke-width: .8px; }
.mvalve { fill: #f3d9cf; stroke: var(--heat); stroke-width: .8px; }
svg text.mradt { fill: var(--heat); font-weight: 600; }
.mgap { fill: #f4d96b; stroke: none; }
.mkit { fill: #e7e1d3; stroke: var(--soft); stroke-width: .8px; }
.mthing { fill: url(#unk); stroke: var(--heat); stroke-width: .8px; stroke-dasharray: 3 2; }
.mframe { fill: none; stroke: var(--cool); stroke-width: 1px; stroke-dasharray: 5 4; }
svg text.mnote { fill: var(--soft); }
.mknown { stroke: var(--soft); stroke-width: 1px; fill: none; }
.mext { stroke: var(--soft); stroke-width: .7px; stroke-dasharray: 2 2; fill: none; }
.mdim { stroke-width: 1.8px; fill: none; }
.mtagc { stroke: var(--card); stroke-width: 1.5px; }
svg text.mtagt { fill: #fff; stroke: none; font-weight: 700; }
svg g.done .mtagc { stroke: var(--ink); stroke-width: 2.5px; }
