@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/Inter-Regular.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap; src: url(/assets/fonts/Inter-Medium.woff) format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap; src: url(/assets/fonts/Inter-SemiBold.woff) format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 800; font-style: normal; font-display: swap; src: url(/assets/fonts/InterDisplay-ExtraBold.woff) format("woff"); }
@font-face { font-family: "DejaVu Sans Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(/assets/fonts/DejaVuSansMono.woff) format("woff"); }
@font-face { font-family: "DejaVu Sans Mono"; font-weight: 700; font-style: normal; font-display: swap; src: url(/assets/fonts/DejaVuSansMono-Bold.woff) format("woff"); }

:root {
  --base: #0d0f16;
  --glass: rgba(18, 20, 31, .72);
  --glass-strong: rgba(14, 16, 24, .9);
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .18);
  --text: #eef0f6;
  --muted: #9aa0b4;
  --faint: #6a7186;
  --purple: #a855f7;
  --purple-hi: #c9a0ff;
  --purple-deep: #6d28d9;
  --purple-glow: rgba(168, 85, 247, .35);
  --gold: #e9b75c;
  --mint: #6fe3b0;
  --alarm: #ff7a95;
  --amber: #e9b75c;
  --chat-cmd: #c9a0ff;
  --chat-arg: #6fe3b0;
  --chat-opt: #9aa0b4;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
  --mono: "DejaVu Sans Mono", ui-monospace, Menlo, Consolas, monospace;
  --r-lg: 18px; --r: 12px; --r-sm: 8px;
  --gutter: clamp(16px, 4vw, 40px);
  --grad: linear-gradient(150deg, #b86bff, #6d28d9);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--base); }
body { margin: 0; color: var(--text); font: 400 1rem/1.65 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background: radial-gradient(1100px 560px at 78% -80px, rgba(168, 85, 247, .26), transparent 62%), radial-gradient(800px 460px at 0% 100%, rgba(233, 183, 92, .07), transparent 60%), linear-gradient(160deg, #141826, var(--base) 65%); background-attachment: fixed; }
a { color: var(--purple-hi); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--purple-deep); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--grad); color: #fff; padding: 10px 14px; border-radius: var(--r-sm); z-index: 50; }
.skip:focus { top: 8px; }
code, pre { font-family: var(--mono); font-size: .9em; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; margin: 0; text-wrap: balance; color: #fff; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 44rem; margin-top: .9rem; text-wrap: pretty; }

/* glass surface */
.glass, .topics a, .rank, .table-wrap, .finder-box { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

/* header */
.top { background: rgba(13, 15, 22, .78); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.top-in { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter); height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; filter: drop-shadow(0 4px 14px var(--purple-glow)); }
.main-nav { display: flex; gap: 4px; flex: 1; }
.main-nav a { position: relative; color: var(--muted); text-decoration: none; padding: 10px 14px; border-radius: 10px; font-weight: 600; font-size: .95rem; }
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.main-nav a[aria-current="page"] { color: #fff; background: rgba(168, 85, 247, .16); box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .4); }
.staff-link { font-weight: 600; font-size: .9rem; color: #fff; text-decoration: none; padding: 9px 16px; border-radius: 10px; background: rgba(255, 255, 255, .07); border: 1px solid var(--line-strong); }
.staff-link:hover { background: rgba(255, 255, 255, .13); color: #fff; }

main { max-width: 76rem; margin: 0 auto; padding: 0 var(--gutter) 5rem; }
.page { padding-top: clamp(2rem, 5vw, 3.5rem); }
.page.narrow { max-width: 40rem; }
.crumb { margin: 0 0 .6rem; font-size: .95rem; }

/* hero + finder */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0 2rem; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2rem 3rem; align-items: center; }
.hero-text { min-width: 0; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); letter-spacing: -.045em; line-height: .98; max-width: 12ch; }
.hero-logo { display: flex; justify-content: center; }
.hero-logo img { width: min(100%, 27rem); height: auto; filter: drop-shadow(0 20px 50px var(--purple-glow)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero #results { grid-column: 1 / -1; }
.finder { margin-top: 2rem; max-width: 46rem; }
.finder-box { display: flex; align-items: center; border-radius: var(--r); border-color: var(--line-strong); padding: 0 18px; transition: box-shadow .15s, border-color .15s; }
.finder-box:focus-within { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(168, 85, 247, .22); }
.finder-box .slash { font: 700 1.5rem/1 var(--mono); color: var(--purple-hi); padding-right: 8px; }
.finder-box input { flex: 1; min-width: 0; background: none; border: 0; color: #fff; font: 400 1.2rem/1 var(--mono); padding: 22px 0; caret-color: var(--purple-hi); }
.finder-box input::placeholder { color: var(--faint); }
.finder-box input:focus { outline: none; }
.finder-box input::-webkit-search-cancel-button { display: none; }
.finder.small .finder-box input { font-size: 1.05rem; padding: 16px 0; }
.results { margin-top: 1.2rem; max-width: 52rem; display: grid; gap: 2px; }
.hit { display: grid; grid-template-columns: minmax(0, 20rem) 1fr; gap: 6px 18px; align-items: baseline; padding: 12px 16px; color: var(--text); text-decoration: none; border-radius: var(--r-sm); }
.hit:hover, .hit:focus-visible, .hit.sel { background: rgba(255, 255, 255, .06); }
.hit code { color: #fff; font-size: .95rem; overflow-wrap: anywhere; }
.hit span { color: var(--muted); font-size: .95rem; }
.hit .u-cmd { color: var(--purple-hi); font-weight: 700; }
.hit .u-arg { color: var(--mint); }
.hit .u-opt { color: var(--muted); }
.empty { color: var(--muted); padding: 12px 16px; }

/* topic cards */
.topics { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 14px; }
.topics a { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; padding: 20px 22px; border-radius: var(--r-lg); text-decoration: none; color: var(--text); height: 100%; transition: transform .15s, border-color .15s, background .15s; }
.topics a:hover { transform: translateY(-3px); border-color: rgba(168, 85, 247, .55); background: rgba(34, 24, 56, .7); box-shadow: 0 14px 40px -18px var(--purple-glow); }
.topics strong { font: 800 1.2rem/1.2 var(--display); letter-spacing: -.02em; color: #fff; }
.topics span { grid-column: 1 / -1; grid-row: 2; color: var(--muted); font-size: .93rem; overflow-wrap: anywhere; }
.topics em { font-style: normal; font-feature-settings: "tnum"; color: var(--purple-hi); font-weight: 700; font-size: .9rem; background: rgba(168, 85, 247, .14); padding: 1px 10px; border-radius: 99px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.split h2 { margin-top: 2.4rem; }
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; font: 700 .95rem/1.3 var(--sans); text-decoration: none; cursor: pointer; border: 0; color: #fff; background: var(--grad); box-shadow: 0 8px 24px -8px var(--purple-glow), inset 0 1px 0 rgba(255, 255, 255, .25); transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.12); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn.ghost, .btn.plain { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.ghost:hover, .btn.plain:hover { background: rgba(255, 255, 255, .13); }

/* docs layout */
.doc { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); padding-top: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.side-nav { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 110px); overflow: auto; }
.side-title { font-weight: 700; color: var(--faint); font-size: .8rem; margin: 0 0 6px 12px; }
.side-nav a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.side-nav a span { color: var(--faint); font-feature-settings: "tnum"; font-weight: 500; }
.side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-nav a[aria-current="page"] { background: rgba(168, 85, 247, .16); box-shadow: inset 0 0 0 1px rgba(168, 85, 247, .4); color: #fff; }
.side-nav a[aria-current="page"] span { color: var(--purple-hi); }
.side-nav a.sub { padding: 4px 12px 4px 24px; font-weight: 400; font-size: .85rem; font-family: var(--mono); }
.doc-main { min-width: 0; max-width: 52rem; }

/* one command */
.cmd { border-top: 1px solid var(--line); padding: 1.8rem 0 2rem; scroll-margin-top: 90px; }
.doc-main > .lead + .cmd { margin-top: 2rem; }
.cmd:target h3 a { background: rgba(168, 85, 247, .25); }
.cmd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.cmd-head h3 a { color: #fff; text-decoration: none; border-radius: 6px; padding: 0 6px; margin-left: -6px; }
.cmd-meta { display: flex; gap: 12px; align-items: baseline; }
.side { color: var(--faint); font-size: .85rem; }
.cmd-desc { font-size: 1.08rem; margin: .6rem 0 .5rem; max-width: 40rem; }
.aliases { color: var(--muted); font-size: .92rem; margin: 0 0 .8rem; }
.perm { font-family: var(--mono); font-size: .78rem; background: rgba(168, 85, 247, .14); border: 1px solid rgba(168, 85, 247, .35); padding: 2px 10px; border-radius: 99px; color: var(--purple-hi); white-space: nowrap; }
.perm-all { font-family: var(--sans); color: var(--mint); background: rgba(111, 227, 176, .1); border-color: rgba(111, 227, 176, .3); font-weight: 600; font-size: .82rem; }
.notes { color: var(--muted); font-size: .95rem; max-width: 42rem; margin: .9rem 0 0; }

/* chat lines: how commands look in Minecraft chat */
.chat { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: rgba(8, 9, 14, .75); color: #fff; border-radius: 10px; padding: 10px 12px 10px 16px; margin: 6px 0; border: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--purple); }
.chat code { font-size: .92rem; overflow-wrap: anywhere; color: #fff; }
.chat .u-cmd { color: var(--chat-cmd); font-weight: 700; }
.chat .u-arg { color: var(--chat-arg); }
.chat .u-opt { color: var(--chat-opt); }
.chat .copy { flex: none; background: rgba(255, 255, 255, .08); color: var(--text); border: 1px solid var(--line-strong); border-radius: 7px; padding: 3px 11px; font: 600 .8rem var(--sans); cursor: pointer; opacity: 0; transition: opacity .12s; }
.chat:hover .copy, .chat:focus-within .copy, .copy:focus-visible { opacity: 1; }
.copy:hover { background: rgba(255, 255, 255, .16); }
.copy.done { color: var(--mint); border-color: var(--mint); opacity: 1; }
.usages { margin: .8rem 0 0; max-width: 40rem; }
.prose .chat { max-width: 36rem; }
.subs { margin-top: 1rem; max-width: 44rem; }
.subs summary { cursor: pointer; font-weight: 700; padding: 4px 0; color: var(--purple-hi); }
.subs dl { margin: .6rem 0 0; display: grid; gap: 10px; }
.subs dt code { color: #fff; }
.subs dd { margin: 2px 0 0; color: var(--muted); }
.subs .u-cmd { color: var(--purple-hi); font-weight: 700; } .subs .u-arg { color: var(--mint); } .subs .u-opt { color: var(--muted); }

/* prose, tables, code */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
.prose ul { padding-left: 1.2rem; } .prose li { margin: .35em 0; }
.prose code:not(.perm), .cmd-desc code, .lead code, td code, dd code, .aliases code { background: rgba(255, 255, 255, .08); padding: 1px 7px; border-radius: 6px; font-size: .88em; color: #fff; }
.chat code, .hit code { background: none; padding: 0; }
.table-wrap { overflow-x: auto; margin: 1rem 0; border-radius: var(--r); }
table.grid { width: 100%; border-collapse: collapse; font-size: .95rem; }
.grid th { text-align: left; font-weight: 700; color: var(--faint); font-size: .82rem; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.grid td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid tr:last-child td { border-bottom: 0; }
.grid td:first-child { white-space: nowrap; }
pre.code { background: rgba(8, 9, 14, .8); color: #e9ecf7; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; margin: .8rem 0; line-height: 1.55; font-size: .85rem; }
pre.code code { background: none; padding: 0; font-size: inherit; }
.ep { border-top: 1px solid var(--line); padding: 1.6rem 0; scroll-margin-top: 90px; max-width: 48rem; }
.ep-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.verb { font: 700 .8rem var(--mono); background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 6px; }
.ep-path { font-size: 1.02rem; font-weight: 700; }
.ep-path .u-arg { color: var(--mint); }
.params { margin: .4rem 0 .6rem; display: grid; gap: 6px; }
.params div { display: grid; grid-template-columns: 8rem 1fr; gap: 12px; }
.params dt, .params dd { margin: 0; } .params dd { color: var(--muted); }
.ranks { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 10px; }
.rank { display: grid; grid-template-columns: 28px 10rem 8rem 1fr; gap: 12px; align-items: center; padding: 12px 18px; border-radius: var(--r); }
.rank .swatch { width: 18px; height: 18px; border-radius: 50%; background: var(--rk, #888); box-shadow: 0 0 14px var(--rk, #888); }
.rank strong { font: 800 1.1rem var(--display); letter-spacing: -.02em; color: #fff; }
.rank .w { color: var(--muted); font-feature-settings: "tnum"; }

.foot { border-top: 1px solid var(--line); background: rgba(8, 9, 14, .6); }
.foot-in { max-width: 76rem; margin: 0 auto; padding: 28px var(--gutter); display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: var(--faint); font-size: .92rem; }
.foot p { margin: 0; } .foot a { margin-left: 16px; color: var(--muted); } .foot a:first-child { margin-left: 0; } .foot a:hover { color: #fff; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-logo { order: -1; justify-content: flex-start; } .hero-logo img { width: min(60%, 14rem); }
  .doc { grid-template-columns: 1fr; }
  .side-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; max-height: none; }
  .side-title { display: none; }
  .side-nav a { background: rgba(255, 255, 255, .06); }
  .side-nav a.sub { display: none; }
  .split { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 640px) {
  .top-in { gap: 10px; height: auto; min-height: 56px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .brand img { height: 36px; }
  .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .staff-link { margin-left: auto; }
  .hit { grid-template-columns: 1fr; }
  .rank { grid-template-columns: 24px 1fr auto; } .rank code { display: none; }
  .params div { grid-template-columns: 1fr; gap: 0; }
  .chat .copy { opacity: 1; }
  .finder-box input { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
