/* Intro page: same pasture system as the game (style.css), laid out for reading. */

a.btn {
  display: inline-block;
  text-decoration: none;
  color: inherit;
}
a.btn.primary { color: #fff; width: auto; padding: 12px 22px; }
a.btn.small-cta { padding: 7px 14px; font-size: 15px; }

.nav { display: flex; gap: 18px; margin-right: 8px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- hero */

.about-hero { padding-bottom: 110px; }
.about-hero h1 { max-width: 13ch; }
.about-hero .standoff { margin-bottom: -40px; }
.about-hero .animal { width: clamp(110px, 16vw, 210px); }

.unofficial {
  display: inline-block;
  margin: 0 0 16px;
  padding: 3px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--board);
  font-size: 13px;
  font-weight: 600;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.about-hero ~ .flock .flock-row { transform: translateY(-38px); margin-bottom: -20px; }

/* ---------------------------------------------------------------- reading layout */

main.about {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

main.about .board { grid-column: auto; grid-row: auto; }
main.about .board.wide { grid-column: 1 / -1; }

.about h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.about h3 { font: 600 17px/1.3 var(--body); margin: 18px 0 8px; }
.about p { max-width: 70ch; }
.intro { margin: 0 0 18px; color: var(--muted); }
.note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

/* steps: the five moves of the game */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}
.steps li { counter-increment: step; position: relative; }
.steps img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  image-rendering: pixelated;
  border: 3px solid var(--ink);
  border-radius: 4px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--barn);
  color: #fff;
  border: 3px solid var(--ink);
  border-radius: 50%;
  font: 700 15px var(--body);
}
.steps h3 { margin-top: 12px; }
.steps p { margin: 0; font-size: 15px; }

/* tables */
.traits, .kv { width: 100%; border-collapse: collapse; font-size: 15px; }
.traits th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 500; padding-bottom: 6px; }
.traits td, .kv td { padding: 9px 0; border-top: 1px solid #dfe3d8; vertical-align: top; }
.traits td:first-child, .kv td:first-child { font-weight: 600; padding-right: 16px; white-space: nowrap; }
.kv td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }

/* alpha odds */
.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 70px 1fr 56px; align-items: center; gap: 10px; font-size: 15px; }
.bars i {
  display: block;
  height: 18px;
  width: calc(var(--v) * 1%);
  min-width: 6px;
  background: var(--wolf);
  border: 2px solid var(--ink);
  border-radius: 3px;
}
.bars b { text-align: right; font-variant-numeric: tabular-nums; }

/* where the mint money goes */
.split {
  display: flex;
  border: 3px solid var(--ink);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 4px 4px 0 var(--ink);
}
.split .part { padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.split .part b { font: 700 24px var(--body); }
.split .part span { font-size: 14px; }
.split .pool { background: var(--grass); color: #fff; }
.split .team { background: var(--board); border-left: 3px solid var(--ink); }

/* launch timeline */
.timeline { list-style: none; margin: 6px 0 0; padding: 0; counter-reset: phase; }
.timeline li {
  counter-increment: phase;
  position: relative;
  padding: 0 0 18px 44px;
  border-left: 3px solid var(--ink);
  margin-left: 14px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: counter(phase);
  position: absolute;
  left: -17px;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--board);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font: 700 14px var(--body);
}
.timeline h3 { margin: 2px 0 4px; }
.timeline p { margin: 0; font-size: 15px; }

/* fairness and risks */
.checks, .risks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.checks li, .risks li { position: relative; padding-left: 28px; }
.checks li::before, .risks li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  font: 700 12px var(--body);
  color: #fff;
}
.checks li::before { content: "✓"; background: var(--grass-dark); }
.risks li::before { content: "!"; background: var(--barn); }

/* faq */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.faq details { border-top: 1px solid #dfe3d8; padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font: 700 20px var(--display); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }

.closing { text-align: left; }
.closing p { margin: 0 0 18px; }

/* ---------------------------------------------------------------- footer */

.foot {
  background: var(--ink);
  color: #dfe6ea;
  padding: 32px clamp(16px, 4vw, 40px) 40px;
  display: grid;
  gap: 18px;
}
.foot h3 { margin: 0 0 8px; font: 700 18px var(--display); color: #fff; }
.contracts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.contracts a { color: #ffd98a; word-break: break-all; }
.disclaimer { margin: 0; font-size: 13px; max-width: 90ch; color: #b8c2c9; }

@media (max-width: 960px) {
  .nav { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:last-child { grid-column: 1 / -1; max-width: 50%; }
}

@media (max-width: 860px) {
  main.about { grid-template-columns: minmax(0, 1fr); }
  .numbers, .faq { grid-template-columns: minmax(0, 1fr); }
  .about-hero .standoff { margin: 8px 0 24px; }
}
