/* Tripwire landing, the house layout Hermes set: a thin red frame, giant tight headlines, tiny caps labels,
   small square buttons, and full-bleed red bands. The band art is tripwire's own output, a wall of diff cards.
   Every colour and radius comes from tokens.css. */
:root {
  --scan: repeating-linear-gradient(to bottom, #000 0 1.5px, transparent 1.5px 3px);  /* scanlines for the engravings */
  /* film grain: white fractal noise, laid over every blue surface */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .28 0 0 0 -.06'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.art { position: relative; overflow: hidden; background: var(--grain), var(--band); }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: var(--size-body); line-height: 24px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code { font-size: .9em; padding: 2px 6px; border-radius: var(--r-sq); background: var(--surface); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-5); }
.center { text-align: center; }

h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(72px, 12vw, 176px); line-height: .95; font-weight: 700; letter-spacing: -.045em; }
h2 { font-size: clamp(44px, 6vw, 96px); line-height: 1; font-weight: 700; letter-spacing: -.035em; }
h3 { font-size: 28px; line-height: 32px; font-weight: 600; letter-spacing: -.02em; }
.label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); margin-bottom: var(--sp-4); }

.btn { height: 40px; padding: 0 var(--sp-4); border-radius: var(--r-sq); display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background var(--motion), color var(--motion), border-color var(--motion); }
.btn-solid { background: var(--btn); color: #fff; }
.btn-solid:hover { background: color-mix(in srgb, var(--btn) 82%, #fff); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
.btn:focus-visible, .foot-cols a:focus-visible, .prod a:focus-visible, .nav-brand:focus-visible, .nav-links a:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

.nav { position: sticky; top: 0; z-index: 10; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--sp-5); height: 56px; padding: 0 var(--sp-5); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
.nav-brand { display: flex; align-items: center; gap: var(--sp-2); font-weight: 700; font-size: 19px; letter-spacing: -.01em; text-decoration: none; }
.nav-brand img { width: 28px; height: 28px; border-radius: var(--r-icon); }
.nav-links, .nav-get { display: flex; gap: var(--sp-5); font-size: 15px; font-weight: 500; }
.nav-links a, .nav-get { text-decoration: none; color: var(--sub); }
.nav-links a:hover, .nav-get:hover { color: var(--text); }
.nav-brand { grid-column: 2; }
.nav-end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: var(--sp-5); }
/* the thin blue frame down both edges of the window */
@media (min-width: 900px) { body::after { content: ""; position: fixed; inset: 0; border-inline: 4px solid var(--frame); pointer-events: none; z-index: 30; } }

.hero { padding: var(--sp-9) 0 var(--sp-8); }
.lead { max-width: 560px; margin: var(--sp-6) auto 0; color: var(--sub); }
.cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-6); }
.center .cta { justify-content: center; }
.fine { margin-top: var(--sp-3); font-size: var(--size-footnote); line-height: 16px; color: var(--sub); }

