:root {
  --bg: #111214;
  --surface: #191b1f;
  --surface-2: #22252a;
  --panel: #1d2025;
  --panel-dark: #15171b;
  --panel-hot: #8f6747;
  --ink: #eee8d9;
  --muted: #aaa397;
  --line: #6f685d;
  --line-soft: #303238;
  --accent: #c48142;
  --accent-2: #8ca06f;
  --lime: #8fbf58;
  --shadow: rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(196, 129, 66, 0.06), transparent 360px),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
}

.masthead,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.masthead {
  padding: 18px 0;
  border-bottom: 2px solid var(--line-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-stamp {
  display: grid;
  place-items: center;
  width: 54px;
  height: 48px;
  border: 2px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--shadow), inset 0 0 0 1px rgba(255, 246, 251, 0.18);
}

.brand strong {
  display: block;
}

.brand strong {
  font-size: 1.1rem;
}

.kicker {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a,
.button,
button {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--panel-dark);
  box-shadow: none;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

nav a {
  padding: 7px 10px;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  font: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button.primary,
button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff8ed;
}

nav a:hover,
.button:hover,
button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: end;
  min-height: calc(100vh - 88px);
  padding: 56px 0 44px;
}

.window {
  border: 2px solid var(--line);
  background: var(--panel);
  box-shadow: 5px 5px 0 var(--shadow), inset 0 0 0 1px rgba(255, 246, 251, 0.08);
}

.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 6px 10px;
  border-bottom: 2px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-weight: 900;
}

.window-buttons {
  display: flex;
  gap: 5px;
}

.window-buttons i {
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  background: var(--panel-dark);
}

.window-buttons i:nth-child(2) {
  background: var(--panel-hot);
}

.window-buttons i:nth-child(3) {
  background: var(--lime);
}

.hero-body,
.status-body {
  padding: clamp(22px, 5vw, 46px);
}

.kicker {
  margin: 0 0 12px;
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.3rem, 7.8vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.42);
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
}

h3 {
  margin-bottom: 6px;
  font-size: 1.15rem;
}

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

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.site-brand {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.site-nav a {
  border: 0;
  background: transparent;
  padding: 7px 8px;
  color: var(--ink);
  text-decoration: none;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  gap: clamp(36px, 7vw, 86px);
  min-height: 600px;
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(54px, 9vw, 104px) 0 60px;
}

.home-hero h1 {
  margin-bottom: 0;
}

.hero-lede {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-terminal,
.hero-art,
.hero-shot {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--surface);
  box-shadow: 0 18px 55px var(--shadow);
}

.hero-shot {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(238, 232, 217, 0.03), transparent),
    #16191e;
}

.shot-bar {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 12px;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.shot-body {
  position: absolute;
  inset: 42px 0 0;
  background:
    linear-gradient(90deg, rgba(238, 232, 217, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(238, 232, 217, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 65% 36%, rgba(196, 129, 66, 0.18), transparent 130px),
    #101216;
  background-size: 32px 32px, 32px 32px, auto, auto;
}

.shot-body span {
  position: absolute;
  display: block;
}

.terrain {
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(111, 104, 93, 0.12), rgba(196, 129, 66, 0.08));
  border-top: 1px solid rgba(196, 129, 66, 0.36);
}

.base {
  border: 1px solid rgba(238, 232, 217, 0.22);
  background: #6e8064;
}

.base-a {
  left: 34%;
  bottom: 22%;
  width: 96px;
  height: 58px;
}

.base-b {
  right: 16%;
  bottom: 34%;
  width: 70px;
  height: 44px;
}

.line {
  height: 8px;
  background: #756955;
}

.line-a {
  left: 18%;
  bottom: 30%;
  width: 45%;
}

.line-b {
  right: 12%;
  bottom: 46%;
  width: 30%;
}

.node {
  width: 12px;
  height: 12px;
  border: 1px solid rgba(238, 232, 217, 0.24);
  background: var(--accent);
}

.node-a {
  left: 22%;
  bottom: 36%;
}

.node-b {
  left: 54%;
  bottom: 48%;
}

.node-c {
  right: 22%;
  bottom: 58%;
}

.terminal-bar {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding: 10px 12px;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.terminal-map {
  position: relative;
  height: 250px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(129, 121, 104, 0.14) 1px, transparent 1px),
    linear-gradient(rgba(129, 121, 104, 0.14) 1px, transparent 1px),
    radial-gradient(circle at 55% 44%, rgba(213, 152, 87, 0.22), transparent 90px),
    #111419;
  background-size: 28px 28px, 28px 28px, auto, auto;
}

.terminal-map::before,
.terminal-map::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(213, 152, 87, 0.7);
  background: rgba(213, 152, 87, 0.12);
}

.terminal-map::before {
  inset: 54px 72px 88px 90px;
}

.terminal-map::after {
  width: 90px;
  height: 52px;
  right: 54px;
  bottom: 48px;
}

.terminal-map i {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1px solid var(--accent-2);
  background: var(--accent-2);
  box-shadow: 0 0 18px rgba(127, 163, 106, 0.8);
}

.terminal-map i:nth-child(1) { left: 26%; top: 35%; }
.terminal-map i:nth-child(2) { left: 46%; top: 48%; }
.terminal-map i:nth-child(3) { left: 69%; top: 61%; }
.terminal-map i:nth-child(4) { left: 31%; top: 71%; }
.terminal-map i:nth-child(5) { left: 74%; top: 28%; }
.terminal-map i:nth-child(6) { left: 52%; top: 20%; }

.hero-terminal dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}

.hero-terminal div {
  border-top: 1px solid var(--line-soft);
  padding: 13px 12px;
}

