/* ABOUT — "The Split Dossier" (unique skeleton)
   asymmetric two-track dossier: sticky portrait + fact-ledger | essay,
   broken midway by a 90°-turned timeline path, ending in a signature. */

/* ---- Dossier head ------------------------------------------------- */
.dossier-head {
  padding-top: clamp(6.5rem, 16vh, 9rem);
  padding-bottom: clamp(1.4rem, 4vw, 2.4rem);
}
.dossier-head .plaque { color: var(--euc); }
.dossier-head__title {
  font-size: clamp(2.7rem, 12vw, 5rem);
  font-weight: 420;
  line-height: 1.0;
  margin-top: 1rem;
  letter-spacing: -.01em;
}
.dossier-head__title em { font-style: italic; color: var(--mauve); }
.dossier-head__sub { margin-top: 1.2rem; max-width: 44ch; }

/* ---- The split ---------------------------------------------------- */
.dossier {
  display: grid;
  gap: clamp(2.4rem, 6vw, 4rem);
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: clamp(2.5rem, 7vw, 4.5rem);
}

/* ---- Left track: portrait + wreath ------------------------------- */
.portrait {
  position: relative;
  width: min(82%, 360px);
  margin-inline: auto;
  padding: clamp(1.6rem, 6vw, 2.6rem);  /* room for the wreath to breathe */
}
.wreath {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.portrait__mat { position: relative; z-index: 1; }
.portrait__mat .mat__img { aspect-ratio: 4/5; }

/* ---- Fact ledger -------------------------------------------------- */
.ledger {
  margin-top: clamp(1.8rem, 5vw, 2.4rem);
  display: grid;
  gap: 0;
  max-width: 26rem;
  margin-inline: auto;
}
.ledger__row {
  display: block;
  padding: .95rem 0;
  border-top: 1px solid var(--hair);
}
.ledger__row:last-child { border-bottom: 1px solid var(--hair); }
.ledger__num { display: none; }
.ledger__term,
.ledger__fact {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 440;
  color: var(--plum);
  line-height: 1.15;
}
.ledger__cap {
  display: block;
  margin-inline-start: 0;      /* dd default indent */
  font-family: var(--ui);
  font-size: var(--t-micro);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--pencil);
  margin-top: .4rem;
  line-height: 1.4;
}

/* ---- Right track: the essay -------------------------------------- */
.essay { max-width: 42rem; }
.essay__kicker { color: var(--mauve); }
.essay__lede {
  font-size: clamp(1.9rem, 7vw, 2.7rem);
  line-height: 1.08;
  margin-top: .7rem;
  margin-bottom: 1.4rem;
  max-width: 14ch;
}
.essay p { margin-top: 1.1rem; }
.essay p:first-of-type { margin-top: 0; }
.essay .drop::first-letter {
  font-family: var(--display);
  font-size: 3.1em;
  line-height: .8;
  float: left;
  padding: .06em .14em 0 0;
  color: var(--mauve);
  font-weight: 500;
}

.essay__h {
  clear: both;                 /* never let a margin float shunt a heading sideways */
  font-size: clamp(1.35rem, 5vw, 1.7rem);
  font-weight: 460;
  line-height: 1.2;
  color: var(--plum);
  margin-top: 2.2rem;
}
.essay__h + p { margin-top: .6rem; }

/* margin pull-thoughts */
.pullthought {
  font-size: clamp(1.3rem, 4.5vw, 1.6rem);
  line-height: 1.3;
  color: var(--mauve-deep);
  position: relative;
  padding-left: 1.1rem;
  margin: 1.6rem 0;
  border-left: 2px solid var(--gold);
}
.pullthought__mark {
  font-family: var(--display);
  font-style: italic;
  color: var(--clay);
  font-size: 1.4em;
  line-height: 0;
  margin-right: .1em;
  vertical-align: -.18em;
}