/* the live window: same layout as the Mac app */
.demo-wrap { margin: var(--sp-8) clamp(0px, 3vw, 44px) 0; }
.stage { position: relative; overflow: hidden; background: var(--grain), var(--band); padding: clamp(24px, 6vw, 96px) clamp(12px, 7vw, 128px); }
.stage-art { position: absolute; inset: 0; }
.wall { position: absolute; inset: -6%; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; opacity: .55; pointer-events: none; user-select: none; }
.wall-col { display: flex; min-width: 0; flex-direction: column; gap: 10px; animation: drift var(--dur) linear infinite; }
.wall-col.down { animation-direction: reverse; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.wtile { border: 1px solid var(--band-line); border-radius: 4px; padding: 8px 10px; font: 11px/17px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden; color: var(--band-art); }
/* the issue tripwire files, as GitHub draws it */
.issue { position: relative; max-width: 620px; margin: 0 auto; text-align: left; background: var(--bg); color: var(--text); border-radius: 10px; overflow: hidden; box-shadow: 0 24px 64px rgba(0, 0, 0, .28); }
.issue-head { padding: var(--sp-4) var(--sp-5); border-bottom: 1px solid var(--line); }
.issue-title { font-weight: 600; font-size: 18px; line-height: 26px; }
.issue-meta { margin-top: var(--sp-2); display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; font-size: var(--size-footnote); color: var(--sub); }
.issue-open { background: var(--live); color: #fff; border-radius: var(--r-pill); padding: 2px 10px; font-weight: 600; }
.issue-body { padding: var(--sp-4) var(--sp-5) var(--sp-5); display: grid; gap: var(--sp-3); font-size: 15px; line-height: 22px; }
.issue-body ul { padding-left: var(--sp-5); display: grid; gap: var(--sp-1); }
.issue-body pre, .term pre { font: 13px/20px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; }
.issue-body pre { padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.rm { color: var(--bad); } .add { color: var(--live); }
.shot { position: relative; display: block; width: 100%; max-width: 1040px; height: auto; margin: 0 auto; border-radius: 10px; box-shadow: 0 24px 64px rgba(0, 0, 0, .28); }
.demo-hint { margin-top: var(--sp-3); font-size: var(--size-footnote); color: var(--sub); text-align: center; }

/* The blue band: the engraving in scanlines beside the section head, then the six features as ruled cells */
.band { margin: 0 clamp(0px, 3vw, 44px); background: var(--grain), var(--band); color: #fff; overflow: hidden; }
.band .label { color: var(--band-sub); }
.band-head { text-align: center; }
.band-art { aspect-ratio: 19 / 10; max-height: 86vh; width: 100%; background: none; }
.band-copy { position: relative; margin-top: -10vw; padding: 0 var(--sp-5) var(--sp-9); }
.band-copy h2 { font-size: clamp(48px, 8vw, 128px); line-height: .95; }
.band-copy p:last-child { margin: var(--sp-6) auto 0; max-width: 480px; color: var(--band-sub); }
.frows { border-top: 1px solid var(--band-line); }
.frow { display: grid; grid-template-columns: 1fr 1fr; align-items: center; border-bottom: 1px solid var(--band-line); }
.frow .art { aspect-ratio: 3 / 2; background: var(--grain), color-mix(in srgb, #fff 6%, var(--band)); }
.frow:nth-child(even) .art { order: 2; }
.frow > div:not(.art) { padding: var(--sp-7) clamp(24px, 6vw, 96px); max-width: 560px; }
.frow h3 { font-size: clamp(32px, 3.2vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.frow p:last-child { margin-top: var(--sp-4); color: var(--band-sub); }
.cells { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--band-line); }
.cell { padding: var(--sp-6) var(--sp-6) var(--sp-7); border-right: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
.cell:nth-child(3n) { border-right: 0; }
.cell:nth-last-child(-n+3) { border-bottom: 0; }
.cell .label { margin-bottom: var(--sp-5); }
.cell p:last-child { margin-top: var(--sp-3); color: var(--band-sub); font-size: 15px; line-height: 22px; }

.sec { padding: var(--sp-9) 0; }
.body { color: var(--sub); margin-top: var(--sp-5); max-width: 560px; }
.center .body { margin-left: auto; margin-right: auto; }
.term-stage { margin-top: var(--sp-7); }
.term { position: relative; max-width: 680px; margin: 0 auto; text-align: left; border-radius: 4px; background: var(--bg); border: 1px solid var(--line); padding: var(--sp-5); }
/* three product cards, each with its own crop of the engraving */
.prods { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); margin-top: var(--sp-4); text-align: left; }
.prod { display: grid; align-content: start; gap: var(--sp-2); }
.prod-art { margin: 0 0 var(--sp-3); aspect-ratio: 3 / 2; }
.prod .label { margin-bottom: 0; }
.prod p:not(.label) { color: var(--sub); font-size: 15px; line-height: 22px; }
.prod a { color: var(--accent); font-size: 15px; text-decoration: none; }
.prod a:hover { text-decoration: underline; }
.term pre { font: 13px/20px ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; }
.term .dim { color: var(--sub); }
.term figcaption { margin-top: var(--sp-3); font-size: var(--size-footnote); color: var(--sub); }
.plats { border-top: 1px solid var(--line); }
.plat-row { display: flex; justify-content: center; margin-top: var(--sp-7); }
.plat-row > div { max-width: 440px; padding: var(--sp-6); border-radius: 4px; border: 1px solid var(--line); display: grid; gap: var(--sp-2); justify-items: center; }
.plat-row small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.plat-row b { font-weight: 700; font-size: 36px; line-height: 44px; letter-spacing: -.03em; }
.plat-row p { color: var(--sub); font-size: 15px; line-height: 22px; margin-bottom: var(--sp-3); }

/* Footer: brand and link columns, one fine line */
.foot { text-align: center; padding: var(--sp-8) var(--sp-4) var(--sp-5); background: var(--bg); overflow: hidden; border-top: 1px solid var(--line); }
.foot-top { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-4); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-7); text-align: left; }
.foot-brand { display: grid; gap: var(--sp-2); align-content: start; }
.foot-brand img { border-radius: var(--r-icon); }
.foot-brand b { font-weight: 700; font-size: 36px; line-height: 40px; letter-spacing: -.03em; }
.foot-brand p { color: var(--sub); font-size: 15px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.foot-cols div { display: grid; gap: var(--sp-2); align-content: start; }
.foot-cols .label { margin-bottom: var(--sp-2); }
.foot-cols a { color: var(--text); text-decoration: none; font-size: 15px; }
.foot-cols a:hover { color: var(--accent); }
.legal { margin-top: var(--sp-2); font-size: var(--size-footnote); line-height: 16px; color: var(--sub); text-wrap: balance; }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .frow { grid-template-columns: 1fr; }
  .frow:nth-child(even) .art { order: 0; }
  .frow > div:not(.art) { padding: var(--sp-6) var(--sp-5) var(--sp-7); }
  .band-copy { margin-top: -14vw; }
  .cells { grid-template-columns: 1fr 1fr; }
  .cell, .cell:nth-child(3n), .cell:nth-last-child(-n+3) { border-right: 1px solid var(--band-line); border-bottom: 1px solid var(--band-line); }
  .cell:nth-child(2n) { border-right: 0; }
  .cell:nth-last-child(-n+2) { border-bottom: 0; }
  .prods { grid-template-columns: 1fr; gap: var(--sp-6); }
}
@media (max-width: 600px) {
  .nav-links, .nav-get { display: none; }
  .wrap { padding: 0 var(--sp-4); }
  .hero { padding-top: var(--sp-8); }
  .cells { grid-template-columns: 1fr; }
  .cell, .cell:nth-child(2n), .cell:nth-child(3n), .cell:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid var(--band-line); padding: var(--sp-5); }
  .cell:last-child { border-bottom: 0; }
    .foot-cols { gap: var(--sp-6); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .row { transition: none; }
  .wall-col { animation: none; }
}

/* no engraving above the band head: the copy starts the band */
.band-copy { margin-top: 0; padding-top: var(--sp-9); }
.stage { padding-block: clamp(32px, 7vw, 112px); }

/* Demo behind the hero (Joshua 2026-10-30): the live app sits under the copy, faded, as the hero's backdrop. */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(92svh, 920px); display: grid; align-items: center; }
.hero > .hero-copy { position: relative; z-index: 2; padding-block: var(--sp-9, 96px); }
.hero > .demo-wrap { position: absolute; inset: 0; z-index: 0; margin: 0; opacity: .32 !important; transform: none !important; pointer-events: none; }
.hero > .demo-wrap .stage { position: absolute; inset: 0; padding: 0; background: none; display: grid; place-items: center; }
.hero > .demo-wrap .stage > iframe, .hero > .demo-wrap .stage > .editor { height: 100%; max-height: none; border-radius: 0; }
.hero > .demo-wrap .demo-hint { display: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: color-mix(in srgb, var(--bg) 40%, transparent); }
/* Footer scene from Atlin: the engraved harbour in this app's accent. */
.foot { --scene-paper: var(--bg); --scene-ink: var(--accent); padding-bottom: 0; }
.footer-scene { display: block; width: 100%; height: clamp(150px, 24vw, 340px); margin-top: var(--sp-6, 32px); }

/* Demo behind the hero (Joshua 2026-10-30): the live app sits under the copy, faded, as the hero's backdrop. */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(92svh, 920px); display: grid; align-items: center; }
.hero > .hero-copy { position: relative; z-index: 2; padding-block: var(--sp-9, 96px); }
.hero > .demo-wrap { position: absolute; inset: 0; z-index: 0; margin: 0; opacity: .32 !important; transform: none !important; pointer-events: none; }
.hero > .demo-wrap .stage { position: absolute; inset: 0; padding: 0; background: none; display: grid; place-items: center; }
.hero > .demo-wrap .stage > iframe, .hero > .demo-wrap .stage > .editor { height: 100%; max-height: none; border-radius: 0; }
.hero > .demo-wrap .demo-hint { display: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: color-mix(in srgb, var(--bg) 40%, transparent); }
/* Footer scene from Atlin: the engraved harbour in this app's accent. */
.foot { --scene-paper: var(--bg); --scene-ink: var(--accent); padding-bottom: 0; }
.footer-scene { display: block; width: 100%; height: clamp(150px, 24vw, 340px); margin-top: var(--sp-6, 32px); }
