:root {
  --ink: #12152b;
  --navy: #101a59;
  --blue: #1749d1;
  --cyan: #25d8e8;
  --paper: #fffbea;
  --cream: #f3edcf;
  --red: #e93639;
  --yellow: #ffe42e;
  --shadow: #5b6685;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background-color: #aebdc5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 1px, transparent 1px),
    repeating-linear-gradient(135deg, #aebdc5 0 8px, #a7b5be 8px 16px);
  background-size: 16px 16px, 16px 16px, auto;
}

a {
  color: #053cc7;
}

a:hover {
  color: #df202b;
}

a:focus-visible {
  outline: 3px solid #ff2da1;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 12px;
  color: #fff;
  background: #000;
  transform: translateY(-150%);
}

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

.dev-environment-banner {
  position: sticky;
  z-index: 90;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 48px;
  padding: 8px 16px;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-shadow: 2px 2px 0 #000;
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    repeating-linear-gradient(135deg, #ffe42e 0 18px, #000 18px 36px);
  box-shadow: 0 4px 0 #ff2da1;
}

.dev-environment-banner[hidden] {
  display: none !important;
}

.dev-environment-banner strong {
  padding: 3px 9px;
  color: #000;
  text-shadow: none;
  border: 2px solid #fff;
  background: #ffe42e;
  box-shadow: 3px 3px 0 #ff2da1;
}

.page-shell {
  width: min(100% - 24px, 1040px);
  margin: 24px auto;
  border: 3px solid var(--navy);
  background: var(--paper);
  box-shadow: 9px 9px 0 rgba(16, 26, 89, 0.38);
}

.utility-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 5px 10px;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--navy);
}

.utility-bar span:first-child {
  color: #5aff82;
}

.masthead {
  position: relative;
  overflow: hidden;
  padding: 22px 20px 18px;
  text-align: center;
  border-bottom: 5px double var(--navy);
  background:
    radial-gradient(circle at 12% 30%, var(--yellow) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 65%, #ff4ea7 0 4px, transparent 5px),
    repeating-linear-gradient(0deg, #b9eef1 0 3px, #d9ffff 3px 6px);
}

.masthead::before,
.masthead::after {
  position: absolute;
  top: 14px;
  color: var(--red);
  font: 700 2.8rem/1 Georgia, serif;
  content: "✦";
  transform: rotate(12deg);
}

.masthead::before {
  left: 8%;
}

.masthead::after {
  right: 8%;
  transform: rotate(-12deg);
}

.masthead-kicker,
.masthead-subtitle {
  margin: 0;
  color: var(--navy);
  font-family: "Courier New", monospace;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.masthead h1 {
  margin: 2px 0 0;
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 6.4rem);
  font-style: italic;
  line-height: 0.95;
  letter-spacing: -0.08em;
  text-shadow:
    3px 3px 0 var(--yellow),
    6px 6px 0 var(--navy);
}

.masthead-subtitle {
  margin-top: 12px;
  letter-spacing: 0.34em;
}

.main-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 3px solid var(--navy);
  background: #fff;
}

.main-nav a {
  padding: 9px 5px;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-right: 1px solid #fff;
  background: var(--blue);
}

.main-nav a:last-child {
  border-right: 0;
}

.main-nav a:hover {
  color: var(--navy);
  background: var(--yellow);
}

.ticker {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--navy);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  background: #fff;
}

.ticker-label {
  flex: 0 0 auto;
  padding: 7px 10px;
  color: #fff;
  font-weight: 700;
  background: var(--red);
}

.ticker p {
  margin: 0;
  padding: 7px 12px;
  overflow: hidden;
  white-space: nowrap;
}

.banner-section,
.feature {
  padding: 20px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 11px;
  padding: 5px 8px;
  color: #fff;
  border: 2px solid var(--navy);
  background: var(--navy);
  box-shadow: 3px 3px 0 var(--cyan);
}

.section-heading--red {
  background: var(--red);
  box-shadow: 3px 3px 0 var(--yellow);
}

.section-heading h2 {
  margin: 0;
  font: 700 1rem/1.2 "Courier New", monospace;
}

.section-heading span {
  font-size: 0.72rem;
}

.banner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.web-banner {
  position: relative;
  display: flex;
  min-height: 92px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 12px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  border: 3px outset #d7d7d7;
  box-shadow: 3px 3px 0 rgba(18, 21, 43, 0.35);
}

.web-banner::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  z-index: 1;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.1) 3px 4px);
}

.web-banner:hover {
  color: #fff;
  filter: saturate(1.35) brightness(1.08);
  transform: translate(-1px, -1px);
}

.web-banner strong,
.web-banner small,
.web-banner span {
  position: relative;
  z-index: 2;
}

.web-banner--image::before {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 1;
  background: linear-gradient(rgba(3, 6, 33, 0.12), rgba(3, 6, 33, 0.72));
}

