/* ==========================================================================
   Bedrock Clients – Stylesheet
   Palette "Deepslate & Copper":
   copper    = action (downloads, primary buttons)
   verdigris = verified information / links
   gold      = check this yourself (placeholders, warnings)
   bone      = selection and focus (like the hotbar selection frame)
   ========================================================================== */

@font-face {
  font-family: "Unbounded";
  src: url("/assets/fonts/unbounded-latin-var.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: optional;
}

@font-face {
  font-family: "Silkscreen";
  src: url("/assets/fonts/silkscreen-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --deep: #191c24;
  --deeper: #13151b;
  --surface: #232733;
  --raised: #2d3241;
  --line: #3b4254;
  --line-strong: #6b7389;
  --bone: #ece6d9;
  --muted: #a9afbe;
  --copper: #e68a55;
  --copper-hover: #f09d6c;
  --copper-dark: #a5552b;
  --copper-ink: #1a120c;
  --verdigris: #63c7ab;
  --gold: #e6c15a;
  --tip-bg: #150c21;
  --tip-edge: #5a2bd9;
  --tip-edge-end: #2c1170;
  --tip-text: #b9b4c8;

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-pixel: "Silkscreen", ui-monospace, monospace;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: 16px;
  --max: 72rem;
  --radius: 4px;
  --slot: 48px;
}

@media (min-width: 30em) {
  :root { --slot: 64px; }
}

@media (min-width: 40em) {
  :root { --gutter: 24px; }
}

@media (min-width: 64em) {
  :root { --gutter: 32px; }
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--deep);
  color: var(--bone);
  font: 1rem/1.6 var(--f-body);
  overflow-wrap: break-word;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

[hidden] {
  display: none !important;
}

a {
  color: var(--verdigris);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--bone);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0 0 0.6em;
  font-family: var(--f-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* Unbounded is a wide face: allow hyphenation of long headline words on small screens */
@media (max-width: 29.99em) {
  h1 { hyphens: auto; }
}

h1 {
  font-size: clamp(1.7rem, 1.05rem + 3.2vw, 3.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 1.05rem + 1.4vw, 2.05rem);
  font-weight: 700;
}

h3 {
  font-size: 1.1rem;
  font-weight: 650;
}

p,
ul,
ol,
dl {
  margin: 0 0 1em;
}

code {
  padding: 0.1em 0.35em;
  font-family: var(--f-mono);
  font-size: 0.9em;
  background: var(--raised);
  border-radius: 3px;
}

pre {
  margin: 0 0 1.25em;
  padding: 1rem;
  overflow-x: auto;
  scrollbar-color: var(--line-strong) var(--deeper);
  background: var(--deeper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

pre code {
  padding: 0;
  background: none;
}

kbd {
  padding: 0.05em 0.4em;
  font-family: var(--f-mono);
  font-size: 0.85em;
  background: var(--raised);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 3px;
}

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  color: var(--copper-ink);
  font-weight: 700;
  background: var(--copper);
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--verdigris);
  font: 0.8125rem/1.4 var(--f-pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

/* ---------- Header ---------- */

.site-header {
  background: var(--deeper);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--bone);
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}

.site-nav {
  max-width: 100%;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius);
}

.site-nav a:hover {
  color: var(--bone);
  background: var(--surface);
}

.site-nav a[aria-current="page"] {
  color: var(--bone);
  box-shadow: inset 0 -2px 0 var(--copper);
}

@media (max-width: 39.99em) {
  .site-nav { width: 100%; }
  .site-nav ul { margin-inline: -0.7rem; }
}

/* ---------- Home page: hero ---------- */

.hero {
  padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse 70% 70% at 50% 0%, rgb(230 138 85 / 0.15), transparent 70%),
    linear-gradient(rgb(255 255 255 / 0.03) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgb(255 255 255 / 0.03) 1px, transparent 1px) 0 0 / 32px 32px;
  border-bottom: 1px solid var(--line);
}

.hero h1 {
  max-width: 18ch;
}

/* ---------- Hotbar (signature element) ---------- */

.hotbar {
  margin-top: 2.25rem;
  padding-bottom: 8.5rem; /* reserves room for the tooltip so nothing shifts */
}

.hotbar__label {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font: 0.8125rem/1.4 var(--f-pixel);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hotbar__list {
  position: relative;
  display: inline-flex;
  gap: 4px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgb(10 11 15 / 0.75);
  border: 2px solid #0a0b0f;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -18px rgb(0 0 0 / 0.8);
}

.slot {
  display: block;
  color: inherit;
  text-decoration: none;
}

.slot:focus-visible {
  outline: none; /* the selection frame acts as the focus indicator */
}

.slot__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--slot);
  height: var(--slot);
  background: #2a2e3a;
  box-shadow: inset 2px 2px 0 rgb(0 0 0 / 0.45), inset -2px -2px 0 rgb(255 255 255 / 0.07);
}

.slot__icon img {
  width: 62.5%;
  height: 62.5%;
  image-rendering: pixelated;
}

.slot__icon::after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 4px solid var(--bone);
  box-shadow: 0 0 0 2px #0a0b0f, inset 0 0 0 2px #0a0b0f;
  opacity: 0;
  pointer-events: none;
}

