@font-face { font-family: "Hanken Grotesk"; src: url("fonts/HankenGrotesk.ttf") format("truetype"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("fonts/MartianMono.ttf") format("truetype"); font-weight: 400 600; font-display: swap; }

:root { --table: #F1F3F2; --frame: #FFFFFF; --ink: #15171A; --ink2: #5B6168; --base: #E8751A; --deep: #A84A08; --rule: #D5D9D7; color-scheme: light; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--table); color: var(--ink); font: 400 17px/1.5 "Hanken Grotesk", system-ui, sans-serif; }
a { color: var(--deep); text-underline-offset: 3px; }
a:active, button:active { transform: scale(.97); transition: transform 80ms ease-out; }
.mono, .edge b, .status, .num { font-family: "Martian Mono", ui-monospace, monospace; font-weight: 500; }

/* The page is a strip: an orange film edge down the left, a frame number at each section. */
.strip { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 14px minmax(0, 1fr); min-height: 100vh; }
.edge { background: var(--base); }
.frames { padding: 0 0 0 0; }
section { position: relative; padding: 40px 24px 40px 28px; border-bottom: 1px solid var(--ink); }
section:last-of-type { border-bottom: 0; }
.num { position: absolute; left: -14px; top: 12px; width: 14px; text-align: center; font-size: 9px; color: var(--ink); }
header { display: flex; align-items: center; gap: 12px; padding: 20px 24px 0 28px; }
header img { width: 40px; height: 40px; border-radius: 9px; }
header .name { font-weight: 600; font-size: 19px; }
h1 { font-size: clamp(32px, 6vw, 52px); line-height: 1.08; font-weight: 700; margin: 0 0 14px; max-width: 14ch; }
h2 { font-size: 26px; line-height: 1.2; font-weight: 600; margin: 0 0 12px; }
p { margin: 0 0 14px; max-width: 60ch; }
.lead { font-size: 20px; color: var(--ink); }
.quiet { color: var(--ink2); }
.flush { margin: 0; }
ul.plain { margin: 0 0 14px; padding-left: 18px; max-width: 60ch; }
ul.plain li { margin: 4px 0; }

.hero { display: grid; grid-template-columns: 1fr minmax(280px, 360px); gap: 32px; align-items: start; }
.store { display: inline-block; background: var(--base); color: var(--ink); text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: 2px; margin: 6px 0 10px; }

/* The splice demo */
.splice { background: var(--frame); border: 1px solid var(--ink); padding: 12px; }
.splice canvas { display: block; width: 100%; touch-action: none; cursor: ns-resize; background: var(--table); }
.status { font-size: 12px; margin: 10px 0 8px; min-height: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
button { font: 600 15px "Hanken Grotesk", system-ui, sans-serif; color: var(--ink); background: var(--frame); border: 1.5px solid var(--ink); border-radius: 2px; height: 44px; cursor: pointer; }
.switch { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 14px; color: var(--ink2); }
.switch input { width: 18px; height: 18px; accent-color: var(--deep); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel { background: var(--frame); border: 1px solid var(--ink); border-left: 14px solid var(--base); padding: 18px 20px; }
.price { font-size: 44px; font-weight: 700; line-height: 1; margin: 4px 0 2px; }
footer { padding: 24px 24px 40px 28px; font-size: 14px; color: var(--ink2); }
footer a { margin-right: 16px; }

.doc h1 { font-size: 36px; max-width: none; }
.doc h2 { font-size: 20px; margin-top: 26px; }

@media (max-width: 720px) {
  .hero, .two { grid-template-columns: minmax(0, 1fr); }
  section { padding: 32px 16px 32px 20px; }
  header, footer { padding-left: 20px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) { a:active, button:active { transform: none; } }
