@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("/assets/fonts/martianmono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #0b0c0e;
  --bg2: #111214;
  --text: #f1f0ec;
  --dim: #8d8c88;
  --faint: #5d5c59;
  --line: rgba(241, 240, 236, .09);
  --mono: "Martian Mono", ui-monospace, monospace;
  --sans: "Manrope", system-ui, sans-serif;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --max: 1320px;
  /* the plugin's own colours, used only by the playable demo */
  --panel: #141518; --deep: #0f1012; --screen: #0b0c0e; --rule: #2a2c31;
  --key-hi: #35373c; --key-lo: #2a2c30;
  --trig: #d2794c; --trig-edge: #b46c48; --lock: #cb72a6; --live: #8bd47a; --hold: #e3c25f;
  --font: var(--sans);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* silkscreen labels */
.label { font: 500 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }

/* buttons: no colour, just weight */
.btn { display: inline-flex; align-items: center; gap: .6rem; height: 3rem; padding: 0 1.4rem; border-radius: 999px;
  font: 600 .95rem/1 var(--sans); text-decoration: none; letter-spacing: .01em; transition: background .2s, color .2s, border-color .2s; }
.btn.solid { background: var(--text); color: #0b0c0e; }
.btn.solid:hover { background: #fff; }
.btn.line { border: 1px solid rgba(241,240,236,.28); color: var(--text); }
.btn.line:hover { border-color: var(--text); }
.btn .arr { font-family: var(--mono); font-size: .8rem; }

/* nav */
.nav { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav img { height: 30px; width: auto; }
.nav ul { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav ul a { text-decoration: none; color: var(--dim); font-size: .92rem; }
.nav ul a:hover { color: var(--text); }
.nav .btn { height: 2.4rem; padding: 0 1.1rem; font-size: .85rem; }
@media (max-width: 760px) {
  /* phones: logo and Join on the first row, the page links on a second */
  .nav .wrap { flex-wrap: wrap; justify-content: flex-start; height: auto; padding-top: .9rem; padding-bottom: .5rem; row-gap: .55rem; }
  .nav ul { display: contents; }
  .nav ul li { list-style: none; }
  .nav ul li:last-child { order: 1; margin-left: auto; }
  .nav .wrap::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  .nav ul li:not(:last-child) { order: 3; margin-right: 1.5rem; }
  .nav ul li:not(:last-child) a { display: inline-block; padding: .35rem 0; font-size: .9rem; }
}

/* hero: the device as a render, type on top */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; align-items: flex-end; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(11,12,14,.55) 0%, rgba(11,12,14,0) 30%, rgba(11,12,14,0) 55%, rgba(11,12,14,.92) 100%),
  linear-gradient(90deg, rgba(11,12,14,.92) 0%, rgba(11,12,14,.7) 32%, rgba(11,12,14,.1) 62%, rgba(11,12,14,0) 75%); }
.hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 8vh, 6rem); }
.hero h1 { margin: .4rem 0 0; font-weight: 400; }
.hero .wordmark { display: block; font-weight: 500; font-size: clamp(3.4rem, 11vw, 9.5rem); line-height: .92; letter-spacing: -.035em; }
.hero .cat { display: block; margin-top: 1.2rem; font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.35; color: var(--text); max-width: 36rem; }
.hero .sub { margin: 1.2rem 0 0; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--text); font-weight: 400; }
.hero .lede { margin: 1.4rem 0 0; max-width: 34rem; color: var(--dim); font-size: 1.05rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; align-items: center; }
.hero .meta { margin-top: 1.4rem; }

/* facts strip */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts dl { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; }
.facts dl > div { padding: 1.6rem 1.2rem 1.6rem 0; }
.facts dl > div + div { padding-left: 1.2rem; border-left: 1px solid var(--line); }
.facts dt { font-weight: 500; font-size: 2rem; letter-spacing: -.02em; line-height: 1; }
.facts dd { margin: .6rem 0 0; }
@media (max-width: 900px) { .facts dl { grid-template-columns: repeat(3, 1fr); } .facts dl > div:nth-child(4) { border-left: 0; padding-left: 0; } .facts dl > div:nth-child(n+4) { border-top: 1px solid var(--line); } }

