/* ================================================
   NOTES — shared styles for /notes/ and essays
   Light editorial mood, matches site palette
   ================================================ */

:root {
  --notes-measure: 38rem;          /* ~66 chars at body size */
  --notes-wide:    62rem;
  --notes-rule:    rgba(27, 27, 28, 0.12);
}

.notes { padding-top: 6.5rem; }

/* Top breadcrumb / back link — reuses .subpage__back from pages.css */

/* ================= INDEX HERO ================= */
.notes-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--notes-rule);
}
.notes-hero__eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.55;
  margin: 0 0 1.4rem;
}
.notes-hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 1.4rem;
  max-width: 14ch;
}
.notes-hero__lede {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.5;
  max-width: var(--notes-measure);
  margin: 0;
  opacity: 0.82;
}

/* ================= INDEX LIST ================= */
.notes-list {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(5rem, 10vw, 9rem);
}
.notes-list__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.notes-list__item {
  border-bottom: 1px solid var(--notes-rule);
}
.notes-list__link {
  display: grid;
  grid-template-columns: 9rem 1fr auto;
  gap: 2rem;
  align-items: baseline;
  padding: 2rem 0;
  text-decoration: none;
  color: inherit;
  transition: background 200ms, padding 200ms;
}
.notes-list__link:hover {
  background: rgba(27, 27, 28, 0.03);
  padding-left: 1rem;
  padding-right: 1rem;
}
.notes-list__date {
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.notes-list__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}
.notes-list__tag {
  font-family: var(--font-body);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.55;
  white-space: nowrap;
}
.notes-list__arrow {
  display: inline-block;
  margin-left: 0.5em;
  transition: transform 200ms;
  opacity: 0.55;
}
.notes-list__link:hover .notes-list__arrow {
  transform: translateX(4px);
  opacity: 1;
}

@media (max-width: 720px) {
  .notes-list__link {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1.5rem 0;
  }
  .notes-list__link:hover { padding-left: 0; padding-right: 0; }
  .notes-list__tag { justify-self: start; }
}

/* ================= ESSAY PAGE ================= */
.essay {
  padding-bottom: clamp(5rem, 10vw, 9rem);
}

.essay__meta-bar {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 0;
}
.essay__meta-bar > * { max-width: var(--notes-wide); margin-left: auto; margin-right: auto; display: block; }

.essay__head {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--notes-rule);
}
.essay__head > .container > * { max-width: var(--notes-wide); margin-left: auto; margin-right: auto; }
.essay__eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.55;
  margin: 0 0 1.6rem;
}
.essay__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  margin: 0 0 1.5rem;
  max-width: 20ch;
}
.essay__dek {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 40rem;
  margin: 0 0 2rem;
  opacity: 0.78;
}
.essay__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: baseline;
  font-family: var(--font-body);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}
.essay__byline > span + span { border-left: 1px solid var(--notes-rule); padding-left: 1.5rem; }
@media (max-width: 560px) {
  .essay__byline > span + span { border-left: 0; padding-left: 0; }
}

/* Reading column — centered within its container */
.essay__body {
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
  max-width: var(--notes-measure);
  margin-left: auto;
  margin-right: auto;
}
.essay__body p,
.essay__body ul,
.essay__body ol,
.essay__body blockquote {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.65;
  letter-spacing: -0.005em;
  margin: 0 0 1.4em;
  color: #1b1b1c;
}
.essay__body p:first-child::first-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.4em;
  line-height: 0.8;
  float: left;
  margin: 0.15em 0.08em 0 -0.04em;
  letter-spacing: -0.04em;
}
.essay__body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.3vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 2.8em 0 0.8em;
}
.essay__body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 2em 0 0.6em;
}
.essay__body blockquote {
  border-left: 3px solid #efdc98;
  padding: 0.2em 0 0.2em 1.5em;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin: 1.8em 0;
  opacity: 0.9;
}
.essay__body a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(27, 27, 28, 0.4);
  transition: text-decoration-color 200ms;
}
.essay__body a:hover { text-decoration-color: currentColor; }
.essay__body ul, .essay__body ol { padding-left: 1.4em; }
.essay__body li { margin-bottom: 0.5em; }
.essay__body li::marker { opacity: 0.5; }
.essay__body strong { font-weight: 600; }
.essay__body em { font-style: italic; }

.essay__rule {
  border: none;
  height: 1px;
  background: var(--notes-rule);
  margin: 3.5rem auto;
  max-width: var(--notes-measure);
}

/* Pull-quote */
.essay__pull {
  max-width: var(--notes-wide);
  margin: 3rem auto;
  padding: 2rem 0;
  border-top: 1px solid var(--notes-rule);
  border-bottom: 1px solid var(--notes-rule);
}
.essay__pull-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 24ch;
}

/* Sign-off */
.essay__signoff {
  margin: 3rem auto 0;
  max-width: var(--notes-measure);
  padding-top: 2rem;
  border-top: 1px solid var(--notes-rule);
  font-family: var(--font-body);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.55;
}

/* Next/prev footer */
.essay__nav {
  margin: clamp(3rem, 6vw, 5rem) auto 0;
  max-width: var(--notes-wide);
  padding-top: 2rem;
  border-top: 1px solid var(--notes-rule);
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
.essay__nav a {
  text-decoration: none;
  color: inherit;
  opacity: 0.75;
  transition: opacity 200ms;
}
.essay__nav a:hover { opacity: 1; }
.essay__nav-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  opacity: 0.6;
  margin-bottom: 0.4rem;
}
