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

@font-face {
  font-family: "Silkscreen";
  src: url("/assets/fonts/Silkscreen-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --sky-top: #71b8ff;
  --sky-mid: #99d4ff;
  --sky-bottom: #d3f0ff;
  --grass-top: #6fcf41;
  --grass-mid: #4f9f2f;
  --grass-dark: #387121;
  --dirt: #8b5a34;
  --dirt-dark: #5d371d;
  --stone: #a4a7ba;
  --stone-dark: #6e748f;
  --panel-fill: #c6cad8;
  --panel-shadow: #3b2430;
  --text: #1b1b1b;
  --muted: #3d3d3d;
  --warn: #c96f1e;
  --good: #2b7a22;
  --soft-white: #f7f7f7;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Silkscreen", "Trebuchet MS", sans-serif;
  background:
    linear-gradient(to bottom, var(--sky-top) 0 20rem, var(--sky-mid) 20rem 34rem, var(--dirt) 34rem 100%);
}

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

.skyline {
  position: fixed;
  inset: 0 0 auto;
  height: 19rem;
  pointer-events: none;
  overflow: hidden;
}

.sun {
  position: absolute;
  top: 2.2rem;
  right: 10vw;
  width: 5rem;
  height: 5rem;
  background:
    linear-gradient(135deg, #fff4aa, #ffd54d);
  box-shadow:
    0 0 0 0.45rem rgba(255, 236, 149, 0.45),
    0 0 0 0.9rem rgba(255, 236, 149, 0.2);
}

.cloud {
  position: absolute;
  width: 7rem;
  height: 2rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    2rem 0 0 rgba(255, 255, 255, 0.86),
    4rem 0 0 rgba(255, 255, 255, 0.86),
    1rem -1rem 0 rgba(255, 255, 255, 0.86),
    3rem -1rem 0 rgba(255, 255, 255, 0.86);
}

.cloud-left {
  top: 4.2rem;
  left: 6vw;
}

.cloud-right {
  top: 7rem;
  right: 26vw;
  transform: scale(1.15);
}

.page-shell {
  position: relative;
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 1rem 0 2rem;
}

.eyebrow,
.section-label,
.card-label,
.signal-label {
  margin: 0;
  color: var(--soft-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0.16rem 0.16rem 0 rgba(0, 0, 0, 0.28);
  font-size: 0.8rem;
}

h1,
h2,
.version-value,
.status-pill {
  font-weight: 700;
  letter-spacing: 0.03em;
}

h1 {
  margin: 0.8rem 0 0.7rem;
  max-width: 11ch;
  color: var(--soft-white);
  font-size: clamp(2.2rem, 8vw, 4.8rem);
  line-height: 1.06;
  text-shadow:
    0.2rem 0.2rem 0 rgba(0, 0, 0, 0.32),
    0.35rem 0.35rem 0 rgba(0, 0, 0, 0.14);
}

.lede {
  max-width: 40rem;
  margin: 0;
  color: #f3f9ff;
  line-height: 1.7;
  text-shadow: 0.12rem 0.12rem 0 rgba(0, 0, 0, 0.18);
}

.status-panel {
  position: relative;
  margin-top: 1rem;
  padding: 2.5rem 1.2rem 1.2rem;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    var(--panel-fill);
  border: 0.55rem solid transparent;
  border-image: url("/assets/ui/panel-grey.png") 6 fill stretch;
  box-shadow:
    0 0.6rem 0 var(--panel-shadow),
    0 1.2rem 2rem rgba(40, 23, 10, 0.22);
}

.status-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(255, 255, 255, 0.06), transparent 35%),
    url("/assets/tiles/rock.png");
  background-size: 100% 100%, 9rem 9rem;
  mix-blend-mode: multiply;
  opacity: 0.18;
  pointer-events: none;
  image-rendering: pixelated;
}

.grass-cap {
  position: absolute;
  inset: 0 0 auto;
  height: 1.3rem;
  background:
    linear-gradient(to bottom, var(--grass-top) 0 0.45rem, var(--grass-mid) 0.45rem 0.95rem, var(--grass-dark) 0.95rem 100%);
  box-shadow: inset 0 -0.2rem 0 rgba(0, 0, 0, 0.16);
}

.status-header,
.cards,
.facts,
.signal-board {
  position: relative;
  z-index: 1;
}

.status-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.status-header h2 {
  margin: 0.35rem 0 0;
  font-size: clamp(1.25rem, 4vw, 1.9rem);
}

.status-actions button {
  min-width: 10rem;
  min-height: 3.3rem;
  padding: 0.8rem 1rem;
  border: 0.45rem solid transparent;
  border-image: url("/assets/ui/button-grey.png") 6 fill stretch;
  background: transparent;
  color: var(--text);
  font: inherit;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0.26rem 0 rgba(0, 0, 0, 0.28);
}

.status-actions button:hover,
.status-actions button:focus-visible {
  border-image-source: url("/assets/ui/button-green.png");
  transform: translateY(-1px);
}

.status-actions button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.status-actions button:disabled {
  opacity: 0.8;
  cursor: wait;
}

.signal-board {
  margin-top: 1.2rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 0 0 0.2rem rgba(0, 0, 0, 0.12),
    0 0.25rem 0 rgba(0, 0, 0, 0.18);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.55rem 0 0;
  padding: 0.7rem 1rem;
  text-transform: uppercase;
  box-shadow: inset 0 -0.18rem 0 rgba(0, 0, 0, 0.16);
}

.status-pill::before {
  content: "";
  width: 1rem;
  height: 1rem;
  background: currentColor;
  box-shadow: inset 0 -0.18rem 0 rgba(0, 0, 0, 0.24);
}

.status-ready {
  color: var(--good);
  background: #94db75;
}

.status-waiting {
  color: var(--warn);
  background: #f0b35c;
}

.status-error,
.status-loading {
  color: #4e5667;
  background: #d5d9e7;
}

.status-detail {
  margin: 0.85rem 0 0;
  max-width: 46rem;
  color: var(--muted);
  line-height: 1.7;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.version-card {
  position: relative;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.48);
  box-shadow:
    inset 0 0 0 0.22rem rgba(0, 0, 0, 0.12),
    0 0.3rem 0 rgba(0, 0, 0, 0.16);
}

.version-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
  image-rendering: pixelated;
}

