/* =========================================================
   Nelly's Article — shell pink editorial
   Standalone palette; only loads on Nelly Article.html
   Cooler, softer pink than her coral profile — same world,
   different room.
   ========================================================= */

.na-page {
  --paper:        #f5d9d4;   /* shell pink */
  --paper-2:      #efc9c2;
  --paper-3:      #e6b3a9;
  --rule:         #d49d92;
  --rule-soft:    #e6b3a9;

  --ink:          #2a1e1c;   /* warm near-black */
  --ink-2:        #5a4540;
  --ink-3:        #846862;
  --ink-4:        #ab8c85;

  --blush:        #c5544a;   /* deep blush — accent ink */
  --blush-deep:   #8e3a32;
  --blush-soft:   #f4ccc4;

  --cream:        #fbf2ec;   /* tiny offset for figures */

  background: var(--paper);
  color: var(--ink);
  min-height: 100vh;
}

/* The header sticky-bar uses --paper as its bg, so it adopts shell pink
   automatically. Just tone the rule + nav. */
.na-page .header {
  border-bottom-color: var(--rule-soft);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
}
.na-page .nav a:hover { color: var(--blush-deep); }

/* Breadcrumb */
.na-page .crumb { color: var(--ink-3); }
.na-page .crumb a { color: var(--ink-3); }
.na-page .crumb a:hover { color: var(--ink); }
.na-page .crumb .cur { color: var(--blush-deep); }

.na-shell {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px 80px;
}
@media (max-width: 720px) { .na-shell { padding: 0 22px 60px; } }

/* ---------- Reading progress bar ---------- */
.na-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--blush);
  z-index: 60;
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform .08s linear;
  pointer-events: none;
}

/* ---------- Masthead strip ---------- */
.na-mast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px 0 28px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule-soft);
}
.na-mast-l, .na-mast-r {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.na-mast-r { text-align: right; }
.na-mast-c {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.005em;
  color: var(--blush-deep);
}
@media (max-width: 720px) {
  .na-mast { grid-template-columns: 1fr; gap: 8px; padding: 32px 0 22px; margin-bottom: 36px; }
  .na-mast-l, .na-mast-r { text-align: left; }
}

/* ---------- Hero / title block ---------- */
.na-hero {
  max-width: 980px;
  margin: 0 auto 56px;
  text-align: center;
}
.na-kicker {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--blush-deep);
  margin-bottom: 28px;
}
.na-kicker .na-bar { width: 28px; height: 1px; background: var(--blush-deep); }

.na-title {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(54px, 7.6vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 28px;
  text-wrap: balance;
}
.na-title em {
  font-style: italic;
  color: var(--blush-deep);
}

.na-deck {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.4;
  color: var(--ink-2);
  margin: 0 auto 44px;
  max-width: 56ch;
  text-wrap: balance;
}

/* Byline strip */
.na-byline {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 22px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
}
.na-byline .by {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
}
.na-byline .by-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--paper-3);
}
.na-byline .by-avatar img { width: 100%; height: 100%; object-fit: cover; }
.na-byline .by-name {
  font-family: var(--font-serif); font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.na-byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

/* ---------- Lead image ---------- */
.na-lead {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 64px;
  background: var(--paper-3);
}
.na-lead img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}
.na-lead-cap {
  margin-top: 14px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 13.5px; line-height: 1.4;
  color: var(--ink-3);
  display: flex; gap: 14px;
  max-width: 760px;
}
.na-lead-cap .credit {
  font-family: var(--font-mono); font-style: normal;
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-4);
  white-space: nowrap;
  padding-top: 3px;
}
.na-lead-cap .cap-text { flex: 1; }

/* ---------- Body layout: narrow column + sticky margin ---------- */
.na-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) 240px;
  gap: 80px;
  justify-content: center;
  align-items: start;
  margin-top: 24px;
}
@media (max-width: 980px) {
  .na-body-grid { grid-template-columns: minmax(0, 640px); justify-content: center; gap: 48px; }
}

