:root {
  color-scheme: dark;
  --bg: #070605;
  --bg-soft: #0e0a07;
  --panel: #15100c;
  --panel-2: #1e150f;
  --panel-3: #29170d;
  --text: #fff4df;
  --muted: #c7aa8e;
  --line: #442719;
  --line-hot: #7f351c;
  --red: #b92c17;
  --ember: #e34518;
  --orange: #ff751d;
  --gold: #eeb84a;
  --gold-light: #ffdc82;
  --max: 1120px;
  --radius: 15px;
  --shadow: 0 20px 55px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 50% -15%, rgba(179,43,20,.12), transparent 36rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: var(--gold-light); }
a:hover { color: #fff0b7; }
code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: .95em;
}
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 54px;
  border-bottom: 1px solid var(--line-hot);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,116,29,.16), transparent 37%),
    radial-gradient(circle at 13% 68%, rgba(185,44,23,.16), transparent 27%),
    radial-gradient(circle at 87% 60%, rgba(227,69,24,.12), transparent 29%),
    linear-gradient(180deg, #120b07 0%, #090706 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), var(--orange), var(--gold), var(--orange), var(--red), transparent);
  box-shadow: 0 0 24px rgba(255,117,29,.7);
}
.ember-field {
  position: absolute;
  inset: 0;
  opacity: .45;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 8% 28%, rgba(255,184,72,.7) 0 1px, transparent 1.8px),
    radial-gradient(circle at 24% 76%, rgba(227,69,24,.75) 0 1px, transparent 1.7px),
    radial-gradient(circle at 74% 19%, rgba(255,117,29,.65) 0 1.2px, transparent 1.9px),
    radial-gradient(circle at 92% 72%, rgba(255,216,130,.5) 0 1px, transparent 1.8px);
  background-size: 210px 170px, 270px 230px, 330px 290px, 190px 250px;
}
.hero-inner { position: relative; z-index: 1; }

