/* Hotbar Studio site: one stylesheet for every page. Fonts are local files (SIL Open Font License, see fonts/), so no request goes to Google.
   Layout: a night-time SMP. Deepslate band up top, real Minecraft GUI pieces, everything else set in quiet columns below.
   Deliberately one dark look (the game's own GUI palette), so no light theme. */
@font-face { font-family: "Pixelify Sans"; font-weight: 400 700; font-style: normal; font-display: swap; src: url(fonts/PixelifySans.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/AtkinsonHyperlegible-400.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/AtkinsonHyperlegible-700.woff2) format("woff2"); }
:root {
  --bg: #121518;
  --band: #1a1e22;
  --fg: #ececec;
  --muted: #a7adb2;
  --panel: #c6c6c6;        /* vanilla GUI grey */
  --panel-hi: #ffffff;
  --panel-lo: #555555;
  --gui-ink: #404040;      /* vanilla GUI title colour */
  --diamond: #4ee6dc;
  --green: #55ff55;        /* chat green */
  --line: #2a3036;
  --font-display: "Pixelify Sans", "Courier New", monospace;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  color-scheme: dark;
}
body { background: var(--bg); color: var(--fg); font: 17px/1.6 var(--font-body); margin: 0; }
.pad { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 1040px; margin: 0 auto; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; text-wrap: balance; margin: 0; line-height: 1.08; }
/* the pixel face only for the big title; smaller headings stay readable (pixel digits like 5 and 9 look alike) */
h2, h3 { font-family: var(--font-body); letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); text-shadow: .06em .06em 0 rgba(0,0,0,.6); }
h2 { font-size: clamp(1.8rem, 4.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0; max-width: 60ch; }
a { color: var(--diamond); }
:focus-visible { outline: 3px solid var(--diamond); outline-offset: 3px; }
.px { image-rendering: pixelated; display: block; }

/* status strip: the product is still being built */
.status { background: #2b2410; color: #ffd966; font: 600 .9rem var(--font-body); text-align: center; padding-block: 8px; }

/* hero on a deepslate band */
.hero { background: linear-gradient(rgba(14,17,20,.82), rgba(14,17,20,.94)), url(mc/deepslate_tiles.png) 0 0 / 64px; image-rendering: pixelated; padding-block: 56px 64px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.hero .copy { display: grid; gap: 22px; min-width: 0; image-rendering: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 .95rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand-mark { width: 30px; height: 30px; }
.compat { font-size: .9rem; color: var(--muted); }
.lede { font-size: 1.15rem; color: var(--muted); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { font: 700 1.1rem var(--font-display); text-decoration: none; padding: 10px 20px; color: #1b1b1b; cursor: pointer;
  background: var(--panel); border: 3px solid; border-color: var(--panel-hi) var(--panel-lo) var(--panel-lo) var(--panel-hi); }
.btn:hover { filter: brightness(1.08); }
.btn.primary { background: var(--diamond); color: #062a28; border-color: #b8fffa #137a73 #137a73 #b8fffa; }
.btn[aria-disabled="true"] { cursor: default; }
.soon { font: 600 .8rem var(--font-body); color: var(--muted); align-self: center; }

/* the real 27-slot chest GUI; items are placed in GUI pixels (176 x 78) so they sit exactly on the slots */
.chest { position: relative; width: 100%; max-width: 100%; aspect-ratio: 176 / 78; container-type: inline-size;
  background: url(mc/chest27.png) 0 0 / 100% 100%; image-rendering: pixelated; min-width: 0; }
.chest .ttl { position: absolute; left: calc(8 / 176 * 100%); top: calc(5 / 78 * 100%); font: 500 calc(8 / 176 * 100cqw)/1 var(--font-display); color: var(--gui-ink); }
.chest .it { position: absolute; width: calc(16 / 176 * 100%); height: calc(16 / 78 * 100%); }
.chest .it img { width: 100%; height: 100%; }
.chest .it b { position: absolute; right: -4%; bottom: -14%; font: 500 calc(8 / 176 * 100cqw)/1 var(--font-display); color: #fff; text-shadow: calc(1 / 176 * 100cqw) calc(1 / 176 * 100cqw) 0 #3f3f3f; }
.chest .it.new { animation: drop .7s cubic-bezier(.3,1.4,.5,1) both; }
.chest .it.hl::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.45); }
.hero .chat { transition: opacity .3s; }
.hero .chat.hide { opacity: 0; }
@keyframes drop { from { transform: translateY(-160%); opacity: 0; } to { transform: none; opacity: 1; } }
.chat { margin-top: 14px; background: rgba(0,0,0,.55); padding: 8px 12px; font: 500 1rem var(--font-display); color: #fff; image-rendering: auto; }
.chat .g { color: var(--green); } .chat .d { color: var(--diamond); }
.hero-visual { display: grid; min-width: 0; }

main section { padding-block: 64px; border-top: 1px solid var(--line); }
main section:first-child { border-top: 0; }
main section.band { background: var(--band); border-top: 0; }
main section.band + section { border-top: 0; }
.head { display: grid; gap: 10px; margin-bottom: 32px; }
.head p { color: var(--muted); }

/* steps: a real sequence, so they are numbered */
.how { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; min-width: 0; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 6px 16px; align-items: start; min-width: 0; }
.steps .slot { grid-row: span 2; width: 56px; height: 56px; background: #8b8b8b; border: 3px solid; border-color: #373737 #fff #fff #373737; display: grid; place-items: center; }
.steps .slot img { width: 40px; height: 40px; }
.steps h3 span { color: var(--diamond); margin-right: 6px; }
.steps p { color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 36px; }
.feat { display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; min-width: 0; }
.feat img { width: 48px; height: 48px; grid-row: span 2; }
.feat p { color: var(--muted); }

.menu-fig { margin: 0; display: grid; gap: 12px; min-width: 0; }
.menu-fig figcaption { color: var(--muted); font-size: .95rem; }


.video-row { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 48px; align-items: center; }
/* own video player in the GUI style: no browser controls, so no 3-dot menu; full screen falls back to filling the window */
.player { position: relative; width: 100%; max-width: 100%; aspect-ratio: 9 / 16; background: #000; border: 3px solid; border-color: #3a4046 #0b0d0f #0b0d0f #3a4046; }
.player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; }
.player button { font: inherit; cursor: pointer; display: grid; place-items: center; color: #1b1b1b;
  background: var(--panel); border: 3px solid; border-color: var(--panel-hi) var(--panel-lo) var(--panel-lo) var(--panel-hi); }
.player button:active { border-color: var(--panel-lo) var(--panel-hi) var(--panel-hi) var(--panel-lo); }
.player svg { width: 18px; height: 18px; fill: currentColor; shape-rendering: crispEdges; }
.big-play { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; transform: translate(-50%, -50%); background: var(--diamond) !important; color: #062a28 !important;
  border-color: #b8fffa #137a73 #137a73 #b8fffa !important; }
.big-play svg { width: 34px; height: 34px; }
.player.playing .big-play { display: none; }
.controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 10px; background: linear-gradient(transparent, rgba(0,0,0,.75)); transition: opacity .2s; }
.player.playing:not(:hover):not(:focus-within) .controls { opacity: 0; }
.controls button { width: 40px; height: 40px; flex: none; padding: 0; }
.bar { flex: 1; min-width: 0; height: 14px; background: #8b8b8b; border: 3px solid; border-color: #373737 #fff #fff #373737; cursor: pointer; position: relative; }
.bar .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--diamond); }
.player .i-pause, .player.playing .i-play, .player .i-muted, .player.muted .i-sound { display: none; }
.player.playing .i-pause, .player.muted .i-muted { display: inline; }
.player.theater { position: fixed; inset: 0; z-index: 100; width: auto; max-width: none; aspect-ratio: auto; border: 0;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px); }
.player:fullscreen { aspect-ratio: auto; border: 0; }
.video-row .copy { display: grid; gap: 14px; min-width: 0; }
.video-row .copy p { color: var(--muted); }

.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; }
.prod { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 20px; background: var(--band); border: 1px solid var(--line); }
.prod.best { border: 3px solid var(--diamond); }
.prod .top { display: flex; align-items: center; gap: 12px; }
.prod .top img { width: 40px; height: 40px; }
.prod .tag { font: 600 .75rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.prod .price { font: 700 2rem var(--font-body); font-variant-numeric: tabular-nums; }
.prod .price small { font: 400 .85rem var(--font-body); color: var(--muted); margin-left: 6px; }
.prod ul { margin: 0; padding-left: 18px; color: var(--fg); display: grid; gap: 4px; }

.faq { display: grid; }
.faq details { max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding-block: 14px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 8px; color: var(--muted); }
footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: .9rem; }
footer .sf { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
footer .sf-mark { width: 28px; height: 28px; }
footer .sf-accent { color: var(--diamond); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

@media (max-width: 1000px) and (min-width: 821px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .hero .wrap, .features, .products, .how, .video-row { grid-template-columns: 1fr; }
  .video-row .player { max-width: 340px; }
}
@media (prefers-reduced-motion: reduce) { .chest .it.new { animation: none; } }
/* ---- shared across pages ---- */
/* top bar: studio home on the left, one link per plugin on the right */
.topnav { background: #0b0d10; border-bottom: 1px solid var(--line); }
.topnav .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; min-height: 58px; }
.topnav .home { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; padding-block: 10px; color: var(--fg); text-decoration: none;
  font: 700 .95rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
.topnav .home img { width: 28px; height: 28px; }
.topnav nav { display: flex; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.topnav nav a { padding: 16px 10px 13px; color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.topnav nav a:hover { color: var(--fg); }
.topnav nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--accent, var(--diamond)); }
.brand img { width: 30px; height: 30px; }
.eyebrow { font: 700 .8rem var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--accent, var(--diamond)); }

/* ---- studio home: the plugin catalog ---- */
.hero.short { padding-block: 48px 52px; }
.hero.short .wrap { display: grid; grid-template-columns: 1fr; gap: 18px; }
.hero.short .copy { max-width: 720px; }
/* auto-fill grid: a fourth or fifth plugin just adds a card, the page never gets wider or denser */
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card { position: relative; display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--band); border: 1px solid var(--line); }
.card:hover { border-color: var(--accent); }
.card:has(a.stretch:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.card .media { aspect-ratio: 16 / 10; overflow: hidden; background: #0b0d10 url(mc/deepslate_tiles.png) 0 0 / 48px; image-rendering: pixelated; display: grid; place-items: center; }
.card .media > img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.card .media .chest { width: 86%; }
.card .body { display: grid; gap: 10px; align-content: start; padding: 20px; }
.card .body p { color: var(--muted); }
.card .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .9rem; color: var(--muted); }
.card .meta b { color: var(--fg); }
.card .more { font-weight: 700; color: var(--accent); margin-top: 4px; }
.card a.stretch { color: inherit; text-decoration: none; }
.card a.stretch::after { content: ""; position: absolute; inset: 0; }
.card a.stretch:focus-visible { outline: none; }
.card.upcoming { border-style: dashed; }
.card.upcoming .media { filter: grayscale(.6) brightness(.8); }
.card.upcoming .media span { font: 700 1.4rem var(--font-display); color: var(--fg); text-shadow: 2px 2px 0 #000; image-rendering: auto; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* ---- plugin pages ---- */
.teaser { position: relative; width: 100%; max-width: 340px; justify-self: end; aspect-ratio: 9 / 16; background: #000; border: 3px solid; border-color: #3a4046 #0b0d0f #0b0d0f #3a4046; }
.teaser video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .wrap.with-teaser { grid-template-columns: 1fr minmax(0, 340px); }
.note { font-size: .85rem; color: var(--muted); }
.bosses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.boss { display: grid; grid-template-rows: auto 1fr; min-width: 0; background: var(--band); border: 1px solid var(--line); border-top: 3px solid var(--c); }
.boss img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-position: 50% 40%; object-fit: cover; display: block; }
.boss .body { display: grid; gap: 10px; align-content: start; padding: 18px 20px 22px; }
.boss .where { color: var(--muted); font-size: .95rem; }
.boss .hp { font: 700 .9rem var(--font-body); color: var(--c); font-variant-numeric: tabular-nums; }
.boss ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.boss li b { color: var(--c); }
.boss .loot { font-size: .9rem; color: var(--muted); }

@media (max-width: 820px) {
  .perks, .bosses { grid-template-columns: 1fr; }
  .hero .wrap.with-teaser { grid-template-columns: 1fr; }
  .teaser { justify-self: start; max-width: 260px; }
  .topnav nav a { padding-inline: 7px; }
}
@media (min-width: 821px) and (max-width: 1000px) { .perks { grid-template-columns: repeat(2, 1fr); } .bosses { gap: 16px; } }
/* Cavern Bosses page: the Crypt Lord's purple instead of diamond teal on the main buttons */
body.cb .btn.primary, body.cb .big-play { background: #d693ff !important; color: #2a1038 !important; border-color: #f0d6ff #7a3fa0 #7a3fa0 #f0d6ff !important; }
body.cb .bar .fill { background: #d693ff; }