.na-col {
  font-family: var(--font-serif);
  font-size: 19.5px;
  line-height: 1.65;
  color: var(--ink);
}
.na-col p {
  margin: 0 0 22px;
  text-wrap: pretty;
}
.na-col p.has-drop { text-indent: 0; }
.na-drop {
  float: left;
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 96px; line-height: 0.85;
  padding: 8px 16px 0 0;
  color: var(--blush-deep);
}

/* Section break / dinkus */
.na-dinkus {
  display: flex; justify-content: center; align-items: center;
  gap: 14px;
  margin: 40px 0 36px;
  color: var(--blush);
  font-family: var(--font-serif); font-style: italic;
  font-size: 22px;
  letter-spacing: 0.4em;
}
.na-dinkus span { display: inline-block; }

/* In-line subhead */
.na-sub {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 28px; line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 36px 0 22px;
  text-wrap: balance;
}

/* Inline pull quote (left rule) */
.na-pull {
  font-family: var(--font-serif); font-style: italic;
  font-size: 24px; line-height: 1.3;
  color: var(--blush-deep);
  margin: 30px 0 30px;
  padding-left: 22px;
  border-left: 2px solid var(--blush);
  max-width: 38ch;
  text-wrap: balance;
}

/* Big centered pull (between sections) */
.na-pull-big {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  color: var(--ink);
  text-align: center;
  margin: 56px auto 56px;
  max-width: 22ch;
  padding: 36px 0;
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
  text-wrap: balance;
  position: relative;
}
.na-pull-big::before, .na-pull-big::after {
  content: "”";
  position: absolute;
  font-family: var(--font-serif);
  color: var(--blush);
  font-size: 80px;
  line-height: 1;
  opacity: 0.55;
}
.na-pull-big::before {
  content: "“";
  top: -8px; left: 50%; transform: translate(-50%, -50%);
  background: var(--paper);
  padding: 0 18px;
}
.na-pull-big::after {
  bottom: -8px; left: 50%; transform: translate(-50%, 50%);
  background: var(--paper);
  padding: 0 18px;
}

/* Inline figure */
.na-fig {
  margin: 36px 0;
}
.na-fig-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-3);
}
.na-fig-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.92);
}
.na-fig-cap {
  margin-top: 12px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 13.5px; line-height: 1.4;
  color: var(--ink-3);
  display: flex; gap: 14px;
}
.na-fig-cap .num {
  font-family: var(--font-mono); font-style: normal;
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blush-deep);
  white-space: nowrap;
  padding-top: 3px;
}

/* End mark */
.na-end {
  display: flex; align-items: center; gap: 14px;
  margin: 40px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--rule-soft);
}
.na-end-mark {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--blush-deep);
  line-height: 1;
}
.na-end-name {
  font-family: var(--font-serif); font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
}
.na-end-meta {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Sticky margin column ---------- */
.na-margin {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 28px;
}
.na-margin-card {
  padding: 22px 22px 24px;
  background: var(--cream);
  border-radius: 2px;
}
.na-margin-card.thin {
  padding: 0;
  background: transparent;
}
.na-mc-eyebrow {
  font-family: var(--font-mono);
  font-size: 9.5px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--blush-deep);
  margin-bottom: 10px;
}
.na-mc-h {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 21px; line-height: 1.15;
  color: var(--ink);
  margin: 0 0 14px;
}
.na-mc-list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-family: var(--font-serif);
  font-size: 14px; line-height: 1.4;
  color: var(--ink-2);
}
.na-mc-list li {
  display: grid; grid-template-columns: 18px 1fr;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--rule-soft);
}
.na-mc-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.na-mc-n {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .15em;
  color: var(--blush-deep); padding-top: 3px;
}

