/* Agent World landing site. Colours: scripts/art/palette.json only (checked by scripts/landing/tests). System fonts, no script. */
:root {
  --c-ink: #2b1b20;
  --c-night: #433040;
  --c-slate: #665866;
  --c-mist: #cfc6bd;
  --c-paper: #f7f1e3;
  --c-grass-d: #3a7a2e;
  --c-grass: #67ab3a;
  --c-grass-l: #a9d65b;
  --c-sand-l: #fae38f;
  --c-ember: #e68834;
  --c-ember-l: #ffa04a;
  --c-water-d: #2c5794;
  --c-glint: #fff7b8;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-paper);
  color: var(--c-ink);
  font: 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-water-d); }
a:focus-visible { outline: 3px solid var(--c-ember); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1em; overflow-wrap: anywhere; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; }
.bar a { display: inline-flex; align-items: center; min-height: 44px; }

/* top bar and footer */
.top { background: var(--c-grass-d); color: var(--c-paper); }
.top a { color: var(--c-paper); }
.brand { font-weight: 700; font-size: 1.125rem; text-decoration: none; }
.langs a[aria-current="page"] { font-weight: 700; text-decoration: none; }
.foot { background: var(--c-night); color: var(--c-mist); margin-top: 3rem; padding: .5rem 0; }
.foot a { color: var(--c-paper); }
.foot .bar { justify-content: center; gap: .25rem 1.5rem; }

/* hero */
.hero { background: var(--c-grass-d); color: var(--c-paper); border-bottom: 4px solid var(--c-ink); padding: 0 0 2rem; }
.hero .wrap { display: grid; gap: 1.5rem; }
.hero h1 { font-size: 2.5rem; margin: 0 0 .25em; }
.hero p { max-width: 38rem; }
.hero .pitch { font-size: 1.25rem; }
.hero .shot { border: 4px solid var(--c-ink); background: var(--c-ink); }
.hero picture { justify-self: center; max-width: 100%; }
.play {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 2rem; margin: .25rem 0 .75rem;
  background: var(--c-ember); color: var(--c-ink);
  font-size: 1.25rem; font-weight: 700; text-decoration: none;
  border: 3px solid var(--c-ink); border-radius: 4px; box-shadow: 0 4px 0 var(--c-ink);
}
.play:hover { background: var(--c-ember-l); }
.play:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--c-ink); }
.hero .fine { font-size: 1rem; color: var(--c-glint); margin: 0; }

/* images of the game are pixel art shown at integer scale where the layout allows */
.shot { image-rendering: pixelated; width: 100%; }

/* feature blocks: each one stands alone, so a block can be removed without touching the others */
.features { display: grid; gap: 2rem; margin: 2.5rem 0 0; }
.feature { background: var(--c-sand-l); border: 3px solid var(--c-ink); border-radius: 4px; padding: 1rem; }
.feature .shot { border: 3px solid var(--c-ink); margin: 0 auto 1rem; max-width: 20rem; }
.feature h2 { font-size: 1.375rem; }
.feature p:last-child { margin-bottom: 0; }

/* beta note, AI line */
.notes { display: grid; gap: 1rem; margin: 2.5rem 0 0; }
.note { background: var(--c-mist); border: 3px solid var(--c-ink); border-radius: 4px; padding: 1rem; }
.note h2 { font-size: 1.25rem; }
.note p:last-child { margin-bottom: 0; }
.note a { color: var(--c-ink); }

/* credits */
.credits { padding-top: 1.5rem; }
.credits .lead { max-width: 44rem; }
.group { margin: 2.5rem 0 0; }
.entry { background: var(--c-sand-l); border: 3px solid var(--c-ink); border-radius: 4px; padding: .75rem 1rem; margin: 0 0 1rem; }
.entry h3 { font-size: 1.125rem; margin: 0 0 .5rem; overflow-wrap: anywhere; }
.entry p { margin: 0 0 .75rem; }
.entry dl { margin: 0; display: grid; gap: .5rem; }
.entry dt { font-size: 1rem; font-weight: 700; }
.entry dd { margin: 0; overflow-wrap: anywhere; }
.badge { display: inline-block; vertical-align: middle; padding: 0 .5rem; background: var(--c-ink); color: var(--c-glint); font-size: 1rem; border-radius: 3px; }
.back { display: inline-flex; align-items: center; min-height: 44px; }

/* legal pages (generated from docs/legal): readable measure, tables stacked on a phone */
.legal { padding-top: 1.5rem; }
.legal > * { max-width: 46rem; }
.legal blockquote { margin: 1rem 0; padding: .5rem 1rem; background: var(--c-mist); border-left: 4px solid var(--c-ink); }
.legal li { margin-bottom: .4rem; }
.clause { margin: 2rem 0 0; }
.clause h2 { font-size: 1.375rem; }
.table table, .table tbody, .table tr, .table td { display: block; }
.table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.table tr { margin: 0 0 1rem; border: 2px solid var(--c-ink); }
.table td { padding: .5rem .75rem; border-bottom: 1px solid var(--c-ink); }
.table td:last-child { border-bottom: 0; }
.table td::before { content: attr(data-label); display: block; font-weight: 700; }
.table th { background: var(--c-sand-l); text-align: left; }

/* not found */
.lost { padding: 2rem 0; }

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; align-items: center; }
  .hero h1 { font-size: 3.25rem; }
  .features { grid-template-columns: 1fr 1fr; }
  .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .notes { grid-template-columns: 1fr 1fr; }
  .entry dl { grid-template-columns: 1fr 1fr; }
  .legal > .table { max-width: none; }
  .table table { display: table; border-collapse: collapse; width: 100%; }
  .table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .table tbody { display: table-row-group; }
  .table tr { display: table-row; margin: 0; border: 0; }
  .table th, .table td { display: table-cell; border: 2px solid var(--c-ink); padding: .5rem; vertical-align: top; }
  .table td:last-child { border-bottom: 2px solid var(--c-ink); }
  .table td::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .play:active { transform: none; }
}
