/* css/notes.css — the Notes index and article pages: a narrow reading column
   under the fixed nav, sharing tokens, rows, buttons, and the footer with the
   home page (styles.css). */

.note {
  padding: clamp(6.5rem, 16vh, 9rem) clamp(1.25rem, 5vw, 2rem) clamp(4rem, 10vh, 6rem);
}

.note .container {
  max-width: 44rem;
}

.notes-list.container {
  max-width: var(--container);
}

.note-head {
  margin-bottom: 2.5rem;
}

.note-head .eyebrow {
  gap: 0.6rem;
}

.note-back {
  color: var(--accent);
  text-decoration: none;
}

.note-back:hover {
  color: var(--ink);
}

.note h1:not(.eyebrow) {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.note-meta {
  display: flex;
  gap: 0.6rem;
  margin: 0;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.note-lede {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.note-body > p,
.note-body > ul {
  font-size: 1.05rem;
  line-height: 1.75;
  text-wrap: pretty;
}

.note-body > p {
  margin: 0 0 1.25rem;
}

.note-body > ul {
  margin: 0 0 1.25rem;
  padding-left: 1.2rem;
}

.note-body li {
  margin-bottom: 0.4rem;
}

.note-body li::marker {
  color: var(--accent);
}

.note-body h2 {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 3rem 0 1rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.note-body h2 .idx {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.06em;
}

.note-body code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.note-body p a {
  color: var(--ink);
  text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent);
  text-underline-offset: 0.2em;
}

.note-body p a:hover {
  color: var(--accent);
}

/* A displayed equation: one line, scrolls sideways on narrow screens. */
.note-body > .note-eq {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  text-align: center;
  white-space: nowrap;
}

/* The live docking figure, full column width. */
.note-figure {
  margin: 0 0 2.5rem;
}

.note-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
