:root {
  --ink: #11151d;
  --paper: #f3f0e7;
  --blue: #1f2d4d;
  --blue-dark: #151f36;
  --orange: #f26a3d;
  --yellow: #f2ca52;
  --grass-dark: #0d3a16;
  --grass: #1c5b25;
  --grass-light: #2c7a31;
  --line: 3px;
}

/* Matrix Sans (SIL OFL 1.1, https://github.com/FriedOrange/MatrixSans),
   self-hosted to keep the site free of external imports. font-display: swap
   renders the Courier fallback immediately if the file is missing or blocked. */
@font-face {
  font-family: "Matrix Sans";
  src: url("assets/fonts/matrix-sans-regular.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Matrix Sans", "Courier New", Courier, monospace;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 4rem 1.25rem;
  text-align: center;
  color: var(--paper);
  /* Pitch-inspired: deep turf fading brighter toward the bottom, with faint
     vertical mow stripes under the usual grid texture. */
  background-color: var(--grass);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 72px, rgba(0, 0, 0, 0.05) 72px 144px),
    linear-gradient(180deg, var(--grass-dark), var(--grass) 55%, var(--grass-light));
  background-size: 24px 24px, 24px 24px, auto, auto;
  border-bottom: 10px solid var(--orange);
}

.brand-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: min(520px, 100%);
  margin-bottom: 1.25rem;
}

.brand-olorion-link {
  display: block;
  width: min(292px, calc(100% - 84px));
}

.brand-olorion {
  width: 100%;
  height: auto;
}

.brand-olorion-link:focus-visible {
  outline: 3px dashed var(--yellow);
  outline-offset: 6px;
}

