* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: "Trebuchet MS", system-ui, -apple-system, sans-serif;
  color: #1f0d03;
  background: #1f0d03;
}

.sky {
  position: relative;
  min-height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    radial-gradient(circle at 58% 45%, rgba(255, 232, 171, 0.18), transparent 21%),
    radial-gradient(circle at 86% 24%, rgba(255, 255, 255, 0.16), transparent 16%),
    linear-gradient(#057fc3 0%, #098fda 50%, #4db7f6 100%);
}

/* Header */

.homepage-main {
  position: relative;
  z-index: 20;
  display: grid;
  gap: clamp(1.15rem, 2.4vw, 2rem);
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.6rem) 1.4rem;
}

.site-header {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2vw, 2rem);
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: clamp(0.55rem, 1vw, 0.9rem) clamp(1rem, 3vw, 2.6rem) clamp(0.35rem, 0.8vw, 0.65rem);
}

.brand-logo {
  display: block;
  flex: 0 1 clamp(250px, 29vw, 430px);
  max-width: 48vw;
  transform: rotate(-2.5deg);
  filter:
    drop-shadow(0 4px 0 #1f0d03)
    drop-shadow(0 10px 12px rgba(0, 0, 0, 0.33));
  text-decoration: none;
}

.brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.nav-panel {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem;
  border: 5px solid #2b1003;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 242, 204, 0.48), transparent 34%),
    linear-gradient(#f8c85a, #e8921d);
  box-shadow:
    0 6px 0 #6d2a08,
    0 15px 22px rgba(0, 0, 0, 0.3);
}

.nav-panel a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.62rem clamp(0.9rem, 1.5vw, 1.35rem);
  border: 3px solid transparent;
  border-radius: 15px;
  color: #1f0d03;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(0.88rem, 1vw, 1.08rem);
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.nav-panel a:hover {
  border-color: rgba(31, 13, 3, 0.88);
  background: rgba(255, 243, 207, 0.42);
  color: #1f0d03;
}

.nav-panel span {
  align-self: center;
  width: 3px;
  height: 1.9rem;
  border-radius: 999px;
  background: rgba(31, 13, 3, 0.38);
}

/* Hero */

.hero-shell {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, clamp(360px, 34vw, 540px));
  gap: clamp(0.5rem, 1.8vw, 1.75rem);
  align-items: center;
  min-height: 0;
}

.hero-copy {
  position: relative;
  z-index: 30;
  width: min(100%, 900px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.3rem, 2.5vw, 2.25rem);
  border: 5px solid #1f0d03;
  border-radius: 26px;
  background:
    radial-gradient(circle at 82% 19%, rgba(255, 229, 151, 0.68), transparent 23%),
    linear-gradient(#fff1c9, #ffe1a3);
  box-shadow:
    8px 9px 0 rgba(44, 16, 3, 0.85),
    0 18px 32px rgba(0, 0, 0, 0.28);
}

.eyebrow,
.card-kicker {
  display: block;
  margin-bottom: 0.65rem;
  color: #9d3210;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(0.82rem, 0.9vw, 1.02rem);
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 12.5ch;
  color: #1b0a02;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(3.45rem, 5.45vw, 6.25rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: 0.012em;
  text-transform: uppercase;
  text-shadow: none;
}

.hero-copy h1 em {
  color: #b63814;
  font-style: normal;
}

.headline-rule {
  width: min(100%, 44rem);
  height: 4px;
  margin: clamp(0.85rem, 1.5vw, 1.15rem) 0 clamp(0.75rem, 1.25vw, 1rem);
  background:
    linear-gradient(90deg, #5a2108 0 45%, transparent 45% 55%, #5a2108 55% 100%);
  position: relative;
}

.headline-rule::after {
  content: "*";
  position: absolute;
  left: 50%;
  top: 50%;
  padding: 0 0.6rem;
  background: #ffe8b1;
  color: #9d3210;
  transform: translate(-50%, -50%);
}

.hero-text {
  max-width: 56rem;
  color: #1f0d03;
  font-size: clamp(1rem, 1.08vw, 1.16rem);
  font-weight: 900;
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.primary-button,
.secondary-button,
.dock-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  touch-action: manipulation;
  padding: 0.68rem 1.15rem;
  border: 4px solid #1f0d03;
  border-radius: 14px;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(0.86rem, 0.95vw, 1.02rem);
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow:
    0 5px 0 #4b1d06,
    0 10px 18px rgba(0, 0, 0, 0.2);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.primary-button {
  color: #fff5d9;
  background: linear-gradient(#dc6b18, #b8420e);
}

.secondary-button {
  color: #fff5d9;
  background: linear-gradient(#7a310c, #4b1d06);
}

/* Character */

.ballzatram {
  position: relative;
  z-index: 25;
  justify-self: end;
  width: clamp(340px, 28vw, 520px);
  margin-left: clamp(-2.5rem, -3vw, -1rem);
  transform-origin: 50% 58%;
  animation: ballzatram-float 6s ease-in-out infinite;
}

.ballzatram img {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(-5px -4px 0 rgba(255, 241, 201, 0.72))
    drop-shadow(12px 18px 0 rgba(46, 21, 8, 0.25))
    drop-shadow(0 18px 30px rgba(0, 0, 0, 0.25));
  transition: filter 0.22s ease, transform 0.22s ease;
}

.ballzatram:hover img {
  filter:
    drop-shadow(-6px -5px 0 rgba(255, 241, 201, 0.84))
    drop-shadow(14px 20px 0 rgba(46, 21, 8, 0.28))
    drop-shadow(0 22px 34px rgba(0, 0, 0, 0.28));
  transform: translateY(-0.25rem);
}

@keyframes ballzatram-float {
  0%,
  100% {
    transform: rotate(-4deg) translateY(8px);
  }

  50% {
    transform: rotate(-1.5deg) translate(0.35rem, -0.65rem);
  }
}

/* Dock */

.dock {
  position: relative;
  z-index: 35;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.9rem, 1.5vw, 1.25rem);
  width: 100%;
}

.tool-category {
  display: grid;
  gap: 0.9rem;
}

.category-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 clamp(0.25rem, 1vw, 0.75rem);
}

.category-heading h2 {
  color: #fff4d4;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(2.1rem, 3vw, 3.6rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 4px 0 rgba(31, 13, 3, 0.55);
}

.tool-category .dock {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.dock-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.85rem;
  min-height: 300px;
  grid-column: span 2;
  padding: clamp(1rem, 1.5vw, 1.2rem);
  border: 5px solid #1f0d03;
  border-radius: 22px;
  background:
    radial-gradient(circle at 75% 18%, rgba(255, 232, 171, 0.6), transparent 21%),
    linear-gradient(#fff0c3, #ffe3a8);
  box-shadow:
    0 7px 0 #4b1d06,
    0 14px 24px rgba(0, 0, 0, 0.24);
}

.tool-category .dock-card,
.tool-category .dock-card:nth-last-child(2),
.tool-category .dock-card:last-child {
  grid-column: span 3;
}

#games .dock-card,
#games .dock-card:nth-last-child(2),
#games .dock-card:last-child {
  grid-column: span 4;
}

.dock-card > div:last-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.dock-card.featured {
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 229, 151, 0.45), transparent 24%),
    linear-gradient(#ffc147, #f0a12c);
}

.dock-card:nth-last-child(2),
.dock-card:last-child {
  grid-column: span 3;
}

.card-icon {
  display: grid;
  place-items: center;
  width: clamp(3.7rem, 4.1vw, 4.85rem);
  aspect-ratio: 1;
  border: 4px solid #1f0d03;
  border-radius: 50%;
  background: linear-gradient(#d95d17, #a8360c);
  color: #fff1c9;
  font-size: clamp(1.7rem, 2vw, 2.35rem);
  box-shadow: 0 4px 0 #4b1d06;
}

.card-icon.blue {
  background: linear-gradient(#0d6e9e, #095277);
}

.card-icon.purple {
  background: linear-gradient(#7d45d9, #4c248f);
}

.card-kicker {
  margin-bottom: 0.25rem;
  color: #7a310c;
  font-size: clamp(0.72rem, 0.8vw, 0.9rem);
}

.tool-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.55rem;
  padding: 0.25rem 0.55rem;
  border: 2px solid rgba(31, 13, 3, 0.45);
  border-radius: 999px;
  background: rgba(255, 245, 217, 0.64);
  color: #4b1d06;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.tool-status.live {
  background: #d6ffba;
}

.tool-status.experimental {
  background: #d9e4ff;
}

.dock-card h2 {
  margin: 0;
  color: #1b0a02;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(2.1rem, 2.45vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  text-shadow: none;
}

.dock-card p {
  max-width: 36rem;
  margin: 0.5rem 0 1rem;
  color: #1f0d03;
  font-size: clamp(0.94rem, 0.95vw, 1.02rem);
  font-weight: 900;
  line-height: 1.38;
}

.dock-card a {
  width: fit-content;
  min-height: 2.65rem;
  margin-top: auto;
  padding: 0.56rem 1rem;
  color: #fff5d9;
  background: linear-gradient(#7a310c, #4b1d06);
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 38px;
  padding: 0.45rem 1rem;
  color: #ffbd42;
  background: #1f0d03;
  border-top: 4px solid rgba(255, 189, 66, 0.25);
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(0.76rem, 1vw, 1rem);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  width: min(100%, 1500px);
  margin: 0 auto;
}

.site-footer p {
  margin: 0;
}

/* Clouds */

.cloud {
  position: absolute;
  left: -30vw;
  top: 50%;
  width: 180px;
  height: 90px;
  background: #fff4dc;
  border-radius: 50%;
  box-shadow:
    -40px 10px 0 0 #fff4dc,
    -10px -15px 0 0 #fff4dc,
    25px 5px 0 0 #fff4dc;
  opacity: 0.58;
  z-index: 2;
  animation-name: cloud-drift;
  animation-timing-function: linear;
  animation-iteration-count: 1;
}

@keyframes cloud-drift {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(160vw);
  }
}

.cloud.layer-back {
  opacity: 0.38;
  filter: blur(2px);
  z-index: 1;
}

.cloud.layer-front {
  opacity: 0.62;
  z-index: 3;
}

/* Medium screens */

@media (max-width: 1180px) {
  .site-header {
    align-items: center;
  }

  .brand-logo {
    flex-basis: clamp(240px, 36vw, 380px);
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  }

  .ballzatram {
    width: clamp(320px, 33vw, 410px);
    margin-left: clamp(-1.5rem, -2vw, -0.5rem);
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 5.2vw, 5.4rem);
  }

  .dock-card {
    grid-column: span 3;
  }

  .dock-card:last-child {
    grid-column: 2 / span 4;
  }

  .tool-category .dock-card,
  .tool-category .dock-card:nth-last-child(2),
  .tool-category .dock-card:last-child,
  #games .dock-card,
  #games .dock-card:nth-last-child(2),
  #games .dock-card:last-child {
    grid-column: span 6;
  }
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .brand-logo {
    max-width: min(82vw, 420px);
  }

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

  .hero-copy {
    width: min(100%, 840px);
    margin: 0 auto;
  }

  .ballzatram {
    justify-self: center;
    width: clamp(280px, 55vw, 380px);
    margin-left: 0;
  }

  .dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dock-card,
  .dock-card:nth-last-child(2),
  .dock-card:last-child {
    grid-column: auto;
  }

  .tool-category .dock,
  #games .dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tool-category .dock-card,
  .tool-category .dock-card:nth-last-child(2),
  .tool-category .dock-card:last-child,
  #games .dock-card,
  #games .dock-card:nth-last-child(2),
  #games .dock-card:last-child {
    grid-column: auto;
  }
}

/* Mobile */

@media (max-width: 720px) {
  .homepage-main {
    padding-inline: 0.75rem;
  }

  .site-header {
    flex-direction: column;
    align-items: center;
    padding-inline: 0.75rem;
    text-align: center;
  }

  .brand-logo {
    width: min(92vw, 420px);
    max-width: none;
  }

  .nav-panel {
    width: 100%;
    max-width: 460px;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.45rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-panel a {
    min-height: 2.55rem;
    padding-inline: 0.72rem;
    font-size: 0.8rem;
  }

  .nav-panel span {
    height: 1.5rem;
  }

  .hero-copy {
    padding: 1.1rem;
    border-width: 4px;
    box-shadow:
      5px 6px 0 rgba(44, 16, 3, 0.85),
      0 14px 24px rgba(0, 0, 0, 0.24);
  }

  .eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.13em;
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 13vw, 4.45rem);
    line-height: 0.92;
  }

  .hero-text {
    font-size: 0.92rem;
  }

  .trust-row {
    gap: 0.45rem;
  }

  .hero-actions {
    gap: 0.65rem;
  }

  .primary-button,
  .secondary-button {
    flex: 1 1 100%;
    min-height: 2.75rem;
    font-size: 0.88rem;
  }

  .ballzatram {
    width: clamp(240px, 78vw, 330px);
  }

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

  .tool-category .dock,
  #games .dock {
    grid-template-columns: 1fr;
  }

  .dock-card {
    min-height: auto;
    padding: 0.9rem;
  }

  .card-icon {
    width: 3.6rem;
    font-size: 1.7rem;
  }

  .dock-card h2 {
    font-size: 2rem;
  }

  .dock-card p {
    font-size: 0.9rem;
  }

  .site-footer {
    flex-wrap: wrap;
    font-size: 0.7rem;
    line-height: 1.35;
  }
}

