/* ─────────────────────────────────────────────────────────
   NOTES — long-form writing index page
   Lists Chris's published essays / Medium articles as
   numbered cards. Each card links out to its external host
   in a new tab.

   Design rhymes with the marks-grid pattern on index.html
   (number column + content column, red hairline on hover)
   and the gallery-header pattern (top tag + 36px title).
   ───────────────────────────────────────────────────────── */

:root {
  --black: #000;
  --bright: #f5f3ec;
  --light: #c8c5b7;
  --mid: #8a8678;
  --dim: #555145;
  --text: #c8c5b7;
  --border: #1a1a1a;
  --red: #dc322f;
  --mono: 'Space Mono', monospace;
  --display: 'Chakra Petch', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; display: flex; flex-direction: column; }

/* ── HEADER ────────────────────────────────────────────── */
.notes-header {
  margin-top: 44px;
  padding: 32px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.notes-tag {
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--red);
  margin-bottom: 8px;
  font-weight: 700;
}
.notes-title {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--bright);
  text-transform: uppercase;
  line-height: 1;
}
.notes-meta {
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 2px;
  text-align: right;
}
.notes-blurb {
  max-width: 640px;
  font-size: 13px;
  color: var(--light);
  line-height: 1.7;
  margin: 24px 32px 0;
  letter-spacing: 0.2px;
}
.notes-blurb em { color: var(--bright); font-style: italic; }

/* ── LIST ──────────────────────────────────────────────── */
.notes-list {
  margin-top: 32px;
  border-top: 1px solid var(--border);
}
.note-card {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  column-gap: 24px;
  padding: 36px 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}
.note-card:hover { background: rgba(220, 50, 47, 0.05); }
/* red hairline on hover, matching marks-grid */
.note-card::before {
  content: '';
  position: absolute;
  left: 0; top: 36px; bottom: 36px;
  width: 2px;
  background: var(--red);
  opacity: 0;
  transition: opacity 0.2s;
}
.note-card:hover::before { opacity: 0.55; }

.note-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
  line-height: 1;
  padding-top: 4px;
  font-variant-numeric: tabular-nums;
}

.note-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.note-title {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--bright);
  line-height: 1.25;
  margin: 0;
}
.note-card:hover .note-title { color: var(--red); }
.note-excerpt {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--light);
  line-height: 1.65;
  max-width: 64ch;
  margin: 0;
}
.note-meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--mid);
  text-transform: uppercase;
  margin-top: 4px;
}
.note-meta .sep { color: var(--dim); }

.note-cta {
  align-self: end;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--red);
  text-transform: uppercase;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-bottom: 6px;
  transition: gap 0.2s;
}
.note-card:hover .note-cta { gap: 12px; }
.note-cta .arrow { font-size: 14px; line-height: 1; }
.note-cta .ext { font-size: 11px; opacity: 0.75; }

/* ── FOOTER NOTE ───────────────────────────────────────── */
.notes-footnote {
  padding: 32px;
  font-size: 11px;
  color: var(--mid);
  font-style: italic;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.4);
}
.notes-footnote a { color: var(--red); text-decoration: none; border-bottom: 1px solid var(--red); }
.notes-footnote a:hover { opacity: 0.7; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 720px) {
  .notes-header { padding: 28px 20px; gap: 16px; }
  .notes-title { font-size: 26px; letter-spacing: 3px; }
  .notes-blurb { margin: 20px 20px 0; font-size: 12px; }
  .note-card {
    grid-template-columns: 44px 1fr;
    grid-template-rows: auto auto;
    padding: 28px 20px;
    column-gap: 14px;
    row-gap: 14px;
  }
  .note-card::before { top: 28px; bottom: 28px; }
  .note-num { font-size: 18px; }
  .note-title { font-size: 18px; }
  .note-excerpt { font-size: 12px; }
  .note-cta {
    grid-column: 1 / -1;
    align-self: start;
    padding-bottom: 0;
  }
  .notes-footnote { padding: 24px 20px; }
}
@media (max-width: 600px) {
  .notes-title { font-size: 24px; letter-spacing: 3px; }
}
