/* Harness Workshop website.
   Paper white is the ground, because the diagrams are drawn on paper. Graphite is the stage the
   screen recordings play on. Amber is only ever something you can press, or the step now playing. */
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 600; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Barlow Semi Condensed'; font-weight: 700; font-display: swap; src: url(../fonts/barlow-semi-condensed-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 200 800; font-display: swap; src: url(../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2) format('woff2'); }
:root {
  --paper: #ffffff; --bench: #eef0f1; --stage: #1b1e22; --stage2: #262a30;
  --ink: #23262a; --ink2: #474c53; --muted: #6b7179; --line: #d3d7db;
  --amber: #f2a20c; --amber-deep: #a86b00; --on-stage: #eceef0; --on-stage2: #a9afb6;
  --cond: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  --body: 'Atkinson Hyperlegible Next', system-ui, sans-serif;
  --wrap: 1280px; --pad: 32px;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

h1, h2, h3 { font-family: var(--cond); font-weight: 700; line-height: 1.02; margin: 0; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.9rem, 5.3vw, 4.6rem); }
h1.page { font-size: clamp(2.5rem, 5.4vw, 4.2rem); max-width: 17ch; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); max-width: 19ch; }
h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.15; }
p { margin: 0; max-width: 60ch; }
.lede { font-size: 1.24rem; line-height: 1.45; margin-top: 22px; max-width: 46ch; color: var(--ink2); }
.note { margin-top: 18px; color: var(--muted); font-size: 0.93rem; }
.more { display: inline-block; margin-top: 22px; font-weight: 600; text-underline-offset: 4px; text-decoration-thickness: 2px; text-decoration-color: var(--amber); }
.more:hover { text-decoration-color: currentColor; }

/* ------------------------------------------------------------ top */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.mark { display: flex; align-items: center; gap: 10px; font: 600 1.25rem var(--cond); text-decoration: none; white-space: nowrap; }
.mark img { width: 32px; height: 32px; }
.top nav { display: flex; gap: 26px; align-items: center; font-size: 0.97rem; }
.top nav a { text-decoration: none; padding: 4px 0; }
.top nav a:not(.go):hover { box-shadow: 0 2px 0 var(--line); }
.top nav a[aria-current] { box-shadow: 0 2px 0 var(--ink); }

.go { display: inline-block; padding: 14px 26px; background: var(--amber); color: #1d1a12; font: 650 1.08rem var(--body); text-decoration: none; border: 1px solid #c98300; border-radius: 5px; box-shadow: inset 0 -2px 0 rgba(120, 70, 0, 0.22), 0 1px 2px rgba(35, 38, 42, 0.18); transition: background 0.12s; }
.go:hover { background: #ffb428; }
.go:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 rgba(120, 70, 0, 0.22); }
.top nav .go { padding: 8px 16px; font-size: 0.97rem; }

/* ------------------------------------------------------------ home hero */
.hero { padding: 40px var(--pad) 0; display: grid; grid-template-columns: auto minmax(300px, 430px); gap: 24px 56px; align-items: end; justify-content: space-between; }
.hero .lede { margin-top: 0; font-size: 1.13rem; }
.hero .cta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; }
.hero .cta span { color: var(--muted); font-size: 0.95rem; }