/* ---- Timeline band: the thread turns 90° ------------------------- */
.timeline {
  background: var(--linen);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding-block: clamp(2.6rem, 7vw, 4.5rem);
}
.timeline__kicker { color: var(--mauve); }
.timeline__title {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  margin-top: .7rem;
  margin-bottom: clamp(1.8rem, 5vw, 2.6rem);
}
.path {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}
/* mobile: a distinct vertical dated path (line + nodes on the left) */
.path::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: linear-gradient(var(--mauve), var(--clay), var(--euc), var(--gold));
  opacity: .55;
  border-radius: 2px;
}
.path__stop {
  position: relative;
  padding: 0 0 1.6rem 2rem;
}
.path__stop:last-child { padding-bottom: 0; }
.path__node {
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--node, var(--mauve));
  box-shadow: 0 0 0 4px var(--linen), 0 0 0 5px color-mix(in srgb, var(--node) 45%, transparent);
}
.path__year {
  display: block;
  font-size: 1.5rem;
  font-weight: 460;
  color: var(--plum);
  line-height: 1;
}
.path__label {
  display: inline-block;
  margin-top: .3rem;
  font-family: var(--ui);
  font-size: var(--t-micro);
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--node, var(--mauve));
}
.path__note {
  display: block;
  margin-top: .5rem;
  font-size: var(--t-small);
  color: var(--pencil);
  line-height: 1.55;
  max-width: 34ch;
}

/* ---- Where to start: category rooms in the linen band ------------- */
.rooms {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--hair);
}
.rooms__room { border-bottom: 1px solid var(--hair); }
.rooms__link {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: baseline;
  gap: .85rem;
  padding: 1.05rem .2rem;
  text-decoration: none;
  color: inherit;
  transition: padding-left .3s var(--ease), background .3s var(--ease);
}
.rooms__link:hover { padding-left: .8rem; background: color-mix(in srgb, var(--porcelain) 60%, transparent); }
.rooms__link:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.rooms__cdot {
  width: 9px; height: 9px; border-radius: 50%;
  transform: translateY(-.35em);
}
.rooms__name {
  font-size: clamp(1.25rem, 5vw, 1.7rem);
  font-weight: 440;
  line-height: 1.15;
  color: var(--plum);
}
.rooms__link:hover .rooms__name { color: var(--mauve-deep); }
.rooms__count {
  font-family: var(--ui);
  font-size: var(--t-micro);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pencil);
  white-space: nowrap;
}

/* ---- Sign-off ----------------------------------------------------- */
.signoff {
  padding-block: clamp(3rem, 9vw, 5.5rem);
  text-align: center;
}
.signoff__line {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--pencil);
}
.signoff__sig {
  font-size: clamp(3rem, 14vw, 5.5rem);
  color: var(--mauve);
  line-height: 1;
  margin-top: .4rem;
}
.signoff__cta { margin-top: 1.8rem; }

/* ===================================================================
   DESKTOP
   =================================================================== */
@media (min-width: 920px) {
  .dossier {
    grid-template-columns: 320px 1fr;
    align-items: start;
    gap: clamp(3rem, 7vw, 6rem);
  }

  /* left track becomes sticky; portrait overlaps the right track */
  .track--left { position: relative; }
  .track__sticky {
    position: sticky;
    top: 5.5rem;
  }
  .portrait {
    width: 100%;
    max-width: 360px;
    margin-inline: 0;
    transform: translateX(2.5rem);  /* slight overlap into right track */
  }
  .ledger { margin-inline: 0; max-width: 340px; }

  .essay { padding-top: 2.4rem; }   /* drop the letter a touch for tension */
  .essay__lede { max-width: none; }

  /* floated margin pull-thoughts on desktop */
  .pullthought {
    border-left: 0;
    padding-left: 0;
    width: 14rem;
    margin: .1rem 0 .8rem;
    font-size: 1.35rem;
    line-height: 1.32;
  }
  .pullthought--right {
    float: right;
    clear: right;
    margin-left: 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--gold);
    text-align: left;
  }
  .pullthought--left {
    float: left;
    clear: left;
    margin-right: 2rem;
    padding-right: 1rem;
    border-right: 2px solid var(--gold);
    text-align: right;
  }

  /* timeline turns into a true horizontal path */
  .path {
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1.2rem, 3vw, 2.4rem);
  }
  .path::before {
    left: 10px;
    right: 10px;
    top: 6px;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--mauve), var(--clay), var(--euc), var(--gold));
  }
  .path__stop {
    padding: 2.1rem 0 0 0;
  }
  .path__node {
    left: 0;
    top: 0;
    box-shadow: 0 0 0 4px var(--linen), 0 0 0 5px color-mix(in srgb, var(--node) 45%, transparent);
  }
  .path__note { max-width: 26ch; }

  .rooms { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 3.5rem); }
  .rooms__room:nth-last-child(-n+2) { border-bottom: 1px solid var(--hair); }
}

@media (prefers-reduced-motion: reduce) {
  .rooms__link { transition: none; }
  .rooms__link:hover { padding-left: .2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .track__sticky { position: static; }
}