.slot.is-selected .slot__icon,
.slot:hover .slot__icon,
.slot:focus-visible .slot__icon {
  z-index: 1;
}

.slot.is-selected .slot__icon::after,
.slot:hover .slot__icon::after,
.slot:focus-visible .slot__icon::after {
  opacity: 1;
}

.slot__key {
  position: absolute;
  right: 3px;
  bottom: 0;
  color: #fff;
  font: 1rem/1 var(--f-pixel);
  text-shadow: 2px 2px 0 #3f3f3f;
}

.slot__tip {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  padding: 0.5rem 0.8rem 0.6rem;
  background: var(--tip-bg);
  border: 2px solid;
  border-image: linear-gradient(var(--tip-edge), var(--tip-edge-end)) 1;
  box-shadow: 0 0 0 2px var(--tip-bg);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.slot.is-selected .slot__tip,
.slot:hover .slot__tip,
.slot:focus-visible .slot__tip {
  visibility: visible;
  opacity: 1;
}

/* With JavaScript, only the selected slot shows its tooltip */
.hotbar.is-enhanced .slot .slot__tip {
  visibility: hidden;
  opacity: 0;
}

.hotbar.is-enhanced .slot.is-selected .slot__tip {
  visibility: visible;
  opacity: 1;
}

.hotbar.is-enhanced .slot:not(.is-selected):hover .slot__icon::after {
  opacity: 0;
}

.tip__name {
  display: block;
  margin-bottom: 0.15rem;
  color: #fff;
  font: 1rem/1.35 var(--f-pixel);
}

.tip__line {
  display: block;
  color: var(--tip-text);
  font-size: 0.875rem;
  line-height: 1.45;
}

.tip__line--source {
  color: var(--verdigris);
  font-family: var(--f-mono);
  font-size: 0.8125rem;
}

@media (prefers-reduced-motion: no-preference) {
  .slot__tip { transition: opacity 0.12s ease-out; }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3rem, 7vw, 5rem);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section__head {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section__head p {
  color: var(--muted);
}

/* ---------- Search and filters ---------- */

.filter {
  display: grid;
  gap: 1.1rem 1.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

@media (min-width: 60em) {
  .filter {
    grid-template-columns: auto auto;
    justify-content: start;
    column-gap: 3rem;
    padding: 1.25rem;
  }

  .filter .field {
    grid-column: 1 / -1;
    max-width: 30rem;
  }
}

.field__label,
.chips legend {
  display: block;
  margin-bottom: 0.45rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.8rem;
  color: var(--bone);
  font: inherit;
  background: var(--deep);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.search::placeholder {
  color: #8a91a3;
}

.chips {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.chips__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.3rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.chip:hover span {
  background: var(--raised);
}

.chip input:checked + span {
  color: var(--deep);
  background: var(--bone);
  border-color: var(--bone);
}

.chip input:focus-visible + span {
  outline: 3px solid var(--bone);
  outline-offset: 2px;
}

.filter__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.text-button {
  padding: 0.35rem 0;
  color: var(--verdigris);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  background: none;
  border: 0;
  cursor: pointer;
}

.empty {
  padding: 2rem 1.25rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
}

.empty p {
  margin-bottom: 0.75rem;
}

/* ---------- Client cards ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05);
  scroll-margin-top: 1.5rem;
}

.card:hover {
  border-color: var(--line-strong);
}

.card:target {
  border-color: var(--bone);
  box-shadow: 0 0 0 3px rgb(236 230 217 / 0.22);
}

.card__head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.card__logo {
  flex: none;
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
}

.card__kind {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font: 0.75rem/1.3 var(--f-pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card__title {
  margin: 0;
  font-size: 1.2rem;
}

.card__title a {
  color: var(--bone);
  text-decoration: none;
}

.card__title a:hover {
  text-decoration: underline;
}

.card__desc {
  margin: 0;
  color: var(--muted);
}

.card__facts {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  font-size: 0.92rem;
}

.card__facts dt,
.facts dt {
  margin-bottom: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card__facts dd,
.facts dd {
  margin: 0;
}

/* Download button always spans the full width so long destination hosts keep all cards consistent */
.card__actions {
  display: grid;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 0.25rem;
}

.card__actions .btn--ghost {
  justify-content: center;
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  margin-bottom: 0.35rem;
  padding-left: 1.1rem;
}

.ticks li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--copper);
}

.card .ticks {
  font-size: 0.95rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag {
  padding: 0.12rem 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.tag--limited {
  border-style: dashed;
  border-color: var(--line-strong);
}

/* "Unverified" placeholder chip; find every instance in the source by searching for VERIFY */
.tbd {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.4rem;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: 0.1em;
  border: 1px dashed var(--gold);
  border-radius: 3px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.6rem;
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  border-radius: var(--radius);
}

.btn--primary {
  color: var(--copper-ink);
  background: var(--copper);
  box-shadow: 0 3px 0 var(--copper-dark);
}

.btn--primary:hover {
  background: var(--copper-hover);
}

.btn--primary:active {
  box-shadow: 0 1px 0 var(--copper-dark);
  transform: translateY(2px);
}

.btn--ghost {
  color: var(--bone);
  background: transparent;
  border: 1px solid var(--line-strong);
}

.btn--ghost:hover {
  background: var(--raised);
}

.btn--stack {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.btn__host {
  font: 500 0.78rem/1.3 var(--f-mono);
}

/* ---------- Comparison table ---------- */

.table-wrap {
  overflow-x: auto;
  scrollbar-color: var(--line-strong) var(--surface);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.compare {
  width: 100%;
  min-width: 52rem;
  font-size: 0.92rem;
  border-collapse: collapse;
}

.compare--compact {
  min-width: 32rem;
}

.prose .table-wrap {
  margin-bottom: 1.25rem;
}

.compare caption {
  padding: 0.9rem 1rem;
  color: var(--muted);
  text-align: left;
}

.compare th,
.compare td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}

.compare thead th {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--raised);
}

.compare tbody th {
  position: sticky;
  left: 0;
  white-space: nowrap;
  background: var(--surface);
}

.compare tbody th a {
  color: var(--bone);
}

.is-yes {
  color: var(--verdigris);
  font-weight: 700;
}

.is-no {
  color: var(--muted);
}

.compare small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 400;
}

/* ---------- Safety rules ---------- */

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

.rules li {
  padding: 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
}

.rules h3 {
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.rules p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 50rem;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1rem 2.5rem 1rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  top: 0.95rem;
  right: 0.25rem;
  color: var(--copper);
  font: 1.25rem/1 var(--f-pixel);
}

.faq details[open] summary::after {
  content: "−";
}

.faq__answer {
  padding-bottom: 1rem;
  color: var(--muted);
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

/* ---------- Subpages ---------- */

.page-head {
  padding-block: clamp(1.75rem, 4vw, 3rem) clamp(2rem, 4vw, 2.75rem);
  background:
    linear-gradient(rgb(255 255 255 / 0.025) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgb(255 255 255 / 0.025) 1px, transparent 1px) 0 0 / 32px 32px;
  border-bottom: 1px solid var(--line);
}

.page-head__title {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1rem;
}

.page-head__title img {
  flex: none;
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}

.page-head__title h1 {
  margin: 0;
}

.page-head .eyebrow {
  margin-bottom: 0.35rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.875rem;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: var(--line-strong);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* long code lines must not widen the column */
  gap: 2.5rem;
  padding-block: 2.5rem 4rem;
}

@media (min-width: 60em) {
  .layout {
    grid-template-columns: minmax(0, 1fr) 20rem;
    align-items: start;
  }

  .layout > .facts {
    position: sticky;
    top: 1.5rem;
    grid-column: 2;
    grid-row: 1;
  }
}

.facts {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.facts h2 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.facts dl {
  margin: 0;
  font-size: 0.92rem;
}

.facts dl > div {
  padding-block: 0.65rem;
  border-top: 1px solid var(--line);
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2.75rem;
}

.prose > h2:first-child {
  margin-top: 0;
}

.prose h3 {
  margin-top: 1.75rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

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

.downloads .btn {
  width: 100%;
}

.note {
  margin: 0 0 1.25rem;
  padding: 0.9rem 1rem;
  background: rgb(230 193 90 / 0.07);
  border-left: 3px solid var(--gold);
}

.note p:last-child {
  margin-bottom: 0;
}

.steps {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 2rem;
  margin-bottom: 0.9rem;
  padding-left: 2.85rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -0.1rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font: 1rem/1 var(--f-pixel);
  background: var(--raised);
  border: 1px solid var(--line-strong);
}

.sources {
  padding-left: 1.1rem;
}

.sources .host {
  color: var(--muted);
  font-family: var(--f-mono);
  font-size: 0.85rem;
}

.more {
  padding-block: 2.5rem 3.5rem;
  border-top: 1px solid var(--line);
}

.more h2 {
  font-size: 1.15rem;
}

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

.more__list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  color: var(--bone);
  font-weight: 600;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.more__list a:hover {
  border-color: var(--line-strong);
}

.more__list img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.stamp {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 3rem 2rem;
  color: var(--muted);
  font-size: 0.92rem;
  background: var(--deeper);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 2rem;
}

.site-footer h2 {
  margin-bottom: 0.8rem;
  color: var(--bone);
  font: 0.8125rem/1.4 var(--f-pixel);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--bone);
}

.legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.legal:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal p {
  max-width: 60rem;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
