/* Slime Chunk Finder & Highlighter site. Same look as the Busy Bodies and Ex Nihilo Reborn sites (their style.css,
   trimmed to what this site uses, plus the finder at the bottom). Daylight by default, night for dark mode or the switch. */
:root {
  --bg: #f6f2e7;
  --surface: #fffdf6;
  --surface-2: #ece6d6;
  --ink: #211d17;
  --muted: #645d50;
  --line: #d8cfba;
  --link: #2c6a17;
  --accent: #3c8527;
  --head: #1f1a14;
  --head-ink: #f4efe4;
  --head-muted: #b9b1a1;
  --sky-a: #58aaea;
  --sky-b: #93cdf5;
  --sky-c: #d3ecfb;
  --stars: 0;
  --hero-ink: #0c2646;
  --code: #ebe4d2;
  --pre: #231e18;
  --pre-ink: #efe8d8;
  --warn: #b86a14;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #18171b; --surface: #201f24; --surface-2: #2a292f; --ink: #ece7dc; --muted: #a59f93; --line: #37353c; --link: #92d16a;
    --accent: #3f8d29; --head: #100f12; --head-ink: #f4efe4; --head-muted: #9f998d; --sky-a: #0b1030; --sky-b: #1d2a63; --sky-c: #43528f;
    --stars: 1; --hero-ink: #f1f4fb; --code: #2d2c33; --pre: #0f0e11; --pre-ink: #e9e3d6; --warn: #e3a04a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #18171b; --surface: #201f24; --surface-2: #2a292f; --ink: #ece7dc; --muted: #a59f93; --line: #37353c; --link: #92d16a;
  --accent: #3f8d29; --head: #100f12; --head-ink: #f4efe4; --head-muted: #9f998d; --sky-a: #0b1030; --sky-b: #1d2a63; --sky-c: #43528f;
  --stars: 1; --hero-ink: #f1f4fb; --code: #2d2c33; --pre: #0f0e11; --pre-ink: #e9e3d6; --warn: #e3a04a; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 "Source Sans 3", "Segoe UI", system-ui, sans-serif; }
img { max-width: 100%; }
.px { image-rendering: pixelated; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 700; line-height: 1.1; letter-spacing: .005em; margin: 0; }
h1 { font-size: clamp(2.3rem, 5vw, 3.1rem); }
h2 { font-size: 1.95rem; }
h3 { font-size: 1.4rem; font-weight: 600; }
p, ul, ol { margin: 0 0 1.05em; }
code, pre, kbd { font-family: "JetBrains Mono", ui-monospace, Consolas, monospace; font-size: .84em; }
code { background: var(--code); padding: .12em .38em; }
pre { background: var(--pre); color: var(--pre-ink); padding: 16px 18px; overflow-x: auto; margin: 0 0 1.3em; border-left: 4px solid var(--accent); line-height: 1.55; }
pre code { background: none; padding: 0; font-size: .82rem; }
kbd { display: inline-block; padding: 1px 7px 3px; background: #c6c6c6; color: #1c1c1c; box-shadow: inset 0 -3px 0 #8b8b8b, inset 0 1px 0 #f4f4f4; border: 1px solid #10130c; font-weight: 700; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.kicker, .label { font-family: "Silkscreen", "Barlow Condensed", monospace; }
.kicker { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--link); margin: 0 0 10px; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 30; background: var(--head); color: var(--head-ink); border-bottom: 4px solid #4f8f2c; box-shadow: 0 4px 0 #6c4a2e; }
.bar { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo img { width: 30px; height: 30px; display: block; }
.logo img.wm { width: auto; height: 14px; }
.primary { display: flex; align-self: stretch; }
.primary a { display: flex; align-items: center; padding: 0 13px; color: var(--head-muted); text-decoration: none; font: 600 1.02rem "Barlow Condensed", sans-serif; letter-spacing: .07em; text-transform: uppercase; }
.primary a:hover { color: var(--head-ink); }
.primary a.on { color: var(--head-ink); box-shadow: inset 0 -4px 0 #6db040; }
.tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme { width: 36px; height: 36px; border: 2px solid #3a332a; background: #14110d; cursor: pointer; padding: 0; display: grid; place-items: center; }
.theme:hover { border-color: #6db040; }
.theme i { width: 14px; height: 14px; background: #f6d24a; box-shadow: 0 0 0 2px #14110d, 0 0 0 4px #f6d24a55; }
:root[data-theme="dark"] .theme i { background: #d9e2f5; box-shadow: inset -5px -3px 0 #14110d; border-radius: 50%; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme i { background: #d9e2f5; box-shadow: inset -5px -3px 0 #14110d; border-radius: 50%; } }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; height: 36px; padding: 0 12px; display: flex; align-items: center; border: 2px solid #3a332a; font: 600 .95rem "Barlow Condensed", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.menu summary::-webkit-details-marker { display: none; }
.menu nav { position: absolute; left: 0; right: 0; top: 60px; background: var(--head); border-bottom: 4px solid #4f8f2c; padding: 6px 20px 14px; display: grid; }
.menu nav a { padding: 12px 2px; color: var(--head-ink); text-decoration: none; border-bottom: 1px solid #332c23; font: 600 1.1rem "Barlow Condensed", sans-serif; letter-spacing: .07em; text-transform: uppercase; }
@media (max-width: 1020px) { .primary, .tools .btn { display: none; } .menu { display: block; } }
@media (max-width: 420px) { .logo img.wm { display: none; } .bar { gap: 10px; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 22px 15px; border: 2px solid #10130c; border-radius: 0; cursor: pointer; text-decoration: none; font: 700 1.12rem/1 "Barlow Condensed", sans-serif; letter-spacing: .07em; text-transform: uppercase; position: relative; }
.btn-get { background: #3c8527; color: #fff; text-shadow: 0 2px 0 rgba(0, 0, 0, .3); box-shadow: inset 0 -5px 0 #2a641c, inset 0 2px 0 #62b043; }
.btn-stone { background: #c6c6c6; color: #1c1c1c; box-shadow: inset 0 -5px 0 #8b8b8b, inset 0 2px 0 #f4f4f4; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); padding-bottom: 13px; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .3); }
.btn.sm { padding: 7px 14px 10px; font-size: .95rem; box-shadow: inset 0 -3px 0 #2a641c, inset 0 2px 0 #62b043; }
.btn.lg { padding: 15px 28px 19px; font-size: 1.35rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid #f6d24a; outline-offset: 2px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 55%, var(--sky-c) 100%); color: var(--hero-ink); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: var(--stars); background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 31% 9%, #fff 99%, transparent), radial-gradient(2px 2px at 47% 31%, #dfe8ff 99%, transparent), radial-gradient(1.5px 1.5px at 63% 14%, #fff 99%, transparent), radial-gradient(2px 2px at 78% 27%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 91% 8%, #dfe8ff 99%, transparent), radial-gradient(1.5px 1.5px at 22% 48%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 85% 52%, #fff 99%, transparent), radial-gradient(1.5px 1.5px at 55% 58%, #dfe8ff 99%, transparent); }
.cloud { position: absolute; left: 0; opacity: .92; animation: drift linear infinite; will-change: transform; }
.cloud svg { display: block; width: 100%; height: auto; }
.cloud.c1 { top: 12%; width: 176px; animation-duration: 140s; animation-delay: -30s; }
.cloud.c2 { top: 38%; width: 120px; animation-duration: 190s; animation-delay: -120s; opacity: .7; }
.cloud.c3 { top: 62%; width: 216px; animation-duration: 165s; animation-delay: -75s; opacity: .8; }
:root[data-theme="dark"] .cloud { opacity: .16; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cloud { opacity: .16; } }
@keyframes drift { from { transform: translateX(-240px); } to { transform: translateX(100vw); } }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 92px; }
.eyebrow { display: inline-block; font: 400 .74rem "Silkscreen", monospace; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 18px; background: rgba(12, 32, 62, .5); color: #fff; padding: 6px 10px 7px; }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 3.9rem); margin: 0 0 18px; }
.hero .lead { font-size: 1.24rem; font-weight: 600; line-height: 1.5; max-width: 31em; margin: 0 0 26px; color: var(--hero-ink); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; font: 400 .72rem "Silkscreen", monospace; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.facts li { background: rgba(12, 32, 62, .42); padding: 6px 10px 7px; }
.facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; background: #b6ec7a; margin-right: 8px; }
.hero-shot { margin: 0; border: 3px solid #10130c; box-shadow: 10px 10px 0 rgba(12, 32, 62, .3); background: #10130c; }
.hero-shot img { display: block; width: 100%; height: auto; }
.hero-shot figcaption { padding: 7px 12px 8px; font-size: .88rem; color: #e9e3d6; }
.ground { height: 36px; background: url(/img/terrain.svg) repeat-x left top / auto 36px; image-rendering: pixelated; }
.hero .ground { position: absolute; left: 0; right: 0; bottom: 0; }
@media (prefers-reduced-motion: reduce) { .cloud { animation: none; transform: translateX(30vw); } }
@media (max-width: 900px) { .hero-in { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 70px; } .hero .lead { font-size: 1.1rem; } }

/* ---------- home bands ---------- */
.band { padding: 64px 0; }
.band.alt { background: var(--surface); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.band.dark { background: var(--head); color: var(--head-ink); }
.band.dark a:not(.btn) { color: #9fdd62; }
.band-head { max-width: 46em; margin: 0 0 30px; }
.band-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 12px; }
.band-head p:last-child { margin: 0; color: var(--muted); font-size: 1.1rem; }
.more { font: 700 1.05rem "Barlow Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.more::after { content: " →"; }
.more:hover { text-decoration: underline; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split.flip .split-art { order: -1; }
.split h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin: 0 0 14px; }
.split-art { min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.3em; }
.ticks li { position: relative; padding-left: 22px; margin-bottom: .45em; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: #6db040; box-shadow: inset -2px -2px 0 #3f7a20; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.flip .split-art { order: 0; } }
.get { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: center; }
.get h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 10px; }
.get ul { margin: 0; padding-left: 1.1em; color: var(--head-muted); }
@media (max-width: 760px) { .get { grid-template-columns: 1fr; } }

/* screenshots */
figure.shot { margin: 0 0 1.5em; border: 2px solid var(--line); background: var(--surface); }
figure.shot img { display: block; width: 100%; height: auto; }
figure.shot figcaption { padding: 9px 14px 10px; font-size: .93rem; line-height: 1.45; color: var(--muted); border-top: 2px solid var(--line); }

/* ---------- article pages ---------- */
.page { padding-top: 34px; padding-bottom: 80px; }
.prose { max-width: 860px; min-width: 0; }
.crumbs { font: 400 .68rem "Silkscreen", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--link); }
.prose > h1 { margin-bottom: 14px; }
.lead { font-size: 1.22rem; line-height: 1.5; color: var(--muted); margin-bottom: 1.4em; }
.prose h2 { margin: 2.1em 0 .7em; padding-bottom: .3em; border-bottom: 2px solid var(--line); }
.prose h3 { margin: 1.6em 0 .5em; }
.prose li { margin-bottom: .3em; }
.anchor { margin-left: .35em; color: var(--muted); text-decoration: none; opacity: 0; font-weight: 400; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }
.updated { margin-top: 48px; font: 400 .66rem "Silkscreen", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.note { position: relative; background: var(--surface); border: 2px solid var(--line); border-left: 6px solid #5fa035; padding: 14px 16px 14px 54px; margin: 0 0 1.4em; }
.note::before { content: "i"; position: absolute; left: 14px; top: 15px; width: 24px; height: 24px; display: grid; place-items: center; background: #5fa035; color: #fff; font: 700 .8rem "Silkscreen", monospace; }
.note.warn { border-left-color: var(--warn); }
.note.warn::before { content: "!"; background: var(--warn); }
.note > :last-child { margin-bottom: 0; }
.jump { border: 2px solid var(--line); background: var(--surface); padding: 12px 16px; margin: 0 0 1.5em; font-size: .95rem; }
.jump ol { margin: 0; padding-left: 1.3em; columns: 2 220px; }
.steps { list-style: none; padding: 0; margin: 0 0 1em; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 22px 64px; min-height: 64px; }
.steps > li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 42px; height: 42px; display: grid; place-items: center; background: #8b8b8b; color: #fff; box-shadow: inset 2px 2px 0 #373737, inset -2px -2px 0 #fff; font: 400 .85rem "Silkscreen", monospace; text-shadow: 2px 2px 0 #3a3a3a; }
.steps > li::after { content: ""; position: absolute; left: 19px; top: 50px; bottom: 6px; width: 4px; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
.steps > li:last-child::after { display: none; }
.steps > li p { margin: 0; padding-top: 8px; }
.tag { display: inline-block; padding: 2px 8px 3px; font: 400 .62rem "Silkscreen", monospace; letter-spacing: .08em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); vertical-align: middle; white-space: nowrap; }
.tag.good { background: #5fa035; color: #fff; }
.tbl { overflow-x: auto; border: 2px solid var(--line); background: var(--surface); margin: 0 0 1.5em; }
table { border-collapse: collapse; width: 100%; font-size: .96rem; }
th { background: var(--surface-2); text-align: left; padding: 9px 12px; white-space: nowrap; font: 700 .92rem "Barlow Condensed", sans-serif; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--line); }
td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface-2) 38%, transparent); }
td.nowrap { white-space: nowrap; }
tr.ours td { background: color-mix(in srgb, #5fa035 12%, transparent) !important; }
.faq h3 { margin: 1.5em 0 .4em; font-size: 1.35rem; font-weight: 700; }
.faq h3:first-child { margin-top: 0; }

/* a vanilla GUI window */
.win { background: #c6c6c6; border: 2px solid #0e0e0e; box-shadow: inset 3px 3px 0 #fdfdfd, inset -3px -3px 0 #555; padding: 18px 20px 20px; color: #2c2c2c; }
.win h3 { font: 700 1.4rem "Barlow Condensed", sans-serif; color: #2c2c2c; margin: 0 0 8px; }
.win p { margin: 0 0 .6em; }
.win p:last-child { margin: 0; }
.win code { background: #a9a9a9; color: #1c1c1c; }
.win a { color: #1f5a10; }
.wins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 1.5em; }
@media (max-width: 860px) { .wins { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-foot { background: var(--head); color: var(--head-muted); font-size: .95rem; }
.site-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(2, 1fr); gap: 32px; padding: 44px 0 30px; }
.site-foot h4 { font: 400 .68rem "Silkscreen", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--head-ink); margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 6px; }
.site-foot a { color: var(--head-muted); text-decoration: none; }
.site-foot a:hover { color: var(--head-ink); }
.site-foot .about img { height: 14px; width: auto; display: block; margin-bottom: 14px; }
.site-foot .legal { border-top: 1px solid #332c23; padding: 16px 0 26px; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.site-foot .more-mods { border-top: 1px solid #332c23; padding: 18px 0; }
.site-foot .more-mods h4 { margin-bottom: 8px; }
.site-foot .more-mods p { margin: 0 0 4px; }
.site-foot .more-mods a { color: var(--head-ink); font-weight: 600; margin-right: 6px; }
@media (max-width: 760px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } .site-foot .about { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.void { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 60px 20px; }
.void h1 { margin-bottom: 12px; }

/* ---------- the web finder ---------- */
.finder-form { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)) auto; gap: 12px 14px; align-items: end; margin: 0 0 14px; }
.finder-form label { display: grid; gap: 4px; font: 700 .92rem "Barlow Condensed", sans-serif; letter-spacing: .07em; text-transform: uppercase; color: #3a3a3a; }
.finder-form input { font: 400 1rem "Source Sans 3", sans-serif; height: 42px; padding: 0 10px; border: 2px solid #373737; background: #1c1c1c; color: #f4f4f4; border-radius: 0; width: 100%; min-width: 0; }
.finder-form input[type="range"] { padding: 0; background: none; border: 0; accent-color: #3c8527; }
.finder-form .btn { height: 42px; padding-top: 0; padding-bottom: 4px; }
@media (max-width: 860px) { .finder-form { grid-template-columns: 1fr 1fr; } .finder-form .seed, .finder-form .btn { grid-column: 1 / -1; } .finder-form .btn { justify-content: center; } }
.map-wrap { position: relative; border: 3px solid #10130c; box-shadow: 8px 8px 0 rgba(0, 0, 0, .14); }
#map { display: block; width: 100%; height: 560px; cursor: crosshair; touch-action: manipulation; --map-bg: #1d2119; --map-slime: #5fc13a; --map-line: rgba(255, 255, 255, .08); }
@media (max-width: 860px) { #map { height: 400px; } }
.map-wrap .north { position: absolute; right: 10px; top: 10px; font: 400 .7rem "Silkscreen", monospace; color: #fff; background: rgba(0, 0, 0, .55); padding: 4px 8px 5px; pointer-events: none; }
.tip { position: absolute; z-index: 2; pointer-events: none; background: var(--head); color: var(--head-ink); border: 2px solid #10130c; padding: 7px 10px 8px; font-size: .88rem; line-height: 1.4; white-space: nowrap; }
.readout { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; margin: 14px 0 6px; }
.readout p { margin: 0; }
.legend { list-style: none; padding: 0; margin: 0 0 1.4em; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .93rem; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 7px; border: 2px solid #10130c; }
.page > h1 { margin-bottom: 14px; }
.finder-form input[type="range"] { height: 42px; }

/* wide tables become one block per row on phones */
@media (max-width: 700px) {
  .stack thead { display: none; }
  .stack, .stack tbody, .stack tr, .stack td { display: block; width: 100%; }
  .stack tr { border-bottom: 2px solid var(--line); padding: 8px 0; }
  .stack tr:last-child { border-bottom: 0; }
  .stack td { border: 0; padding: 2px 14px; background: none !important; }
  .stack td[data-label]::before { content: attr(data-label) ": "; font: 700 .86rem "Barlow Condensed", sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
  .stack tr.ours { background: color-mix(in srgb, #5fa035 12%, transparent); }
}