.minecraft-card::before {
  background:
    linear-gradient(to bottom, rgba(111, 207, 65, 0.75) 0 0.7rem, transparent 0.7rem),
    url("/assets/tiles/rock.png");
  background-size: 100% 0.7rem, 8rem 8rem;
}

.purpur-card::before {
  background:
    linear-gradient(to bottom, rgba(164, 167, 186, 0.78) 0 0.7rem, transparent 0.7rem),
    url("/assets/tiles/rock.png");
  background-size: 100% 0.7rem, 8rem 8rem;
}

.version-value {
  margin: 0.7rem 0 0.4rem;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.1;
  word-break: break-word;
}

.card-meta {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.facts {
  margin: 1rem 0 0;
  padding: 0.2rem 1rem 0.4rem;
  background: rgba(255, 255, 255, 0.36);
  box-shadow: inset 0 0 0 0.16rem rgba(0, 0, 0, 0.1);
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  border-top: 0.18rem solid rgba(0, 0, 0, 0.08);
}

.fact-row:first-child {
  border-top: 0;
}

.fact-row dd {
  margin: 0;
  text-align: right;
}

@media (max-width: 48rem) {
  .skyline {
    height: 15rem;
  }

  .sun {
    top: 1.8rem;
    right: 1.6rem;
    width: 3.8rem;
    height: 3.8rem;
  }

  .cloud {
    transform: scale(0.7);
    transform-origin: top left;
  }

  .cloud-right {
    right: 8rem;
  }

  .page-shell {
    padding-inline: 0.8rem;
  }

  .status-header,
  .fact-row {
    display: block;
  }

  .status-actions {
    margin-top: 1rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .fact-row dd {
    margin-top: 0.45rem;
    text-align: left;
  }
}
