:root {
  color-scheme: light;
  --ink: #181915;
  --ink-soft: #4c4d46;
  --ink-faint: #77786f;
  --paper: #f3efe5;
  --paper-bright: #fbf8ef;
  --paper-deep: #ded7c8;
  --line: rgba(24, 25, 21, 0.16);
  --line-strong: rgba(24, 25, 21, 0.38);
  --seal: #b22d26;
  --seal-dark: #7f1f1a;
  --moss: #526146;
  --gold: #9b743c;
  --display: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 8%, rgba(178, 45, 38, 0.08), transparent 30rem),
    radial-gradient(circle at 8% 42%, rgba(82, 97, 70, 0.08), transparent 33rem),
    var(--paper);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  z-index: 20;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image:
    repeating-linear-gradient(93deg, transparent 0 12px, rgba(54, 46, 33, 0.018) 13px 14px),
    repeating-linear-gradient(3deg, transparent 0 17px, rgba(54, 46, 33, 0.012) 18px 19px);
  mix-blend-mode: multiply;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid rgba(178, 45, 38, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: white;
  background: var(--ink);
  transform: translateY(-180%);
}

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

.construction-banner {
  position: relative;
  z-index: 22;
  display: flex;
  min-height: 36px;
  margin: 0;
  padding: 0.55rem 1rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-bottom: 2px solid var(--seal);
  color: rgba(251, 248, 239, 0.78);
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-align: center;
  text-transform: uppercase;
}

.construction-banner strong {
  color: var(--paper-bright);
  font-weight: 750;
}

.construction-banner span {
  color: var(--seal);
}

.site-header,
main,
footer {
  position: relative;
  z-index: 21;
}

.site-header {
  display: flex;
  width: min(1320px, calc(100% - 64px));
  min-height: 86px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font: 700 1.06rem/1 var(--display);
  letter-spacing: 0.22em;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.site-header nav a:hover {
  color: var(--seal);
}

main {
  width: min(1320px, calc(100% - 64px));
  margin: 0 auto;
}

.hero {
  display: grid;
  min-height: min(780px, calc(100vh - 86px));
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 6rem);
  padding: clamp(4rem, 8vw, 8rem) 0;
  border-bottom: 1px solid var(--line-strong);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow,
.section-index,
.game-kind {
  color: var(--seal);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--seal);
  box-shadow: 0 0 0 6px rgba(178, 45, 38, 0.09);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(178, 45, 38, 0.08); }
  50% { box-shadow: 0 0 0 10px rgba(178, 45, 38, 0); }
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  margin-bottom: 1.5rem;
  font: 500 clamp(3.5rem, 7vw, 7.8rem)/0.91 var(--display);
  letter-spacing: -0.055em;
}

h1 em {
  color: var(--seal);
  font-weight: 400;
}

.hero-lede {
  max-width: 640px;
  margin-bottom: 2rem;
  color: var(--ink-soft);
  font: 400 clamp(1.1rem, 1.65vw, 1.42rem)/1.55 var(--display);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid var(--ink);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.button-primary {
  color: var(--paper-bright);
  background: var(--ink);
}

.button-primary:hover {
  background: var(--seal-dark);
  border-color: var(--seal-dark);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.22);
}

.button-secondary:hover {
  color: var(--seal);
  border-color: var(--seal);
}

.proof-strip {
  display: grid;
  max-width: 720px;
  margin: 0;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-strip div {
  display: grid;
  min-height: 74px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--line);
}

.proof-strip div:first-child {
  padding-left: 0;
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip dt {
  color: var(--seal);
  font: 650 0.68rem var(--mono);
}

.proof-strip dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 650;
  line-height: 1.35;
}

.hero-art {
  position: relative;
  isolation: isolate;
  width: min(100%, 660px);
  aspect-ratio: 1;
  justify-self: end;
}

.hero-art::before {
  position: absolute;
  z-index: -3;
  inset: 7%;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.76), rgba(255,255,255,0.12) 58%, transparent 72%);
}

.hero-art > img {
  position: absolute;
  z-index: 2;
  inset: 7%;
  width: 86%;
  height: 86%;
  object-fit: contain;
  filter: drop-shadow(0 28px 34px rgba(31, 25, 18, 0.12));
  animation: settle 8s ease-in-out infinite;
}

@keyframes settle {
  0%, 100% { transform: translateY(0) rotate(-0.4deg); }
  50% { transform: translateY(-10px) rotate(0.5deg); }
}

.brush-ring {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.brush-ring-one {
  inset: 2%;
  border-color: rgba(178, 45, 38, 0.25);
  transform: rotate(13deg) scaleX(0.95);
}

.brush-ring-two {
  inset: 14%;
  border-style: dashed;
  opacity: 0.45;
  transform: rotate(-17deg) scaleY(0.92);
}

.orbit-label {
  position: absolute;
  z-index: 4;
  padding: 0.45rem 0.65rem;
  color: var(--paper-bright);
  background: var(--ink);
  font: 650 0.62rem var(--mono);
  letter-spacing: 0.12em;
  box-shadow: 5px 5px 0 rgba(178, 45, 38, 0.16);
}

.orbit-human { top: 7%; left: 5%; transform: rotate(-5deg); }
.orbit-agent { top: 19%; right: -1%; transform: rotate(4deg); }
.orbit-creator { bottom: 14%; left: 0; transform: rotate(3deg); }
.orbit-observer { right: 2%; bottom: 3%; transform: rotate(-4deg); }

.manifesto {
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) 1fr;
  gap: clamp(2rem, 8vw, 8rem);
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-index {
  margin-bottom: 1rem;
}

.manifesto h2,
.section-heading h2,
.closing h2 {
  margin-bottom: 1.4rem;
  font: 500 clamp(2.2rem, 4.7vw, 4.8rem)/1 var(--display);
  letter-spacing: -0.045em;
}

.manifesto > div p {
  max-width: 740px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font: 400 clamp(1.05rem, 1.8vw, 1.35rem)/1.65 var(--display);
}

.first-table,
.three-views {
  padding: clamp(5rem, 10vw, 9rem) 0;
  border-bottom: 1px solid var(--line-strong);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr);
  gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  margin-bottom: 3rem;
}

