/*
 * Field notes: the guide's blog, at /notes/. Layout follows techfabric.com/blog
 * so the two sections read as one system: a hero with an eyebrow, a search box
 * and tag chips over a list of rows (cover, title and description, byline and
 * tags), and a post with a wide title, a byline, a banner cover, a 70ch measure,
 * related notes and a next link beside the one ask.
 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---- hero, shared by the index and a note */
.notes-hero,
.note-hero {
  padding: var(--space-9) var(--space-5) var(--space-7);
}
.notes-hero__inner,
.note-hero__inner,
.notes-index__inner {
  max-width: var(--page-max);
  margin: 0 auto;
}
.notes-hero__eyebrow,
.note__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-4);
}
.notes-hero__title {
  font-size: var(--text-3xl);
  max-width: 18ch;
  margin: 0;
}
.notes-hero__lede {
  font-size: var(--text-lg);
  color: var(--ink-muted);
  max-width: 62ch;
  margin-top: var(--space-5);
}

/* ---- index controls */
.notes-index {
  padding: 0 var(--space-5) var(--space-9);
}
.notes-index__search input {
  width: min(36rem, 100%);
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  background: transparent;
  padding: var(--space-3) 0;
  font-size: var(--text-lg);
  color: var(--ink);
  outline: none;
}
.notes-index__search input:focus {
  border-bottom: 2px solid var(--accent);
  padding-bottom: calc(var(--space-3) - 1px);
}
.notes-index__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.notes-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.notes-chip:hover {
  color: var(--ink);
  border-color: var(--ink-muted);
}
.notes-chip[aria-pressed="true"] {
  color: var(--accent);
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.notes-chip__count {
  font-variant-numeric: tabular-nums;
  color: var(--ink-faint);
}
.notes-index__status,
.notes-index__empty {
  margin-top: var(--space-7);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}
.notes-index__empty {
  font-size: var(--text-lg);
}

/* ---- the list */
.notes-list {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.notes-row {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-7) 0;
  border-top: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition);
}
.notes-row:hover {
  border-top-color: var(--ink-muted);
  color: inherit;
  text-decoration: none;
}
/* Nothing in this section underlines on hover; the blog's rows do not either. */
.notes-chip:hover,
.notes-tag--link:hover,
.note__related li a:hover,
.note__next-link:hover,
.notes-band__title a:hover,
.note-hero__back:hover,
.note-hero__byline a:hover,
.notes-band__more a:hover {
  text-decoration: none;
}
@media (min-width: 64rem) {
  .notes-row {
    grid-template-columns: 200px minmax(0, 1.5fr) minmax(0, 0.8fr);
    gap: var(--space-8);
  }
}
.notes-row__cover {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 8 / 5;
}
.notes-row__cover svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.notes-row:hover .notes-row__cover svg {
  transform: scale(1.04);
}
.notes-row__main {
  display: block;
}
.notes-row__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  transition: color var(--transition);
}
.notes-row:hover .notes-row__title {
  color: var(--accent);
}
.notes-row__description {
  display: block;
  margin-top: var(--space-2);
  max-width: 62ch;
  color: var(--ink-muted);
}
.notes-row__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}
@media (min-width: 64rem) {
  .notes-row__aside {
    align-items: flex-end;
    text-align: right;
  }
  .notes-row__tags {
    justify-content: flex-end;
  }
}
.notes-row__meta {
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.notes-row__tags,
.note-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.notes-tag {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.1em 0.5em;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  text-decoration: none;
}
.notes-tag--link {
  padding: 0.25em 0.7em;
  transition: color var(--transition), border-color var(--transition);
}
.notes-tag--link:hover {
  color: var(--accent);
  border-color: var(--accent);
}
.notes-row__read {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-1);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.notes-row__read svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* ---- a note */
.note-hero__back {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--ink-muted);
  text-decoration: none;
}
.note-hero__back:hover {
  color: var(--accent);
}
.note-hero__tags {
  margin: var(--space-6) 0 var(--space-5);
}
.note-hero__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin: 0;
}
.note-hero__byline {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
  color: var(--ink-muted);
}
.note-hero__byline a {
  color: var(--ink);
  text-decoration: none;
}
.note-hero__byline a:hover {
  color: var(--accent);
}
.note {
  max-width: 70ch;
  margin: 0 auto;
  padding: 0 var(--space-5) var(--space-9);
}
.note__cover {
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-8);
  aspect-ratio: 686 / 300;
}
.note__cover svg {
  width: 100%;
  height: 100%;
  display: block;
}
/*
 * Article typography, matching techfabric.com's .prose-tf so a note reads
 * like a blog post: 19px on a 34px line, a little more air between blocks,
 * and Poppins section headings that step down from 32px. Two classes on the
 * selector so these win over the chapter rules the body also carries.
 */
.manual__content.note__body {
  max-width: none;
  padding: 0;
  margin: 0;
  font-size: 19px;
  line-height: 34px;
  color: color-mix(in srgb, var(--ink) 78%, transparent);
}
.manual__content.note__body > * + * {
  margin-top: 1.35em;
}
.manual__content.note__body p,
.manual__content.note__body ul,
.manual__content.note__body ol,
.manual__content.note__body table {
  margin-bottom: 0;
}
.manual__content.note__body h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2.2em;
  margin-bottom: 0.1em;
  padding-top: 0;
  border-top: 0;
  max-width: none;
}
.manual__content.note__body h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.3vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 1.9em;
  margin-bottom: 0.1em;
  max-width: none;
}
.manual__content.note__body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.manual__content.note__body a:hover {
  text-decoration-thickness: 2px;
}
.manual__content.note__body strong {
  color: var(--ink);
  font-weight: 600;
}
.manual__content.note__body li {
  margin-top: 0.5em;
}
.manual__content.note__body li::marker {
  color: var(--accent);
}
.note__body h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}
.note__related {
  margin-top: var(--space-9);
}
.note__related ul {
  list-style: none;
  margin: var(--space-4) 0 0;
  padding: 0;
  border-bottom: 1px solid var(--border);
}
.note__related li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-5);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
}
.note__related li a:hover {
  color: var(--accent);
}
.note__related svg {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--accent);
}
.note__next {
  margin-top: var(--space-9);
  padding-top: var(--space-7);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-5);
}
.note__next-link {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: inherit;
  text-decoration: none;
}
.note__next-link:hover {
  color: var(--accent);
}
.note__next-copy {
  max-width: 44ch;
  color: var(--ink-muted);
  margin: 0;
}

/* ---- the landing band */
.notes-band {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-6);
}
@media (min-width: 52rem) {
  .notes-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.notes-band__date {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-2);
}
.notes-band__title {
  margin: 0 0 var(--space-2);
}
.notes-band__title a {
  color: inherit;
  text-decoration: none;
}
.notes-band__title a:hover {
  color: var(--accent);
}
.notes-band__summary {
  color: var(--ink-muted);
  margin: 0;
}
.notes-band__more {
  margin-top: var(--space-6);
  color: var(--ink-muted);
}
