/* Tequila's website. One stylesheet for every page: dark, like the studio
   the renders are lit in, with the teal of the app's own icon. */

@font-face {
  font-family: "Lucide";
  src: url("../fonts/lucide.ttf") format("truetype");
  font-display: block;
}

:root {
  --bg: #0b0c0d;
  --bg-raised: #131517;
  --bg-card: #17191c;
  --line: #24272b;
  --line-strong: #33373c;
  --text: #ecebe7;
  --text-soft: #b4b4ae;
  --text-faint: #7d7e7a;
  --teal: #35c7b0;
  --teal-deep: #1f8f7e;
  --teal-glow: rgba(53, 199, 176, 0.16);
  --warm: #f2b37a;
  --radius: 14px;
  --radius-small: 9px;
  --wide: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 650; }
h1 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.035em; }
h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; }
h3 { font-size: 21px; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

code, kbd { font-family: var(--mono); font-size: 0.88em; background: var(--bg-card); border: 1px solid var(--line); border-radius: 6px; padding: 0.08em 0.4em; }
pre { font-family: var(--mono); font-size: 14px; line-height: 1.55; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 16px 18px; overflow-x: auto; margin: 0 0 1.2em; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.icon { font-family: "Lucide"; font-style: normal; font-weight: normal; line-height: 1; display: inline-block; speak: never; -webkit-font-smoothing: antialiased; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #04110f; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 12, 13, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; flex: none; align-items: center; gap: 10px; color: var(--text); font: 650 19px/1 var(--font-display); letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { color: var(--text-soft); font-size: 15px; padding: 7px 12px; border-radius: 8px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; color: var(--text-soft); font-size: 19px; }
.icon-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); text-decoration: none; }
.menu-button { display: none; background: none; border: 0; color: var(--text); font-size: 22px; width: 42px; height: 42px; border-radius: 9px; cursor: pointer; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 16px/1 var(--font); letter-spacing: -0.005em;
  padding: 14px 22px; border-radius: 11px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button .icon { font-size: 18px; }
.button-primary { background: var(--teal); color: #03130f; box-shadow: 0 8px 30px -10px rgba(53, 199, 176, 0.65); }
.button-primary:hover { background: #4dd7c0; }
.button-quiet { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: rgba(255, 255, 255, 0.1); }
.button-quiet:hover { background: rgba(255, 255, 255, 0.1); }
.button-small { padding: 9px 14px; font-size: 14px; border-radius: 9px; }
/* Discord's own blue, so the way in to the community is seen at a glance. */
.button-discord { background: #5865f2; color: #fff; box-shadow: 0 8px 28px -12px rgba(88, 101, 242, 0.9); }
.button-discord:hover { background: #6c77f4; }
/* Ko-fi's own red. */
.button-kofi { background: #ff5e5b; color: #fff; box-shadow: 0 8px 28px -12px rgba(255, 94, 91, 0.85); }
.button-kofi:hover { background: #ff7472; }
.discord-link { color: #8f98ff !important; display: inline-flex; align-items: center; gap: 5px; }
.discord-link .icon { font-size: 14px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: #000; }
.hero-art { position: absolute; inset: 0; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.82) 34%, rgba(0, 0, 0, 0.15) 64%, rgba(0, 0, 0, 0) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(11, 12, 13, 0) 30%); }
.hero .wrap { position: relative; padding-top: clamp(64px, 9vw, 128px); padding-bottom: clamp(60px, 8vw, 116px); }
.hero-copy { max-width: 620px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--teal); font: 600 13px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 22px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--text-soft); max-width: 560px; margin-bottom: 34px; }
.hero-note { margin-top: 18px; color: var(--text-faint); font-size: 14px; }
.hero-note a { color: var(--text-soft); }

.lede { font-size: 20px; color: var(--text-soft); }

/* ---------- Sections ---------- */

.section { padding: clamp(70px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-soft); font-size: 19px; }
.kicker { color: var(--teal); font: 600 13px/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 16px; display: block; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

.engines { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; justify-content: center; color: var(--text-soft); font-size: 15px; }
.engines span { display: inline-flex; align-items: center; gap: 9px; }
.engines .icon { color: var(--teal); font-size: 18px; }

/* A feature told in a picture and a few lines, alternating sides. */
.feature { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 10vw, 130px); }
.feature.flip { grid-template-columns: 1fr 1.45fr; }
.feature.flip .feature-media { order: 2; }
.feature-media { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-card); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); }
.feature-media img { width: 100%; height: auto; }
.feature-text p { color: var(--text-soft); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-soft); }
.ticks li::before { content: "\e070"; font-family: "Lucide"; position: absolute; left: 0; top: 2px; color: var(--teal); font-size: 17px; }

/* Material swatches: a shelf of the library's balls. */
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.swatch { position: relative; border-radius: 12px; overflow: hidden; background: #8c8d8f; aspect-ratio: 1; }
.swatch img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.swatch span { position: absolute; left: 8px; right: 8px; bottom: 7px; font-size: 12px; line-height: 1.25; color: #fff; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); opacity: 0; transform: translateY(4px); transition: opacity 0.2s ease, transform 0.2s ease; }
.swatch:hover img { transform: scale(1.06); }
.swatch:hover span, .swatch:focus-within span { opacity: 1; transform: none; }

/* A grid of smaller features, each with an icon. */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 18px; margin: 14px 0 8px; }
.card p { color: var(--text-soft); font-size: 15px; margin: 0; }
.card .icon { font-size: 22px; color: var(--teal); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px; background: var(--teal-glow); }
a.card { color: inherit; transition: border-color 0.15s ease, transform 0.15s ease; }
a.card:hover { text-decoration: none; border-color: var(--line-strong); transform: translateY(-2px); }
a.card .more { color: var(--teal); font-size: 14px; margin-top: 14px; display: inline-flex; gap: 6px; align-items: center; }
.card .more .icon { width: auto; height: auto; background: none; font-size: 14px; border-radius: 0; }

/* ---------- Gallery ---------- */

.gallery { columns: 3 320px; column-gap: 16px; }
.gallery figure { break-inside: avoid; margin: 0 0 16px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-card); }
.gallery figure img { width: 100%; height: auto; cursor: zoom-in; }
.gallery figcaption { padding: 12px 16px 14px; font-size: 14px; color: var(--text-soft); }
.gallery figcaption strong { color: var(--text); font-weight: 600; display: block; font-size: 15px; margin-bottom: 2px; }

.strip { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; }
.strip a { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: block; height: clamp(220px, 27vw, 380px); }
.strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.strip a:hover img { transform: scale(1.03); }

.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, 0.92); display: none; align-items: center; justify-content: center; padding: 4vh 4vw; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; box-shadow: 0 20px 80px rgba(0, 0, 0, 0.8); }
.lightbox button { position: absolute; top: 16px; right: 16px; background: rgba(255, 255, 255, 0.1); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; }

/* ---------- Call to action ---------- */

.cta { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(120% 140% at 85% 20%, rgba(53, 199, 176, 0.22) 0%, rgba(53, 199, 176, 0) 55%), var(--bg-raised); padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--text-soft); margin: 0; }
.cta .buttons { justify-content: flex-end; }