.brand-round-logo {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.eyebrow,
.section-kicker {
  margin: 0;
  font-weight: bold;
  letter-spacing: 0;
}

.eyebrow {
  color: var(--yellow);
}

.hero-showcase {
  display: grid;
  grid-template-columns: minmax(0, auto) auto;
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  width: min(1160px, 100%);
  margin: 1.5rem 0;
}

.game-logo {
  width: clamp(260px, 42vw, 500px);
}

.ku-square-logo {
  /* Keep the rounded-icon look, but stay at or below ~13%: the 22% radius
     clipped the tops of the outer OLORION letters in the full-bleed art. */
  border-radius: 10%;
  overflow: hidden;
}

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

h1 {
  margin: 0;
  text-align: left;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 6.5rem;
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: 0;
  text-shadow: 7px 7px 0 var(--ink);
}

h1 span {
  color: var(--yellow);
}

.hero-preview {
  position: relative;
  /* Sized against the logo (a clamp-scaled square): 0.4x its width keeps
     the whole case, chrome included, about level with the logo. */
  width: calc(clamp(260px, 42vw, 500px) * 0.4);
  transform: rotate(2deg);
}

/* Imaginary retro handheld: chunky putty-beige slab with a Win95-style
   bevel, square buttons, speaker vents, and a recessed screen. */
.retro-phone {
  position: relative;
  padding: 0.6rem 0.7rem 0.55rem;
  background: linear-gradient(160deg, #e3dccb, #d4ccb8 62%, #c7bea9);
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  box-shadow:
    inset 2px 2px 0 rgba(255, 255, 255, 0.75),
    inset -3px -3px 0 rgba(94, 84, 61, 0.35),
    9px 13px 26px rgba(17, 21, 29, 0.45);
}

.retro-phone-side {
  position: absolute;
  top: 21%;
  right: -8px;
  width: 8px;
  height: 54px;
  background: linear-gradient(90deg, #b9b4a8, #8f8a7f);
  border: 2px solid var(--ink);
  border-left: 0;
  border-radius: 0 4px 4px 0;
}

.retro-phone-top,
.retro-phone-bottom {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.2rem 0.1rem 0.55rem;
}

.retro-phone-bottom {
  padding: 0.55rem 0.1rem 0.15rem;
  justify-content: space-between;
}

/* Single home-button style key, centered on the chin: concave grey circle
   with the faint rounded-square glyph. */
.retro-phone-home {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: radial-gradient(circle at 34% 28%, #cfcaba, #918c81 78%);
  border: 2px solid var(--ink);
  border-radius: 50%;
  box-shadow:
    inset 2px 2px 3px rgba(255, 255, 255, 0.55),
    inset -2px -3px 4px rgba(59, 52, 37, 0.45);
}

.retro-phone-home::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px solid rgba(59, 52, 37, 0.5);
  border-radius: 5px;
}

/* Twin slotted grooves, like the speaker cuts on the case. */
.retro-phone-vents {
  width: 76px;
  height: 15px;
  margin-left: auto;
  background:
    linear-gradient(rgba(59, 52, 37, 0.9), rgba(59, 52, 37, 0.9)) 0 2px / 100% 4px no-repeat,
    linear-gradient(rgba(59, 52, 37, 0.9), rgba(59, 52, 37, 0.9)) 0 10px / 100% 4px no-repeat,
    linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)) 0 6px / 100% 1px no-repeat;
  border-radius: 3px;
}

.retro-phone-bottom .retro-phone-vents {
  margin-left: 0;
}

/* Engraved panel seam running the full width of the case. */
.retro-phone-seam {
  display: block;
  height: 2px;
  margin: 0 -0.7rem 0.35rem;
  background: rgba(94, 84, 61, 0.4);
  border-bottom: 2px solid rgba(255, 255, 255, 0.55);
}

.retro-phone-screen + .retro-phone-seam {
  margin-top: 0.35rem;
  margin-bottom: 0;
}

.retro-phone-label {
  color: #7d7461;
  font-size: 0.55rem;
  font-weight: bold;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.retro-phone-screen {
  padding: 6px;
  background: #17191f;
  border-radius: 6px;
  box-shadow:
    inset 2px 2px 4px rgba(0, 0, 0, 0.65),
    inset -1px -1px 0 rgba(255, 255, 255, 0.16);
}

.retro-phone-screen img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

.hero-preview-tag {
  position: absolute;
  right: -26px;
  bottom: 24px;
  padding: 0.35rem 0.65rem;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0;
  white-space: nowrap;
}

.tagline {
  margin: 1.5rem 0 1.75rem;
  font-size: 1.25rem;
  font-weight: bold;
  text-transform: uppercase;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 1rem;
}

.download-button,
.donate-button {
  display: inline-flex;
  flex-direction: column;
  min-width: 250px;
  padding: 0.75rem 1.25rem 0.8rem;
  color: white;
  background: var(--ink);
  border: var(--line) solid white;
  box-shadow: 7px 7px 0 var(--orange);
  text-decoration: none;
  text-align: left;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.donate-button {
  color: var(--ink);
  background: var(--yellow);
  border-color: white;
}

.download-button:not(.is-disabled):hover,
.download-button:not(.is-disabled):focus-visible,
.donate-button:hover,
.donate-button:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 4px 4px 0 var(--orange);
}

.download-button:focus-visible,
.donate-button:focus-visible {
  outline: 3px dashed var(--yellow);
  outline-offset: 6px;
}

.download-button.is-disabled {
  cursor: not-allowed;
  color: rgba(255, 255, 255, 0.72);
  background: #30343d;
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 7px 7px 0 rgba(242, 106, 61, 0.45);
}

.button-small {
  font-size: 0.72rem;
  line-height: 1;
}

.button-large {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.75rem;
  font-weight: bold;
  line-height: 1.1;
}

.platform-note {
  margin: 1.25rem 0 0;
  font-size: 0.75rem;
  text-transform: uppercase;
}

main {
  overflow: hidden;
}

.intro,
.screenshots,
.features,
.final-callout {
  width: min(1160px, calc(100% - 2rem));
  margin-inline: auto;
}

.intro {
  max-width: 760px;
  padding: 7rem 0 6rem;
  text-align: center;
}

.section-kicker {
  color: var(--orange);
  font-size: 0.8rem;
}

h2 {
  margin: 0.15rem 0 1rem;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 5rem;
  line-height: 1;
  letter-spacing: 0;
}

.intro > p:last-child {
  margin: 0;
  font-size: 1.2rem;
}

.screenshots {
  padding-bottom: 7rem;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: var(--line) solid var(--ink);
}

.section-heading h2 {
  margin-bottom: 0.25rem;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem 1.5rem;
  max-width: 940px;
  margin-inline: auto;
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  height: auto;
  border: var(--line) solid var(--ink);
  box-shadow: 8px 8px 0 var(--orange);
}

figcaption {
  margin-top: 0.9rem;
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: uppercase;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 7rem;
  border: var(--line) solid var(--ink);
  background: white;
  box-shadow: 10px 10px 0 var(--yellow);
}

.features > div {
  padding: 2rem;
}

.features > div + div {
  border-left: var(--line) solid var(--ink);
}

.feature-number {
  color: var(--orange);
  font-weight: bold;
}

h3 {
  margin: 0.25rem 0 0.65rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
}

.features p {
  margin: 0;
  font-size: 0.9rem;
}

.final-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 5rem;
  padding: 2rem;
  color: var(--paper);
  background: var(--orange);
  border: var(--line) solid var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
}

.final-callout img {
  border: 3px solid var(--paper);
}

.final-callout .section-kicker {
  color: var(--yellow);
}

.final-callout h2 {
  margin: 0;
  font-size: 4rem;
}

.download-button.light {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--blue);
}