/* the stage: full-width graphite the recordings play on. The first one rides up under the hero text. */
.stage { background: var(--stage); color: var(--on-stage); padding: 72px 0; }
.stage h2, .stage h3 { color: #fff; }
.stage p { color: var(--on-stage2); }
.stage.first { margin-top: 140px; padding-top: 0; }
.stage.first .clip { transform: translateY(-96px); margin-bottom: -64px; }
.stage .more { color: #fff; }

/* a screen recording, framed like the window it was taken from */
.clip { position: relative; margin: 0; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 30px 70px -30px rgba(0, 0, 0, 0.75); }
.clip video { width: 100%; aspect-ratio: 1600 / 950; object-fit: cover; }
.onpaper .clip, .onbench .clip { box-shadow: 0 0 0 1px var(--line), 0 26px 60px -34px rgba(35, 38, 42, 0.5); }
.clip .pp { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(27, 30, 34, 0.78); cursor: pointer; display: grid; place-items: center; opacity: 0; transition: opacity 0.15s; }
.clip:hover .pp, .clip .pp:focus-visible, .clip.paused .pp { opacity: 1; }
.clip .pp::before { content: ''; width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }
.clip.paused .pp::before { width: 0; height: 0; border: 8px solid transparent; border-left: 13px solid #fff; border-right: 0; margin-left: 3px; }

/* the steps of the recording: the one playing fills its bar */
.chapters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.chapters button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0 0 4px; cursor: pointer; }
.chapters .bar { display: block; height: 3px; background: rgba(255, 255, 255, 0.16); margin-bottom: 16px; overflow: hidden; }
.chapters .bar i { display: block; height: 100%; width: 0; background: var(--amber); }
.chapters .n { font: 700 1.05rem var(--cond); color: var(--on-stage2); margin-right: 8px; }
.chapters b { font: 600 1.3rem var(--cond); color: #fff; }
.chapters small { display: block; margin-top: 4px; font-size: 0.93rem; line-height: 1.4; color: var(--on-stage2); }
.chapters .on .n { color: var(--amber); }
.chapters button:hover b { text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------ bands */
.band { padding: 112px 0; }
.band.onbench { background: var(--bench); }
.band.tight { padding-bottom: 0; }
.pagehead { padding: 44px 0 0; }
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 56px; align-items: end; margin-bottom: 48px; }
.head p { color: var(--ink2); font-size: 1.1rem; }
.stage .head p { color: var(--on-stage2); }

/* words beside a recording */
.duo { display: grid; grid-template-columns: 8fr 4fr; gap: 56px; align-items: center; }
.duo.flip { grid-template-columns: 4fr 8fr; }
.duo.flip > :first-child { order: 2; }
.points { margin: 26px 0 0; padding: 0; list-style: none; }
.points li { padding: 14px 0; border-top: 1px solid var(--line); max-width: 40ch; }
.stage .points li { border-color: rgba(255, 255, 255, 0.14); color: var(--on-stage2); }
.points b { display: block; font: 600 1.2rem var(--cond); color: var(--ink); }
.stage .points b { color: #fff; }

/* the sheets: pick one on the left, read it on the right */
.sheets { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.sheets [role='tablist'] { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.sheets [role='tab'] { text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 14px 12px 14px 16px; cursor: pointer; position: relative; }
.sheets [role='tab'] b { display: block; font: 600 1.22rem var(--cond); }
.sheets [role='tab'] small { display: block; font-size: 0.9rem; line-height: 1.35; color: var(--muted); margin-top: 2px; }
.sheets [role='tab']:hover { background: var(--bench); }
.sheets [role='tab'][aria-selected='true'] { background: var(--bench); }
.sheets [role='tab'][aria-selected='true']::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--amber); }
.sheets .who { font: 600 0.82rem var(--body); color: var(--muted); padding: 18px 0 8px 16px; }
.sheet { margin: 0; background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(35, 38, 42, 0.55); }
.sheet img { width: 100%; cursor: zoom-in; }

.goesin { margin-top: 30px; padding: 16px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 30px; font: 600 1.25rem var(--cond); }
.goesin span { white-space: nowrap; }

.shot { margin: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 26px 60px -34px rgba(35, 38, 42, 0.5); background: #fff; }
.shot img { cursor: zoom-in; width: 100%; }

/* features page: one thing it does, with its recording */
.feature { padding: 88px 0; border-top: 1px solid var(--line); }
.feature:first-of-type { border-top: 0; padding-top: 56px; }
.feature h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
.feature p { margin-top: 14px; color: var(--ink2); }
.feature ul { margin: 18px 0 0; padding-left: 1.1em; color: var(--ink2); }
.feature li { margin: 6px 0; max-width: 42ch; }
.pair { display: grid; gap: 22px; }

.sheetwall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 40px; }
.sheetwall figure { margin: 0; }
.sheetwall img { background: var(--paper); box-shadow: 0 0 0 1px var(--line), 0 14px 28px -18px rgba(35, 38, 42, 0.55); cursor: zoom-in; }
.sheetwall figcaption { margin-top: 10px; font-size: 0.9rem; color: var(--ink2); line-height: 1.35; }
.sheetwall b { font: 600 1.08rem var(--cond); color: var(--ink); }

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 44px; margin-top: 40px; }
.cols > div { border-top: 1px solid var(--line); padding-top: 16px; }
.cols.four { grid-template-columns: repeat(4, 1fr); gap: 34px 32px; }
.onbench .cols > div { border-color: #c9cdd2; }
.cols h3 { margin-bottom: 6px; }
.cols p { color: var(--ink2); font-size: 0.98rem; }

/* prices, set out as the title block at the foot of a drawing */
.block { margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); border: 2px solid var(--ink); background: var(--paper); }
.block > div { padding: 24px 26px 28px; display: flex; flex-direction: column; }
.block > div + div { border-left: 1px solid var(--ink); }
.block .cell { font: 600 1.05rem var(--cond); color: var(--muted); }
.block .price { font: 700 3.6rem/1.05 var(--cond); margin: 8px 0 4px; }
.block .per { color: var(--ink2); font-size: 0.98rem; min-height: 3.1em; }
.block ul { margin: 16px 0 24px; padding-left: 1.1em; flex: 1; color: var(--ink2); }
.block li { margin: 6px 0; }
.block .go { text-align: center; }
.block.slim .per { min-height: 0; }
.block.slim > div { padding-bottom: 22px; }

.honest { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; }
.honest > div { border-top: 1px solid var(--line); padding-top: 16px; }
.honest h3 { margin-bottom: 6px; }
.honest p { color: var(--ink2); }

.faq { margin-top: 36px; border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font: 600 1.28rem var(--cond); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 12px; font: 600 1.7rem var(--cond); color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 20px; color: var(--ink2); }
.faq details p + p { margin-top: -8px; }

.steps { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: s; border-top: 2px solid var(--ink); max-width: 860px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3.4rem 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); font: 700 2.2rem/1 var(--cond); color: var(--amber-deep); }
.steps b { display: block; font: 600 1.28rem var(--cond); }
.steps span { color: var(--ink2); }
kbd { font: 600 0.85em var(--body); padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; background: var(--paper); }

/* the last word, on the stage */
.closing { background: var(--stage); color: #fff; padding: 96px 0; }
.closing .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.closing h2 { max-width: 18ch; color: #fff; }

footer { background: var(--stage); color: var(--on-stage2); font-size: 0.9rem; }
footer .wrap { padding-top: 26px; padding-bottom: 40px; border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer p { max-width: 72ch; flex-basis: 100%; }

dialog.zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; cursor: zoom-out; }
dialog.zoom img { max-width: 96vw; max-height: 94vh; background: #fff; }
dialog.zoom::backdrop { background: rgba(27, 30, 34, 0.86); }

@media (max-width: 980px) {
  .duo, .duo.flip, .head, .sheets, .hero { grid-template-columns: 1fr; gap: 28px; }
  br.wide { display: none; }
  h1 { max-width: 12ch; }
  .duo.flip > :first-child { order: 0; }
  .sheets [role='tablist'] { flex-direction: row; overflow-x: auto; border-top: 0; border-bottom: 2px solid var(--ink); scrollbar-width: thin; }
  .sheets [role='tab'] { flex: none; border-bottom: 0; padding: 10px 14px; }
  .sheets [role='tab'] small, .sheets .who { display: none; }
  .sheets [role='tab'][aria-selected='true']::before { top: auto; right: 0; width: auto; height: 4px; }
  .sheetwall { grid-template-columns: 1fr 1fr; }
  .cols, .cols.four { grid-template-columns: 1fr 1fr; }
  .chapters { grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
  .band { padding: 80px 0; }
}
@media (max-width: 720px) {
  html { font-size: 16px; }
  :root { --pad: 18px; }
  .top { flex-wrap: wrap; }
  .top nav { gap: 16px; flex-wrap: wrap; }
  .hero { padding-top: 24px; }
  .stage.first { margin-top: 96px; }
  .stage.first .clip { transform: translateY(-56px); margin-bottom: -28px; }
  .clip { border-radius: 6px; }
  .chapters { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .block, .honest, .cols, .cols.four { grid-template-columns: 1fr; }
  .block > div + div { border-left: 0; border-top: 1px solid var(--ink); }
  .block .per { min-height: 0; }
  .band, .stage { padding: 64px 0; }
  .feature { padding: 56px 0; }
  .closing { padding: 64px 0; }
}
