/* The reading pages: help, about, contact, developers, privacy, terms, the
   restaurant page, the thank-you page and the 404. The kit's editorial look:
   a big serif title, then sections divided by a thin rule rather than boxed
   in. Colours, type and the nav and footer come from site.css. */

html {
  scroll-padding-top: 16px;
}
main {
  max-width: calc(780px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) var(--gutter) clamp(48px, 8vw, 96px);
}

h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 60px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
}
.lede {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.5;
  margin: 0 0 32px;
  max-width: 60ch;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.toc a {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  color: var(--accent-soft-ink);
  background: var(--accent-soft);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
}
.toc a:hover {
  background: var(--accent-hover);
  color: #ffffff;
}
section {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
}
h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 36px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}
h3 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 28px 0 10px;
}
p,
li {
  color: var(--ink-2);
  line-height: 1.55;
}
p {
  margin: 0 0 14px;
}
b,
strong {
  color: var(--ink);
}
main a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
}
main a:hover {
  color: var(--accent);
}
ol,
ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
li {
  margin: 4px 0;
}
dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(150px, max-content) 1fr;
  gap: 0;
}
dt,
dd {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin: 0;
}
dt {
  font-weight: 700;
  color: var(--ink);
  padding-right: 24px;
}
dd {
  color: var(--ink-2);
  line-height: 1.55;
}
dl > :nth-last-child(-n + 2) {
  border-bottom: 0;
}
/* The small mono line above each group of glossary terms. */
.group-label {
  margin: 0;
  grid-column: 1/-1;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--caption);
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--line);
}
.group-label:first-child {
  padding-top: 0;
}
.note {
  font-size: 13px;
  color: var(--ink-3);
}
.faq dt {
  grid-column: 1/-1;
  padding-bottom: 2px;
  border-bottom: 0;
}
.faq dd {
  grid-column: 1/-1;
  padding-top: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: var(--radius-pill);
  padding: 14px 22px;
}
main a.btn {
  color: var(--accent-ink);
}
.btn:hover,
main a.btn:hover {
  background: var(--accent-hover);
  color: #ffffff;
}
@media (max-width: 560px) {
  dl {
    grid-template-columns: 1fr;
  }
  dt {
    padding-bottom: 0;
    border-bottom: 0;
  }
  dd {
    padding-top: 4px;
  }
}
/* Tables of figures (the restaurant page): scroll sideways on a narrow
   screen rather than squeezing the columns. */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th,
.data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table tr:last-child td {
  border-bottom: 0;
}
.data-table thead th {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--caption);
  border-bottom-color: var(--line-strong);
}
.data-table td {
  font-variant-numeric: tabular-nums;
}
/* Example requests (the developers page): scroll sideways on a narrow screen
   rather than wrapping a command. */
.code-block {
  overflow-x: auto;
  margin: 16px 0;
  padding: 16px 18px;
  background: var(--card-2);
  border-radius: var(--radius-control);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre;
  color: var(--ink);
}