.download-button.light.is-disabled {
  color: rgba(17, 21, 29, 0.68);
  background: #ded8ca;
  box-shadow: 6px 6px 0 rgba(31, 45, 77, 0.55);
}

.donate-button.light {
  color: white;
  background: var(--blue);
  border-color: var(--ink);
  box-shadow: 6px 6px 0 var(--yellow);
}

.cta-row-compact {
  justify-content: end;
}

.cta-row-compact .download-button,
.cta-row-compact .donate-button {
  min-width: 210px;
}

.donate-hero {
  min-height: 92vh;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 3rem 1.25rem 4rem;
  text-align: center;
  color: var(--paper);
  background-color: var(--blue-dark);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: 10px solid var(--yellow);
}

.back-link {
  margin-bottom: 1.5rem;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: bold;
  letter-spacing: 0;
  text-transform: uppercase;
}

.donate-logo {
  width: clamp(120px, 26vw, 220px);
  margin-bottom: 1.5rem;
}

.donate-hero h1 {
  max-width: 980px;
  margin: 0.4rem 0 1.25rem;
  text-align: center;
  font-size: 5.75rem;
  line-height: 0.88;
}

.donate-lede {
  max-width: 740px;
  margin: 0 0 2rem;
  font-size: 1.2rem;
  font-weight: bold;
}

.donate-button-primary {
  background: var(--orange);
  box-shadow: 7px 7px 0 var(--yellow);
}

.donate-copy {
  width: min(980px, calc(100% - 2rem));
  margin: 6rem auto;
  display: grid;
  gap: 2rem;
}

.donate-copy > div {
  padding-bottom: 2rem;
  border-bottom: var(--line) solid var(--ink);
}

.donate-copy h2 {
  margin-bottom: 0.75rem;
  font-size: 3.75rem;
}

.donate-copy p {
  max-width: 720px;
  margin: 0;
  font-size: 1.15rem;
}

.footer-round-logo {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
}

.footer-round-logo img {
  width: 96px;
  height: 96px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem max(1rem, calc((100% - 1160px) / 2));
  color: var(--paper);
  background: var(--ink);
  font-size: 0.75rem;
  font-weight: bold;
}

footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  color: inherit;
}

@media (max-width: 980px) {
  /* The case slims down with the logo; drop the engraved labels before
     they crowd the vents and home button. */
  .retro-phone-label {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    padding: 2rem 1.25rem 2.5rem;
  }

  .hero-showcase {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 1rem;
    margin: 0.75rem 0;
  }

  .brand-strip {
    gap: 0.75rem;
  }

  .brand-olorion-link {
    width: min(230px, calc(100% - 70px));
  }

  .brand-round-logo {
    width: 56px;
    height: 56px;
  }

  .hero-preview {
    width: min(48vw, 210px);
  }

  h1 {
    text-align: center;
    font-size: 3.75rem;
    line-height: 0.86;
  }

  h2 {
    font-size: 3rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .section-heading {
    display: block;
  }

  .screenshot-grid,
  .features {
    grid-template-columns: 1fr;
  }

  .screenshot-grid {
    justify-items: center;
  }

  figure {
    width: min(100%, 260px);
  }

  .features > div + div {
    border-top: var(--line) solid var(--ink);
    border-left: 0;
  }

  .final-callout {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .final-callout h2 {
    font-size: 2.5rem;
  }

  .donate-hero h1 {
    font-size: 3.2rem;
    line-height: 0.95;
  }

  .donate-lede {
    font-size: 1rem;
  }

  .donate-copy {
    margin: 4rem auto;
  }

  .donate-copy h2 {
    font-size: 2.6rem;
  }

  .donate-copy p {
    font-size: 1rem;
  }

  .cta-row,
  .cta-row-compact {
    width: 100%;
    justify-content: stretch;
  }

  .download-button,
  .donate-button,
  .cta-row-compact .download-button,
  .cta-row-compact .donate-button {
    width: 100%;
    min-width: 0;
  }
}

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

  .download-button,
  .donate-button {
    transition: none;
  }
}