.section-heading h2 {
  margin-bottom: 0;
}

.section-heading > p {
  margin-bottom: 0.5rem;
  color: var(--ink-soft);
  font: 400 1rem/1.6 var(--display);
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.game-card {
  position: relative;
  display: grid;
  min-height: 275px;
  grid-template-columns: auto 1fr;
  gap: 1.3rem;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.game-card::after {
  position: absolute;
  right: -2rem;
  bottom: -4rem;
  width: 11rem;
  height: 11rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "";
}

.game-card-featured {
  color: var(--paper-bright);
  background: var(--ink);
}

.game-card-featured::after {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 2rem rgba(178, 45, 38, 0.13);
}

.game-number {
  padding-top: 0.2rem;
  color: var(--seal);
  font: 650 0.72rem var(--mono);
}

.game-card-featured .game-number,
.game-card-featured .game-kind {
  color: #e66c61;
}

.game-card h3 {
  margin-bottom: 0.8rem;
  font: 500 clamp(1.65rem, 3vw, 2.6rem)/1 var(--display);
}

.game-card p:not(.game-kind) {
  max-width: 31rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font: 400 0.95rem/1.55 var(--display);
}

.game-card-featured p:not(.game-kind) {
  color: rgba(251, 248, 239, 0.7);
}

.game-state {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  padding: 0.35rem 0.55rem;
  color: var(--ink-soft);
  border: 1px solid currentColor;
  font: 650 0.58rem var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.game-card-featured .game-state {
  color: rgba(251, 248, 239, 0.72);
}

.section-heading.compact {
  grid-template-columns: 1fr;
}

.view-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.view-grid article {
  min-height: 230px;
  padding: clamp(1.5rem, 3vw, 2.7rem);
  background: var(--paper);
}

.view-grid article > span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  margin-bottom: 3rem;
  place-items: center;
  color: var(--paper-bright);
  background: var(--seal);
  border-radius: 50%;
  font: 500 1.1rem var(--display);
}

.view-grid h3 {
  margin-bottom: 0.6rem;
  font: 500 1.9rem/1 var(--display);
}

.view-grid p {
  max-width: 22rem;
  margin-bottom: 0;
  color: var(--ink-soft);
  font: 400 0.95rem/1.55 var(--display);
}

.closing {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.closing img {
  width: clamp(90px, 10vw, 150px);
  height: auto;
}

.closing h2 {
  margin-bottom: 1rem;
}

.closing div > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font: 400 1rem/1.6 var(--display);
}

.text-link {
  align-self: end;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.text-link:hover {
  color: var(--seal);
  border-color: var(--seal);
}

footer {
  display: grid;
  width: min(1320px, calc(100% - 64px));
  min-height: 120px;
  margin: 0 auto;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-faint);
  font-size: 0.72rem;
}

footer p {
  margin: 0;
}

footer p:last-child {
  justify-self: end;
}

.footer-brand {
  color: var(--ink);
}

.not-found {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 2rem;
}

.not-found main {
  width: min(680px, 100%);
  text-align: center;
}

.not-found img {
  width: 110px;
  height: 110px;
}

.not-found h1 {
  margin: 1.5rem auto 1rem;
  font-size: clamp(3rem, 10vw, 6rem);
}

.not-found p {
  color: var(--ink-soft);
  font: 400 1.1rem/1.6 var(--display);
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-art {
    width: min(660px, 86vw);
    justify-self: center;
    order: -1;
  }

  .manifesto,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .closing {
    grid-template-columns: auto 1fr;
  }

  .closing .text-link {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .construction-banner {
    min-height: 42px;
    padding-inline: 1.25rem;
    flex-wrap: wrap;
    gap: 0.2rem 0.5rem;
    font-size: 0.6rem;
  }

  .site-header,
  main,
  footer {
    width: min(100% - 32px, 1320px);
  }

  .site-header {
    min-height: 72px;
  }

  .site-header nav a:not(:last-child) {
    display: none;
  }

  .hero {
    padding: 3rem 0 5rem;
  }

  .hero-art {
    width: 90vw;
    margin-left: -2vw;
  }

  h1 {
    font-size: clamp(3.15rem, 16vw, 5.4rem);
  }

  .proof-strip,
  .game-grid,
  .view-grid {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    min-height: 58px;
    padding-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .game-card {
    min-height: 235px;
  }

  .view-grid article {
    min-height: 200px;
  }

  .view-grid article > span {
    margin-bottom: 2rem;
  }

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

  .closing img {
    width: 96px;
  }

  .closing .text-link {
    grid-column: auto;
  }

  footer {
    min-height: 150px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 0.7rem;
  }

  footer p:last-child {
    justify-self: start;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
