/* Page-level layout. */

/* Home */
.opening {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 62rem) {
  .opening {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    align-items: start;
  }
}
.claim {
  font-size: var(--step-4);
  font-stretch: 75%;
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.015em;
  max-width: 17ch;
}
.claim span {
  display: block;
}
.claim span + span {
  margin-top: 0.14em;
}
.opening .intro {
  margin-block: 1.5rem 2rem;
  font-size: var(--step-1);
  line-height: 1.4;
  max-width: 46ch;
}

.sequence {
  list-style: none;
  counter-reset: seq;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.sequence li {
  counter-increment: seq;
  border-top: 2px solid var(--ink);
  padding-top: 0.75rem;
}
.sequence li::before {
  content: counter(seq);
  font-family: var(--display);
  font-stretch: 75%;
  font-weight: 800;
  font-size: var(--step-2);
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}
.sequence h3 {
  margin-bottom: 0.35rem;
}

/* Problem and idea pages */
.pagehead {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.pagehead .crumbs {
  font-size: var(--step--1);
  color: var(--ink-soft);
}
.pagehead .goal {
  font-size: var(--step-1);
  line-height: 1.4;
  max-width: 54ch;
}
.standing {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 2px solid var(--ink);
  font-weight: 600;
  max-width: 46ch;
}
.pagehead.opening {
  margin-bottom: 0;
}

.ideahead {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.ideahead .tally b {
  font-size: 2.1rem;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: var(--measure);
}

.rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.rows > li {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 0.3rem;
}
.rows > li:last-child {
  border-bottom: 0;
}
.rows .top {
  display: flex;
  gap: 0.4rem 1rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.panel {
  padding: 1.25rem;
}
.panel + .panel {
  border-top: 1.5px solid var(--ink);
}
.maintainer {
  border-style: dashed;
}

/* How it works */
.doc h2 {
  margin-top: 2.75rem;
  margin-bottom: 0.6rem;
}
.doc ul,
.doc ol {
  max-width: var(--measure);
  padding-left: 1.25rem;
  margin: 0.75rem 0;
}
.doc li + li {
  margin-top: 0.35rem;
}
.doc table {
  border-collapse: collapse;
  margin-top: 1rem;
  width: 100%;
  max-width: 50rem;
}
.doc th,
.doc td {
  text-align: left;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.doc th {
  border-bottom: 1.5px solid var(--ink);
  font-size: var(--step--1);
  color: var(--ink-soft);
}

.flagged {
  color: var(--stamp-red);
  font-weight: 600;
}