/* Tiny phones */

@media (max-width: 430px) {
  .nav-panel span {
    display: none;
  }

  .nav-panel a {
    font-size: 0.74rem;
  }

  .hero-copy h1 {
    font-size: 2.55rem;
  }

  .dock-card a {
    width: 100%;
  }

  .card-icon {
    width: 3.3rem;
  }
}


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

/* Weather Prop Bot */

.weather-action {
  background: linear-gradient(#0f7f8f, #07515c);
}

.card-icon.teal {
  background: linear-gradient(#12a0aa, #07515c);
}

.weather-feature {
  background:
    radial-gradient(circle at 80% 18%, rgba(183, 248, 255, 0.5), transparent 24%),
    linear-gradient(#d6fbff, #8fe1ec);
}

.weather-bot-sky {
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 244, 220, 0.34), transparent 18%),
    radial-gradient(circle at 82% 12%, rgba(113, 231, 255, 0.28), transparent 24%),
    linear-gradient(180deg, #056c9f 0%, #0787ba 38%, #45b8d9 100%);
}

.weather-page-shell {
  position: relative;
  z-index: 35;
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.6rem) 1.6rem;
}

.terminal-card,
.dashboard-card {
  border: 5px solid #1f0d03;
  border-radius: 24px;
  box-shadow:
    0 7px 0 #4b1d06,
    0 16px 28px rgba(0, 0, 0, 0.25);
}

.terminal-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.04) 50%, rgba(14, 68, 74, 0.08) 50%),
    radial-gradient(circle at 85% 15%, rgba(113, 231, 255, 0.18), transparent 25%),
    linear-gradient(135deg, #123a40, #091c23 72%);
  background-size: auto, auto, 100% 100%;
  color: #e8ffff;
}

