/* Mac Island & Dock: site
   The page is a Windows 11 desktop running the mod: the island at the top is the
   menu, the dock at the bottom switches the site's tabs, and each section is a
   window
   (Mica, its own title bar, Windows 11's type ramp in Segoe UI Variable, one
   accent). Island and dock live in island.css; the options' guide in guide.css. */

:root {
  --bg: #07080a;
  --mica: rgba(28, 29, 33, .82);
  --mica-2: rgba(18, 19, 22, .5);
  --surface: #111215;
  --surface-2: #17181c;
  --card: rgba(255, 255, 255, .045);
  --card-h: rgba(255, 255, 255, .08);
  --ink: #f1f2f4;
  --ink-2: #c5c8ce;
  --ink-3: #8d929a;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);
  --accent: #4cc2ff;
  --accent-h: #79d3ff;
  --accent-ink: #00283d;
  --accent-bg: rgba(76, 194, 255, .12);
  --red: #ff9b8f;
  --red-bg: rgba(255, 155, 143, .12);
  --green: #6ccb8b;
  --green-bg: rgba(108, 203, 139, .14);
  --amber: #f6c453;
  --amber-bg: rgba(246, 196, 83, .14);
  --veil: linear-gradient(180deg, rgba(10, 14, 20, 0) 0, rgba(10, 14, 20, .18) 38%, rgba(9, 12, 17, .62) 72%, rgba(8, 10, 14, .8));
  --shadow: 0 2px 6px rgba(0, 0, 0, .22), 0 32px 64px rgba(0, 0, 0, .42), 0 0 0 1px rgba(0, 0, 0, .35);
  --sans: 'Segoe UI Variable Text', 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, 'Microsoft YaHei UI', 'PingFang SC', 'Yu Gothic UI', 'Hiragino Sans', Roboto, sans-serif;
  --disp: 'Segoe UI Variable Display', 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, 'Microsoft YaHei UI', 'PingFang SC', 'Yu Gothic UI', 'Hiragino Sans', Roboto, sans-serif;
  --glyph: 'Segoe Fluent Icons', 'Segoe MDL2 Assets';
  --mono: 'Cascadia Mono', ui-monospace, Consolas, monospace;
  --spring: cubic-bezier(.34, 1.36, .5, 1);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 3vw, 40px);
  --max: 1320px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f4f6;
  --mica: rgba(250, 250, 251, .9);
  --surface: #fff;
  --surface-2: #f7f8fa;
  --mica-2: rgba(255, 255, 255, .45);
  --card: rgba(255, 255, 255, .72);
  --card-h: #fff;
  --ink: #1a1b1e;
  --ink-2: #44474d;
  --ink-3: #6b6f76;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .15);
  --accent: #005fb8;
  --accent-h: #1a72c4;
  --accent-ink: #fff;
  --accent-bg: rgba(0, 95, 184, .1);
  --red: #c42b1c;
  --red-bg: rgba(196, 43, 28, .09);
  --green: #0f7b0f;
  --green-bg: rgba(15, 123, 15, .1);
  --amber: #9d5d00;
  --amber-bg: rgba(157, 93, 0, .1);
  --veil: linear-gradient(180deg, rgba(238, 241, 245, 0) 0, rgba(238, 241, 245, .3) 40%, rgba(236, 239, 243, .78) 74%, rgba(233, 236, 240, .9));
  --shadow: 0 2px 6px rgba(20, 30, 50, .08), 0 30px 64px rgba(20, 30, 50, .2), 0 0 0 1px rgba(0, 0, 0, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1em; height: 1em; flex: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
code { font-family: var(--mono); font-size: .9em; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); background-clip: content-box; border: 3px solid transparent; }

/* The desktop's wallpaper, sharp like a real one (misty ridges, photo by Unsplash);
   a veil only toward the bottom, where the windows and their texts sit. */
.wall { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #1b232e; }
.wall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 36%; }
:root[data-theme="light"] .wall img { filter: brightness(1.18) saturate(.85); }
.wall::after { content: ''; position: absolute; inset: 0; background: var(--veil); }
/* Past the hero the desktop dims (like a window over it), so the sections read
   on any part of the photo; --dimmed goes 0 to 1 with the scroll (app.js). */
.wall::before { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(12, 15, 20, .66); opacity: var(--dimmed, 0); }
:root[data-theme="light"] .wall::before { background: rgba(236, 239, 243, .72); }
.guide-page .wall::before { opacity: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

main { padding-bottom: 130px; }

/* ---------------------------------------------------------------- shared pieces */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 6px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  background: var(--card); border: 1px solid var(--line-2); border-bottom-color: var(--line);
  transition: background-color .15s;
}
.btn:hover { background: var(--card-h); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.p { background: var(--accent); color: var(--accent-ink); border-color: rgba(255, 255, 255, .18) transparent transparent; }
.btn.p:hover { background: var(--accent-h); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn[aria-pressed="true"] { background: var(--accent-bg); border-color: var(--accent); color: var(--accent); }

.segm { display: inline-flex; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2px; }
.segm button { position: relative; z-index: 1; border: 0; background: none; font-size: 13px; padding: 4px 12px; border-radius: 4px; color: var(--ink-2); transition: color .2s; }
.segm button[aria-pressed="true"], .segm button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.segm-ind { position: absolute; top: 2px; bottom: 2px; left: 0; width: 0; border-radius: 4px; background: var(--card-h); box-shadow: 0 1px 0 var(--line); transition: transform .38s var(--spring), width .38s var(--spring); }

/* Our own menu instead of the browser's select: it opens and closes animated. */
.dd { position: relative; }
.dd-btn { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); font-size: 13px; }
.dd-btn:hover { background: var(--card-h); }
.dd-btn svg { width: 12px; height: 12px; color: var(--ink-3); transition: transform .3s var(--spring); }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; min-width: 100%; margin: 0; padding: 4px; list-style: none;
  background: var(--mica); border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow);
  backdrop-filter: blur(40px) saturate(1.6); -webkit-backdrop-filter: blur(40px) saturate(1.6);
  opacity: 0; transform: translateY(-6px) scale(.97); transform-origin: top left; pointer-events: none; visibility: hidden;
  transition: opacity .18s ease, transform .3s var(--spring), visibility 0s .3s;
}
.dd.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .18s ease, transform .3s var(--spring); }
.dd-menu li { padding: 7px 28px 7px 10px; border-radius: 5px; font-size: 13px; white-space: nowrap; cursor: pointer; position: relative; }
.dd-menu li:hover, .dd-menu li.hl { background: var(--card-h); }
.dd-menu li[aria-selected="true"]::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--accent); }

