@font-face { font-family: Geist; src: url("fonts/Geist-ExtraLight.ttf") format("truetype"); font-weight: 200; font-display: swap; }
@font-face { font-family: Geist; src: url("fonts/Geist-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url("fonts/Geist-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url("fonts/Geist-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0c0b0d;
  --bg-2: #121014;
  --card: #17151a;
  --card-2: #1d1a20;
  --line: rgb(255 255 255 / 0.08);
  --line-2: rgb(255 255 255 / 0.14);
  --text: #f2ede7;
  --muted: #a8a19a;
  --dim: #6f6963;
  --ember: #ff6a3d;
  --gold: #f2b35c;
  --sky: #86bdf0;
  --sun: linear-gradient(180deg, var(--gold), var(--ember));
  --radius: 18px;
  --wrap: 1180px;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 Geist, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code, kbd, pre { font-family: var(--mono); }
::selection { background: rgb(255 106 61 / 0.35); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 16px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgb(12 11 13 / 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; letter-spacing: -0.01em; }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a {
  text-decoration: none; color: var(--muted); font-size: 15px;
  padding: 7px 12px; border-radius: 999px; transition: color .2s, background .2s;
  display: inline-flex; align-items: center; gap: 7px;
}
.nav nav a:hover, .nav nav a[aria-current] { color: var(--text); background: rgb(255 255 255 / 0.06); }
.nav .gh { border: 1px solid var(--line-2); margin-left: 6px; color: var(--text); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgb(255 255 255 / 0.04);
  text-decoration: none; font-weight: 500; font-size: 15px;
  transition: transform .2s, background .2s, border-color .2s, box-shadow .2s;
}
.button:hover { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.24); transform: translateY(-1px); }
.button.primary {
  background: var(--sun); color: #1a0d07; border-color: transparent;
  box-shadow: 0 8px 30px -8px rgb(255 106 61 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.button.primary:hover { box-shadow: 0 12px 40px -8px rgb(255 106 61 / 0.75), inset 0 1px 0 rgb(255 255 255 / 0.35); }

.eyebrow {
  display: inline-block; font: 500 13px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 600; }
.heading { max-width: 720px; margin-bottom: 44px; }
.heading p, .split-text p { color: var(--muted); font-size: 18px; margin: 18px 0 0; }
.heading.row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.block { padding-block: clamp(70px, 10vw, 130px); }

/* Hero */
.hero { position: relative; padding-top: clamp(56px, 9vw, 110px); overflow: hidden; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sky::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 50% 62%, rgb(255 106 61 / 0.28), transparent 70%),
    radial-gradient(40% 30% at 50% 55%, rgb(242 179 92 / 0.22), transparent 70%),
    linear-gradient(180deg, #0c0b0d 0%, #160d0d 55%, #1c0f0b 75%, var(--bg) 100%);
}
.sun {
  position: absolute; left: 50%; top: 48%; width: min(70vw, 760px); aspect-ratio: 1;
  translate: -50% 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #ffd59a 0%, var(--gold) 28%, var(--ember) 62%, rgb(255 106 61 / 0) 72%);
  filter: blur(6px); opacity: .55;
  animation: rise 2.4s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise { from { translate: -50% 18%; opacity: 0; } to { translate: -50% 0; opacity: .55; } }
.ridge { position: absolute; left: -5%; right: -5%; bottom: 0; }
.ridge.one {
  height: 32%; background: #1a0f0d;
  clip-path: polygon(0 45%, 8% 38%, 18% 48%, 30% 30%, 42% 44%, 55% 26%, 66% 40%, 78% 28%, 90% 42%, 100% 34%, 100% 100%, 0 100%);
}
.ridge.two {
  height: 20%; background: var(--bg);
  clip-path: polygon(0 40%, 12% 52%, 25% 34%, 38% 50%, 50% 38%, 63% 54%, 75% 36%, 88% 50%, 100% 40%, 100% 100%, 0 100%);
}
.hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 7px 14px 7px 12px; border-radius: 999px; font-size: 14px;
  background: rgb(255 255 255 / 0.05); border: 1px solid var(--line-2);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s, background .2s;
}
.pill:hover { border-color: rgb(242 179 92 / 0.5); background: rgb(255 255 255 / 0.08); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero h1 {
  font-size: clamp(40px, 7vw, 84px); font-weight: 600; max-width: 980px;
  margin: 26px 0 0; letter-spacing: -0.04em; line-height: 1.02;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal; background: var(--sun); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 720px; margin: 24px 0 0; text-wrap: pretty; }
.actions { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }
.hero-shot { margin-top: clamp(48px, 7vw, 80px); margin-bottom: 0; padding-bottom: clamp(40px, 6vw, 80px); }
.frame {
  border-radius: 20px; padding: 8px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.16), rgb(255 255 255 / 0.03));
  box-shadow: 0 50px 120px -30px rgb(255 106 61 / 0.45), 0 30px 60px -20px rgb(0 0 0 / 0.8);
  animation: lift 1.4s .2s cubic-bezier(.2, .7, .2, 1) both;
}
.frame img { border-radius: 13px; width: 100%; }
@keyframes lift { from { transform: translateY(40px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* Replaces */
.replaces { text-align: center; padding-top: 30px; }
.replaces > p { color: var(--dim); font-size: 14px; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; }
.replaces ul { list-style: none; padding: 0; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 820px; }
.replaces li {
  padding: 6px 14px; border-radius: 999px; border: 1px dashed var(--line-2); color: var(--muted);
  font-family: var(--mono); font-size: 14px; text-decoration: line-through; text-decoration-color: rgb(255 106 61 / 0.7);
}
.numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 56px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.numbers div { background: var(--bg); padding: 28px 24px; }
.numbers dt { font-size: clamp(34px, 4vw, 46px); font-weight: 200; letter-spacing: -0.03em; }
.numbers dd { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .3s, transform .3s;
}
.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile.wide { grid-column: span 2; }
.tile-text { padding: 26px 26px 18px; }
.tile h3 { font-size: 20px; font-weight: 600; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tile p { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.tile img {
  margin: auto 18px 18px; width: calc(100% - 36px); height: auto;
  border-radius: 10px; border: 1px solid var(--line-2);
}
.tile.wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.75fr); align-items: center; }
.tile.wide .tile-text { align-self: start; padding-right: 8px; }
.tile.wide img { margin: 18px 18px 18px 0; width: calc(100% - 18px); }
.ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgb(255 106 61 / 0.12); color: var(--gold); flex: none; }
.ico svg { width: 17px; height: 17px; }
kbd {
  font-size: 12px; font-weight: 500; color: var(--muted); padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--line-2); border-bottom-width: 2px; background: rgb(255 255 255 / 0.03);
}

/* Split sections */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse .split-text { order: 2; }
.split-text code, .prose code { font-size: .88em; padding: 2px 6px; border-radius: 6px; background: rgb(255 255 255 / 0.07); }
.stack { display: grid; }
.stack img { grid-area: 1 / 1; border-radius: 14px; border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgb(0 0 0 / .9); }
.stack img:first-child { width: 82%; }
.stack img:last-child { width: 72%; justify-self: end; align-self: end; margin-top: 40%; }
pre.code {
  margin: 28px 0 0; padding: 20px 22px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line);
  font-size: 14px; line-height: 1.7; overflow-x: auto; color: #d9d2ca;
}
.code .k { color: var(--sky); } .code .s { color: #a6d189; } .code .c { color: var(--dim); }

/* Themes */
.themes-band { background: linear-gradient(180deg, transparent, rgb(255 106 61 / 0.04) 40%, transparent); }
.reel {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(16px, calc((100vw - var(--wrap)) / 2)) 26px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.reel-item {
  flex: 0 0 min(78vw, 440px); scroll-snap-align: center; text-decoration: none;
  border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s;
}
.reel-item:hover { transform: translateY(-4px); border-color: var(--line-2); }
.reel-item img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.reel-item span { display: block; padding: 14px 18px 16px; color: var(--muted); font-size: 14px; }
.reel-item strong { display: block; color: var(--text); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.themes-band .center { margin-top: 18px; }

/* Terminal */
.terminal {
  border-radius: 14px; background: #0f0d10; border: 1px solid var(--line-2); overflow: hidden;
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / .9), 0 0 0 1px rgb(0 0 0 / .4);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b272d; }
.term-bar span { margin-left: auto; margin-right: auto; color: var(--dim); font: 12px var(--mono); translate: -26px 0; }
.terminal pre { margin: 0; padding: 20px 22px 24px; font-size: 13.5px; line-height: 1.75; overflow-x: auto; color: #e4ddd5; }
.terminal .p { color: var(--ember); } .terminal .h { color: var(--text); font-weight: 500; }
.terminal .ok { color: #a6d189; } .terminal .no { color: var(--gold); } .terminal .dim { color: var(--dim); }

/* Family */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.kin {
  display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius); text-decoration: none;
  background: var(--card); border: 1px solid var(--line); transition: border-color .3s, transform .3s, background .3s;
}
.kin:hover { border-color: rgb(242 179 92 / .4); transform: translateY(-3px); background: var(--card-2); }
.kin h3 { font-size: 22px; font-family: var(--mono); font-weight: 500; letter-spacing: -0.02em; margin-top: 6px; }
.kin p { color: var(--muted); font-size: 15px; margin: 0; flex: 1; }
.kin .more { display: inline-flex; align-items: center; gap: 6px; color: var(--dim); font: 13px var(--mono); transition: color .2s; }
.kin:hover .more { color: var(--gold); }
.kin .ico { width: 40px; height: 40px; border-radius: 11px; }
.kin .ico svg { width: 20px; height: 20px; }

/* Install */
.install-card {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(36px, 6vw, 72px) clamp(20px, 5vw, 64px); border-radius: 26px;
  background: linear-gradient(180deg, #1b1210, var(--card)); border: 1px solid var(--line-2);
}
.install-card p { color: var(--muted); max-width: 640px; margin: 18px auto 0; }
.install-card .small { font-size: 14px; margin-top: 14px; }
.install-card .small a { color: var(--text); text-decoration-color: var(--dim); text-underline-offset: 3px; }
.sun.small { width: 420px; top: auto; bottom: -300px; opacity: .35; z-index: -1; animation: none; filter: blur(30px); }
.command {
  display: flex; align-items: center; gap: 12px; margin: 30px auto 0; max-width: 820px; text-align: left;
  padding: 10px 10px 10px 18px; border-radius: 14px; background: rgb(0 0 0 / .45); border: 1px solid var(--line-2);
}
.command .prompt { color: var(--ember); font-family: var(--mono); }
.command code { flex: 1; overflow-x: auto; white-space: nowrap; font-size: 14px; scrollbar-width: none; }
.copy {
  display: inline-flex; align-items: center; gap: 6px; flex: none; cursor: pointer;
  padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .06);
  color: var(--text); font: 500 13px Geist, sans-serif; transition: background .2s;
}
.copy:hover { background: rgb(255 255 255 / .12); }
.copy svg { width: 14px; height: 14px; }
.copy.done { color: #a6d189; border-color: rgb(166 209 137 / .4); }

/* Releases */
.latest { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.release { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.release header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.release .version { font: 500 22px var(--mono); text-decoration: none; letter-spacing: -0.02em; }
.release .version:hover { color: var(--gold); }
.release time { color: var(--dim); font-size: 14px; }
.latest .release .prose { max-height: 420px; overflow: hidden; mask-image: linear-gradient(180deg, #000 75%, transparent); }
.timeline { display: grid; gap: 18px; max-width: 860px; padding-bottom: 100px; }

/* Pages */
.page-head { padding: clamp(56px, 8vw, 96px) 0 40px; max-width: 760px; position: relative; }
.page-head.flush { padding-top: 0; }
.page-head h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 600; letter-spacing: -0.04em; }
.page-head p { color: var(--muted); font-size: 18px; margin: 16px 0 0; }
.page-head a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--dim); }
.page-head .back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-size: 15px; }
.page-head .back:hover { color: var(--text); }
.chip { display: inline-block; padding: 3px 11px; margin: 4px 4px 0 0; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--text); }
.in-box { font-size: 15px !important; }
.lost { text-align: center; margin-inline: auto; min-height: 50vh; overflow: hidden; }
.pager { display: flex; justify-content: space-between; gap: 12px; margin: 48px 0 100px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { color: var(--muted); text-decoration: none; } .pager a:hover { color: var(--text); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.theme { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .3s; scroll-margin-top: 90px; }
.theme:hover, .theme:target { border-color: rgb(242 179 92 / .45); }
.theme img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.theme a { display: block; overflow: hidden; }
.theme:hover img { transform: scale(1.025); }
.theme-text { padding: 18px 22px 22px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; }
.theme h2 { font-size: 20px; }
.theme p { grid-column: 1; color: var(--muted); margin: 0; font-size: 15px; }
.theme .by { grid-row: 1; grid-column: 2; color: var(--dim); font-size: 13px; font-family: var(--mono); }

/* Docs */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 56px; padding-bottom: 100px; }
.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; font-size: 14px; }
.toc summary { font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); cursor: pointer; list-style: none; margin-bottom: 10px; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc ol ol { padding-left: 12px; border-left: 1px solid var(--line); margin: 2px 0 6px 4px; }
.toc a { display: block; padding: 4px 8px; border-radius: 7px; text-decoration: none; color: var(--muted); }
.toc a:hover { color: var(--text); background: rgb(255 255 255 / .04); }
.toc a.on { color: var(--gold); }
.docs article { max-width: 820px; }
.edit { margin-top: 56px; font-size: 14px; color: var(--dim); }

/* Prose */
.prose { color: #ddd6ce; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 30px; margin: 64px 0 16px; padding-top: 8px; color: var(--text); }
.prose h3 { font-size: 21px; margin: 40px 0 12px; color: var(--text); }
.prose h2 a, .prose h3 a { text-decoration: none; color: inherit; }
.prose h2 a:hover::after, .prose h3 a:hover::after { content: " #"; color: var(--dim); }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 8px 0; }
.prose li::marker { color: var(--ember); }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--sky); text-decoration-color: rgb(134 189 240 / .35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--sky); }
.prose pre {
  padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 13.5px; line-height: 1.65;
  background: var(--bg-2) !important; border: 1px solid var(--line); margin: 0 0 20px;
}
.prose pre code { padding: 0; background: none; font-size: inherit; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 22px; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--dim); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.prose tr:hover td { background: rgb(255 255 255 / .02); }
.prose blockquote { margin: 0 0 18px; padding: 4px 18px; border-left: 3px solid var(--ember); color: var(--muted); }
.prose img { border-radius: 12px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand div { display: flex; flex-direction: column; font-size: 14px; }
.foot-brand span { color: var(--dim); }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.foot nav a:hover { color: var(--text); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.seen { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-column: span 2; }
  .split, .latest { grid-template-columns: 1fr; }
  .split.reverse .split-text { order: 0; }
  .family { grid-template-columns: 1fr; }
  .docs { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
  .toc summary { margin: 0; }
  .toc details[open] summary { margin-bottom: 10px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none !important; }
  .nav nav a { padding: 7px 9px; }
  .bento, .gallery { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; display: flex; }
  .tile { min-height: 0; }
  .tile.wide img { margin: auto 18px 18px; width: calc(100% - 36px); }
  .numbers { grid-template-columns: 1fr; }
  .command code { font-size: 12.5px; }
  .copy span { display: none; }
  .release { padding: 20px; }
  .frame { padding: 4px; border-radius: 12px; }
  .frame img { border-radius: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
[data-at="themes"] .nav a[data-nav="themes"], [data-at="news"] .nav a[data-nav="news"], [data-at="docs"] .nav a[data-nav="docs"] { color: var(--text); background: rgb(255 255 255 / 0.06); }
.split.reverse { grid-template-columns: 1.15fr 1fr; }
@media (max-width: 960px) { .split.reverse { grid-template-columns: 1fr; } }
.nav nav a { white-space: nowrap; }
@media (max-width: 640px) {
  .nav-row { gap: 8px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 24px; height: 24px; }
  .nav nav { gap: 0; }
  .nav nav a { font-size: 14px; padding: 6px 7px; }
  .nav .gh { margin-left: 2px; padding: 6px 8px; }
}
@media (max-width: 360px) { .brand { font-size: 0; } }

/* Hyprland → niri */
.convert { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pane { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius); border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; }
.pane-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); min-height: 52px; flex-wrap: wrap; }
.pane-title { font-size: 14px; font-weight: 500; }
.pane-title .era { color: var(--gold); font-weight: 400; margin-left: 6px; }
.pane-actions { display: inline-flex; gap: 8px; }
.small-button { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 9px; border: 1px solid var(--line-2); background: rgb(255 255 255 / .05); color: var(--text); font: 500 13px Geist, sans-serif; cursor: pointer; }
.small-button:hover:not(:disabled) { background: rgb(255 255 255 / .1); }
.small-button:disabled { opacity: .45; cursor: default; }
#h2n-in, #h2n-out { flex: 1 1 auto; min-height: 520px; height: 520px; margin: 0; padding: 16px 18px; font: 13px/1.6 var(--mono); color: #e4ddd5; background: transparent; border: 0; resize: vertical; overflow: auto; white-space: pre; tab-size: 4; }
#h2n-in:focus { outline: none; }
#h2n-in::placeholder { color: var(--dim); }
.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.examples .chip { cursor: pointer; background: transparent; font: 500 13px var(--mono); margin: 0; }
.examples .chip:hover { border-color: rgb(242 179 92 / .5); color: var(--gold); }
.report[hidden] { display: none; }
.report { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.report-col { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 12px; min-width: 0; }
.report-col h2 { font-size: 16px; display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.report-col h2 span { color: var(--dim); font-weight: 400; }
.report-col h2 i { width: 9px; height: 9px; border-radius: 50%; }
.report-col i.ok { background: #5dd39e; } .report-col i.here { background: var(--sky); } .report-col i.left { background: var(--gold); }
.report-col ul { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; font-size: 13px; }
.report-col li { display: grid; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); color: #d9d2ca; overflow-wrap: anywhere; }
.report-col .at { color: var(--dim); font: 12px var(--mono); }
@media (max-width: 960px) { .convert, .report { grid-template-columns: 1fr; } #h2n-in, #h2n-out { min-height: 340px; height: 340px; } }
[data-at="hyprland"] .nav a[data-nav="hyprland"] { color: var(--text); background: rgb(255 255 255 / 0.06); }