.weather-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: stretch;
  padding: clamp(1.25rem, 3vw, 2.6rem);
}

.weather-hero h1,
.terminal-card h2,
.dashboard-card h2 {
  font-family: Impact, "Anton", system-ui, sans-serif;
  letter-spacing: 0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.weather-hero h1 {
  margin-bottom: 0.85rem;
  color: #fff4d0;
  font-size: clamp(3.8rem, 8vw, 8.7rem);
  text-shadow: 4px 4px 0 #1f0d03;
}

.weather-subtitle {
  max-width: 58rem;
  color: #b9fbff;
  font-size: clamp(1.1rem, 1.8vw, 1.65rem);
  font-weight: 900;
  line-height: 1.35;
}

.research-disclaimer {
  margin-top: 1.15rem;
  padding: 0.9rem 1rem;
  border: 3px solid #ffbd42;
  border-radius: 16px;
  color: #fff5d9;
  background: rgba(120, 52, 7, 0.68);
  font-weight: 900;
  line-height: 1.45;
}

.weather-console {
  display: grid;
  gap: 0.75rem;
  align-content: center;
  padding: 1rem;
  border: 3px solid rgba(185, 251, 255, 0.55);
  border-radius: 18px;
  background: rgba(2, 12, 17, 0.58);
  font-family: "Courier New", monospace;
}

.console-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border-left: 5px solid #6ee7f2;
  background: rgba(110, 231, 242, 0.1);
}