/* sections */
.sec { padding: clamp(5rem, 12vw, 9rem) 0 0; }
.sec h2 { margin: .9rem 0 0; font-weight: 500; font-size: clamp(2.1rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: -.03em; }
.sec .intro { margin: 1.2rem 0 0; max-width: 38rem; color: var(--dim); font-size: 1.1rem; }

/* video */
.yt { position: relative; margin-top: 2.5rem; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.yt-poster { all: unset; position: absolute; inset: 0; cursor: pointer; display: block; }
.yt-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s; filter: brightness(.8); }
.yt-poster:hover img { transform: scale(1.015); filter: brightness(.95); }
.yt-play { position: absolute; left: var(--pad); bottom: var(--pad); display: flex; align-items: center; gap: 1rem; }
.yt-play i { width: 64px; height: 64px; border-radius: 50%; border: 1px solid rgba(241,240,236,.6); display: grid; place-items: center; backdrop-filter: blur(6px); background: rgba(11,12,14,.25); }
.yt-play i svg { width: 18px; height: 18px; fill: var(--text); margin-left: 3px; }
.yt-play span { font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* feature rows: render bleeds to the edge, words beside it */
.feat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; margin-top: clamp(4rem, 9vw, 7rem); }
.feat.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.feat.flip .pic { order: 2; }
.feat .pic { border-radius: 6px; overflow: hidden; background: #000; aspect-ratio: 16 / 10; }
.feat .pic img { width: 100%; height: 100%; object-fit: cover; }
.feat h3 { margin: .9rem 0 0; font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.08; letter-spacing: -.025em; }
.feat p { color: var(--dim); margin: 1rem 0 0; }
.feat ul { list-style: none; margin: 1.4rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.feat li { padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--dim); }
.feat li b { color: var(--text); font-weight: 600; }
.feat .more { display: inline-block; margin-top: 1.4rem; font: 500 .72rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--text); }
.feat .more:hover { color: var(--dim); }
@media (max-width: 860px) { .feat, .feat.flip { grid-template-columns: 1fr; } .feat.flip .pic { order: 0; } }

/* listen */
.player { margin-top: 2.5rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center; padding: 1.4rem 0 0; border-top: 1px solid var(--line); }
.player button { all: unset; cursor: pointer; width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(241,240,236,.5); display: grid; place-items: center; }
.player button:hover { border-color: var(--text); }
.player button svg { width: 14px; height: 14px; fill: var(--text); }
.player h3 { margin: 0; font-weight: 500; font-size: 1.25rem; }
.player p { margin: .25rem 0 0; color: var(--dim); font-size: .92rem; }
.player .bar { grid-column: 1 / -1; height: 2px; background: var(--line); cursor: pointer; position: relative; }
.player .bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--text); }
.player .time { font: 500 .72rem/1 var(--mono); color: var(--dim); }
.skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* maker */
.maker { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 6vw, 6rem); }
.maker p { color: var(--dim); }
.maker ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.maker li { padding: .9rem 0; border-bottom: 1px solid var(--line); color: var(--dim); font-size: .95rem; }
@media (max-width: 860px) { .maker { grid-template-columns: 1fr; } }

/* join */
.join { position: relative; margin-top: clamp(5rem, 12vw, 9rem); overflow: hidden; }
.join picture img { width: 100%; height: clamp(520px, 56vw, 760px); object-fit: cover; object-position: 50% 50%; filter: brightness(.85); }
.join { background: #000; }
.join .in { position: absolute; inset: 0; display: flex; align-items: center; background: linear-gradient(90deg, rgba(11,12,14,.97) 0%, rgba(11,12,14,.88) 35%, rgba(11,12,14,.25) 65%, rgba(11,12,14,0) 80%); }
.join .in .wrap { width: 100%; }
.join h2 { margin: .9rem 0 0; font-weight: 500; font-size: clamp(2.6rem, 7vw, 5.5rem); line-height: .98; letter-spacing: -.035em; }
.join .two { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 40rem; margin-top: 2rem; }
.join .two p:not(.label) { margin: .5rem 0 0; color: var(--dim); font-size: .95rem; }
.join .cta { margin-top: 2.2rem; display: flex; gap: .8rem; flex-wrap: wrap; }
@media (max-width: 600px) { .join .two { grid-template-columns: 1fr; } }

/* faq */
.faq { margin-top: 2rem; border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.2rem 0; font-weight: 500; font-size: 1.08rem; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--dim); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 0 0 1.3rem; color: var(--dim); max-width: 44rem; }