.window {
  background: var(--mica); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; box-shadow: var(--shadow);
  backdrop-filter: blur(48px) saturate(1.6); -webkit-backdrop-filter: blur(48px) saturate(1.6);
}
.card { background: var(--mica); border: 1px solid var(--line); border-radius: 10px; backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); }
.small-note { color: var(--ink-3); font-size: 13px; margin: 10px 0 0; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .8s var(--spring); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.theme-fade, .theme-fade * { transition: background-color .45s ease, color .45s ease, border-color .45s ease !important; }

/* ---------------------------------------------------------------- sections */

.sec { max-width: var(--max); margin: clamp(110px, 13vw, 190px) auto 0; padding: 0 var(--gutter); }
.sec-head { max-width: 920px; margin-bottom: clamp(28px, 3.4vw, 48px); }
h1, h2, h3 { margin: 0; font-family: var(--disp); }
h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
.sec-head .lede { margin: 16px 0 0; max-width: 58ch; }
.lede { color: var(--ink-2); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.55; text-wrap: pretty; }
:lang(zh) h1, :lang(zh) h2 { letter-spacing: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- tabs */

/* One tab at a time (html[data-tab], from the address: the page's head and
   app.js). Without scripts there is no data-tab and every section shows. */
html[data-tab] .tab { display: none; }
html[data-tab="home"] .tab[data-tab="home"], html[data-tab="faisca"] .tab[data-tab="faisca"], html[data-tab="news"] .tab[data-tab="news"], html[data-tab="devlog"] .tab[data-tab="devlog"],
html[data-tab="roadmap"] .tab[data-tab="roadmap"], html[data-tab="install"] .tab[data-tab="install"] { display: block; }
/* The other tabs open under the island, their title first; Home keeps its
   sections closer together than the long page did. */
.tab:not([data-tab="home"]) > .sec:first-child { margin-top: clamp(96px, 10vw, 150px); }
.tab > .sec + .sec { margin-top: clamp(84px, 9vw, 140px); }
/* The tab switch (app.js, swapTab): the tab open slides out toward its side in
   the dock while it fades, the new one comes in from the other side with the
   dock's spring. Kept off the compositor's way: only transform and opacity. */
.tab { transform-origin: 50% 0; }

/* ---------------------------------------------------------------- hero */

/* The first screen is a desktop at night with the real island at the top: the
   title in the middle of it, and under it a screen showing the island, a panel
   and the dock at work, tilted back, straightening as it comes up. */
.hero { position: relative; isolation: isolate; padding: clamp(118px, 15vh, 180px) var(--gutter) 0; text-align: center; }
.hero-wall { position: absolute; inset: 0 0 auto; height: min(118svh, 1250px); z-index: -1; overflow: hidden; background: #0b1220; }
.hero-wall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.hero-wall .hw-light { display: none; }
:root[data-theme="light"] .hero-wall { background: #dfe5ec; }
:root[data-theme="light"] .hero-wall .hw-dark { display: none; }
:root[data-theme="light"] .hero-wall .hw-light { display: block; object-position: 50% 30%; filter: saturate(.9); }
/* Fades into the page, and a soft shade behind the title. */
.hero-wall::after { content: ''; position: absolute; inset: 0; background:
  radial-gradient(60% 46% at 50% 40%, rgba(5, 8, 14, .5), transparent 72%),
  linear-gradient(180deg, rgba(7, 8, 10, 0) 0, rgba(7, 8, 10, .1) 45%, var(--bg) 96%); }
:root[data-theme="light"] .hero-wall::after { background:
  radial-gradient(60% 46% at 50% 38%, rgba(243, 244, 246, .55), transparent 72%),
  linear-gradient(180deg, rgba(243, 244, 246, 0) 0, rgba(243, 244, 246, .2) 45%, var(--bg) 96%); }

.hero-main { max-width: 1400px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; animation: hero-in 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes hero-in { from { opacity: 0; transform: translateY(18px); } }
.release {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px 0 14px; margin-bottom: 26px; border-radius: 999px;
  font-size: 13px; color: var(--ink); text-decoration: none; white-space: nowrap;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5);
  transition: background-color .2s, border-color .2s;
}
.release:hover { background: rgba(255, 255, 255, .14); }
:root[data-theme="light"] .release { background: rgba(255, 255, 255, .6); border-color: rgba(0, 0, 0, .08); }
.release b { font-weight: 600; font-variant-numeric: tabular-nums; }
.release span { color: var(--ink-2); }
.release .rel-next { color: var(--ink); font-weight: 600; padding-left: 8px; border-left: 1px solid var(--line-2); }
.release svg { width: 11px; height: 11px; transition: transform .3s var(--spring); }
.release:hover svg { transform: translateX(3px); }
h1 { font-size: clamp(46px, 7.2vw, 120px); line-height: .98; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
h1 span { display: block; color: color-mix(in srgb, var(--ink) 58%, transparent); font-weight: 400; letter-spacing: -.04em; }
.hero .lede { max-width: 38em; margin: 26px auto 0; font-size: clamp(16.5px, 1.45vw, 20px); color: color-mix(in srgb, var(--ink) 80%, transparent); }
.ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15.5px; border-radius: 999px; gap: 10px; }
.btn.lg svg { width: 17px; height: 17px; }
.btn.glass { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); }
.btn.glass:hover { background: rgba(255, 255, 255, .18); }
:root[data-theme="light"] .btn.glass { background: rgba(255, 255, 255, .7); border-color: rgba(0, 0, 0, .1); color: var(--ink); }
.btn.p.lg { box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }

/* The numbers, in one quiet line. */
.proof { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; }
.proof li { display: flex; align-items: baseline; gap: 8px; padding: 0 22px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.proof li + li { border-left: 1px solid var(--line-2); }
.proof b { font: 600 20px/1 var(--disp); color: var(--ink); font-variant-numeric: tabular-nums; }
/* Who makes it, and a way to help: one quiet line under the numbers. */
.maker { margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-align: center; text-wrap: balance; }
.maker a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; text-decoration: none; padding-bottom: 1px; border-bottom: 1px solid var(--line-2); transition: border-color .2s; }
.maker a:hover { border-bottom-color: currentColor; }
.maker svg { width: 14px; height: 14px; color: #db61a2; transition: transform .3s var(--spring); }
.maker a:hover svg { transform: scale(1.15); }
:root[data-theme="light"] .maker svg { color: #bf3989; }
@media (prefers-reduced-motion: reduce) { .maker a:hover svg { transform: none; } }
.rate { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.stars {
  --p: 0%; width: 62px; height: 11px; display: inline-block;
  background: linear-gradient(90deg, var(--amber) var(--p), var(--line-2) var(--p));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12.4' height='11' viewBox='0 0 24 22'%3E%3Cpath d='M12 1.5l3.2 6.6 7.2 1-5.3 5 1.4 7.2L12 17.9l-6.5 3.4L7 14.1 1.6 9.1l7.2-1z'/%3E%3C/svg%3E") 0 0 / 12.4px 11px repeat-x;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12.4' height='11' viewBox='0 0 24 22'%3E%3Cpath d='M12 1.5l3.2 6.6 7.2 1-5.3 5 1.4 7.2L12 17.9l-6.5 3.4L7 14.1 1.6 9.1l7.2-1z'/%3E%3C/svg%3E") 0 0 / 12.4px 11px repeat-x;
}

/* The screen: a 1440 x 810 desktop scaled by --k, in a thin bezel. */
.stage { --tilt: 1; max-width: 1240px; margin: clamp(56px, 8vh, 96px) auto 0; perspective: 2400px; }
.stage-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 8px rgba(20, 22, 26, .9), 0 0 0 9px rgba(255, 255, 255, .08), 0 60px 120px -30px rgba(0, 0, 0, .8);
  transform: rotateX(calc(var(--tilt) * 16deg)) scale(calc(1 - var(--tilt) * .06)); transform-origin: 50% 100%;
}
:root[data-theme="light"] .stage-frame { box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 0 0 8px #fff, 0 0 0 9px rgba(0, 0, 0, .08), 0 50px 100px -30px rgba(30, 40, 60, .35); }
.stage-screen { position: absolute; left: 0; top: 0; width: 1440px; height: 810px; transform-origin: 0 0; transform: scale(var(--k, .8)); }
.stage-wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.stage-isl.island-anchor { position: absolute; inset: 0; pointer-events: none; }
.stage-isl .isl { display: grid; }
.stage-isl .stage-panel { position: absolute; top: 44px; visibility: visible; }
.stage-isl .stage-panel:not(.show) { opacity: 0; }
.stage-dock { position: absolute; left: 0; right: 0; bottom: 4px; display: flex; justify-content: center; }
.stage-dock .dock { pointer-events: none; gap: 8px; padding: 8px 10px 6px; }
.stage-dock .dock a { width: 46px; height: 46px; }
.stage-dock .dock .sep { margin: 6px 4px 10px; }
@media (prefers-reduced-motion: reduce) { .stage-frame { transform: none; } .hero-main { animation: none; } }

/* "This is the island": a hand drawn arrow from the title up to the real pill. */
.island-callout { position: absolute; top: 48px; left: calc(50% + 70px); margin: 0; display: flex; align-items: flex-start; gap: 6px; color: var(--ink); font-size: 13.5px; max-width: 240px; text-align: left; text-shadow: 0 1px 10px rgba(0, 0, 0, .55); pointer-events: none; animation: hero-in 1s .6s cubic-bezier(.2, .8, .2, 1) both; }
.island-callout svg { width: 74px; height: 38px; flex: none; transform: scaleX(-1) rotate(8deg); margin-top: -8px; opacity: .85; }
.island-callout span { padding-top: 22px; }
:root[data-theme="light"] .island-callout { text-shadow: 0 1px 8px rgba(255, 255, 255, .8); }

/* ---------------------------------------------------------------- features: a grid of cards */

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bc {
  grid-column: span var(--span, 4); position: relative; display: flex; flex-direction: column; min-height: 440px; overflow: hidden;
  border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s;
}
.bc:hover { border-color: var(--line-2); }
.bc-tx { padding: 30px 32px 0; position: relative; z-index: 1; }
.bc h3 { font-size: clamp(22px, 1.9vw, 28px); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
.bc p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 52ch; }
.bc .bc-note { font-size: 13.5px; color: var(--ink-3); }
.bc .try { margin-top: 18px; border-radius: 999px; }
/* Each capture on a little desktop (the stage's wallpaper), where it is on the screen. */
.bc-shot {
  position: relative; margin: 24px 14px 14px; flex: 1; min-height: 250px; border-radius: 16px; overflow: hidden;
  display: flex; justify-content: center; padding: 18px; isolation: isolate;
  background: #1b2430 url("https://images.unsplash.com/photo-1552394459-917cbbffbc84?w=1100&q=60&auto=format&fit=crop") 50% 35% / cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.bc-shot::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .35)); }
.bc-shot :is(img, video) { display: block; max-width: 100%; height: auto; width: auto; }
.bc-shot[data-at="top"] { align-items: flex-start; padding-top: 12px; }
.bc-shot[data-at="top"] :is(img, video) { width: min(100%, 720px); border-radius: 10px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); }
.bc-shot[data-at="bottom"] { align-items: flex-end; padding-bottom: 14px; }
.bc-shot[data-at="bottom"] :is(img, video) { width: min(70%, 520px); border-radius: 16px; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); }
.bc-shot[data-at="panel"] { align-items: center; }
.bc-shot[data-at="panel"] :is(img, video) { max-height: 340px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 50px -16px rgba(0, 0, 0, .8); }
/* The two wide ones: words beside the picture. */
.bc[data-f="dock"], .bc[data-f="island"] { flex-direction: row; align-items: stretch; }
.bc[data-f="dock"] .bc-tx, .bc[data-f="island"] .bc-tx { flex: 0 1 42%; padding-bottom: 32px; align-self: center; }
.bc[data-f="dock"] .bc-shot, .bc[data-f="island"] .bc-shot { margin: 14px 14px 14px 0; }
.bc[data-f="dock"] { min-height: 340px; }

/* ---------------------------------------------------------------- styles */

.lab { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 24px; align-items: start; }
.lab-side { display: grid; gap: 14px; }
.opts { display: grid; gap: 4px; }
.opts button { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; text-align: left; border: 1px solid transparent; background: var(--card); border-radius: 8px; padding: 10px 12px; transition: background-color .2s, border-color .25s, transform .3s var(--spring); }
.opts button:hover { background: var(--card-h); }
.opts button:active { transform: scale(.985); }
.opts button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-bg); }
.opts b { display: block; font-size: 14px; font-weight: 600; }
.opts small { color: var(--ink-3); font-size: 12.5px; line-height: 1.4; display: block; }
.opts .sty { width: 58px; height: 34px; }
.swatches { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
.swatches button { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; border: 1px solid transparent; background: var(--card); font-size: 13px; text-align: left; transition: background-color .2s, border-color .25s; }
.swatches button:hover { background: var(--card-h); }
.swatches button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-bg); }
.swatches .sw { width: 18px; height: 18px; flex: none; }
.lab-main { display: grid; gap: 12px; min-width: 0; }
/* A 1440 px wide screen, scaled to fit, with this page's island on it. */
.preview { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow); background: #0b0d10; }
.vscreen { position: absolute; left: 0; top: 0; width: 1440px; height: 810px; transform-origin: 0 0; transform: scale(var(--k, .5)); }
.vscreen > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 20% 70%; filter: saturate(.9); }
.island-anchor.still { position: absolute; pointer-events: none; transition: none; }
.island-anchor.still .isl { transition: none; }
.real-shot { margin: 0; padding: 12px; border-radius: 12px; background: var(--mica); border: 1px solid var(--line); display: grid; gap: 8px; }
.real-shot figcaption { font-size: 12px; color: var(--ink-3); }
.real-shot img { width: 100%; border-radius: 6px; background: #050506; transition: opacity .3s; cursor: zoom-in; }

/* ---------------------------------------------------------------- Faísca, the mascot */

/* Her text beside her video from the mod, a window like the others; one
   column on a narrow screen, the video under the text. */
.meet { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.meet-tag { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: #3fd0c9; }
:root[data-theme="light"] .meet-tag { color: #11837d; }
.meet .lede { margin: 16px 0 0; max-width: 46ch; }
.meet-live { margin: 14px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 46ch; }
.meet .ctas { margin-top: 24px; justify-content: flex-start; }
.meet-win { margin: 0; }
/* (her glyph is a drawing, shown with or without the icon font) */
:root:not([data-glyphs="svg"]) .meet-win .tb-g svg { display: block; }
.meet-win .tb-g { color: #3fd0c9; }
.meet-win video, .gal-video video { display: block; width: 100%; height: auto; background: #000; }
.meet-win video { aspect-ratio: 1280 / 560; }
@media (max-width: 1000px) { .meet { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- gallery */

/* The island in motion, above the stills. */
.gal-video { margin: 0 0 14px; }
.gal-video video { aspect-ratio: 16 / 9; }
.gal-video figcaption { padding: 10px 14px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.shot { margin: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--mica); cursor: zoom-in; transition: border-color .2s, transform .4s var(--spring), box-shadow .3s; }
.shot:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: var(--shadow); }
/* Every capture centered in the same frame, whatever its size. */
.shot .pic { height: 240px; display: flex; align-items: center; justify-content: center; padding: 14px; background: #050506; }
.shot :is(img, video) { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; transition: transform .5s var(--spring); }
.shot:hover :is(img, video) { transform: scale(1.02); }
.shot figcaption { padding: 10px 12px; font-size: 13px; color: var(--ink-2); }
.shot.wide { grid-column: 1 / -1; }
.shot.wide .pic { height: 180px; }
.shot.folded { display: none; }
.gal-more { display: flex; margin: 22px auto 0; border-radius: 999px; padding: 0 18px; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5, 5, 8, .92); display: grid; grid-template-columns: 64px 1fr 64px; grid-template-rows: 1fr auto; align-items: center; padding: 56px 12px 24px; animation: lb-in .25s ease; }
.lightbox[hidden] { display: none; }
.lightbox.closing { animation: lb-out .2s ease forwards; }
.lightbox :is(img, video) { max-height: 78vh; max-width: 100%; margin: 0 auto; border-radius: 8px; animation: pop .4s var(--spring); grid-column: 2; }
.lightbox.closing :is(img, video) { animation: pop-out .2s ease forwards; }
.lb-cap { grid-column: 1 / -1; color: #ddd; margin: 14px 0 0; text-align: center; }
.lb-close, .lb-nav { border: 0; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; transition: background-color .2s, transform .3s var(--spring); }
.lb-close { position: absolute; top: 14px; right: 14px; }
.lb-nav { justify-self: center; }
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, .24); }
.lb-nav:active { transform: scale(.9); }
.lb-prev { grid-column: 1; } .lb-next { grid-column: 3; }
.lb-close svg, .lb-nav svg { width: 22px; height: 22px; }
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
@keyframes pop-out { to { transform: scale(.96); opacity: 0; } }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }

/* ---------------------------------------------------------------- roadmap (the hub window) */

.cmd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; }
.search { display: flex; align-items: center; gap: 8px; height: 32px; width: 280px; padding: 0 10px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); border-bottom-color: var(--line-2); color: var(--ink-3); }
.search:focus-within { border-bottom: 2px solid var(--accent); }
.search svg { width: 15px; height: 15px; }
.search input { all: unset; flex: 1; min-width: 0; color: var(--ink); font-size: 13px; }
.cmd .sp { flex: 1; }

.app { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; border-top: 1px solid var(--line); background: var(--mica-2); min-height: 620px; }

.hub-nav { padding: 8px; border-right: 1px solid var(--line); }
.hub-nav h6 { font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 12px 10px 4px; }
.hub-nav h6:first-child { margin-top: 4px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border: 0; background: none; border-radius: 5px; font-size: 14px; text-align: left; position: relative; }
.nav-item:hover { background: var(--card); }
.nav-item[aria-current="true"] { background: var(--card-h); font-weight: 600; }
.nav-item .c { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 400; font-variant-numeric: tabular-nums; }
.nav-item .c.hot { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 7px; font-weight: 600; }
.nav-item svg { width: 16px; height: 16px; color: var(--ink-2); }
.ring { --p: 0; --rc: var(--accent); width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(var(--rc) calc(var(--p) * 1%), var(--line-2) 0); display: grid; place-items: center; flex: none; }
.ring::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); }
.ring.released { --rc: var(--green); }
.ring.review, .ring.dev { --rc: var(--amber); }
.ring.none { --rc: var(--ink-3); }

.hub-main { padding: 20px 22px 26px; min-width: 0; }
.vh h3 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vh p { margin: 6px 0 0; color: var(--ink-2); max-width: 60ch; }
.pill { font: 600 12px/1.5 var(--sans); padding: 1px 9px; border-radius: 999px; background: var(--card-h); color: var(--ink-2); letter-spacing: 0; white-space: nowrap; }
.pill.planned, .pill.next { background: var(--accent-bg); color: var(--accent); }
.pill.released { background: var(--green-bg); color: var(--green); }
.pill.review, .pill.dev { background: var(--amber-bg); color: var(--amber); }
.pill a { color: inherit; }
.prog { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--ink-3); margin-top: 12px; }
.prog .tr { width: 220px; max-width: 100%; height: 4px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.prog .tr i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.prog a { color: var(--accent); text-decoration: none; }

.grp { margin-top: 22px; }
.gh { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 2px 2px 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: left; }
.gh svg { width: 12px; height: 12px; transition: transform .15s; }
.grp.closed .gh svg { transform: rotate(-90deg); }
.grp.closed .rows, .grp.closed .plan { display: none; }
.gh .n { color: var(--ink-3); font-weight: 400; }
.gh .gp { margin-left: auto; font-weight: 400; color: var(--ink-3); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.gh .gp .tr { width: 60px; height: 3px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.gh .gp .tr i { display: block; height: 100%; background: var(--accent); }
.rows { display: grid; gap: 3px; }
.row { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) 92px 96px 36px; gap: 12px; align-items: center; min-height: 50px; padding: 7px 12px; border-radius: 6px; background: var(--card); border: 1px solid transparent; text-align: left; }
.row:hover { background: var(--card-h); }
.row[aria-selected="true"] { background: var(--accent-bg); border-color: var(--accent); }
.kind { width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; background: var(--card-h); color: var(--ink-2); }
.kind svg { width: 14px; height: 14px; }
.kind.bug { background: var(--red-bg); color: var(--red); }
.row .t { font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row .t small { display: none; font-weight: 400; color: var(--ink-3); font-size: 12px; }
.src { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; }
.src svg { width: 14px; height: 14px; }
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.st i { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink-3); flex: none; }
.st.new i { border-style: dashed; border-color: var(--accent); }
.st.planned i { border-color: var(--accent); }
.st.doing i { border-color: var(--amber); background: linear-gradient(90deg, var(--amber) 50%, transparent 0); }
.st.partial i { border-color: var(--green); background: linear-gradient(90deg, var(--green) 50%, transparent 0); }
.st.coming i, .st.done i { border-color: var(--green); background: var(--green); }
.st.declined i { border-color: var(--ink-3); background: var(--ink-3); }
.row .up { font-size: 13px; font-weight: 600; text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row .up.mine { color: var(--accent); }
.plan { list-style: none; margin: 6px 0 0; padding: 4px 0 0 12px; border-left: 2px solid var(--line); display: grid; gap: 2px; }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 3px 0; }
.plan li::before { content: ''; width: 12px; height: 12px; margin-top: 3px; border-radius: 3px; border: 1.5px solid var(--line-2); }
.plan li.done { color: var(--ink-3); }
.plan li.done::before { background: var(--green); border-color: var(--green); box-shadow: inset 0 0 0 2px var(--bg); }
.plan-wrap summary { cursor: pointer; list-style: none; }
.plan-wrap summary::-webkit-details-marker { display: none; }
.plan-wrap summary::before { content: '+'; width: 12px; color: var(--accent); font-weight: 700; }
/* A minus sign (U+2212), not a dash. */
.plan-wrap[open] summary::before { content: '\2212'; }
.plan-head { margin-top: 8px; font-size: 12px; color: var(--ink-3); display: flex; gap: 10px; }
.plan-head a { color: var(--accent); text-decoration: none; }
.empty { color: var(--ink-3); padding: 24px 0; }
.row.enter { animation: row-in .42s var(--spring) both; animation-delay: var(--d, 0s); }
@keyframes row-in { from { opacity: 0; transform: translateY(8px) scale(.99); } }
.nav-ind { position: absolute; left: 8px; width: 3px; height: 16px; border-radius: 3px; background: var(--accent); transition: transform .4s var(--spring); pointer-events: none; }
.hub-nav { position: relative; }

.hub-detail { border-left: 1px solid var(--line); padding: 20px 18px; min-width: 0; }
.d-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.d-kind svg { width: 14px; height: 14px; }
.d-kind.bug { color: var(--red); }
.hub-detail h4 { font-family: var(--disp); font-size: 19px; line-height: 1.3; font-weight: 600; margin: 8px 0 6px; }
.orig { font-size: 12px; color: var(--ink-3); margin: 0 0 12px; overflow-wrap: anywhere; }
.excerpt { font-size: 13px; color: var(--ink-2); margin: 0 0 14px; padding: 10px 12px; border-radius: 6px; background: var(--card); overflow-wrap: anywhere; }
.steps-v { list-style: none; margin: 4px 0 16px; padding: 0; }
.steps-v li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 13px; color: var(--ink-3); position: relative; padding-bottom: 10px; }
.steps-v li::before { content: ''; width: 10px; height: 10px; margin: 4px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--bg); position: relative; z-index: 1; }
.steps-v li::after { content: ''; position: absolute; left: 8.5px; top: 16px; bottom: -2px; width: 1px; background: var(--line-2); }
.steps-v li:last-child::after { display: none; }
.steps-v li.done { color: var(--ink-2); }
.steps-v li.done::before { background: var(--accent); border-color: var(--accent); }
.steps-v li.now { color: var(--ink); font-weight: 600; }
.steps-v li.now::before { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.hub-detail dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 16px; font-size: 13px; }
.hub-detail dt { color: var(--ink-3); }
.hub-detail dd { margin: 0; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.hub-detail dd a { color: var(--accent); text-decoration: none; }
.vote { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; padding: 12px; border-radius: 8px; background: var(--card); margin-bottom: 10px; }
.vote b { font-family: var(--disp); font-size: 30px; line-height: 1; font-weight: 600; grid-row: span 2; font-variant-numeric: tabular-nums; }
.vote span { font-size: 12px; color: var(--ink-3); }
.vote span:first-of-type { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.acts { display: grid; gap: 6px; }
.acts .btn { width: 100%; }
.note { font-size: 12px; color: var(--ink-3); margin: 10px 0 0; }

.talk { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.talk h5 { margin: 0 0 10px; font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; }
.talk h5 span { color: var(--ink-3); font-weight: 400; }
.cmts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.cmt { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.cmt img, .cmt .av { width: 26px; height: 26px; border-radius: 50%; background: var(--card-h); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.cmt .who { font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.cmt .who b { color: var(--ink-2); }
.cmt .who button { margin-left: auto; border: 0; background: none; color: var(--ink-3); padding: 2px; border-radius: 4px; }
.cmt .who button:hover { color: var(--red); }
.cmt .who svg { width: 14px; height: 14px; }
.cmt p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.compose textarea { width: 100%; min-height: 70px; resize: vertical; padding: 8px 10px; border-radius: 6px; background: var(--card); border: 1px solid var(--line); border-bottom-color: var(--line-2); font-size: 13.5px; }
.compose textarea:focus { outline: 0; border-bottom: 2px solid var(--accent); }
.compose .row2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.signin { display: grid; gap: 6px; }
.signin p { margin: 0 0 4px; font-size: 13px; color: var(--ink-2); }
.err { color: var(--red); font-size: 12px; margin: 6px 0 0; }

.statusbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }
.statusbar button { border: 0; background: none; color: var(--accent); font-size: 12px; padding: 0; }
.statusbar .me { display: inline-flex; align-items: center; gap: 8px; }
.statusbar .me img { width: 18px; height: 18px; border-radius: 50%; }

/* ---------------------------------------------------------------- install + support */

/* Three steps: a sequence the reader follows, so they carry their number. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; min-height: 300px; }
.steps > li::after { content: counter(step); position: absolute; top: 22px; right: 28px; font: 600 64px/1 var(--disp); letter-spacing: -.04em; color: var(--line-2); }
.step-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-bg); color: var(--accent); margin-bottom: 22px; }
.step-ico svg { width: 22px; height: 22px; }
.steps h3 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.steps p { color: var(--ink-2); margin: 10px 0 22px; font-size: 15px; line-height: 1.55; }
.steps .sub { margin: 12px 0 22px; padding-left: 20px; color: var(--ink-2); font-size: 15px; line-height: 1.5; display: grid; gap: 6px; }
.steps .btn, .cfg-card .btn { border-radius: 999px; }
.steps .btn { margin-top: auto; }
.req { margin-top: auto; font-size: 12px; color: var(--ink-3); }
.sub-h { font-size: clamp(24px, 2.2vw, 32px); font-weight: 600; letter-spacing: -.02em; margin: 72px 0 20px; }
.cfg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cfg-card { padding: 26px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; }
.cfg-card .step-ico { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px; }
.cfg-card .step-ico svg { width: 19px; height: 19px; }
.cfg-card h4 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.cfg-card p { margin: 8px 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.cfg-card .btn { margin-top: auto; }

.support-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.support-grid .card { border-radius: 24px; background: var(--surface); border: 1px solid var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
.pix { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; padding: 32px; }
.pix .btn { height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; }
.pix .btn.sponsor { background: #fff; color: #1f2328; border-color: transparent; }
.pix .btn.sponsor svg { color: #bf3989; }
:root[data-theme="light"] .pix .btn.sponsor { background: #1f2328; color: #fff; }
.qr { display: block; background: #fff; padding: 12px; border-radius: 16px; line-height: 0; transition: transform .3s var(--spring); }
.qr:hover { transform: scale(1.03); }
.qr img, .qr canvas { width: 168px; height: 168px; }
.pix > div { flex: 1 1 220px; }
.socials { padding: 16px; }
.socials h3 { font-size: 13px; font-weight: 600; color: var(--ink-3); padding: 10px 14px 8px; }
.social { display: grid; grid-template-columns: 24px 1fr 16px; align-items: center; gap: 16px; padding: 14px; border-radius: 14px; text-decoration: none; transition: background-color .2s; }
.social:hover { background: var(--card-h); }
.social > svg { width: 22px; height: 22px; }
.social b { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.social small { color: var(--ink-3); font-size: 13px; }
.social .go { width: 14px; height: 14px; color: var(--ink-3); transition: transform .3s var(--spring); }
.social:hover .go { transform: translate(2px, -2px); }

.foot { max-width: var(--max); margin: clamp(80px, 8vw, 120px) auto 0; padding: 18px var(--gutter) 0; color: var(--ink-3); font-size: 13px; border-top: 1px solid var(--line); }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--ink-2); }
.foot-legal { font-size: 12px; }

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1180px) {
  .app { grid-template-columns: 210px minmax(0, 1fr); }
  .hub-detail { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 1000px) {
  .bc { grid-column: span 6; }
  .bc[data-f="dock"], .bc[data-f="island"] { grid-column: 1 / -1; }
  .lab { grid-template-columns: 1fr; }
  .cfg { grid-template-columns: 1fr 1fr; }
  .support-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { padding-top: 112px; }
  .island-callout { display: none; }
  .proof li { padding: 0 14px; }
  .proof li:nth-child(3) { border-left: 0; }
  .bc, .bc[data-f="dock"], .bc[data-f="island"] { grid-column: 1 / -1; flex-direction: column; min-height: 0; }
  .bc[data-f="dock"] .bc-tx, .bc[data-f="island"] .bc-tx { flex: none; padding-bottom: 0; align-self: stretch; }
  .bc[data-f="dock"] .bc-shot, .bc[data-f="island"] .bc-shot { margin: 20px 10px 10px; min-height: 200px; }
  .bc-tx { padding: 24px 22px 0; }
  .stage { margin-top: 44px; }
  .stage-frame { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 5px rgba(20, 22, 26, .9), 0 30px 60px -20px rgba(0, 0, 0, .8); }
  .window, .hub { border-radius: 8px; }
  .roadmap.sec { padding: 0; }
  .roadmap .sec-head { padding: 0 var(--gutter); }
  .hub { border-radius: 0; border-left: 0; border-right: 0; }
  .search { width: 100%; }
  .cmd .sp { display: none; }
  .app { grid-template-columns: 1fr; }
  .hub-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 6px 8px; }
  .hub-nav::-webkit-scrollbar { display: none; }
  .hub-nav h6, .hub-nav .src-filter { display: none; }
  .nav-item { width: auto; flex: none; white-space: nowrap; padding: 0 12px; }
  .nav-ind { display: none; }
  .nav-item[aria-current="true"] { box-shadow: inset 0 -3px 0 var(--accent); }
  .hub-main { padding: 16px 14px 20px; }
  .row { grid-template-columns: 22px minmax(0, 1fr) 34px; gap: 10px; }
  .row .src, .row .st { display: none; }
  .row .t small { display: block; }
  .steps, .cfg { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .shot .pic { height: 200px; }
  .lightbox { grid-template-columns: 44px 1fr 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
:root.no-motion *, :root.no-motion *::before, :root.no-motion *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }

/* ---------------------------------------------------------------- Windows 11 chrome (3.0 pass) */

/* A window's own title bar, like the mod's settings window: 32 tall over Mica,
   the app's glyph and a 12 px title, the caption buttons at the right. */
.titlebar { display: flex; align-items: center; justify-content: space-between; height: 32px; padding-left: 12px; font-size: 12px; color: var(--ink-2); user-select: none; border-bottom: 1px solid var(--line); background: var(--mica-2); }
.tb-app { display: inline-flex; align-items: center; gap: 10px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-g { display: inline-grid; place-items: center; width: 16px; height: 16px; font-style: normal; color: var(--accent); }
.tb-g svg { width: 15px; height: 15px; }
.tb-g .fg { font-size: 15px; }
.tb-btns { display: flex; height: 100%; }
.tb-btns i { width: 46px; display: grid; place-items: center; font: normal 10px/1 var(--glyph); color: var(--ink-2); }
.tb-btns i:last-child:hover { background: #c42b1c; color: #fff; }
.tb-btns i:not(:last-child):hover { background: var(--card); }
:root[data-glyphs="svg"] .tb-g .fg, :root:not([data-glyphs="svg"]) .tb-g svg { display: none; }
/* Without the glyph font, the caption buttons drawn with lines. */
:root[data-glyphs="svg"] .tb-btns i { font-size: 0; position: relative; }
:root[data-glyphs="svg"] .tb-btns i::before { content: ''; width: 10px; height: 10px; box-sizing: border-box; }
:root[data-glyphs="svg"] .tb-btns i:nth-child(1)::before { height: 1px; background: currentColor; }
:root[data-glyphs="svg"] .tb-btns i:nth-child(2)::before { border: 1px solid currentColor; border-radius: 2px; }
:root[data-glyphs="svg"] .tb-btns i:nth-child(3)::before { background: linear-gradient(45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%), linear-gradient(-45deg, transparent 46%, currentColor 46%, currentColor 54%, transparent 54%); }

.shot-win .titlebar { background: var(--mica); }
.lab-win { padding: 0; }
.lab-win .lab { padding: 20px; }
.hub > .titlebar { border-bottom: 0; }

.btn.ghost { background: transparent; border-color: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--card); }
.btn.sponsor { margin-top: 10px; }
.hero .btn:not(.p) { backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); }



/* ---------------------------------------------------------------- the guide, in small */

.gt-win { display: block; text-decoration: none; color: inherit; transition: transform .45s var(--spring), box-shadow .3s; }
.gt-win:hover { transform: translateY(-3px); }
.gt-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 360px; }
.gt-nav { display: grid; align-content: start; gap: 2px; padding: 12px 8px; border-right: 1px solid var(--line); max-height: 420px; overflow: hidden; -webkit-mask: linear-gradient(#000 78%, transparent); mask: linear-gradient(#000 78%, transparent); }
.gt-tab { display: flex; align-items: center; gap: 12px; height: 34px; padding: 0 10px; border-radius: 4px; font-size: 14px; color: var(--ink); position: relative; }
.gt-tab.on { background: var(--card-h); }
.gt-tab.on::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--accent); }
.gt-tab .fg, .gt-card .fg { font-size: 16px; color: var(--ink); }
.fg-dot { width: 16px; height: 16px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.gt-main { display: grid; align-content: start; gap: 12px; padding: 18px 22px 22px; }
.gt-search { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px; border-radius: 4px; background: var(--card); border: 1px solid var(--line); border-bottom-color: var(--line-2); font-size: 14px; color: var(--ink-3); max-width: 420px; }
.gt-search svg { width: 14px; height: 14px; }
.gt-h { font: 600 28px/1.25 var(--disp); margin-top: 4px; }
.gt-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.gt-card { display: flex; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 4px; background: var(--card); border: 1px solid var(--line); min-width: 0; }
.gt-card > span { min-width: 0; }
.gt-card b { display: block; font-size: 14px; font-weight: 400; }
.gt-card small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.gt-go { justify-self: start; margin-top: 6px; }
.gt-go svg { width: 12px; height: 12px; }
@media (max-width: 860px) { .gt-body { grid-template-columns: 1fr; } .gt-nav { display: none; } .gt-cards { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- the language */

/* At the top right, as tall as the island and in its colors: a globe and the language. */
.lang-btn {
  position: fixed; top: 6px; right: 10px; z-index: 52; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px;
  border: 0; border-radius: 15px; background: #000; color: #fff; font: 600 12.5px/1 var(--sans);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 24px -10px rgba(0, 0, 0, .6); transition: background-color .2s, transform .3s var(--spring);
}
.lang-btn:hover { background: #1c1c1f; }
.lang-btn:active { transform: scale(.94); }
.lang-btn svg { width: 15px; height: 15px; }
.lang-btn[aria-expanded="true"] { background: #1c1c1f; }
@media (max-width: 760px) { .lang-btn { right: 6px; padding: 0 8px; } .lang-btn span { display: none; } }
/* The pill leaves it room on both sides (so it stays centered); the styles that
   reach the corners (the bar, the side notches) have it just under them. */
#islandAnchor { --isl-room: 84px; }
/* (Out of the way while a banner comes out of the island.) */
.lang-btn { transition: opacity .2s, background-color .2s, transform .3s var(--spring); }
#islandAnchor.covered ~ .lang-btn { opacity: 0; pointer-events: none; }
#islandAnchor:not([data-style="pill"]):not([data-style="notch1"]) ~ .lang-btn { top: 44px; }
@media (max-width: 760px) { #islandAnchor { --isl-room: 42px; } }

.lang-menu {
  position: fixed; z-index: 130; margin: 0; padding: 5px; list-style: none; min-width: 200px;
  background: var(--mica); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow);
  backdrop-filter: blur(40px) saturate(1.6); -webkit-backdrop-filter: blur(40px) saturate(1.6);
}
.lang-menu.in { animation: lang-in .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes lang-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
.lang-menu li { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 36px; padding: 0 12px; border-radius: 8px; font-size: 14px; color: var(--ink); cursor: pointer; outline: none; }
.lang-menu li:hover, .lang-menu li:focus { background: var(--card-h); }
.lang-menu li svg { width: 14px; height: 14px; color: var(--accent); visibility: hidden; }
.lang-menu li[aria-selected="true"] { font-weight: 600; }
.lang-menu li[aria-selected="true"] svg { visibility: visible; }

.foot-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 14px 0 10px !important; }
.foot-langs a { color: var(--ink-2); text-decoration: none; font-size: 13px; }
.foot-langs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-langs a[aria-current="true"] { color: var(--ink); font-weight: 600; }
:lang(ja) h1, :lang(ja) h2 { letter-spacing: 0; }

/* ---------------------------------------------------------------- the roadmap, clearer (3.0 pass) */

/* How it works, in three steps over the window. */
.how { list-style: none; counter-reset: how; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.how li { counter-increment: how; position: relative; padding: 18px 20px 18px 62px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.how li::before { content: counter(how); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--disp); background: var(--accent-bg); color: var(--accent); }
.how b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 3px; }
.how span { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }

/* The versions on one line, oldest to newest: released ones ticked, the one
   being made highlighted, then what has no version yet. */
.hub-versions { display: flex; gap: 8px; padding: 14px; overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); scroll-behavior: smooth; }
.vchip { flex: none; width: auto; height: auto; font-size: inherit; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "n l" "n m" "b b"; column-gap: 12px; align-items: center; min-width: 150px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-align: left; transition: background-color .2s, border-color .2s; }
.vchip:hover { background: var(--card-h); }
.vchip b { grid-area: n; font: 600 24px/1 var(--disp); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.vchip .vlab { grid-area: l; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.vchip .vlab svg { width: 12px; height: 12px; }
.vchip .vmeta { grid-area: m; font-size: 12px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vchip .vbar { grid-area: b; display: block; height: 3px; margin-top: 9px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.vchip .vbar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.vchip.released .vlab { color: var(--green); }
.vchip.released b { color: var(--ink-2); }
.vchip.dev, .vchip.review { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--card)); }
.vchip.dev .vlab, .vchip.review .vlab { color: var(--accent); }
.vchip.none b, .vchip.new b, .vchip.declined b { font-size: 20px; color: var(--ink-3); }
.vchip.new { border-style: dashed; }
.vchip[aria-current="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-bg); }
.vnow { flex: none; width: 1px; margin: 6px 4px; background: var(--line-2); }

/* Where the requests came from, as chips. */
.hub-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 0 14px 12px; }
.hub-src .src-l { font-size: 12.5px; color: var(--ink-3); margin-right: 4px; }
.hub-src button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: none; font-size: 12.5px; color: var(--ink-2); }
.hub-src button svg { width: 13px; height: 13px; }
.hub-src button:hover { background: var(--card); }
.hub-src button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.hub .app { grid-template-columns: minmax(0, 1fr) 380px; min-height: 560px; }
.hub .hub-main { padding: 22px 24px 28px; }
.hub .vh h3 { font-size: 30px; }

/* A request on one clear line. */
.hub .row { grid-template-columns: 88px minmax(0, 1fr) auto 64px; gap: 14px; min-height: 60px; padding: 10px 14px; border-radius: 10px; }
.hub .kind { width: auto; height: 24px; padding: 0 9px; gap: 5px; border-radius: 999px; display: inline-flex; align-items: center; justify-self: start; font-size: 12px; font-weight: 600; }
.hub .kind svg { width: 13px; height: 13px; }
.hub .kind.idea { background: var(--accent-bg); color: var(--accent); }
.hub .row .t { font-weight: 500; display: block; -webkit-line-clamp: unset; }
.hub .row .t small { display: flex; align-items: center; gap: 5px; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.hub .row .t small svg { width: 12px; height: 12px; }
.hub .row .st { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--card-h); color: var(--ink-2); }
.hub .row .st.new, .hub .row .st.received { background: var(--card-h); color: var(--ink-2); }
.hub .row .st.planned { background: var(--accent-bg); color: var(--accent); }
.hub .row .st.doing, .hub .row .st.partial { background: var(--amber-bg); color: var(--amber); }
.hub .row .st.coming, .hub .row .st.done { background: var(--green-bg); color: var(--green); }
.hub .row .st.declined { background: var(--card-h); color: var(--ink-3); }
.why { margin: 4px 0 16px; padding: 12px 14px; border-radius: 8px; background: var(--card-h); }
.why h5 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.why p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.vh .try { margin-top: 14px; max-width: 72ch; }
.try-steps { margin: 8px 0 0; padding-left: 22px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.try-steps li { margin-bottom: 6px; }
.hub .row .up { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--ink); }
.hub .row .up svg { width: 14px; height: 14px; }
.hub .row .up.mine { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

@media (max-width: 1180px) { .hub .app { grid-template-columns: minmax(0, 1fr); } .hub .hub-detail { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 760px) {
  .how { grid-template-columns: 1fr; padding: 0 var(--gutter); }
  .hub .row { grid-template-columns: minmax(0, 1fr) 56px; }
  .hub .row .kind, .hub .row .st { display: none; }
  .vchip { min-width: 128px; }
}

/* ---------------------------------------------------------------- what's new */

/* The versions on a time axis (oldest at the left, the one on its way after the
   last), then the chosen one: its kinds as filters, a search over every version,
   and its items in columns, each one's lead ("Power menu") in bold. */
.news-rail { position: relative; overflow-x: auto; overflow-y: hidden; margin: 0 0 12px; scrollbar-width: none; }
.news-rail::-webkit-scrollbar { display: none; }
.news-rail.scrolls { -webkit-mask: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); mask: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent); }
.news-track { position: relative; height: 82px; min-width: 100%; }
.news-track::before { content: ''; position: absolute; left: 0; right: 0; top: 40px; height: 1px; background: var(--line-2); }
.nr-done { position: absolute; left: 0; top: 40px; height: 1px; background: var(--ink-3); transition: width .55s var(--ease); }
.nr-future { position: absolute; top: 40px; height: 0; border-top: 1px dashed var(--accent); }
.nr-month { position: absolute; top: 51px; padding-left: 7px; border-left: 1px solid var(--line-2); font-size: 11.5px; line-height: 15px; color: var(--ink-3); white-space: nowrap; pointer-events: none; }
.nr-month::first-letter { text-transform: uppercase; }
.nr-item { position: absolute; top: 0; width: 64px; height: 82px; margin-left: -32px; padding: 9px 0 0; border: 0; border-radius: 8px; background: none; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; }
.nr-item b { font: 600 17px/1 var(--disp); letter-spacing: -.01em; font-variant-numeric: tabular-nums; transition: color .2s, transform .35s var(--spring); }
.nr-item.patch b { font-size: 13px; padding-top: 3px; }
.nr-item i { position: absolute; top: 35px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line-2); transition: background-color .2s, box-shadow .2s, transform .35s var(--spring); }
.nr-item.patch i { top: 37px; width: 7px; height: 7px; margin-left: -3.5px; }
.nr-item:hover { color: var(--ink-2); }
.nr-item:hover i { box-shadow: inset 0 0 0 2px var(--ink-3); }
.nr-item[aria-selected="true"] { color: var(--ink); }
.nr-item[aria-selected="true"] b { transform: translateY(-2px); }
.nr-item[aria-selected="true"] i { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-bg); transform: scale(1.18); }
.nr-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nr-item.soon, .nr-item.soon:hover { color: var(--accent); }
.nr-item.soon i { box-shadow: inset 0 0 0 2px var(--accent); }
.nr-item small { margin-top: auto; padding-bottom: 5px; font-size: 11px; font-weight: 600; color: var(--accent); white-space: nowrap; }

.news-panel { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.news-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 22px 28px 14px; }
.news-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; min-width: 0; }
.news-head h3 { font: 600 34px/1 var(--disp); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
/* Each part has its dot on the left; the dot of whichever part starts a line falls in the clipped strip. */
.news-meta { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; margin-left: -20px; clip-path: inset(0 0 0 20px); font-size: 13.5px; color: var(--ink-3); }
.news-meta > *::before { content: '·'; display: inline-block; width: 20px; text-align: center; color: var(--ink-3); }
.news-meta a { color: var(--accent); text-decoration: none; }
.news-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-step { display: inline-flex; gap: 4px; }
.news-step button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); transition: background-color .2s, color .2s, opacity .2s; }
.news-step button:hover:not(:disabled) { background: var(--card-h); color: var(--ink); }
.news-step button:disabled { opacity: .3; cursor: default; }
.news-step svg { width: 14px; height: 14px; }
.news-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.news-kinds button { white-space: nowrap; }
.news-kinds button span { margin-left: 6px; color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.news-search { width: 250px; }
.news-panel.searching .news-kinds { display: none; }

.news-notes { padding: 4px 28px 26px; }
.news-group h4 { display: flex; align-items: baseline; gap: 10px; margin: 20px 0 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.news-group h4 button { border: 0; background: none; padding: 0; font: 600 15px/1 var(--disp); letter-spacing: 0; text-transform: none; color: var(--accent); }
.news-group h4 button:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-group h4 span { font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; }
.news-items { margin: 0; padding: 0; list-style: none; columns: 330px 3; column-gap: 44px; }
.news-items li { break-inside: avoid; padding: 13px 0 14px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.news-items li strong { display: block; margin-bottom: 3px; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.news-items mark { padding: 0 1px; border-radius: 3px; background: var(--accent-bg); color: var(--ink); }
.news-body.folded { -webkit-mask: linear-gradient(#000 72%, transparent); mask: linear-gradient(#000 72%, transparent); }
.news-more { margin-top: 16px; border-radius: 999px; }
.news-empty { margin: 26px 0 6px; color: var(--ink-3); }
:lang(ja) .news-group h4, :lang(zh) .news-group h4, :lang(ko) .news-group h4 { letter-spacing: 0; }

/* ---------------------------------------------------------------- the devlog */

/* The posts down the side under their version, newest on top, and the one
   picked beside them, set like an article: a measure for reading, the post's
   own headings and lists. */
.log-lang { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); }
.log-box { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
.log-line { display: grid; gap: 2px; position: sticky; top: 72px; }
.log-ver { padding: 14px 14px 6px; font: 600 12px/1 var(--sans); letter-spacing: .06em; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.log-ver:first-child { padding-top: 2px; }
.log-item {
  display: grid; gap: 3px; padding: 10px 14px; border-radius: 10px; border: 1px solid transparent; background: none; text-align: left;
  transition: background-color .2s, border-color .2s;
}
.log-item:hover { background: var(--card); }
.log-item span { font-size: 12.5px; color: var(--ink-3); }
.log-item b { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink-2); }
.log-item[aria-current="true"] { background: var(--surface); border-color: var(--line-2); }
.log-item[aria-current="true"] b { color: var(--ink); }

.log-post { padding: 30px 38px 32px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); min-width: 0; scroll-margin-top: 72px; }
.log-post header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.log-date { font-size: 14px; color: var(--ink-3); }
.log-pill { font-variant-numeric: tabular-nums; }
.log-post h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.log-note { margin: 0; color: var(--ink-3); }
.log-body { margin-top: 18px; max-width: 72ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.log-body p { margin: 0 0 14px; }
.log-body h4 { margin: 30px 0 10px; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.log-body h5, .log-body h6 { margin: 22px 0 8px; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.log-body b { color: var(--ink); font-weight: 600; }
.log-body a { color: var(--accent); text-decoration: none; }
.log-body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.log-body ul, .log-body ol { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.log-body li { position: relative; padding-left: 20px; }
.log-body ul > li::before { content: ''; position: absolute; left: 4px; top: .72em; width: 6px; height: 2px; border-radius: 1px; background: var(--accent); }
.log-body ol { counter-reset: log; }
.log-body ol > li { counter-increment: log; padding-left: 24px; }
.log-body ol > li::before { content: counter(log) '.'; position: absolute; left: 0; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.log-body blockquote { margin: 0 0 14px; padding: 2px 0 2px 14px; border-left: 2px solid var(--line-2); color: var(--ink-3); }
.log-body code { padding: 1px 5px; border-radius: 4px; background: var(--card); border: 1px solid var(--line); font-size: .88em; }
.log-talk { margin-top: 12px; border-radius: 999px; }
.log-talk svg { width: 15px; height: 15px; }

@media (max-width: 860px) {
  .log-box { grid-template-columns: 1fr; }
  .log-line { position: static; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .log-line::-webkit-scrollbar { display: none; }
  .log-ver { display: none; }
  .log-item { flex: none; width: min(70vw, 240px); border-color: var(--line); }
  .log-post { padding: 22px 20px 24px; border-radius: 16px; }
  .log-body { font-size: 15px; }
}

@media (max-width: 860px) {
  .news-bar { padding: 18px 18px 14px; }
  .news-head { display: grid; grid-template-columns: 1fr auto; width: 100%; }
  .news-head h3 { font-size: 28px; }
  .news-step { grid-area: 1 / 2; }
  .news-meta { grid-column: 1 / -1; }
  .news-tools { width: 100%; }
  .news-kinds { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .news-search { width: 100%; }
  .news-notes { padding: 2px 18px 20px; }
}

/* ---------------------------------------------------------------- comments from GitHub, in the same list */
.cmt .who { flex-wrap: wrap; }
.cmt-gh { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 999px; background: var(--card-h); color: var(--ink-2); font-size: 11px; text-decoration: none; }
.cmt-gh:hover { color: var(--ink); }
.cmt-gh svg { width: 11px; height: 11px; }
.cmt p { line-height: 1.5; }
.cmt-more { display: inline-block; margin-top: 4px; font-size: 12px; color: var(--accent); text-decoration: none; }
.cmt-reply { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 12.5px; color: var(--accent); text-decoration: none; }
.cmt-reply svg { width: 13px; height: 13px; }
.cmt-more:hover, .cmt-reply:hover { text-decoration: underline; text-underline-offset: 3px; }
