/* Content pages: guides and the topic pages. Tokens and fonts come from /brand.css. */
body { line-height: 1.7; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 8px; }
.lockup { text-decoration: none; }
.lang { color: var(--ink-70); font-size: 0.9rem; text-decoration: none; padding: 10px 4px; }
.lang:hover { color: var(--ink-95); }
.crumbs { margin: 32px 0 0; font-size: 0.85rem; color: var(--ink-50); }
.crumbs a { color: var(--ink-70); }
h1 {
  font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(1.7rem, 4.5vw, 2.3rem); line-height: 1.05; letter-spacing: -0.01em; margin: 12px 0 14px;
  text-wrap: balance;
}
.lede { font-size: 1.1rem; color: var(--ink-85); margin-bottom: 8px; }
.meta { color: var(--ink-50); font-size: 0.85rem; margin-bottom: 28px; }
h2 { font-size: 1.15rem; font-weight: 600; margin: 36px 0 10px; color: var(--ink-95); }
h3 { font-size: 1rem; font-weight: 600; margin: 24px 0 8px; color: var(--ink-95); }
p, li { color: var(--ink-70); margin-bottom: 12px; }
ul, ol { padding-left: 22px; }
strong { color: var(--ink-95); font-weight: 600; }
kbd, code {
  font-family: var(--font-mono); font-size: 0.86em; color: var(--ink-85);
  background: var(--row); border-radius: 6px; padding: 1px 6px;
}
/* Links are ink with an underline: green is a signal, never running text. */
a {
  color: var(--ink-95); text-decoration: underline;
  text-decoration-color: rgb(248 248 248 / 0.45); text-underline-offset: 2px;
  transition: text-decoration-color 200ms var(--ease-settle);
}
a:hover { text-decoration-color: var(--ink-95); }

/* What you would type to Amable: the app's own message bubble. */
.prompt {
  display: inline-block; max-width: 100%; margin: 4px 0 14px; padding: 10px 16px;
  border-radius: 18px; background: #333; color: var(--ink-95); font-size: 0.95rem;
}
.amable {
  border-radius: var(--radius-group); padding: 22px 24px; margin: 28px 0;
}
.amable h2 { margin-top: 0; }
.amable p:last-child { margin-bottom: 0; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 6px; }
.cta a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 9999px;
  font-size: 15px; font-weight: 600; text-decoration: none; white-space: nowrap;
}
.cta .signal { background: var(--signal); color: var(--signal-ink); }
.cta .signal:hover { filter: brightness(1.06); }
.cta .glass-btn { background: var(--glass); box-shadow: var(--shadow-glass); color: var(--ink-85); font-weight: 500; }
.small { color: var(--ink-50); font-size: 0.85rem; }

/* A one-bar step grid (16 sixteenths), for drum patterns. */
.steps16 { margin: 16px 0 8px; overflow-x: auto; }
.steps16 table { border-collapse: separate; border-spacing: 3px; font-size: 0.8rem; }
.steps16 th { color: var(--ink-70); font-weight: 500; text-align: left; padding-right: 10px; white-space: nowrap; }
.steps16 thead th { font-family: var(--font-mono); color: var(--ink-50); font-weight: 400; text-align: center; padding: 0; }
.steps16 td { width: 24px; min-width: 24px; height: 24px; border-radius: 6px; background: var(--row); }
.steps16 td.on { background: var(--ink-85); }
.steps16 td.soft { background: rgb(248 248 248 / 0.4); }
/* The first sixteenth of each beat (1, 5, 9, 13) is numbered brighter. */
.steps16 thead th:nth-child(4n + 2) { color: var(--ink-85); }
@media (max-width: 600px) {
  .steps16 table { border-spacing: 2px; font-size: 0.7rem; }
  .steps16 td { width: 15px; min-width: 15px; height: 20px; border-radius: 4px; }
  .steps16 th { padding-right: 6px; }
  .steps16 thead th { font-size: 0.6rem; }
}
/* 16 cells plus a row label like "Hi-hat ab." have to fit a 360 px phone without scrolling. */
@media (max-width: 400px) {
  .steps16 td { width: 13px; min-width: 13px; }
  .steps16 thead th { font-size: 0.55rem; }
}

.related { list-style: none; padding: 0; }
.related li { margin-bottom: 8px; }
.cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.cards li { margin: 0; }
.cards a { display: block; border-radius: var(--radius-group); padding: 18px 22px; text-decoration: none; }
.cards strong { display: block; margin-bottom: 4px; }
.cards span { color: var(--ink-70); font-size: 0.94rem; }
footer {
  border-top: 1px solid var(--border); padding: 24px 0; margin-top: 48px;
  color: var(--ink-50); font-size: 0.85rem;
}
footer a { color: var(--ink-70); }