.console-row span,
.metric-stack span {
  color: #a9f7ff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.console-row strong {
  color: #fff5d9;
  text-align: right;
}

.console-row.warning {
  border-left-color: #ffbd42;
  background: rgba(255, 189, 66, 0.14);
}

.warning-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.warning-strip p {
  padding: 0.85rem;
  border: 4px solid #1f0d03;
  border-radius: 16px;
  background: #fff1c9;
  box-shadow: 0 5px 0 #4b1d06;
  color: #1f0d03;
  font-weight: 900;
  line-height: 1.25;
}

.dashboard-grid,
.content-grid,
.runner-backtest-grid {
  display: grid;
  gap: clamp(0.85rem, 1.6vw, 1.25rem);
  margin-top: 1rem;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr) minmax(250px, 0.65fr);
}

.content-grid,
.runner-backtest-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-card {
  padding: 1.1rem;
  background:
    radial-gradient(circle at 82% 15%, rgba(183, 248, 255, 0.42), transparent 24%),
    linear-gradient(#fff0c3, #d8faff);
  color: #1f0d03;
}

.dashboard-card h2,
.terminal-card h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(2rem, 3vw, 3.6rem);
}

.config-list {
  display: grid;
  gap: 0.85rem;
}

.config-list label {
  display: grid;
  gap: 0.35rem;
  font-weight: 900;
}

.config-list select,
.config-list input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 3px solid #1f0d03;
  border-radius: 12px;
  background: #fffaf0;
  color: #1f0d03;
  font: 900 0.95rem "Trebuchet MS", system-ui, sans-serif;
}

.metric-stack {
  display: grid;
  gap: 0.8rem;
}

.metric-stack div {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem;
  border: 3px solid #1f0d03;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.metric-stack strong {
  font-size: 1.1rem;
}