.hero-terminal div + div {
  border-left: 1px solid var(--line-soft);
}

.hero-terminal dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.hero-terminal dd {
  margin: 2px 0 0;
  font-size: 0.92rem;
}

.content-panel,
.auth-panel,
.download-section {
  border-bottom: 1px solid var(--line-soft);
  padding: 38px 0;
}

.auth-panel {
  width: min(460px, 100%);
  margin: 0 auto;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-bottom: 1px solid var(--line-soft);
  padding: 24px 0;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
}

.form-note a,
.text-link {
  color: var(--accent);
  font-weight: 800;
}

.feature-grid article,
.release-row,
.auth-panel,
.content-panel {
  border: 1px solid var(--line-soft);
  background: rgba(29, 32, 37, 0.72);
  box-shadow: none;
}

.feature-grid article {
  padding: 18px;
}

.feature-grid h2 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.feature-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.form-error {
  border: 1px solid var(--line);
  background: #3b2028;
  padding: 10px;
  color: var(--ink);
}

.account-facts {
  display: grid;
  gap: 8px;
}

.account-facts div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
}

.copy-code {
  display: inline-block;
  border: 2px solid var(--line);
  background: var(--panel-dark);
  padding: 14px;
  font-family: "Courier New", Courier, monospace;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.user-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  padding: 10px;
}

.user-row small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.site-footer {
  padding: 22px 0 34px;
  color: var(--muted);
}

.content-panel,
.auth-panel {
  padding: 24px;
}

.download-section {
  border-bottom: 0;
}

.lede {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.status-body dl {
  display: grid;
  gap: 12px;
}

.status-body div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  border-bottom: 1px dashed var(--line-soft);
  padding-bottom: 10px;
}

dt {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-weight: 900;
}

dd {
  font-weight: 900;
  overflow-wrap: anywhere;
}

.archive-section {
  padding: 36px 0 64px;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--line-soft);
  padding-bottom: 10px;
}

.release-table {
  display: grid;
  gap: 10px;
}

.release-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  box-shadow: none;
  padding: 16px;
}

.release-row.multi-release {
  align-items: stretch;
}

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

.release-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.badge {
  border: 1px solid var(--line);
  background: var(--panel-dark);
  color: var(--muted);
  padding: 4px 7px;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.asset-list {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 190px;
}

.asset-button {
  display: grid;
  justify-items: start;
  min-width: 190px;
  gap: 2px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.asset-button small {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-size: 0.74rem;
  font-weight: 900;
}

.footer {
  border-top: 2px solid var(--line-soft);
  padding: 22px 0 34px;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-weight: 800;
}

.upload-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 14px;
}

.upload-shell {
  width: min(640px, 100%);
}

.upload-form,
.manager-form {
  display: grid;
  gap: 14px;
}

.upload-form {
  padding: 22px;
}

.create-release-form,
.inline-asset-form {
  border: 2px solid var(--line);
  background: var(--panel-dark);
  box-shadow: 3px 3px 0 var(--shadow), inset 0 1px 0 rgba(255, 246, 251, 0.12);
  padding: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-weight: 900;
}

input,
textarea {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 0;
  background: var(--panel-dark);
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(255, 246, 251, 0.55);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

.upload-status {
  min-height: 24px;
  margin: 0;
  color: var(--lime);
  font-weight: 900;
}

.upload-progress {
  height: 26px;
  border: 2px solid var(--line);
  background: var(--panel-dark);
  box-shadow: 3px 3px 0 var(--shadow), inset 0 1px 0 rgba(255, 246, 251, 0.12);
  overflow: hidden;
}

.upload-progress-bar {
  width: 0%;
  height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      var(--lime) 0,
      var(--lime) 10px,
      #9bf02a 10px,
      #9bf02a 20px
    );
  transition: width 140ms ease-out;
}

.upload-progress-bar.is-pending {
  background-size: 28px 28px;
  animation: upload-stripes 700ms linear infinite;
}

@keyframes upload-stripes {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 28px 0;
  }
}

.upload-percent {
  margin: -6px 0 0;
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
  font-weight: 900;
}

.upload-status.error {
  color: var(--line);
}

.manager-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.manager-release,
.manager-asset {
  border: 2px solid var(--line);
  background: var(--panel-dark);
  box-shadow: 3px 3px 0 var(--shadow), inset 0 1px 0 rgba(255, 246, 251, 0.12);
}

.manager-release {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.manager-release-head {
  border-bottom: 1px dashed var(--line-soft);
  padding-bottom: 10px;
}

.manager-release h3 {
  margin-bottom: 4px;
}

.manager-release p {
  margin-bottom: 0;
  color: var(--muted);
}

.manager-assets {
  display: grid;
  gap: 8px;
}

.manager-asset {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.manager-asset span,
.manager-asset small {
  overflow-wrap: anywhere;
}

.manager-asset span {
  font-weight: 900;
}

.manager-asset small {
  color: var(--muted);
  font-family: "Courier New", Courier, monospace;
}

.inline-asset-form {
  box-shadow: none;
}

@media (max-width: 820px) {
  .masthead,
  .footer,
  .section-title,
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .release-row,
  .manager-asset,
  .home-hero,
  .feature-grid,
  .user-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .home-hero {
    min-height: auto;
    padding-top: 38px;
  }

  .hero-terminal dl {
    grid-template-columns: 1fr;
  }

  .hero-terminal div + div {
    border-left: 0;
  }

  .release-row .button {
    width: 100%;
  }

  .asset-list,
  .asset-button {
    min-width: 0;
  }

  .site-nav {
    width: 100%;
  }

  .site-nav a {
    flex: 1 1 auto;
    text-align: center;
  }

  h1 {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

}