/* footer */
.foot { margin-top: clamp(5rem, 12vw, 9rem); border-top: 1px solid var(--line); padding: 2.5rem 0 3rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.foot img { height: 26px; width: auto; }
.foot nav { display: block; }
.foot nav a { color: var(--dim); text-decoration: none; font-size: .9rem; }
.foot nav a:hover { color: var(--text); }

@media (max-width: 760px) {
  .hero { min-height: 92svh; }
  .hero picture img { object-position: 70% 30%; }
  .hero::after { background: linear-gradient(180deg, rgba(11,12,14,.2) 0%, rgba(11,12,14,.35) 35%, rgba(11,12,14,.96) 62%); }
  .facts dd { line-height: 1.5; }
  .yt-play { left: 1rem; bottom: 1rem; }
  .yt-play i { width: 48px; height: 48px; }
  .yt-play span { display: none; }
  .label { line-height: 1.6; }
}

/* ---------- home page additions ---------- */
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 99; background: var(--bg2); padding: .5rem 1rem; }
a { text-underline-offset: .22em; text-decoration-thickness: 1px; }
.intro a { color: var(--text); }
.label.hi { color: var(--text); }
.note { margin: 1rem 0 0; color: var(--dim); font-size: .92rem; }
.feat h3 + p { margin-top: 1rem; }

/* three pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
.pillars > div { border-top: 1px solid var(--line); padding-top: 1.3rem; }
.pillars h3 { margin: .8rem 0 0; font-weight: 500; font-size: 1.4rem; letter-spacing: -.015em; }
.pillars p:not(.label) { margin: .7rem 0 0; color: var(--dim); }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; gap: 1.5rem; } }

/* playable demo sits in the new frame */
#try .device { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; box-shadow: none; margin-top: 2.5rem; }
#try .mdesc { color: var(--dim); }

/* guide */
.learn { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.learn > div:first-child { border-top: 1px solid var(--line); padding-top: 2rem; }
.learn p:not(.label) { margin: 0 0 1.6rem; color: var(--dim); font-size: 1.08rem; }
@media (max-width: 860px) { .learn { grid-template-columns: 1fr; } }

/* maker + Ko-fi */
.maker aside ul { margin-top: 1rem; }
.btn.kofi { margin-top: 2rem; background: transparent; border: 1px solid rgba(241,240,236,.45); color: var(--text); height: 3.2rem; padding: 0 1.5rem 0 1.2rem; }
.btn.kofi svg { width: 22px; height: 22px; }
.btn.kofi:hover { background: var(--text); color: #0b0c0e; border-color: var(--text); }

/* faq answers come wrapped in a div */
.faq details > div p { margin: 0 0 1.3rem; color: var(--dim); max-width: 44rem; }

/* footer: the same links as every page */
.foot .wrap { display: block; }
.foot .cols { display: grid; grid-template-columns: minmax(0, 2fr) 1fr 1fr; gap: 2.5rem; }
.foot .about img { height: 30px; width: auto; }
.foot .about p { margin: 1rem 0 0; color: var(--dim); font-size: .92rem; max-width: 26rem; }
.foot nav h2 { margin: 0 0 1rem; font: 500 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.foot nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot nav a, .foot button.linklike { color: var(--text); text-decoration: none; font-size: .92rem; }
.foot nav a:hover, .foot button.linklike:hover { color: var(--dim); }
.foot .legal { margin: 2.5rem 0 0; font: 500 .68rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
button.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .about { grid-column: 1 / -1; } }

/* consent banner */
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 50; max-width: 30rem; margin-left: auto;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.1rem 1.1rem; box-shadow: 0 12px 40px rgba(0,0,0,.5); font-size: .9rem; line-height: 1.5; }
.consent[hidden] { display: none; }
.consent p { margin: 0 0 .9rem; }
.consent p a { color: var(--dim); }
.consent .row { display: flex; gap: .6rem; }
.consent .key { flex: 1; height: 2.5rem; border-radius: 999px; border: 1px solid rgba(241,240,236,.3); background: transparent; color: var(--text); font: 600 .85rem/1 var(--sans); cursor: pointer; }
.consent .key[data-consent="granted"] { background: var(--text); color: #0b0c0e; border-color: var(--text); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* phones: the header is two rows over the hero, keep the hero text below it */
@media (max-width: 760px) { .hero { padding-top: 132px; } }

/* hero: a small Ko-fi button under the formats line, same look as the one in "Who makes it" */
.hero .btn.kofi.sm { margin-top: 1.1rem; height: 2.4rem; padding: 0 1rem 0 .8rem; gap: .45rem; font-size: .85rem; }
.hero .btn.kofi.sm svg { width: 18px; height: 18px; }