.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.chip-cloud span {
  padding: 0.6rem 0.75rem;
  border: 3px solid #1f0d03;
  border-radius: 999px;
  background: linear-gradient(#12a0aa, #07515c);
  color: #e8ffff;
  font-family: Impact, "Anton", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.strategy-card,
.architecture-card,
.runner-card,
.backtest-card {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.flow-list,
.backtest-list {
  display: grid;
  gap: 0.62rem;
  padding-left: 1.35rem;
  font-weight: 900;
  line-height: 1.4;
}

.pipeline {
  display: grid;
  gap: 0.65rem;
}

.pipeline span {
  position: relative;
  padding: 0.75rem 2.4rem 0.75rem 0.9rem;
  border: 3px solid #6ee7f2;
  border-radius: 13px;
  background: rgba(110, 231, 242, 0.12);
  color: #fff5d9;
  font-family: "Courier New", monospace;
  font-weight: 900;
}

.pipeline span:not(:last-child)::after {
  content: "↓";
  position: absolute;
  right: 0.9rem;
  color: #ffbd42;
}

.runner-card p,
.backtest-card p {
  margin-bottom: 1rem;
  color: #d9ffff;
  font-weight: 900;
  line-height: 1.45;
}

.disabled-button {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 4px solid #1f0d03;
  border-radius: 13px;
  background: linear-gradient(#777, #444);
  color: #eaeaea;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: not-allowed;
  opacity: 0.78;
}

.code-panel {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border: 3px solid rgba(185, 251, 255, 0.55);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.42);
}

.code-panel code {
  color: #b9fbff;
  font-family: "Courier New", monospace;
  font-weight: 900;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .weather-hero,
  .dashboard-grid,
  .content-grid,
  .runner-backtest-grid,
  .warning-strip {
    grid-template-columns: 1fr;
  }

  .weather-page-shell {
    padding-inline: 1rem;
  }
}

@media (max-width: 720px) {
  .weather-page-shell {
    padding-inline: 0.75rem;
  }

  .weather-hero,
  .dashboard-card,
  .strategy-card,
  .architecture-card,
  .runner-card,
  .backtest-card {
    border-width: 4px;
    border-radius: 20px;
  }

  .weather-hero h1 {
    font-size: clamp(3rem, 16vw, 4.6rem);
  }

  .console-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .console-row strong {
    text-align: left;
  }

  .weather-result-metrics {
    grid-template-columns: 1fr;
  }
}

.weather-submit {
  width: 100%;
  cursor: pointer;
}

.weather-submit:hover,
.weather-submit:focus-visible {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.alert-output {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding: 1rem;
  border: 3px solid rgba(185, 251, 255, 0.55);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.36);
  color: #d9ffff;
  font-weight: 900;
  line-height: 1.45;
}

.alert-output strong {
  color: #ffec99;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.weather-result-card {
  display: grid;
  gap: 0.75rem;
}

.weather-result-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.weather-result-metrics div {
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(185, 251, 255, 0.28);
  border-radius: 12px;
  background: rgba(5, 34, 48, 0.62);
}

.weather-result-metrics span,
.weather-result-metrics b {
  display: block;
}

.weather-result-metrics span {
  color: #a9f7ff;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weather-result-metrics b {
  margin-top: 0.2rem;
  color: #fff6d8;
  font-size: 1rem;
}

.status-positive {
  color: #0c5f24;
}

.status-neutral {
  color: #7a310c;
}

.primary-button:hover,
.secondary-button:hover,
.dock-card a:hover,
.primary-button:focus-visible,
.secondary-button:focus-visible,
.dock-card a:focus-visible,
.nav-panel a:focus-visible {
  filter: brightness(1.08);
  outline: 3px solid #fff3cf;
  outline-offset: 3px;
  transform: translateY(-1px);
}

.brand-logo:focus-visible {
  border-radius: 18px;
  outline: 4px solid #fff3cf;
  outline-offset: 6px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-150%);
  padding: 0.65rem 0.9rem;
  border: 4px solid #1f0d03;
  border-radius: 999px;
  background: #fff3cf;
  color: #1f0d03;
  font-weight: 950;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.trust-row span {
  border: 3px solid rgba(31, 13, 3, 0.34);
  border-radius: 999px;
  padding: 0.46rem 0.72rem;
  background: rgba(255, 255, 255, 0.42);
  color: #4b1d06;
  font-size: clamp(0.78rem, 0.82vw, 0.9rem);
  font-weight: 950;
  letter-spacing: 0.025em;
  line-height: 1.15;
  text-transform: none;
}

.mission-panel {
  position: relative;
  z-index: 34;
  width: 100%;
  margin: 0;
  padding: clamp(1.15rem, 2vw, 1.65rem);
  border: 4px solid rgba(31, 13, 3, 0.38);
  border-radius: 24px;
  background: rgba(6, 76, 126, 0.3);
  box-shadow:
    inset 0 0 0 3px rgba(255, 243, 207, 0.16),
    0 10px 26px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.mission-panel .eyebrow {
  margin-bottom: 0.35rem;
  color: #ffcf62;
  text-shadow: 2px 2px 0 rgba(31, 13, 3, 0.55);
}

.mission-panel h2 {
  max-width: 920px;
  margin: 0 0 1rem;
  color: #fff3cf;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(2rem, 3.1vw, 3.6rem);
  letter-spacing: 0.018em;
  line-height: 1.02;
  text-shadow: 4px 4px 0 rgba(31, 13, 3, 0.72);
  text-transform: uppercase;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.mission-grid article {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  min-height: 118px;
  padding: 1rem;
  border: 4px solid #1f0d03;
  border-radius: 18px;
  background: linear-gradient(#fff1c9, #ffd88a);
  box-shadow: 0 5px 0 #4b1d06;
}

.mission-grid strong {
  color: #9d3210;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(1.2rem, 1.35vw, 1.5rem);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.mission-grid span {
  color: #1f0d03;
  font-weight: 900;
  line-height: 1.38;
}

@media (max-width: 820px) {
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .mission-panel h2 {
    font-size: clamp(1.9rem, 8vw, 3rem);
  }
}

/* Lab Pass, community, and trust pages */

.lab-page-sky {
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 244, 220, 0.32), transparent 20%),
    radial-gradient(circle at 82% 18%, rgba(255, 205, 91, 0.24), transparent 22%),
    linear-gradient(180deg, #056c9f 0%, #0b91d0 46%, #45b8d9 100%);
}

.lab-page-shell {
  position: relative;
  z-index: 35;
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  width: min(100%, 1300px);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.6rem) 1.6rem;
}

.lab-hero {
  display: grid;
  gap: 0.9rem;
  padding: clamp(1.25rem, 3vw, 2.6rem);
}

.lab-hero h1,
.lab-info-card h2,
.suggestion-form-card h2,
.roadmap-card h2,
.legal-stack h2,
.lab-section-heading h2 {
  font-family: Impact, "Anton", system-ui, sans-serif;
  letter-spacing: 0.035em;
  line-height: 0.98;
  text-transform: uppercase;
}

.lab-hero h1 {
  max-width: 900px;
  color: #fff4d0;
  font-size: clamp(3.4rem, 7vw, 7.8rem);
  text-shadow: 4px 4px 0 #1f0d03;
}

.lab-price,
.checkout-note,
.lab-page-copy,
.local-prototype-note,
.legal-stack p {
  max-width: 68rem;
  color: #fff5d9;
  font-weight: 900;
  line-height: 1.48;
}

.lab-price {
  font-size: clamp(1.15rem, 2vw, 1.7rem);
}

.lab-price strong,
.checkout-note {
  color: #ffec99;
}

.checkout-note,
.local-prototype-note {
  width: fit-content;
  padding: 0.75rem 0.9rem;
  border: 3px solid #ffbd42;
  border-radius: 14px;
  background: rgba(120, 52, 7, 0.72);
}

.lab-info-grid,
.community-grid {
  display: grid;
  gap: clamp(0.9rem, 1.6vw, 1.25rem);
}

.lab-info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-grid {
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.lab-info-card,
.suggestion-form-card,
.roadmap-card,
.legal-stack .dashboard-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.lab-info-card h2,
.suggestion-form-card h2,
.roadmap-card h2,
.legal-stack h2 {
  color: #1b0a02;
  font-size: clamp(1.8rem, 2.4vw, 2.8rem);
}

.lab-list,
.legal-stack {
  display: grid;
  gap: 0.7rem;
}

.lab-list {
  padding-left: 1.2rem;
  color: #1f0d03;
  font-weight: 900;
  line-height: 1.38;
}

.lab-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lab-section-heading h2 {
  color: #fff3cf;
  font-size: clamp(2.2rem, 4vw, 4.4rem);
  text-shadow: 4px 4px 0 rgba(31, 13, 3, 0.72);
}

.spin-results,
.favorites-list,
.roadmap-list {
  display: grid;
  gap: 0.9rem;
}

.spin-results,
.favorites-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lab-result-card,
.roadmap-item {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
  padding: 1rem;
  border: 4px solid #1f0d03;
  border-radius: 18px;
  background: linear-gradient(#fff1c9, #ffd88a);
  box-shadow: 0 5px 0 #4b1d06;
}

.lab-result-card h3,
.roadmap-item h3 {
  color: #1b0a02;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: clamp(1.45rem, 1.8vw, 2.05rem);
  line-height: 1;
  text-transform: uppercase;
}

.lab-result-card p,
.roadmap-item p,
.empty-note {
  color: #1f0d03;
  font-weight: 900;
  line-height: 1.38;
}

.lab-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.status-pill,
.category-pill,
.roadmap-label {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.32rem 0.55rem;
  border: 2px solid rgba(31, 13, 3, 0.45);
  border-radius: 999px;
  color: #4b1d06;
  background: rgba(255, 245, 217, 0.72);
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.category-pill {
  background: #d6fbff;
}

.why-line {
  border-left: 4px solid #9d3210;
  padding-left: 0.7rem;
}

.lab-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: auto;
}

.lab-card-actions .primary-button,
.lab-card-actions .secondary-button,
.roadmap-item .primary-button,
.lab-section-heading .primary-button,
.lab-section-heading .secondary-button {
  min-height: 2.45rem;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
}

.community-form {
  display: grid;
  gap: 0.8rem;
}

.community-form label {
  display: grid;
  gap: 0.35rem;
  color: #1f0d03;
  font-weight: 900;
}

.community-form input,
.community-form select,
.community-form textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 3px solid #1f0d03;
  border-radius: 12px;
  background: #fffaf0;
  color: #1f0d03;
  font: 900 0.95rem "Trebuchet MS", system-ui, sans-serif;
}

.roadmap-item {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.roadmap-item-body {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.legal-page .lab-hero {
  max-width: 980px;
}

.legal-stack .dashboard-card {
  max-width: 980px;
}

.legal-stack p {
  color: #1f0d03;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.footer-links a {
  color: #fff1c9;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #ffbd42;
  outline: 2px solid #ffbd42;
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .lab-info-grid,
  .community-grid,
  .spin-results,
  .favorites-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .lab-page-shell {
    padding-inline: 0.75rem;
  }

  .lab-hero h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .lab-info-grid,
  .community-grid,
  .spin-results,
  .favorites-list {
    grid-template-columns: 1fr;
  }

  .lab-section-heading,
  .roadmap-item {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .lab-section-heading .primary-button,
  .lab-section-heading .secondary-button,
  .roadmap-item .primary-button {
    width: 100%;
  }

  .footer-links {
    width: 100%;
  }
}

/* Ballzatram newspaper front page */

.newspaper-home {
  gap: clamp(1rem, 2vw, 1.55rem);
}

.paper-masthead {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, clamp(340px, 32vw, 500px));
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: center;
}

.paper-masthead__copy {
  position: relative;
  z-index: 30;
  display: grid;
  gap: 0.8rem;
  min-width: 0;
  padding: clamp(1.25rem, 2.4vw, 2.2rem);
  border: 5px solid #1f0d03;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(5, 137, 209, 0.11) 0 8px, transparent 8px calc(100% - 8px), rgba(5, 137, 209, 0.11) calc(100% - 8px)),
    radial-gradient(circle at 82% 14%, rgba(255, 229, 151, 0.72), transparent 24%),
    linear-gradient(#fff4d4, #ffe1a3);
  box-shadow:
    8px 9px 0 rgba(44, 16, 3, 0.85),
    0 18px 32px rgba(0, 0, 0, 0.28);
}

.paper-nameplate {
  margin: 0;
  max-width: min(100%, 680px);
  line-height: 1;
}

.paper-nameplate img {
  display: block;
  width: min(100%, 620px);
  height: auto;
  transform: rotate(-1deg);
  filter:
    drop-shadow(0 4px 0 #1f0d03)
    drop-shadow(0 10px 12px rgba(0, 0, 0, 0.24));
}

.paper-subtitle {
  max-width: 58rem;
  color: #1f0d03;
  font-size: clamp(1.15rem, 1.8vw, 1.75rem);
  font-weight: 950;
  line-height: 1.22;
}

.issue-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-block: 0.4rem;
  border-block: 3px solid rgba(31, 13, 3, 0.58);
}

.issue-strip span,
.dispatch-stamp,
.dispatch-label,
.archive-stamp,
.archive-labels span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.8rem;
  border: 2px solid rgba(31, 13, 3, 0.42);
  border-radius: 999px;
  padding: 0.32rem 0.58rem;
  background: rgba(255, 255, 255, 0.52);
  color: #4b1d06;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.paper-rocketeer {
  align-self: center;
}

.editorial-standards {
  background:
    linear-gradient(135deg, rgba(5, 137, 209, 0.42), rgba(255, 189, 66, 0.18)),
    rgba(6, 76, 126, 0.34);
}

.front-page-section,
.archive-section {
  display: grid;
  gap: 0.9rem;
}

.front-page-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.35vw, 1.1rem);
  align-items: stretch;
}

.lead-dispatch,
.classified-note,
.dispatch-card,
.archive-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 4px solid #1f0d03;
  border-radius: 16px;
  box-shadow:
    0 6px 0 #4b1d06,
    0 12px 22px rgba(0, 0, 0, 0.22);
}

.lead-dispatch,
.classified-note {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: clamp(1rem, 1.8vw, 1.4rem);
}

.lead-dispatch {
  grid-column: span 7;
  min-height: 250px;
  background:
    repeating-linear-gradient(90deg, rgba(5, 137, 209, 0.08) 0 2px, transparent 2px 34px),
    radial-gradient(circle at 80% 12%, rgba(255, 234, 160, 0.55), transparent 22%),
    linear-gradient(#fff3cf, #ffd98a);
}

.classified-note {
  grid-column: span 5;
  min-height: 250px;
  background:
    radial-gradient(circle at 72% 14%, rgba(183, 248, 255, 0.52), transparent 24%),
    linear-gradient(#d6fbff, #8fe1ec);
}

.lead-dispatch h2,
.classified-note h3,
.dispatch-card h2,
.dispatch-card h3,
.archive-card h3 {
  margin: 0;
  color: #1b0a02;
  font-family: Impact, "Anton", system-ui, sans-serif;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.lead-dispatch h2 {
  max-width: 12ch;
  font-size: clamp(3rem, 5.6vw, 6.1rem);
}

.classified-note h3 {
  font-size: clamp(2.1rem, 3.4vw, 4rem);
}

.lead-dispatch p,
.classified-note p,
.dispatch-card p,
.archive-card p {
  margin: 0;
  color: #1f0d03;
  font-weight: 900;
  line-height: 1.42;
}

.dispatch-card {
  grid-column: span 4;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.72rem;
  padding: clamp(1rem, 1.45vw, 1.2rem);
  color: #1f0d03;
  text-decoration: none;
}

.dispatch-card::before,
.archive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), transparent 34%),
    repeating-linear-gradient(135deg, rgba(90, 33, 8, 0.05) 0 1px, transparent 1px 10px);
  pointer-events: none;
}

.dispatch-card > *,
.archive-card > * {
  position: relative;
  z-index: 1;
}

.dispatch-card__topline,
.archive-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dispatch-card h2,
.dispatch-card h3 {
  font-size: clamp(2rem, 2.4vw, 3rem);
}

.dispatch-card .byline {
  border-left: 5px solid currentColor;
  padding-left: 0.65rem;
  color: #6d2a08;
  font-size: 0.9rem;
}

.dispatch-card a,
.dispatch-card b,
.archive-card a,
.archive-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: fit-content;
  min-height: 2.55rem;
  margin-top: auto;
  border: 3px solid #1f0d03;
  border-radius: 10px;
  padding: 0.58rem 0.82rem;
  background: linear-gradient(#f8c85a, #e8921d);
  color: #1f0d03;
  font-family: Impact, "Anton", system-ui, sans-serif;
  font-size: 0.86rem;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 4px 0 #4b1d06;
}

.dispatch-card b,
.archive-card b {
  font-weight: 400;
}

.dispatch-card b i {
  font-style: normal;
}

.dispatch-card--parcel {
  border-color: #203812;
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 229, 151, 0.4), transparent 24%),
    linear-gradient(145deg, #d8f2b6 0%, #8cbf61 48%, #34542a 100%);
}

.dispatch-card--macro {
  border-color: #123047;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.68), transparent 18%),
    linear-gradient(145deg, #e7fbf7 0%, #9bd4df 48%, #426b86 100%);
}

.dispatch-card--stoney {
  border-color: #24143a;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 237, 180, 0.38), transparent 22%),
    linear-gradient(145deg, #fff1c9 0%, #f0a12c 42%, #7a310c 100%);
}

.dispatch-card--stoney h2,
.dispatch-card--stoney h3 {
  color: #1f0d03;
}

.dispatch-card:hover,
.dispatch-card:focus-visible,
.archive-card:hover,
.archive-card:focus-visible {
  filter: brightness(1.04);
  outline: 3px solid #fff3cf;
  outline-offset: 3px;
  transform: translateY(-2px);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 1.35vw, 1.1rem);
}

.archive-card {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: clamp(0.95rem, 1.35vw, 1.15rem);
  color: #1f0d03;
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(5, 137, 209, 0.08) 0 7px, transparent 7px calc(100% - 7px), rgba(5, 137, 209, 0.08) calc(100% - 7px)),
    linear-gradient(#fff0c3, #ffe3a8);
}

.archive-card h3 {
  font-size: clamp(1.75rem, 2.1vw, 2.55rem);
}

.archive-card--manuscript {
  background:
    linear-gradient(90deg, rgba(90, 29, 16, 0.22) 0 9px, transparent 9px calc(100% - 9px), rgba(90, 29, 16, 0.2) calc(100% - 9px)),
    url("assets/ballzatram.png") 112% 105% / 140px auto no-repeat,
    linear-gradient(#f0ddb2, #d4ac70);
}

.archive-card--arcade,
.archive-card--strategy {
  background:
    radial-gradient(circle at 80% 14%, rgba(255, 213, 94, 0.44), transparent 22%),
    linear-gradient(145deg, #ffe1a3 0%, #f0a12c 48%, #8f2b1d 100%);
}

.archive-card--policy {
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.58), transparent 18%),
    linear-gradient(145deg, #d9e4ff 0%, #8bb7e6 48%, #18415d 100%);
}

.archive-card--weather {
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.72), transparent 18%),
    linear-gradient(145deg, #e7fbf7 0%, #9bd4df 48%, #426b86 100%);
}

.archive-card--edit {
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 237, 180, 0.38), transparent 22%),
    linear-gradient(145deg, #c9b6ff 0%, #7c3f9d 46%, #1b1026 100%);
}

.archive-card--edit h3,
.archive-card--edit p,
.archive-card--edit .archive-stamp,
.archive-card--edit .archive-labels span {
  color: #fff2c7;
}

.archive-card--edit .archive-stamp,
.archive-card--edit .archive-labels span {
  border-color: rgba(255, 242, 199, 0.42);
  background: rgba(31, 13, 3, 0.34);
}

@media (max-width: 1100px) {
  .paper-masthead,
  .front-page-grid,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lead-dispatch,
  .classified-note,
  .dispatch-card {
    grid-column: auto;
  }

  .paper-rocketeer {
    justify-self: center;
    width: min(62vw, 420px);
  }
}

@media (max-width: 720px) {
  .paper-masthead,
  .front-page-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .paper-masthead__copy {
    border-width: 4px;
    border-radius: 18px;
    padding: 1rem;
    box-shadow:
      5px 6px 0 rgba(44, 16, 3, 0.85),
      0 14px 24px rgba(0, 0, 0, 0.24);
  }

  .paper-subtitle {
    font-size: 1.05rem;
  }

  .issue-strip {
    border-block-width: 2px;
  }

  .lead-dispatch,
  .classified-note,
  .dispatch-card,
  .archive-card {
    min-height: auto;
    border-width: 4px;
    border-radius: 14px;
  }

  .lead-dispatch h2 {
    font-size: clamp(2.5rem, 13vw, 4.2rem);
  }

  .dispatch-card a,
  .archive-card a,
  .dispatch-card b,
  .archive-card b {
    width: 100%;
  }
}
