:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #5f6b63;
  --paper: #fbfaf5;
  --panel: #ffffff;
  --line: #d9ddd2;
  --green: #2f7d4b;
  --green-dark: #205c38;
  --yellow: #f4c84a;
  --red: #d6553f;
  --blue: #3478bd;
  --shadow: 0 24px 70px rgba(23, 33, 28, 0.12);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(47, 125, 75, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(47, 125, 75, 0.06) 1px, transparent 1px),
    var(--paper);
  background-size: 32px 32px;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  backdrop-filter: blur(14px);
}

.brand,
.nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--green);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--yellow);
}

.nav {
  gap: 8px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.nav a {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: #edf4eb;
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.86fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100svh - 84px);
  padding: 44px 0 36px;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.02;
}

h1 {
  max-width: 13.5ch;
  font-size: clamp(3.25rem, 8vw, 6.8rem);
  letter-spacing: 0;
}

h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.7rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.18rem;
}

.intro {
  max-width: 62ch;
  margin: 24px 0 0;
  color: #39453d;
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button,
.tiny-button {
  min-height: 44px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
}

.button:hover,
.button:focus-visible,
.tiny-button:hover,
.tiny-button:focus-visible {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
  outline: none;
}

.primary {
  color: #fff;
  background: var(--green);
}

.ghost {
  color: var(--ink);
  background: var(--yellow);
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 58ch;
  margin-top: 26px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.95rem;
  line-height: 1.5;
}

.pulse {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(214, 85, 63, 0.6);
  animation: ping 1.4s infinite;
}

.hero-visual {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
  min-height: 520px;
}

.hero-visual img {
  display: block;
  width: min(100%, 560px);
  margin: 0 auto;
  filter: drop-shadow(0 28px 42px rgba(23, 33, 28, 0.22));
}

.terminal-card {
  width: min(340px, 92%);
  overflow: hidden;
  color: #dff9e7;
  background: #101a16;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.terminal-header {
  display: flex;
  gap: 7px;
  padding: 12px;
  background: #26342d;
}

.terminal-header span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
}

.terminal-header span:nth-child(2) {
  background: var(--yellow);
}

.terminal-header span:nth-child(3) {
  background: #55b86a;
}

pre {
  margin: 0;
  padding: 16px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 0.86rem;
  line-height: 1.55;
}

.notice-band {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  margin: 0 0 76px;
  padding: 16px;
  background: #fff4c2;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--ink);
}

.notice-band span {
  font-size: 1.8rem;
}

.notice-band p {
  margin: 0;
  font-weight: 800;
}

.tiny-button {
  padding: 9px 12px;
  background: #fff;
}

.section-grid,
.discord-bots,
.minecraft,
.logs {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
  padding: 80px 0;
  border-top: 1px solid var(--line);
}

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

.card {
  min-height: 210px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 33, 28, 0.07);
}

.card-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 20px;
  background: #edf4eb;
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-size: 1.35rem;
}

.card p,
.discord-bots p,
.minecraft-copy p,
.timeline p {
  color: var(--muted);
  line-height: 1.6;
}

.bot-list {
  display: grid;
  gap: 16px;
}

.bot-card {
  min-height: 280px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 33, 28, 0.07);
}

.bot-card-header {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.bot-card-header p {
  margin: 8px 0 0;
}

.bot-badge {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--yellow);
  font-family: var(--mono);
  font-weight: 900;
}

.bot-facts {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.bot-facts div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.bot-facts dt {
  color: var(--green-dark);
  font-family: var(--mono);
  font-weight: 850;
}

.bot-facts dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.bot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.compact {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 0.94rem;
}

.policy-page {
  padding: 64px 0 86px;
}

.policy-document {
  max-width: 860px;
}

.policy-document h1 {
  max-width: 14ch;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
}

.policy-document h2 {
  max-width: none;
  margin-top: 44px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.policy-document p {
  max-width: 76ch;
  color: #39453d;
  font-size: 1.05rem;
  line-height: 1.7;
}

.policy-updated {
  margin: 22px 0 34px;
  color: var(--green-dark);
  font-family: var(--mono);
  font-weight: 800;
}

.encoded-contact,
code {
  font-family: var(--mono);
  font-weight: 800;
}

.game-panel {
  padding: 16px;
  background: #233027;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--ink);
}

.game-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #eff7e9;
  font-family: var(--mono);
  font-size: 0.92rem;
}

.block-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(28px, 1fr));
  gap: 6px;
}

.block {
  aspect-ratio: 1;
  min-height: 42px;
  border: 2px solid rgba(0, 0, 0, 0.42);
  border-radius: 4px;
  cursor: pointer;
  box-shadow: inset 0 10px 0 rgba(255, 255, 255, 0.16), inset 0 -10px 0 rgba(0, 0, 0, 0.15);
}

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

.block[data-type="grass"] {
  background: linear-gradient(#4f9d45 0 28%, #8b5a2b 29%);
}

.block[data-type="stone"] {
  background: #858c8c;
}

.block[data-type="diamond"] {
  background: #4bd6d0;
}

.block[data-type="php"] {
  background: #777bb4;
}

.block[data-type="cat"] {
  background: #f2a548;
}

.block.mined {
  pointer-events: none;
  background: #151f1a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0.62;
}

.game-message {
  min-height: 24px;
  margin: 14px 0 0;
  color: #d5ead9;
  font-family: var(--mono);
  font-size: 0.92rem;
}

.timeline {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  padding: 20px;
  background: #fff;
  border-left: 8px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 33, 28, 0.07);
}

.timeline time {
  color: var(--green-dark);
  font-family: var(--mono);
  font-weight: 850;
}

.timeline p {
  margin: 10px 0 0;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px 0 36px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;
  width: min(360px, calc(100% - 40px));
  padding: 14px 16px;
  color: white;
  background: #17211c;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
  font-weight: 750;
}

.chaos-mode {
  animation: hue-shift 8s linear infinite;
}

.konami-cat {
  position: fixed;
  left: 20px;
  bottom: 18px;
  z-index: 9;
  font-size: 2.4rem;
  animation: bob 1.1s ease-in-out infinite alternate;
}

@keyframes ping {
  70% {
    box-shadow: 0 0 0 12px rgba(214, 85, 63, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(214, 85, 63, 0);
  }
}

@keyframes hue-shift {
  to {
    filter: hue-rotate(360deg);
  }
}

@keyframes bob {
  to {
    transform: translateY(-8px);
  }
}

@media (max-width: 900px) {
  .topbar,
  .section-grid,
  .discord-bots,
  .minecraft,
  .logs {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .nav {
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .hero-visual {
    min-height: auto;
  }

  .terminal-card {
    width: min(420px, 100%);
  }

  .notice-band {
    grid-template-columns: auto 1fr;
  }

  .notice-band .tiny-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  h2 {
    max-width: 20ch;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 12vw, 5.25rem);
  }
}

@media (max-width: 620px) {
  .site-shell {
    width: min(100% - 22px, 1160px);
  }

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

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .status-line {
    align-items: flex-start;
  }

  .block-grid {
    grid-template-columns: repeat(6, minmax(28px, 1fr));
  }

  .bot-card-header,
  .bot-facts div {
    grid-template-columns: 1fr;
  }
}

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