/* ---------- Page header (inner pages) ---------- */

.page-head { padding: clamp(60px, 8vw, 110px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); background: radial-gradient(80% 120% at 10% 0%, rgba(53, 199, 176, 0.12) 0%, rgba(53, 199, 176, 0) 60%); }
.page-head h1 { font-size: clamp(38px, 5.4vw, 64px); }
.page-head .lede { max-width: 680px; margin: 0; }

/* ---------- Download ---------- */

.platforms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.platform { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; }
.platform.mine { border-color: var(--teal-deep); box-shadow: 0 0 0 1px var(--teal-deep), 0 30px 60px -30px rgba(53, 199, 176, 0.35); }
.platform .icon.big { font-size: 28px; color: var(--teal); margin-bottom: 16px; }
.platform h3 { margin-bottom: 6px; }
.platform .needs { color: var(--text-soft); font-size: 14.5px; flex: 1; margin-bottom: 20px; }
.platform .file { font-family: var(--mono); font-size: 12.5px; color: var(--text-faint); margin-top: 10px; word-break: break-all; min-height: 3em; }
.platform .button { justify-content: center; }
/* A second file under a platform's button: the Windows portable zip. */
.platform .also { display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.platform .also:hover { color: var(--text); }
.platform .also .icon { font-size: 15px; color: var(--teal); }
.platform .also [data-size] { font-weight: 400; color: var(--text-faint); }
.platform .also[hidden] { display: none; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; color: #03130f; background: var(--teal); border-radius: 999px; padding: 3px 9px; margin-left: 8px; vertical-align: 3px; letter-spacing: 0; }
.version-line { color: var(--text-soft); margin-top: 18px; font-size: 15px; }

.steps { counter-reset: step; display: grid; gap: 18px; }
.steps li { list-style: none; position: relative; padding-left: 52px; color: var(--text-soft); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--teal-glow); color: var(--teal); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.steps li strong { color: var(--text); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.two > *, .doc-layout > * { min-width: 0; }
.note { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.note h3 { display: flex; align-items: center; gap: 10px; }
.note h3 .icon { color: var(--warm); }
.note p, .note li { color: var(--text-soft); font-size: 15.5px; }
.note ul, .note ol { padding-left: 20px; margin: 0; }

/* ---------- Docs ---------- */

.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.doc-nav { position: sticky; top: 88px; display: grid; gap: 2px; font-size: 15px; }
.doc-nav a { color: var(--text-soft); padding: 6px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.doc-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); text-decoration: none; }
.doc-nav .label { color: var(--text-faint); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 16px 12px 6px; }
.prose h2 { font-size: 30px; margin-top: 64px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: var(--text-soft); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.prose figure { margin: 24px 0 32px; }
.prose figure img { border-radius: var(--radius); border: 1px solid var(--line); }
.prose figcaption { color: var(--text-faint); font-size: 14px; margin-top: 10px; }
/* A portrait picture at a size that leaves the text in view. */
.prose figure.tall img { max-width: min(100%, 440px); }
/* Two pictures side by side in one figure. */
.prose .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.prose .pair img { width: 100%; height: auto; }
/* A live page from Tequila's web export, framed like a picture. */
.prose figure.demo iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); background: #d9dcdf; }

details.faq { border-bottom: 1px solid var(--line); padding: 18px 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "\e071"; font-family: "Lucide"; color: var(--text-faint); transition: transform 0.2s ease; }
details.faq[open] summary::after { transform: rotate(180deg); }
details.faq p { color: var(--text-soft); margin: 12px 0 0; }

/* ---------- Release notes ---------- */

.release { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-raised); padding: clamp(24px, 4vw, 44px); margin-bottom: 24px; }
.release header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 16px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.release header h2 { font-size: 28px; margin: 0; }
.release header time { color: var(--text-faint); font-size: 15px; }
.release header a { margin-left: auto; font-size: 15px; }
.release .notes h2 { font-size: 21px; margin: 30px 0 12px; }
.release .notes h3 { font-size: 18px; margin: 22px 0 8px; }
.release .notes ul { padding-left: 22px; margin: 0 0 12px; }
.release .notes li { color: var(--text-soft); margin-bottom: 6px; }
.release .notes p { color: var(--text-soft); }
.release .notes strong { color: var(--text); }
.release .notes hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.release.older .notes { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.release.older.open .notes { max-height: none; -webkit-mask-image: none; mask-image: none; }
.release .expand { margin-top: 14px; }
.release .notes figure { margin: 6px 0 26px; }
.release .notes figure img { width: 100%; height: auto; border-radius: var(--radius-small); border: 1px solid var(--line); background: var(--bg-card); cursor: zoom-in; }
.release .notes figcaption { color: var(--text-faint); font-size: 14px; margin-top: 8px; }
.loading { color: var(--text-faint); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; color: var(--text-faint); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { color: var(--text); font-size: 14px; letter-spacing: 0.02em; margin-bottom: 14px; font-family: var(--font); font-weight: 600; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-soft); }
.footer-grid a:hover { color: var(--text); }
.footer-about p { max-width: 340px; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.legal p { margin: 0 0 6px; }

/* ---------- Reveal on scroll ---------- */

/* Hidden only once the script is known to run, so a page without it still shows everything. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.seen { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .button, .swatch img, .strip img, a.card { transition: none; }
}

/* ---------- Discord ---------- */

.discord-band { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 28px; align-items: center; margin-bottom: 16px; padding: clamp(26px, 4vw, 40px); border-radius: 20px; color: var(--text); border: 1px solid rgba(88, 101, 242, 0.45); background: radial-gradient(120% 170% at 0% 0%, rgba(88, 101, 242, 0.34) 0%, rgba(88, 101, 242, 0.07) 55%, rgba(88, 101, 242, 0) 100%), var(--bg-raised); transition: border-color 0.15s ease; }
.discord-band:hover { text-decoration: none; border-color: rgba(88, 101, 242, 0.85); }
.discord-mark { width: 68px; height: 68px; border-radius: 19px; background: #5865f2; color: #fff; display: grid; place-items: center; font-size: 32px; box-shadow: 0 14px 40px -14px rgba(88, 101, 242, 0.9); }
.discord-copy strong { display: block; font: 650 clamp(23px, 2.5vw, 30px)/1.15 var(--font-display); letter-spacing: -0.02em; margin-bottom: 8px; }
.discord-copy > span { display: block; color: var(--text-soft); max-width: 640px; }
.discord-stats { display: flex !important; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 14px; color: var(--text-faint) !important; }
.discord-stats [data-discord-online]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ba55d; margin-right: 7px; vertical-align: 1px; }
.site-footer .button-discord { margin-top: 18px; }
.discord-note { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; border: 1px solid rgba(88, 101, 242, 0.4); background: linear-gradient(90deg, rgba(88, 101, 242, 0.16), rgba(88, 101, 242, 0.03)); border-radius: var(--radius); padding: 18px 22px; margin: 28px 0; }
.discord-note p { margin: 0; color: var(--text-soft); }
.discord-note strong { color: var(--text); }
.kofi-note { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; border: 1px solid rgba(255, 94, 91, 0.35); background: linear-gradient(90deg, rgba(255, 94, 91, 0.13), rgba(255, 94, 91, 0.02)); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 28px; }
.kofi-note p { margin: 0; color: var(--text-soft); }
.kofi-note strong { color: var(--text); }
.card-kofi .icon { color: #ff7d7a; background: rgba(255, 94, 91, 0.14); }
.card-kofi .more { color: #ff8c89; }

/* ---------- Roadmap ---------- */

.updated { color: var(--text-faint); font-size: 15px; margin: 18px 0 0; }
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.lane { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.lane.now { border-color: var(--teal-deep); box-shadow: 0 0 0 1px var(--teal-deep), 0 30px 60px -36px rgba(53, 199, 176, 0.4); }
.lane > header { padding: 4px 4px 18px; }
.lane h2 { font-size: 28px; display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.lane > header p { color: var(--text-soft); font-size: 15px; margin: 0; }
.lane-dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--teal); flex: none; }
.lane.now .lane-dot { background: var(--teal); box-shadow: 0 0 0 5px var(--teal-glow); }
.lane.next .lane-dot { background: linear-gradient(90deg, var(--teal) 50%, transparent 50%); }
.lane.later .lane-dot { border-color: var(--text-faint); }
.item { background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 20px; }
.item + .item { margin-top: 12px; }
.item h3 { font-size: 17px; display: flex; align-items: flex-start; gap: 10px; margin: 0 0 8px; line-height: 1.25; }
.item h3 .icon { font-size: 18px; color: var(--teal); margin-top: 1px; }
.lane.later .item h3 .icon { color: var(--text-soft); }
.item p { color: var(--text-soft); font-size: 14.5px; margin: 0; }
.item strong { color: var(--text); font-weight: 600; }
/* A roadmap item people asked for. */
.item .asked { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12.5px; font-weight: 600; color: #a9b0ff; background: rgba(88, 101, 242, 0.14); border: 1px solid rgba(88, 101, 242, 0.35); border-radius: 999px; padding: 4px 10px; }
.item .asked .icon { font-size: 13px; color: inherit; margin: 0; }

.shipped { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.shipped .card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.shipped img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line); }
.shipped .body { padding: 20px 22px 24px; }
.shipped time { color: var(--text-faint); font-size: 14px; }
.shipped h3 { margin: 4px 0 8px; }

/* ---------- Stage of development ---------- */

/* The badge beside the name in the header. */
.stage { display: inline-flex; align-items: center; margin-left: 2px; padding: 4px 7px; border-radius: 999px; font: 700 10.5px/1 var(--font); letter-spacing: 0.08em; text-transform: uppercase; color: var(--warm); background: rgba(242, 179, 122, 0.1); border: 1px solid rgba(242, 179, 122, 0.4); }

/* Alpha, beta, stable: where Tequila is, on the roadmap. */
.stages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stage-step { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.stage-step.now { border-color: rgba(242, 179, 122, 0.55); box-shadow: 0 0 0 1px rgba(242, 179, 122, 0.4), 0 30px 60px -36px rgba(242, 179, 122, 0.35); }
.stage-step .when { font: 600 12.5px/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }
.stage-step.now .when { color: var(--warm); }
.stage-step.done .when { color: var(--teal); }
.stage-step h3 { font-size: 24px; margin: 12px 0 8px; }
.stage-step p, .stage-step li { color: var(--text-soft); font-size: 15px; }
.stage-step p { margin: 0; }
.stage-step ul { padding-left: 18px; margin: 10px 0 0; }
.stage-step li { margin-bottom: 4px; }
.download-stage { color: var(--text-soft); font-size: 15px; margin: 10px 0 0; }
.download-stage .stage { margin: 0 6px 0 0; vertical-align: 1px; }

/* ---------- Learn ---------- */

/* The three tracks, each a card with its lessons. */
.tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.track { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 18px; padding: 24px 24px 22px; display: flex; flex-direction: column; }
.track .level { display: inline-flex; align-items: center; gap: 8px; font: 600 12.5px/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.track .level .bars { display: inline-flex; gap: 3px; }
.track .level .bars i { width: 5px; height: 12px; border-radius: 2px; background: var(--line-strong); }
.track .level .bars i.on { background: var(--teal); }
.track h3 { font-size: 23px; margin: 14px 0 6px; }
.track > p { color: var(--text-soft); font-size: 15px; margin: 0 0 16px; }
.track ol { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 2px; align-content: start; counter-reset: lesson; flex: 1; }
.track ol a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 8px; color: var(--text-soft); font-size: 15px; line-height: 1.35; }
.track ol a::before { counter-increment: lesson; content: counter(lesson); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--bg-card); border: 1px solid var(--line); color: var(--text-faint); }
.track ol a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); text-decoration: none; }
.track .button { align-self: flex-start; }

/* A screenshot with numbered marks over it, and a key to them. */
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-card); }
.map img { width: 100%; height: auto; }
.map .mark { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #03130f; font: 700 14px/28px var(--font); text-align: center; box-shadow: 0 0 0 4px rgba(53, 199, 176, 0.28), 0 6px 18px rgba(0, 0, 0, 0.6); }
.map-key { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; counter-reset: mark; }
.map-key li { position: relative; padding-left: 40px; color: var(--text-soft); font-size: 15.5px; }
.map-key li::before { counter-increment: mark; content: counter(mark); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--teal-glow); color: var(--teal); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.map-key strong { color: var(--text); }

/* Every feature and where it is, with a filter over the top. */
.finder-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.finder-bar input { flex: 1 1 280px; min-width: 0; font: 16px var(--font); color: var(--text); background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 11px; padding: 13px 16px 13px 44px; background-image: none; }
.finder-bar input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-glow); }
.finder-search { position: relative; flex: 1 1 280px; min-width: 0; display: flex; }
.finder-search .icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-faint); font-size: 18px; pointer-events: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: 500 14px/1 var(--font); color: var(--text-soft); background: var(--bg-card); border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; cursor: pointer; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"] { color: #03130f; background: var(--teal); border-color: var(--teal); }
.finder-count { color: var(--text-faint); font-size: 14px; margin: 0 0 12px; }
.finder-jump { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -4px 0 14px; font-size: 14px; }
.finder-jump a { color: var(--text-soft); }
.finder-jump a:hover { color: var(--text); }
.finder-group { scroll-margin-top: 84px; }
.finder-group { margin-bottom: 26px; }
.finder-group h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.finder-group h3 .icon { color: var(--teal); }
.finder-table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; table-layout: fixed; }
.finder-table th { text-align: left; color: var(--text-faint); font-weight: 600; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 0 12px 8px; }
.finder-table td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: top; color: var(--text-soft); overflow-wrap: anywhere; }
.finder-table td:first-child { color: var(--text); font-weight: 600; width: 24%; }
.finder-table td.where { width: 38%; }
.finder-table td.where span { color: var(--text); }
.finder-table td.lvl { width: 92px; }
.finder-table th:last-child { width: 92px; }
.finder-table th:first-child { width: 24%; }
.finder-table th:nth-child(2) { width: 38%; }
.lvl-tag { display: inline-block; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.lvl-tag.b { color: #9fe8da; background: rgba(53, 199, 176, 0.14); }
.lvl-tag.i { color: #f6cf9f; background: rgba(242, 179, 122, 0.14); }
.lvl-tag.a { color: #c9b8ff; background: rgba(150, 120, 255, 0.16); }
.finder-empty { color: var(--text-faint); padding: 20px 0; display: none; }

/* Keys. */
kbd { white-space: nowrap; }
.keys { width: 100%; border-collapse: collapse; font-size: 15px; }
.keys td { padding: 9px 12px; border-top: 1px solid var(--line); color: var(--text-soft); vertical-align: top; }
.keys td:first-child { width: 42%; color: var(--text); }
.keys tr:first-child td { border-top: 0; }

/* A lesson: what it's for, then the steps. */
.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--text-faint); font-size: 14px; margin: -6px 0 18px; }
.lesson-meta .icon { color: var(--teal); margin-right: 4px; }
.prose .tip { background: var(--bg-raised); border: 1px solid var(--line); border-left: 3px solid var(--warm); border-radius: var(--radius-small); padding: 14px 18px; margin: 18px 0 24px; }
.prose .tip p { margin: 0; font-size: 15.5px; }
.prose .tip strong { color: var(--warm); }
.prose ol.steps { padding: 0; margin: 18px 0 22px; }
.next-lesson { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc-nav .group { color: var(--text-faint); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 14px 12px 4px; }
.doc-nav a.here { color: var(--text); background: rgba(255, 255, 255, 0.05); border-left-color: var(--teal); }

/* ---------- Narrow screens ---------- */

/* Four download cards need about 1060 pixels of row, scrollbar aside. */
@media (max-width: 1160px) {
  .platforms { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .swatches { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* The seven links, the name with its Beta badge and the header's buttons
   need about 1120 pixels; below that the links fold into the menu button. */
@media (max-width: 1140px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 18px; margin: 0; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 17px; }
  .menu-button { display: grid; place-items: center; }
  .header-end .button-primary { display: none; }
}

@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-media { order: 0; }
  .cta { grid-template-columns: 1fr; }
  .cta .buttons { justify-content: flex-start; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip a:first-child { grid-column: 1 / -1; }
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
  .doc-nav .label { width: 100%; padding: 8px 4px 2px; }
  .two { grid-template-columns: 1fr; }
  .board, .shipped { grid-template-columns: 1fr; }
  .prose .pair { grid-template-columns: minmax(0, 1fr); }
  .prose figure.demo iframe { aspect-ratio: 4 / 5; }
  .discord-band { grid-template-columns: 1fr; gap: 18px; }
  .shipped img { aspect-ratio: 21 / 9; }
  .hero-art img { object-position: 70% 50%; }
  .hero-art::after { background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.35) 100%), linear-gradient(0deg, var(--bg) 0%, rgba(11, 12, 13, 0) 30%); }
}

@media (max-width: 980px) {
  .tracks, .stages { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .platforms { grid-template-columns: 1fr; }
  .map-key { grid-template-columns: minmax(0, 1fr); }
  .map .mark { width: 22px; height: 22px; font-size: 12px; line-height: 22px; }
  /* A row of the finder becomes a small card: name, then where, then level. */
  .finder-table thead { display: none; }
  .finder-table, .finder-table tbody, .finder-table tr, .finder-table td { display: block; width: auto !important; }
  .finder-table tr { border-top: 1px solid var(--line); padding: 10px 0; }
  .finder-table td { border: 0; padding: 2px 4px; }
  .keys td:first-child { width: 48%; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .buttons .button { width: 100%; justify-content: center; }
  .release header a { margin-left: 0; }
}

/* On the smallest phones the header keeps Discord; GitHub is in the footer. */
@media (max-width: 420px) {
  .site-header .wrap { gap: 12px; }
  .brand { flex: none; }
  .header-end .icon-link { display: none; }
}

/* On the narrowest phones the badge gives way to the menu button; the home
   page and Download still say Beta. */
@media (max-width: 380px) {
  .brand .stage { display: none; }
}
