/* Legacy Minecraft — classic Minecraft look, original CSS/SVG art only. */

:root {
  color-scheme: dark;

  /* surfaces */
  --bg: #14110d;
  --panel: #1e1a15;
  --panel-2: #26211a;
  --line: #3a342b;

  /* text */
  --text: #ece7de;
  --muted: #b3ab9e;

  /* block palette */
  --grass-1: #79c34a;
  --grass-2: #5d9b34;
  --grass-3: #3f6f22;
  --dirt-1: #866043;
  --dirt-2: #5e4029;
  --stone-1: #a8a8a8;
  --stone-2: #6f6f6f;
  --stone-3: #3b3b3b;

  /* Minecraft chat colours (always paired with text, never colour-only) */
  --mc-green: #55ff55;
  --mc-aqua: #55ffff;
  --mc-red: #ff5555;
  --mc-pink: #ff55ff;
  --mc-gold: #ffaa00;
  --mc-yellow: #ffff55;
  --mc-gray: #aaaaaa;

  /* item-tooltip frame */
  --tip-bg: #100010;
  --tip-edge: #3c0f8f;
  --tip-edge-hot: #ffaa00;

  --font-pixel: 'Press Start 2P', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, 'Liberation Mono', monospace;

  --max: 1120px;
  --gutter: 16px;
  --bar-h: 64px; /* the name bar */
  --header-h: 118px; /* name bar + tab bar, used for anchor offsets */
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg) url('../assets/bg-dark.svg') 0 0 / 128px 128px;
  color: var(--text);
  font: 400 1rem/1.6 var(--font-body);
  overflow-wrap: anywhere;
}

img, svg { max-width: 100%; }
.pixelated { image-rendering: pixelated; }
[hidden] { display: none !important; }

a { color: var(--mc-aqua); text-underline-offset: 3px; }
a:hover { color: var(--mc-yellow); }

:focus-visible {
  outline: 3px solid var(--mc-yellow);
  outline-offset: 2px;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: .6rem 1rem; background: var(--mc-yellow); color: #000; font-family: var(--font-pixel); font-size: .7rem;
}
.skip:focus { top: 8px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #1b1713;
}
.site-header > .wrap { display: flex; align-items: center; gap: 1.25rem; min-height: var(--bar-h); }

.brand {
  display: flex; align-items: center; gap: .7rem; flex: none;
  color: #fff; text-decoration: none;
  font-family: var(--font-pixel); font-size: .72rem; line-height: 1.3;
  text-shadow: 2px 2px 0 #3f3f3f;
}
.brand:hover { color: var(--mc-yellow); }
.brand img { width: 34px; height: 36px; }
.brand small { display: block; font-size: .5rem; color: var(--mc-gray); text-shadow: none; margin-top: 2px; }