.na-toc {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.na-toc-item {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--rule-soft);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 9.5px;
  color: var(--ink-3);
  transition: color .2s var(--ease);
}
.na-toc-item:last-child { border-bottom: 0; }
.na-toc-item:hover { color: var(--blush-deep); }
.na-toc-item .num {
  color: var(--ink-4);
}

/* Inline footnote / marginalia note that appears in body too on mobile */
.na-note {
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px; line-height: 1.45;
  color: var(--ink-3);
  border-left: 1px solid var(--rule);
  padding: 0 0 0 14px;
  margin: 28px 0;
}
@media (min-width: 981px) {
  .na-note.mobile-only { display: none; }
}

/* ---------- Gallery ---------- */
.na-gallery {
  margin: 80px 0 0;
}
.na-gallery-head {
  display: grid; grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: end;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 36px;
}
.na-gallery-num {
  font-family: var(--font-serif); font-style: italic;
  font-size: 56px; line-height: 0.9;
  color: var(--blush-deep);
}
.na-gallery-eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.na-gallery-h {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1; letter-spacing: -0.018em;
  margin: 0;
  text-wrap: balance;
}
.na-gallery-h em { font-style: italic; color: var(--blush-deep); }

.na-gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.na-gallery-grid > a:nth-child(1) { grid-row: span 2; }
@media (max-width: 720px) {
  .na-gallery-grid { grid-template-columns: 1fr; }
  .na-gallery-grid > a:nth-child(1) { grid-row: auto; }
}

.na-gtile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  background: var(--paper-3);
  aspect-ratio: 4 / 3;
}
.na-gtile.tall { aspect-ratio: 3 / 4; }
.na-gallery-grid > a:nth-child(1) { aspect-ratio: 1 / 1; }
.na-gtile img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease), filter .3s var(--ease);
  filter: saturate(0.92);
}
.na-gtile:hover img { transform: scale(1.04); }
.na-gtile-cap {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .22em; text-transform: uppercase;
  color: #fff;
  padding: 6px 10px;
  background: rgba(40, 22, 20, .55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
  display: inline-block;
  width: fit-content;
}

/* ---------- More from the desk ---------- */
.na-more {
  margin-top: 120px;
  padding-top: 56px;
  border-top: 1px solid var(--rule-soft);
}
.na-more-head {
  display: grid; grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 36px;
}
.na-more-eyebrow {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--blush-deep);
  margin-bottom: 12px;
}
.na-more-h {
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1; letter-spacing: -0.018em;
  margin: 0;
}
.na-more-h em { font-style: italic; }
.na-more-back {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--ink);
  transition: gap .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.na-more-back:hover { gap: 18px; color: var(--blush-deep); border-color: var(--blush-deep); }
.na-more-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
@media (max-width: 880px) { .na-more-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .na-more-grid { grid-template-columns: 1fr; } }
.na-more-card { display: block; }
.na-more-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 16px;
  background: var(--paper-3);
}
.na-more-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s var(--ease);
  filter: saturate(0.92);
}
.na-more-card:hover .na-more-img img { transform: scale(1.04); }
.na-more-kick {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 9.5px;
  letter-spacing: .22em; text-transform: uppercase;
  color: #fff;
  padding: 5px 10px;
  background: rgba(40, 22, 20, .55);
  backdrop-filter: blur(6px);
  border-radius: 999px;
}
.na-more-card h4 {
  font-family: var(--font-serif); font-weight: 400;
  font-size: 22px; line-height: 1.2;
  letter-spacing: -0.005em;
  margin: 0 0 6px;
  max-width: 28ch;
  transition: color .2s var(--ease);
}
.na-more-card:hover h4 { color: var(--blush-deep); }
.na-more-meta {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ---------- Footer override on shell pink ---------- */
.na-page .footer {
  background: var(--paper-2);
  border-top: 1px solid var(--rule-soft);
}

/* ---------- Reveal ---------- */
.na-page .reveal { opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.na-page .reveal.in { opacity: 1; transform: none; }
