/* labb: hazard black and yellow, one theme. Wordmark type, ruled rows instead of cards, the machine in the hero is the one loud thing. */
:root {
  --black: #0b0b0a; --surface: #161614; --raised: #20201d; --line: #2e2e2a; --muted: #a9a89e; --ink: #f7f6ef; --yellow: #ffd400;
  --display: "Archivo", "Arial Black", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--ink); font: 400 18px/1.6 var(--body); }
a { color: var(--yellow); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--black); padding: 8px 14px; z-index: 5; }
.skip:focus { left: 8px; }
.hazard { height: 10px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--black) 14px 28px); }

/* shell */
.bar { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 900 30px/1 var(--display); font-stretch: 125%; letter-spacing: -.04em; }
.brand img { width: 34px; height: 34px; border: 0; }
.bar nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin-left: auto; font-weight: 500; font-size: 16px; }
.bar nav a { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 3px solid transparent; }
.bar nav a:hover, .bar nav a[aria-current] { border-bottom-color: var(--yellow); }
.btn { display: inline-block; background: var(--yellow); color: var(--black); font: 800 17px/1.2 var(--body); padding: 13px 20px; border: 0; border-radius: 4px; box-shadow: 4px 4px 0 var(--ink); text-decoration: none; cursor: pointer; transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn.quiet { background: transparent; color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.btn.quiet:hover { border-color: var(--yellow); box-shadow: none; transform: none; }
.bar nav .btn { padding: 8px 14px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); border-bottom: 0; }
main { max-width: 1200px; margin: 0 auto; padding: 0 24px 88px; display: flex; flex-direction: column; gap: 96px; }
.site-foot { border-top: 1px solid var(--line); }
.site-foot .in { max-width: 1200px; margin: 0 auto; padding: 36px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 48px; color: var(--muted); font-size: 15px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-foot p { margin: 12px 0 0; max-width: 72ch; }

/* type */
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font: 900 clamp(40px, 6.4vw, 76px)/1 var(--display); font-stretch: 112%; letter-spacing: -.025em; max-width: 18ch; }
h2 { font: 900 clamp(29px, 3.8vw, 46px)/1.05 var(--display); font-stretch: 112%; letter-spacing: -.02em; }
h3 { font: 800 21px/1.25 var(--display); font-stretch: 108%; }
p { margin: 0; max-width: 65ch; }
.lead { font-size: 21px; color: var(--muted); }
.kicker { font: 700 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
b { font-weight: 700; }
code { font: 400 .86em var(--mono); background: var(--surface); border: 1px solid var(--line); padding: 1px 6px; overflow-wrap: anywhere; }
mark { background: var(--yellow); color: var(--black); padding: 0 6px; font-weight: 700; }
section { display: flex; flex-direction: column; gap: 22px; }
.head { display: flex; flex-direction: column; gap: 12px; }
.page-head { padding-top: 48px; display: flex; flex-direction: column; gap: 18px; }
img { display: block; width: 100%; max-width: 100%; height: auto; border: 1px solid var(--line); }
figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
figcaption { font-size: 15px; color: var(--muted); max-width: 72ch; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* hero */
.hero { padding-top: 40px; display: flex; flex-direction: column; gap: 30px; }
.word { margin: 0; max-width: none; font: 900 clamp(112px, 25vw, 330px)/.78 var(--display); font-stretch: 125%; letter-spacing: -.055em; color: var(--ink); margin-left: -.03em; }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px 56px; align-items: end; }
.hero-line { font: 800 clamp(25px, 3vw, 37px)/1.14 var(--display); font-stretch: 108%; margin: 0; max-width: 24ch; text-wrap: balance; }
.hero-side { display: flex; flex-direction: column; gap: 20px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; font: 400 14px var(--mono); color: var(--muted); }

/* the machine */
.machine { border: 3px solid var(--yellow); background: var(--surface); }
.machine-scroll { overflow-x: auto; scrollbar-width: none; }
.machine-scroll::-webkit-scrollbar { display: none; }
.machine svg { display: block; width: 100%; min-width: 700px; height: auto; }
.machine-foot { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.answer { font-size: 19px; }
.answer b { color: var(--yellow); }
.m-ink { fill: var(--ink); } .m-y { fill: var(--yellow); } .m-dim { fill: var(--line); } .m-hole { fill: var(--surface); }
.m-line { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; fill: none; }
.m-post { stroke: #4a4a44; stroke-width: 5; }
.m-belt { stroke: var(--muted); stroke-width: 3; stroke-dasharray: 8 5; }
.m-q { font: 700 17px var(--body); fill: var(--ink); }
.m-lab { font: 700 13px var(--mono); fill: var(--muted); text-anchor: middle; }
.lever, .ball, .domino, .saw, .pop, .gear, .gear2, .ball2 { transform-box: view-box; }
.lever { transform-origin: 44px 215px; }
.saw { transform-origin: 500px 190px; }
.domino:nth-of-type(1) { transform-origin: 311px 215px; }
.domino:nth-of-type(2) { transform-origin: 345px 215px; }
.domino:nth-of-type(3) { transform-origin: 379px 215px; }
.domino:nth-of-type(4) { transform-origin: 413px 215px; }
.gear { transform-origin: 668px 104px; }
.gear2 { transform-origin: 742px 146px; }
@media (prefers-reduced-motion: no-preference) {
  .run .lever { animation: lever .45s ease-out both; }
  .run .ball { animation: roll 1.05s cubic-bezier(.45, 0, .8, .7) .35s both; }
  .run .domino { animation: topple .22s ease-in both; }
  .run .domino:nth-of-type(1) { animation-delay: 1.35s; }
  .run .domino:nth-of-type(2) { animation-delay: 1.5s; }
  .run .domino:nth-of-type(3) { animation-delay: 1.65s; }
  .run .domino:nth-of-type(4) { animation-delay: 1.8s; }
  .run .saw { animation: saw .2s ease-in 2s both; }
  .run .ball2 { animation: fling .65s ease-out 2.1s both; }
  .run .gear { animation: spin .8s linear 2.65s 2; }
  .run .gear2 { animation: spin .8s linear 2.65s 2 reverse; }
  .run .pop { animation: pop .5s cubic-bezier(.2, 1.7, .4, 1) 4.2s both; }
  .run .lab { animation: lit 1s linear both; }
  .run .lab1 { animation-delay: 0s; } .run .lab2 { animation-delay: 1.3s; } .run .lab3 { animation-delay: 2s; }
  .run .lab4 { animation-delay: 2.7s; animation-duration: 1.6s; } .run .lab5 { animation: lit-on .3s linear 4.2s both; }
  .run .run-ans { animation: rise .4s ease-out 4.3s both; }
}
@keyframes lever { to { transform: rotate(30deg); } }
@keyframes roll { 70% { transform: translate(168px, 107px); } 100% { transform: translate(214px, 139px); } }
@keyframes topple { to { transform: rotate(36deg); } }
@keyframes saw { to { transform: rotate(-12deg); } }
@keyframes fling { 55% { transform: translate(56px, -120px); opacity: 1; } 100% { transform: translate(98px, -98px); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { to { transform: translateY(-46px); } }
@keyframes lit { 0%, 100% { fill: var(--muted); } 15%, 85% { fill: var(--yellow); } }
@keyframes lit-on { to { fill: var(--yellow); } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }

/* layouts */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.duo > div, .duo > a { display: flex; flex-direction: column; gap: 14px; }
.tri { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.tri > div { display: flex; flex-direction: column; gap: 12px; }
.tri p { font-size: 17px; color: var(--muted); }
.side { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 44px; align-items: center; }
.side.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.side > div { display: flex; flex-direction: column; gap: 14px; }
.rows { border-top: 2px solid var(--yellow); }
.rows > div { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 6px 32px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.rows dt, .rows h3 { font: 800 19px/1.3 var(--display); font-stretch: 108%; margin: 0; }
.rows dd, .rows p { margin: 0; color: var(--muted); max-width: 70ch; }
dl.rows { margin: 0; }
.providers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font: 700 14px var(--mono); }
.providers li { border: 1px solid var(--line); padding: 6px 12px; }
.providers li.on { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.diagram { border: 1px solid var(--line); background: var(--surface); padding: 18px; overflow-x: auto; color: var(--ink); }
.diagram svg { display: block; width: 100%; min-width: 760px; height: auto; }
.band { background: var(--yellow); color: var(--black); padding: 40px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.band .btn { background: var(--black); color: var(--yellow); box-shadow: 4px 4px 0 rgb(0 0 0 / .35); }
.band p { max-width: 50ch; }

/* commands */
.cmd { position: relative; background: #050504; border: 1px solid var(--line); }
.cmd pre { margin: 0; padding: 18px 88px 18px 20px; overflow-x: auto; font: 400 15px/1.7 var(--mono); }
.cmd .c { color: var(--muted); }
.get-menu { position: relative; display: inline-block; }
.get-menu .btn .drop { display: inline-block; width: 0; height: 0; margin-left: 10px; vertical-align: middle; border: 6px solid transparent; border-top-color: currentColor; border-bottom: 0; transition: transform .12s; }
.get-menu .btn[aria-expanded="true"] .drop { transform: rotate(180deg); }
.get-options { position: absolute; z-index: 20; top: calc(100% + 12px); left: 0; width: min(360px, calc(100vw - 32px)); background: var(--raised); border: 2px solid var(--yellow); box-shadow: 6px 6px 0 rgb(0 0 0 / .5); display: flex; flex-direction: column; }
.get-options[hidden] { display: none; }
.get-options a, .get-options button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; cursor: pointer; color: var(--ink); text-decoration: none; }
.get-options > :is(a, button) + :is(a, button) { border-top: 1px solid var(--line); }
.get-options b { font: 800 17px var(--body); color: var(--yellow); }
.get-options span { color: var(--muted); font-size: 15px; line-height: 1.4; }
.get-options a:hover, .get-options button:hover, .get-options a:focus-visible, .get-options button:focus-visible { background: var(--surface); outline: none; }
.prompt-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.prompt-hint { color: var(--muted); font-size: 16px; }
.prompt-hint.done { color: var(--yellow); }
details.prompt-view { border-bottom: 0; padding: 18px 0 0; }
.prompt-view summary { color: var(--muted); font-weight: 600; }
.prompt-view summary:hover { color: var(--ink); }
.prompt-view pre { margin: 14px 0 0; padding: 18px 20px; background: #050504; border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 460px; overflow-y: auto; font: 400 14px/1.7 var(--mono); }
.copy { position: absolute; top: 10px; right: 10px; background: var(--raised); color: var(--ink); border: 1px solid var(--line); font: 700 12px var(--mono); padding: 5px 10px; cursor: pointer; }
.copy:hover { border-color: var(--yellow); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: flex; flex-direction: column; gap: 30px; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 0 16px; }
.steps > li::before { content: counter(s); font: 900 38px/1 var(--display); color: var(--yellow); }
.steps > li > div { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.jump { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 2px solid var(--line); }
.jump a { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px; color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); }
.jump a:last-child { border-right: 0; }
.jump a:hover { background: var(--surface); }
.jump b { font: 800 20px var(--display); color: var(--yellow); }
.jump span { color: var(--muted); font-size: 16px; }
.table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
td { border-bottom: 1px solid var(--line); padding: 10px 16px 10px 0; vertical-align: top; color: var(--muted); }
td:first-child { white-space: nowrap; color: var(--ink); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 8px; color: var(--muted); }
.faq { border-top: 2px solid var(--yellow); }
ul.plain { margin: 0; padding-left: 20px; max-width: 70ch; display: flex; flex-direction: column; gap: 8px; }
ul.plain li::marker { color: var(--yellow); }
ul.plain li { color: var(--muted); } ul.plain b { color: var(--ink); }

/* the Studio walkthrough */
.ask { border-left: 6px solid var(--yellow); background: var(--surface); padding: 18px 22px; max-width: 76ch; }
.ask .kicker { display: block; margin-bottom: 6px; }
.narrow { max-width: 760px; }
.panel { max-width: 420px; }
.split { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 32px; align-items: start; }
.split > div { display: flex; flex-direction: column; gap: 14px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); gap: 24px; }
.triggers { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.triggers div { background: var(--surface); border-top: 4px solid var(--yellow); padding: 14px 16px; font-size: 16px; color: var(--muted); }
.triggers b { display: block; color: var(--ink); }
.note { color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); padding-top: 16px; }
.walk { display: flex; flex-direction: column; gap: 72px; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  main { padding: 0 16px 64px; gap: 68px; }
  .bar { padding: 14px 16px; } .bar nav { margin-left: 0; width: 100%; }
  .hero-top, .duo, .tri, .side, .side.flip, .split, .pair, .jump, .site-foot .in { grid-template-columns: minmax(0, 1fr); }
  .rows > div { grid-template-columns: minmax(0, 1fr); }
  .jump a { border-right: 0; border-bottom: 1px solid var(--line); }
  .band { padding: 28px 22px; }
  .steps > li { grid-template-columns: 38px minmax(0, 1fr); }
  .side .shot-first { order: -1; }
}

.bar nav a.btn { color: var(--black); border-bottom: 0; }
.band { flex-direction: row; }
mark { -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.brand .y, .word .y { color: var(--yellow); }

/* Features menu, tiles and page footers */
.menu { position: relative; }
.bar nav .menu > a { display: inline-flex; align-items: center; gap: 6px; }
.caret { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; }
.menu ul { display: none; position: absolute; top: 100%; left: -14px; z-index: 10; list-style: none; margin: 6px 0 0; padding: 8px; min-width: 250px; background: var(--surface); border: 2px solid var(--yellow); box-shadow: 5px 5px 0 #000; }
.menu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.menu:hover ul, .menu:focus-within ul { display: block; }
.bar nav .menu li a { display: block; padding: 7px 10px; border-bottom: 0; }
.bar nav .menu li a:hover, .bar nav .menu li a[aria-current] { background: var(--raised); color: var(--yellow); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
.tile { display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; }
.tile img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; transition: border-color .1s; }
.tile:hover img { border-color: var(--yellow); }
.tile b { font: 800 24px/1.2 var(--display); font-stretch: 108%; margin-top: 6px; }
.tile:hover b { color: var(--yellow); }
.tile span { color: var(--muted); max-width: 52ch; }
.more { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.more a { display: block; border: 1px solid var(--line); padding: 8px 14px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.more a:hover { border-color: var(--yellow); color: var(--yellow); }
.page-head .kicker a { color: inherit; }
.tri h3 a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--yellow); }
.tri h3 a:hover { color: var(--yellow); }
@media (max-width: 860px) {
  .menu ul { display: none !important; }
  .caret { display: none; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
}
