/* ============================================================
   Notes (blog) — magazine layout on top of case-study.css tokens.
   ============================================================ */

/* Light header variant (color logo) — ink nav links */
.site-header__logo--color img { max-height: 44px; width: auto; display: block; }
.site-header:has(.site-header__logo--color) .site-nav a:not(.btn) { color: var(--ink); }
.site-header:has(.site-header__logo--color) .site-nav a:not(.btn):hover { color: var(--poppy); }

/* ---- Post: full-bleed cover under the dark header ---- */
.note-cover img { width: 100%; height: auto; max-height: 640px; object-fit: cover; aspect-ratio: 16 / 9; display: block; }

/* ---- Post: title block ---- */
.note-head { max-width: 660px; margin: 0 auto; padding: 64px 24px 0; }
.note-head .eyebrow { color: var(--poppy); }
.note-head__h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.12; margin: 10px 0 18px; color: var(--ink); }
.note-head__h1 em { color: var(--poppy); font-style: normal; }
.note-head__meta { font-family: var(--font-sub); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-vivid); margin: 0 0 18px; }
.note-head__sep { margin: 0 10px; }
.note-head__deck { font-family: var(--font-body); font-size: 21px; line-height: 1.5; color: var(--grey-rich); margin: 0; }

/* ---- Post: body (660px, 18px min) ---- */
.note-body { max-width: 660px; margin: 0 auto; padding: 40px 24px 48px; font-family: var(--font-body); font-size: 18px; line-height: 1.75; color: var(--grey-rich); }
.note-body p { margin: 0 0 26px; }
.note-body h2, .note-body h3, .note-body h4 { font-family: var(--font-h); font-weight: 200; line-height: 1.2; color: var(--ink); margin: 44px 0 14px; }
.note-body h2 { font-size: 28px; }
.note-body h3 { font-size: 24px; }
.note-body h4 { font-size: 20px; }
.note-body h5 { font-family: var(--font-body); font-size: 18px; font-weight: 700; color: var(--ink); margin: 32px 0 10px; }
.note-body ul, .note-body ol { margin: 0 0 26px; padding-left: 28px; }
.note-body li { margin-bottom: 8px; }
.note-body a { color: var(--reflex); font-weight: 600; }
.note-body a:hover { color: var(--poppy); }
.note-body strong { color: var(--ink); }
.note-body blockquote { border-left: 3px solid var(--poppy); padding: 4px 0 4px 24px; margin: 32px 0; color: var(--grey-vivid); font-style: italic; }
.note-body img { max-width: 100%; height: auto; margin: 32px 0; }
.note-body figure { margin: 32px 0; }
.note-body figcaption { font-size: 14px; color: var(--grey-vivid); margin-top: 8px; }
.note-body code { background: var(--teal-xlight); padding: 2px 6px; border-radius: 3px; font-size: 0.9em; }
.note-body pre { background: var(--deep-space); color: var(--grey-xlight); padding: 20px; overflow-x: auto; font-size: 14px; }
.note-body pre code { background: transparent; padding: 0; color: inherit; }
.note-body hr { border: 0; border-top: 1px solid var(--grey-light); margin: 40px 0; }

/* ---- Post: tags ---- */
.note-tags { max-width: 660px; margin: 0 auto; padding: 0 24px 40px; display: flex; flex-wrap: wrap; gap: 8px; }
.note-tag { display: inline-block; padding: 6px 12px; border: 1px solid var(--grey-light); border-radius: 999px; font-family: var(--font-sub); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.note-tag:hover { border-color: var(--poppy); color: var(--poppy); }

/* ---- Post: optional author block ---- */
.note-author { max-width: 660px; margin: 0 auto 48px; padding: 24px; display: flex; gap: 20px; align-items: center; border-top: 1px solid var(--grey-light); border-bottom: 1px solid var(--grey-light); }
.note-author__photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 72px; }
.note-author__name { font-family: var(--font-sub); font-size: 14px; letter-spacing: 0.05em; margin: 0 0 4px; color: var(--ink); }
.note-author__blurb { margin: 0; font-size: 16px; line-height: 1.5; color: var(--grey-rich); }
.note-author__blurb a { color: var(--reflex); font-weight: 600; text-decoration: none; }

/* ---- Read next ---- */
.note-next { background: var(--poppy-xlight); padding: 64px 0; }
.note-next__inner { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.note-next .eyebrow { color: var(--poppy); margin-bottom: 20px; }

/* ---- CTA ---- */
.note-cta { padding: 80px 0; background: var(--grey-xlight); border-top: 1px solid var(--grey-light); text-align: center; }
.note-cta h2 { font-size: clamp(28px, 4vw, 42px); margin: 8px 0 24px; }

/* ---- Cards (index, tag pages, read next) ---- */
.notes-index { padding: 64px 0 120px; background: var(--grey-xlight); }
.notes-index .container { max-width: 1200px; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.notes-grid--two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1023px) { .notes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .notes-grid, .notes-grid--two { grid-template-columns: 1fr; } }
.note-card { display: block; color: inherit; text-decoration: none; }
.note-card__media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--grey-light); }
.note-card__body { padding: 18px 0 0; }
.note-card__title { font-family: var(--font-h); font-weight: 200; font-size: clamp(22px, 2.2vw, 26px); line-height: 1.2; margin: 0 0 8px; color: var(--ink); }
.note-card__title em, .note-head__h1 em { color: var(--poppy); font-style: normal; }
.note-card:hover .note-card__title { color: var(--poppy); }
.note-card__meta { font-family: var(--font-sub); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey-vivid); margin: 0 0 10px; }
.note-card__deck { font-family: var(--font-body); font-size: 16px; line-height: 1.5; color: var(--grey-rich); margin: 0; }

.notes-empty { text-align: center; color: var(--grey-vivid); padding: 80px 0; font-family: var(--font-sub); }