/* Purge City Projects logo supplied by the server owner */
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
}
.hero-copy { min-width: 0; }
.pcp-logo-frame {
  justify-self: end;
  width: min(100%, 320px);
  padding: 8px;
  border: 1px solid rgba(238,184,74,.26);
  border-radius: 22px;
  background: rgba(7,6,5,.55);
  box-shadow: 0 24px 70px rgba(0,0,0,.42), 0 0 55px rgba(227,69,24,.10);
}
.pcp-logo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--orange);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .17em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  display: inline-block;
  margin-bottom: 13px;
  padding: .04em .02em .12em 0;
  font-size: clamp(2.7rem, 8vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  background: linear-gradient(180deg, #fff0bd 0%, var(--gold) 42%, var(--orange) 77%, #d43d18 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 12px 38px rgba(227,69,24,.08);
}
h2 { margin-bottom: 8px; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -.02em; }
h3 { margin-bottom: 5px; font-size: 1.08rem; }
.lede { max-width: 760px; color: #ecd9c3; font-size: 1.12rem; }
.muted { color: var(--muted); }
.stack { margin: 14px 0 0; color: var(--muted); font-size: .92rem; }
.label { display: block; margin-bottom: 3px; color: var(--gold); font-size: .72rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.server-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 760px;
  margin-top: 25px;
  padding: 17px 19px;
  border: 1px solid #63301b;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(36,20,12,.93), rgba(18,12,9,.94));
  box-shadow: var(--shadow), inset 0 0 35px rgba(226,62,20,.05);
}
.server-card code { display: block; color: #fff2d7; font-size: clamp(1rem, 3vw, 1.16rem); font-weight: 800; }
.server-status { display: block; margin-top: 4px; color: var(--muted); font-size: .82rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 9px 16px;
  border: 1px solid #d35a20;
  border-radius: 10px;
  background: linear-gradient(180deg, #f78a27, #d84a18);
  color: #1b0d05;
  box-shadow: inset 0 1px rgba(255,255,255,.24), 0 8px 20px rgba(178,47,17,.15);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { color: #160904; filter: brightness(1.09); }
.button.secondary { border-color: #724022; background: var(--panel-2); color: var(--text); box-shadow: none; }
.button.disabled { pointer-events: none; opacity: .62; background: #271a12; border-color: #52331f; color: #bfa58d; box-shadow: none; }

.section { padding: 48px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.section-heading > p { max-width: 570px; margin-bottom: 2px; }
.section-heading.compact { margin-bottom: 14px; }
.panel {
  margin-top: 40px;
  padding: 27px;
  border: 1px solid var(--line-hot);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(31,19,12,.9), rgba(18,13,10,.94));
  box-shadow: var(--shadow);
}
.join-panel { position: relative; overflow: hidden; }
.join-panel::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,117,29,.18), transparent 68%);
}
.download-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.download-card, .mod-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(155deg, #17100c, #0f0b08);
}
.download-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  min-height: 0;
  box-shadow: inset 0 0 22px rgba(255,117,29,.025);
}
.download-card.is-recommended { border-color: #a64d1f; box-shadow: inset 0 0 30px rgba(255,117,29,.06), 0 0 0 1px rgba(238,184,74,.04); }
.download-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.download-card p { margin: 0; color: var(--muted); }
.badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  flex: none;
  padding: 3px 8px;
  border: 1px solid #59331e;
  border-radius: 999px;
  background: #21150e;
  color: #dab792;
  font-size: .7rem;
  font-weight: 800;
}

.download-meta {
  margin: -0.2rem 0 1rem;
  color: var(--gold-soft);
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}
.badge.recommended { border-color: rgba(238,184,74,.55); color: var(--gold-light); background: rgba(102,53,19,.32); }
.steps { margin: 0; padding-left: 1.35rem; position: relative; }
.steps li + li { margin-top: 9px; }
.steps li::marker { color: var(--orange); font-weight: 900; }
.toolbar { display: flex; gap: 10px; margin-bottom: 14px; }
.toolbar input, .toolbar select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #100b08;
  color: var(--text);
  font: inherit;
  outline: none;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255,117,29,.1); }
.toolbar input { flex: 1; padding: 9px 12px; }
.toolbar select { padding: 9px 34px 9px 12px; }
.mod-list { display: grid; gap: 9px; }
.mod-card {
  display: grid;
  grid-template-columns: minmax(190px,.8fr) minmax(300px,1.8fr) minmax(230px,1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  transition: border-color .15s ease, background .15s ease;
}
.mod-card:hover { border-color: #63351f; background: linear-gradient(155deg, #1b120c, #100b08); }
.mod-title { min-width: 0; }
.mod-title h3 { overflow-wrap: anywhere; }
.wiki-title { color: #ffe5a0; text-decoration-color: rgba(255,117,29,.45); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wiki-title:hover { color: #fff5cd; text-decoration-color: var(--orange); }
.mod-title .version { color: var(--muted); font-size: .79rem; }
.mod-desc, .mod-change { margin: 0; color: #e0cdb9; font-size: .9rem; }
.mod-change { color: #cfad8e; }
.mod-change strong { color: var(--orange); }
.mod-spacer { display: block; }
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 28px;
  padding: 3px 9px;
  border: 1px solid #714326;
  border-bottom-width: 3px;
  border-radius: 7px;
  background: #27170f;
  color: #ffedca;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: .76rem;
  font-weight: 850;
  white-space: nowrap;
}
.mod-keybinds {
  grid-column: 2 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid rgba(87,47,28,.7);
  color: var(--muted);
  font-size: .84rem;
}
.mod-keybinds > strong { color: var(--gold); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; }
.keybind-item { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.keybind-action { color: #f2dcc7; font-weight: 750; }
.technical { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.technical summary { cursor: pointer; padding: 16px 18px; color: #e7c49f; font-weight: 850; }
.technical summary::marker { color: var(--orange); }
.technical-list { padding: 0 12px 12px; }
.technical-card { background: #100c09; }
.empty { padding: 26px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
footer { padding: 30px 0 44px; background: linear-gradient(180deg, transparent, rgba(77,31,14,.08)); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.footer-brand { display: flex; gap: 10px; align-items: center; }
.footer-logo { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }

@media (max-width: 900px) {
  .download-grid { grid-template-columns: 1fr; }
  .mod-card { grid-template-columns: minmax(170px,.85fr) minmax(260px,1.6fr); }
  .mod-change, .mod-spacer { grid-column: 2; }
  .mod-keybinds { grid-column: 2; }
}

@media (max-width: 760px) {
  .hero { padding-top: 28px; }
  .hero-top { grid-template-columns: 1fr; }
  .pcp-logo-frame { justify-self: start; width: min(72vw, 300px); }
  .section-heading { display: block; }
  .mod-card { grid-template-columns: 1fr; gap: 8px; }
  .mod-change, .mod-spacer, .mod-keybinds { grid-column: 1; }
  .toolbar { flex-direction: column; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 520px) {
  .server-card { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .panel { padding: 20px; }
  .download-heading { display: block; }
  .download-heading .badge { margin-bottom: 10px; }
}

/* Platform installer buttons */
.download-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
}
.download-actions.single { grid-template-columns: 1fr; }
.download-card .button { width: 100%; }
.platform-button {
  min-width: 0;
  flex-direction: column;
  gap: 1px;
  padding: 9px 8px;
  text-align: center;
  line-height: 1.15;
}
.platform-button > span { font-size: .83rem; }
.platform-button > small {
  font-size: .66rem;
  font-weight: 750;
  opacity: .74;
}
@media (max-width: 1080px) {
  .download-actions { grid-template-columns: 1fr; }
}
