/* Pocket Scoreboard — one stylesheet for the parent site and every app page.
   Deliberately close to Dartboard's Oche palette: the apps and the site that
   sells them should look like the same hand made both. */

:root {
  --ground: #12161A;
  --raise:  #1A2026;
  --card:   #212932;
  --edge:   rgba(240, 237, 228, 0.10);
  --ink:    #F0EDE4;
  --muted:  rgba(240, 237, 228, 0.66);
  --faint:  rgba(240, 237, 228, 0.44);
  --brass:  #CFA349;
  --good:   #63A96A;

  /* one accent per app, so the family reads as a family with distinct members */
  --darts:  #2F7A4F;
  --corn:   #B3652C;
  --yard:   #4E7A3A;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 54rem; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 44rem; }

/* ---- masthead ---------------------------------------------------------- */

header.site {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.wordmark {
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.26em;
  color: var(--brass);
  margin: 0 0 .5rem;
  text-indent: 0.26em;
  text-transform: uppercase;
}

.wordmark a { color: inherit; text-decoration: none; }

.tagline {
  color: var(--muted);
  margin: 0;
  font-size: 1.02rem;
}

/* ---- sections ---------------------------------------------------------- */

h2 {
  font-size: .74rem;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--faint);
  font-weight: 700;
  margin: 3rem 0 1rem;
}

h3 { font-size: 1.06rem; margin: 0 0 .45rem; color: var(--brass); }

p { margin: 0 0 .85rem; color: rgba(240, 237, 228, 0.84); }
p:last-child { margin-bottom: 0; }

ul { margin: 0 0 .85rem; padding-left: 1.1rem; color: rgba(240, 237, 228, 0.84); }
li { margin-bottom: .4rem; }

a { color: var(--brass); }

.card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 1.15rem 1.35rem;
  margin-bottom: .8rem;
}

.lede {
  background: var(--raise);
  border-color: transparent;
  font-size: 1.05rem;
}

.pledge { color: var(--good); font-weight: 700; }

/* ---- the app list ------------------------------------------------------ */

.app {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-bottom: .8rem;
  text-decoration: none;
  color: inherit;
}

a.app:hover { border-color: var(--brass); }

.chip {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: var(--darts);
}
.chip.corn { background: var(--corn); }
.chip.yard { background: var(--yard); }

.app .body { flex: 1 1 auto; min-width: 0; }
.app .name { font-weight: 800; font-size: 1.08rem; margin: 0 0 .2rem; color: var(--ink); }
.app .what { color: var(--muted); font-size: .93rem; margin: 0; }

.status {
  flex: 0 0 auto;
  align-self: center;
  font-size: .7rem;
  letter-spacing: .1em;
  font-weight: 800;
  text-transform: uppercase;
  padding: .3rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.status.live { color: var(--ground); background: var(--brass); }
.status.soon { color: var(--faint); border: 1px solid var(--edge); }

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

footer.site {
  margin-top: 3.5rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--edge);
  text-align: center;
  color: var(--faint);
  font-size: .84rem;
}

footer.site a { color: var(--muted); margin: 0 .5rem; }

.back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: .88rem;
  text-decoration: none;
}

@media (max-width: 30rem) {
  .app { flex-wrap: wrap; }
  .status { order: 3; }
}

/* ---- numbered steps ----------------------------------------------------- */

ol.steps { list-style: none; margin: 0 0 .85rem; padding: 0; counter-reset: step; }
ol.steps li {
  position: relative;
  padding-left: 2.3rem;
  margin-bottom: .8rem;
  color: rgba(240, 237, 228, 0.84);
}
ol.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.05rem;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--brass);
  color: var(--ground);
  font-weight: 800;
  font-size: .85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