/* tab bar under the name bar */
.nav-bar { background: #110f0c; border-top: 2px solid #000; box-shadow: inset 0 2px 0 #2d2821; }
.nav {
  display: flex; gap: .25rem;
  overflow-x: auto; scrollbar-width: none;
  padding-block: .4rem;
}
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; padding: .5rem .65rem;
  font-family: var(--font-pixel); font-size: .58rem; letter-spacing: .02em;
  color: var(--text); text-decoration: none; border: 2px solid transparent;
}
.nav a:hover { color: var(--mc-yellow); border-color: var(--stone-3); background: #0003; }
.nav a[aria-current='true'], .nav a[aria-current='page'], .nav a.is-active { color: var(--mc-yellow); border-color: var(--stone-2); background: #0004; }

/* the green bar under the header: 4px black edge, 8px grass, 4px dark grass, 4px black */
.grass {
  height: 20px; pointer-events: none;
  background: linear-gradient(#000 0 4px, var(--grass-2) 4px 12px, var(--grass-3) 12px 16px, #000 16px 20px);
}

/* pages without the tab bar: the green bar just sits there */
.grass-clip { position: absolute; left: 0; right: 0; top: 100%; height: 20px; pointer-events: none; }

/* hub the green bar slides down first and brings the tab bar with it, then the tabs swing */
.drop-clip { clip-path: inset(0 -60px -90px -60px); } /* hides everything above the name bar's edge */
.drop { position: relative; animation: bar-drop .8s cubic-bezier(.3, .6, .4, 1) .15s backwards; }
.drop .grass { position: absolute; left: 0; right: 0; top: 100%; }
/* a visit's later page loads (see js/intro.js) keep all still */
.no-intro .drop, .no-intro .nav-bar .nav a { animation: none; }
@keyframes bar-drop {
  0% { transform: translateY(-100%); }
  72% { transform: translateY(5px); }
  100% { transform: translateY(0); }
}
.nav-bar .nav a { transform-origin: top center; animation: tab-swing 1.2s ease-out backwards; animation-delay: calc(.95s + var(--i, 0) * .07s); }
.nav-bar .nav a:nth-child(2) { --i: 1; }
.nav-bar .nav a:nth-child(3) { --i: 2; }
.nav-bar .nav a:nth-child(4) { --i: 3; }
.nav-bar .nav a:nth-child(5) { --i: 4; }
.nav-bar .nav a:nth-child(6) { --i: 5; }
.nav-bar .nav a:nth-child(7) { --i: 6; }
@keyframes tab-swing {
  0% { transform: rotate(0); }
  18% { transform: rotate(16deg); }
  38% { transform: rotate(-11deg); }
  58% { transform: rotate(6deg); }
  78% { transform: rotate(-3deg); }
  100% { transform: rotate(0); }
}

/* page links in the name bar, on the right */
.pages { margin-left: auto; padding-block: 0; }

/* Small screens the tabs scroll sideways, with a fade at the edge as a hint */
@media (max-width: 760px) {
  .nav-bar .nav { mask-image: linear-gradient(90deg, #000 94%, transparent); }
}

/* Phones the page links drop under the name and share the width evenly */
@media (max-width: 640px) {
  :root { --header-h: 149px; }
  .site-header > .wrap { flex-wrap: wrap; gap: 0 1rem; min-height: 0; padding-top: .4rem; }
  .brand { min-height: 48px; }
  .pages { flex: 1 0 100%; margin-left: 0; padding-bottom: .4rem; }
  .pages a { flex: 1; text-align: center; }
}

/* buttons & chips */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.1rem;
  font-family: var(--font-pixel); font-size: .64rem; line-height: 1.2; text-align: center;
  color: #fff; text-decoration: none; text-shadow: 2px 2px 0 #3f3f3f;
  background: #7d7d7d; border: 2px solid #000; cursor: pointer;
  box-shadow: inset 2px 2px 0 #c4c4c4, inset -2px -2px 0 #4d4d4d;
}
.btn:hover { background: #6d7bb8; color: #ffffa0; box-shadow: inset 2px 2px 0 #aab4e8, inset -2px -2px 0 #3d4780; }
.btn:active { transform: translateY(2px); }
.btn--primary { background: var(--grass-2); box-shadow: inset 2px 2px 0 #9be06a, inset -2px -2px 0 var(--grass-3); }
.btn--primary:hover { background: #6cae3c; color: #ffffa0; box-shadow: inset 2px 2px 0 #b4f08a, inset -2px -2px 0 #3f7f22; }
.btn--small { padding: .55rem .7rem; font-size: .56rem; }
.btn[aria-disabled='true'] { opacity: .6; pointer-events: none; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip {
  padding: .55rem .75rem; cursor: pointer;
  font-family: var(--font-pixel); font-size: .6rem; color: var(--text);
  background: var(--stone-3); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 #6a6a6a, inset -2px -2px 0 #222;
}
.chip:hover { color: var(--mc-yellow); }
.chip[aria-pressed='true'] { background: var(--grass-3); color: #fff; box-shadow: inset 2px 2px 0 var(--grass-2), inset -2px -2px 0 #28461a, 0 0 0 2px #fff; }

/* hero */

.hero { padding-block: 3rem 1.5rem; }
.hero__grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .hero__grid { grid-template-columns: 1.4fr 1fr; } }

.eyebrow { font-family: var(--font-pixel); font-size: .62rem; color: var(--mc-green); text-shadow: 2px 2px 0 #1b3a1b; margin: 0 0 1rem; }
.hero h1 {
  margin: 0 0 1rem; font-family: var(--font-pixel); font-weight: 400;
  font-size: clamp(1.45rem, 5.4vw, 2.75rem); line-height: 1.25; color: #fff;
  text-shadow: 4px 4px 0 #3f3f3f;
}
.hero h1 em { font-style: normal; color: var(--mc-gold); }
.hero__lede { max-width: 56ch; margin: 0 0 1.5rem; color: var(--muted); font-size: 1.08rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero__art { position: relative; justify-self: center; width: min(280px, 60vw); }
.hero__art img { width: 100%; height: auto; display: block; filter: drop-shadow(8px 10px 0 #0006); animation: bob 5s ease-in-out infinite; }
.splash {
  position: absolute; right: -14%; bottom: 6%; z-index: 2;
  font-family: var(--font-pixel); font-size: .72rem; color: var(--mc-yellow); text-shadow: 2px 2px 0 #3f3f00;
  transform: rotate(-18deg); animation: pulse 1.4s ease-in-out infinite; white-space: nowrap; pointer-events: none;
}
@keyframes bob { 50% { transform: translateY(-8px); } }
@keyframes pulse { 50% { transform: rotate(-18deg) scale(1.1); } }
@media (max-width: 820px) { .hero__art { width: min(190px, 48vw); } }
@media (max-width: 520px) { .splash { right: -8%; font-size: .55rem; } }

/* live "hotbar" slots */
.slots { display: grid; gap: 1rem; margin-top: 2.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.slot {
  display: flex; flex-direction: column; gap: .35rem; padding: 1rem;
  background: var(--panel); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 var(--stone-2), inset -2px -2px 0 #1a1a1a;
}
.slot__label { font-family: var(--font-pixel); font-size: .58rem; color: var(--mc-gray); }
.slot__ver { font-family: var(--font-pixel); font-size: 1.05rem; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; overflow-wrap: anywhere; line-height: 1.3; }
.slot__meta { color: var(--muted); font-size: .88rem; min-height: 1.4em; }
.slot__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .6rem; }
.slot--stat .slot__ver { color: var(--mc-green); }

/* toolbar */

.toolbar {
  position: relative; z-index: 1;
  margin-top: 1.75rem; padding: 1rem;
  background: var(--panel); border: 2px solid #000;
  box-shadow: inset 2px 2px 0 var(--stone-2), inset -2px -2px 0 #1a1a1a;
  display: grid; gap: .9rem;
}
.search { display: flex; gap: .6rem; align-items: stretch; }
.search input {
  flex: 1; min-width: 0; padding: .75rem .9rem;
  font: 1rem var(--font-body); color: #fff; background: #000;
  border: 2px solid var(--stone-2); border-radius: 0;
  box-shadow: inset 2px 2px 0 #222;
}
.search input::placeholder { color: #8c8578; }
.search kbd {
  align-self: center; padding: .25rem .5rem; font: .8rem var(--font-mono); color: var(--muted);
  background: #000; border: 1px solid var(--stone-2);
}
@media (max-width: 600px) { .search kbd { display: none; } }
.toolbar__status { margin: 0; color: var(--muted); font-size: .88rem; }

/* sections */

.section { padding-top: 2.75rem; }
.section[hidden], .group[hidden], .item[hidden] { display: none; }
.section__head { display: flex; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.section__icon { width: 36px; height: 36px; flex: none; image-rendering: pixelated; filter: drop-shadow(3px 3px 0 #0008); }
.section h2 {
  margin: 0; font-family: var(--font-pixel); font-weight: 400; font-size: clamp(.9rem, 3.4vw, 1.2rem); line-height: 1.35;
  color: #fff; text-shadow: 3px 3px 0 #3f3f3f;
}
.section__desc { margin: 0 0 1.25rem; max-width: 70ch; color: var(--muted); }
.divider {
  height: 8px; margin-block: 0 1.25rem; border: 0;
  background: repeating-linear-gradient(90deg, var(--grass-2) 0 8px, var(--grass-3) 8px 16px);
  box-shadow: 0 8px 0 0 var(--dirt-2);
}

.group { margin-top: 1.75rem; }
.group__title {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 .85rem;
  font-family: var(--font-pixel); font-weight: 400; font-size: .68rem; line-height: 1.4; color: var(--mc-gold); text-shadow: 2px 2px 0 #3f2a00;
}
.group__title::before { content: ''; width: 10px; height: 10px; flex: none; background: var(--mc-gold); box-shadow: 2px 2px 0 #3f2a00; }

.grid {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.grid--spaced { margin-top: 1.5rem; }

/* cards (item-tooltip look) */

.card {
  position: relative; display: flex; flex-direction: column; gap: .45rem; height: 100%;
  padding: .95rem 1.05rem;
  color: var(--text); text-decoration: none;
  background: var(--tip-bg); border: 2px solid var(--tip-edge);
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #0a0a1a;
  transition: transform .08s steps(2), border-color .08s;
}
a.card:hover, a.card:focus-visible { border-color: var(--tip-edge-hot); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 2px #000, inset 0 0 0 2px #1a0a00; color: var(--text); }
a.card:focus-visible { outline-offset: 4px; }
.card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.card__title { font-weight: 700; font-size: 1.04rem; line-height: 1.3; color: #fff; }
.card__desc { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.card__host { margin-top: auto; padding-top: .35rem; font: .78rem var(--font-mono); color: #8e87d6; }
a.card:hover .card__title { color: var(--mc-yellow); }
a.card .card__host::after { content: ' \2197'; }

/* Featured pick: spans the full grid row with a gold frame. */
.item--featured { grid-column: 1 / -1; }
.card--featured {
  padding: 1.25rem 1.4rem; gap: .6rem;
  border-color: var(--mc-gold);
  box-shadow: 0 0 0 2px #000, inset 0 0 0 2px #2a1a00, 0 0 0 4px #4a3300;
  background: linear-gradient(135deg, #1c1000 0%, var(--tip-bg) 55%);
}
.card--featured .card__title { font-size: 1.3rem; color: var(--mc-yellow); }
.card--featured .card__desc { font-size: 1rem; color: var(--text); }
a.card--featured:hover, a.card--featured:focus-visible { border-color: var(--mc-yellow); }

.badge {
  flex: none; padding: .22rem .4rem; white-space: nowrap;
  font-family: var(--font-pixel); font-size: .58rem; line-height: 1; text-transform: uppercase;
  color: var(--b, var(--mc-green)); border: 1px solid currentColor; background: #0006;
}
.badge--live { --b: var(--mc-green); }
.badge--rc { --b: var(--mc-aqua); }
.badge--exp { --b: var(--mc-pink); }
.badge--stale { --b: var(--mc-gold); }
.badge--archived { --b: var(--mc-gray); }
.badge--warn { --b: var(--mc-red); }
.badge--src { --b: var(--mc-yellow); }
.badge--plain { --b: var(--mc-gray); white-space: normal; flex: 0 1 auto; min-width: 0; max-width: 100%; line-height: 1.35; }
/* after .badge--plain so the era colour wins */
.badge--era-classic { --b: var(--mc-gray); }
.badge--era-indev { --b: var(--mc-pink); }
.badge--era-alpha { --b: var(--mc-gold); }
.badge--era-beta { --b: var(--mc-aqua); }
.badge--era-release { --b: var(--mc-green); }
.badge--era-other { --b: var(--mc-gray); }
.card--internal .card__host::after { content: ' \2192'; }

.tags { display: flex; flex-wrap: wrap; gap: .35rem; }

/* servers */
.server { gap: .6rem; }
.server p, .server h2, .server h3, .server h4 { margin: 0; }
.server .card__title { font-size: 1.04rem; overflow-wrap: break-word; }
.server .card__top { flex-wrap: wrap; row-gap: .1rem; }
.server__head { display: flex; align-items: center; gap: .8rem; }
.server__id { flex: 1; min-width: 0; display: grid; gap: .45rem; }
.server__icon { flex: none; width: 48px; height: 48px; border: 2px solid #000; background: #000; }
.server__details { border: 1px solid var(--line); background: #0006; }
.server__details > summary { padding: .5rem .7rem; cursor: pointer; font-size: .9rem; color: var(--mc-aqua); }
.server__details > summary:hover { color: var(--mc-yellow); }
.server__body { padding: .2rem .7rem .7rem; display: grid; gap: .5rem; }
.players { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem; max-height: 11rem; overflow-y: auto; }
.players li { padding: .15rem .45rem; font: .8rem var(--font-mono); color: #fff; background: #000; border: 1px solid var(--stone-3); }
/* a linked name fills the whole tag so the click target is the tag */
.players a { display: block; margin: -.15rem -.45rem; padding: .15rem .45rem; color: inherit; text-decoration: none; }
.players a:hover { color: var(--mc-gold); text-decoration: underline; }
.server .card__title a { color: inherit; text-decoration: none; }
.server .card__title a:hover { color: var(--mc-yellow); text-decoration: underline; }
.server__count { font: 700 .82rem var(--font-mono); color: var(--mc-green); white-space: nowrap; }
.server__count[data-state='off'] { color: var(--mc-gray); }
.bar { height: 6px; background: #2b2b2b; border: 1px solid #000; }
.bar > i { display: block; height: 100%; width: var(--pct, 0%); background: var(--mc-green); }
.server__meta { color: var(--muted); font-size: .82rem; }
.server__addr { display: flex; align-items: center; gap: .5rem; margin-top: auto; }
.server__addr code {
  flex: 1; min-width: 0; padding: .4rem .55rem; font: .85rem var(--font-mono); color: #fff;
  background: #000; border: 1px solid var(--stone-2); overflow-wrap: anywhere;
}
.server__links { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .85rem; }

/* callouts */
.note {
  margin: 1.25rem 0 0; padding: .8rem 1rem; max-width: 80ch;
  color: var(--text); background: #000a; border-left: 6px solid var(--mc-gold); font-size: .94rem;
}
.note strong { color: var(--mc-gold); }
.contribute-strip { margin: 1.25rem 0 0; padding: .65rem 1rem; background: #000a; border: 2px solid var(--mc-gold); font-size: .95rem; }
.contribute-strip strong { color: var(--mc-gold); }
.contribute-strip a { font-weight: 700; }
.contribute {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  margin: 3rem 0 0; padding: 1.5rem; background: #000c; border: 4px solid var(--mc-gold);
  box-shadow: inset 0 0 0 2px #000, 6px 6px 0 #000;
}
.contribute__text { flex: 1 1 24rem; }
.contribute h2 { margin: 0 0 .5rem; font-family: var(--font-pixel); font-weight: 400; font-size: 1rem; line-height: 1.4; color: var(--mc-gold); text-shadow: 2px 2px 0 #3f3f3f; }
.contribute p { margin: 0; max-width: 60ch; }
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); border: 2px dashed var(--line); }

/* servers page */

.page-head { padding-block: 2.5rem 0; }
.page-head h1 { margin: 0 0 .75rem; font-family: var(--font-pixel); font-weight: 400; font-size: clamp(1.1rem, 4.4vw, 1.9rem); line-height: 1.35; text-shadow: 3px 3px 0 #3f3f3f; }
.page-head p { margin: 0; max-width: 70ch; color: var(--muted); }
.controls { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }
.controls label { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; }
.controls select {
  padding: .6rem .7rem; font: .95rem var(--font-body); color: #fff; background: #000; border: 2px solid var(--stone-2); border-radius: 0;
}
@media (max-width: 520px) {
  .controls__select { flex: 1 1 100%; flex-direction: column; align-items: flex-start; gap: .25rem; }
  .controls__select select { width: 100%; }
}
.controls input[type='checkbox'] { width: 1.1rem; height: 1.1rem; accent-color: var(--grass-2); }
.pill { display: inline-block; padding: .25rem .55rem; font: .8rem var(--font-mono); background: #000; border: 1px solid var(--stone-2); }
.pill--live { color: var(--mc-green); border-color: var(--mc-green); }
.pill--snap { color: var(--mc-gold); border-color: var(--mc-gold); }

/* guide (prose) */

.prose { max-width: 78ch; padding-block: 1rem 2rem; }
.prose h2 { margin: 2.25rem 0 .75rem; font-family: var(--font-pixel); font-weight: 400; font-size: .95rem; line-height: 1.4; text-shadow: 2px 2px 0 #3f3f3f; }
.prose p, .prose li { color: var(--text); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.steps > li { counter-increment: step; position: relative; padding: 1rem 1rem 1rem 4.25rem; background: #000a; border: 2px solid var(--line); }
.steps > li::before {
  content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
  font-family: var(--font-pixel); font-size: .85rem; color: #fff; text-shadow: 2px 2px 0 #3f3f3f;
  background: var(--grass-2); border: 2px solid #000; box-shadow: inset 2px 2px 0 var(--grass-1), inset -2px -2px 0 var(--grass-3);
}
.steps h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.steps p { margin: .4rem 0; }
.code { position: relative; margin: .75rem 0; }
.code pre { margin: 0; padding: .9rem 1rem; padding-right: 5.5rem; overflow-x: auto; background: #000; border: 2px solid var(--stone-2); font: .86rem/1.55 var(--font-mono); color: #d8f5d0; }
.code .btn { position: absolute; top: .5rem; right: .5rem; }
code.inline { padding: .1rem .35rem; font: .88em var(--font-mono); background: #000; border: 1px solid var(--stone-3); color: #ffd98a; }
/* keep a file name on one line if the screen is too narrow, it scrolls inside its own box */
code.inline.nowrap { white-space: nowrap; display: inline-block; max-width: 100%; overflow-x: auto; vertical-align: bottom; scrollbar-width: thin; }
@media (max-width: 520px) {
  .steps > li { padding-left: 3.1rem; }
  .steps > li::before { left: .6rem; width: 1.9rem; height: 1.9rem; font-size: .7rem; }
  code.inline.nowrap { font-size: .78em; }
}

/* footer */

.site-footer { margin-top: 4rem; padding-block: 2rem 2.5rem; background: #0d0b09; border-top: 4px solid #000; box-shadow: inset 0 8px 0 0 var(--dirt-2); font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 1rem; }
.site-footer p { margin: 0; max-width: 80ch; }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer .footer__copy { color: var(--text); }
.footer__credit a { display: inline-flex; align-items: center; gap: .4rem; }
.footer__credit .gh { width: 1.15em; height: 1.15em; flex: none; }
main { flex: 1; }

/* motion */

@media (prefers-reduced-motion: reduce) {
  .drop, .grass, .nav-bar .nav a { animation: none; }
  html { scroll-behavior: auto; }
  .hero__art img, .splash { animation: none; }
  .card, a.card:hover { transition: none; transform: none; }
}

@media (forced-colors: active) {
  .card, .btn, .chip, .slot { border: 2px solid CanvasText; }
}