.banner-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.web-banner strong {
  font: 900 1.25rem/1 "Arial Black", Impact, sans-serif;
  letter-spacing: -0.04em;
  text-shadow: 2px 2px 0 #000;
}

.web-banner small {
  margin-top: 5px;
  font: 700 0.64rem/1.2 "Courier New", monospace;
  letter-spacing: 0.06em;
}

.banner-tag {
  position: absolute !important;
  top: 3px;
  right: 5px;
  color: var(--yellow);
  font: 700 0.64rem/1 "Courier New", monospace;
  transform: rotate(5deg);
}

.banner-neocities {
  background: linear-gradient(135deg, #ff38a2 0 40%, #6c26de 40% 65%, #1ac8e5 65%);
}

.banner-archive {
  color: #111;
  background: repeating-linear-gradient(90deg, #ffd831 0 14px, #fff5b3 14px 28px);
}

.banner-archive:hover {
  color: #111;
}

.banner-archive strong {
  text-shadow: 2px 2px 0 #fff;
}

.banner-wikipedia {
  background: linear-gradient(#e9e9e9, #858585);
}

.banner-symbol {
  position: absolute !important;
  left: 12px;
  color: #111;
  font: 700 3.2rem/1 Georgia, serif;
  opacity: 0.3;
}

.banner-space {
  background-color: #06164e;
  background-image: radial-gradient(#fff 1px, transparent 1px);
  background-size: 13px 13px;
}

.planet {
  position: absolute !important;
  z-index: 2 !important;
  top: 8px;
  left: 12px;
  width: 28px;
  height: 28px;
  border: 3px solid #ff4ca0;
  border-radius: 50%;
  background: #39dded;
  box-shadow: 9px 4px 0 -6px #ffe42e;
}

.banner-cameron {
  background: linear-gradient(135deg, #107154 0 33%, #ff8e2d 33% 66%, #8b1bc9 66%);
}

.banner-museum {
  color: #001e9b;
  background: #eaf3ff;
}

.banner-museum:hover {
  color: #001e9b;
}

.banner-museum strong {
  text-shadow: 2px 2px 0 #ffc928;
}

.feature {
  padding-top: 4px;
}

.wiki-layout {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: start;
}

.contents-box,
.info-card {
  border: 1px solid #707070;
  background: var(--cream);
  box-shadow: 3px 3px 0 #c7c1a8;
}

.contents-box {
  padding: 12px;
  font-family: "Times New Roman", serif;
  font-size: 0.86rem;
}

.contents-box h2 {
  margin: 0 0 7px;
  padding-bottom: 5px;
  font-size: 1rem;
  border-bottom: 1px solid #777;
}

.contents-box ol {
  margin: 0;
  padding-left: 22px;
}

.contents-box li {
  margin: 6px 0;
}

.contents-note {
  margin-top: 14px;
  padding: 8px;
  color: #fff;
  font-family: "Courier New", monospace;
  font-size: 0.68rem;
  background: var(--navy);
}

.contents-note p {
  margin: 6px 0 0;
  line-height: 1.4;
}

.article {
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.98rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.article .eyebrow {
  margin: 0;
  color: var(--red);
  font: 700 0.68rem/1 "Courier New", monospace;
  letter-spacing: 0.13em;
}

.article h2 {
  margin: 3px 0 0;
  padding-bottom: 5px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  border-bottom: 4px double var(--ink);
}

.article-meta {
  margin: 5px 0 20px;
  color: #666;
  font: 0.7rem/1.4 Arial, sans-serif;
}

.article-hero {
  margin: 0 0 20px;
  padding: 5px;
  border: 1px solid #6b6b6b;
  background: #e8e2c9;
  box-shadow: 4px 4px 0 #b9b197;
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 330px;
  object-fit: cover;
  border: 1px solid #222;
}

.article-hero figcaption {
  padding: 6px 4px 1px;
  color: #555;
  font: 0.68rem/1.4 "Courier New", monospace;
  text-align: center;
}

.article .lead::first-letter {
  float: left;
  margin: 8px 7px 0 0;
  color: var(--red);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 0.65;
}

.article h3 {
  margin: 25px 0 5px;
  padding: 4px 7px;
  font-size: 1.2rem;
  line-height: 1.3;
  border-left: 8px solid var(--red);
  border-bottom: 1px solid #7d7d7d;
  background: #f3eddc;
}

.article a {
  font-weight: 700;
  text-underline-offset: 2px;
}

.external-mark {
  padding-left: 2px;
  font-family: Arial, sans-serif;
  font-size: 0.72em;
}

.quote-box {
  margin: 20px 0;
  padding: 12px 15px;
  color: #fff;
  border: 4px double #fff;
  outline: 3px solid var(--navy);
  background: var(--navy);
}

.quote-box span {
  color: var(--yellow);
  font: 700 1rem/1 "Courier New", monospace;
}

.quote-box p {
  margin: 5px 0 0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-top: 24px;
  padding: 10px;
  border: 2px dotted var(--red);
  background: #fff7bd;
  font: 0.76rem/1.4 "Courier New", monospace;
}

.related-links strong {
  width: 100%;
  color: var(--red);
}

.info-card {
  padding: 7px;
  font-size: 0.76rem;
}

.info-card-title {
  margin: -1px -1px 7px;
  padding: 6px;
  color: #fff;
  font: 700 0.72rem/1 "Courier New", monospace;
  text-align: center;
  background: var(--navy);
}

.pixel-window {
  margin-bottom: 9px;
  border: 2px outset #ddd;
  background: #c8c8c8;
}

.window-bar {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  padding: 3px;
  background: linear-gradient(90deg, #132c99, #3b9be3);
}

.window-bar i {
  display: block;
  width: 9px;
  height: 9px;
  border: 1px outset #fff;
  background: #ddd;
}

.pixel-scene {
  position: relative;
  display: grid;
  min-height: 150px;
  place-items: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(155deg, transparent 0 50%, #174538 51% 63%, transparent 64%),
    linear-gradient(205deg, transparent 0 54%, #2e7a5d 55% 68%, transparent 69%),
    linear-gradient(#5834b8 0 56%, #ff7ea6 57% 67%, #263a86 68%);
}

.pixel-scene::after {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 32px;
  content: "";
  border-top: 4px solid #62eef0;
  background: repeating-linear-gradient(0deg, #123dad 0 3px, #386bef 3px 6px);
}

.pixel-scene strong {
  z-index: 1;
  font: 900 1rem/1.25 "Arial Black", Impact, sans-serif;
  text-shadow: 2px 2px 0 #111;
  transform: rotate(-4deg);
}

.pixel-sun {
  position: absolute;
  top: 17px;
  right: 23px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 228, 46, 0.2);
}

.pixel-star {
  position: absolute;
  color: #fff;
}

.pixel-star--one {
  top: 15px;
  left: 18px;
}

.pixel-star--two {
  top: 47px;
  left: 45px;
}

.info-card dl {
  margin: 0;
  border-top: 1px solid #aaa;
}

.info-card dl div {
  display: grid;
  grid-template-columns: 60px 1fr;
  padding: 6px 3px;
  border-bottom: 1px solid #aaa;
}

.info-card dt {
  font-weight: 700;
}

.info-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #14a735;
}

.info-button {
  display: block;
  margin-top: 9px;
  padding: 7px 5px;
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: 2px outset #eee;
  background: var(--blue);
}

.info-button:hover {
  color: var(--navy);
  background: var(--yellow);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px;
  color: #fff;
  border-top: 5px double #fff;
  font: 0.68rem/1.4 "Courier New", monospace;
  background: var(--navy);
}

.site-footer div {
  display: flex;
  flex-direction: column;
}

.site-footer p {
  margin: 0;
  text-align: center;
}

.site-footer a {
  color: var(--yellow);
  font-weight: 700;
}

@media (max-width: 820px) {
  .banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wiki-layout {
    grid-template-columns: 140px minmax(0, 1fr);
  }

  .info-card {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 10px;
  }

  .info-card-title,
  .info-button {
    grid-column: 1 / -1;
  }

  .pixel-window {
    margin-bottom: 0;
  }
}

@media (max-width: 620px) {
  .dev-environment-banner {
    flex-wrap: wrap;
    gap: 4px 10px;
    min-height: 58px;
    font-size: 0.72rem;
  }

  .dev-environment-banner strong {
    order: 3;
    width: 100%;
  }

  .page-shell {
    width: 100%;
    margin: 0;
    border-width: 0;
    box-shadow: none;
  }

  .utility-bar {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .utility-bar span:nth-child(2) {
    display: none;
  }

  .masthead {
    padding: 24px 10px 18px;
  }

  .masthead::before,
  .masthead::after {
    font-size: 1.7rem;
  }

  .masthead h1 {
    font-size: clamp(2.7rem, 17vw, 4.5rem);
    text-shadow:
      2px 2px 0 var(--yellow),
      4px 4px 0 var(--navy);
  }

  .masthead-subtitle {
    letter-spacing: 0.16em;
  }

  .main-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav a {
    min-height: 40px;
    border-bottom: 1px solid #fff;
  }

  .ticker {
    align-items: center;
  }

  .ticker p {
    white-space: normal;
  }

  .banner-section,
  .feature {
    padding: 15px 12px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .banner-grid,
  .wiki-layout {
    grid-template-columns: 1fr;
  }

  .web-banner {
    min-height: 88px;
  }

  .contents-box {
    order: 1;
  }

  .article {
    order: 2;
  }

  .info-card {
    display: block;
    order: 3;
  }

  .pixel-window {
    margin-bottom: 9px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}
