/* Charlene Gilbert — outline theme
   Ported verbatim from the "Outline in Lavender" Claude Design.
   Every accent-derived colour is mixed from --accent so the blueprint
   colour picker recolours the whole system from one value. */

:root {
  --bg:        #FBFAF7;
  --ink:       #322b46;
  --accent:    #6E5FA8;
  --muted:     #6f688c;
  --muted-2:   #6b6485;
  --prose:     #3a3450;
  --crumb:     #8b85a0;
  --sep:       #c8c1de;
  --selection: #E7E1F3;

  /* accent tints (match the design's rgba(110,95,168,·) literals) */
  --rail:          color-mix(in srgb, var(--accent) 15%,  transparent);
  --rail-soft:     color-mix(in srgb, var(--accent) 8%,   transparent);
  --bullet-bg:     color-mix(in srgb, var(--accent) 10%,  transparent);
  --dot-leaf:      color-mix(in srgb, var(--accent) 51%,  transparent);
  --twirl:         color-mix(in srgb, var(--accent) 62%,  transparent);
  --row-hover:     color-mix(in srgb, var(--accent) 5.5%, transparent);
  --now-chip:      color-mix(in srgb, var(--accent) 13%,  transparent);
  --link-underline:color-mix(in srgb, var(--accent) 33%,  transparent);
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Spectral', serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--selection); }

.page { min-height: 100vh; background: var(--bg); padding: 88px 28px 140px; }
.col  { max-width: 700px; margin: 0 auto; }

/* ---- breadcrumb (pathTo) ---- */
.crumbs {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 9px; margin-bottom: 28px; font-size: 13px;
}
.crumbs a {
  font-family: 'Spectral', serif; letter-spacing: .02em;
  color: var(--crumb); text-decoration: none; cursor: pointer;
  transition: color .15s ease;
}
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { color: var(--sep); }

/* ---- headings ---- */
.h-root {
  margin: 0 0 34px;
  font-family: 'Newsreader', serif; font-style: italic; font-weight: 400;
  font-size: 54px; letter-spacing: -0.02em; color: var(--ink);
}
.head { margin-bottom: 34px; }
.head .date-label {
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 15px;
}
.head h1 {
  margin: 0;
  font-family: 'Newsreader', serif; font-weight: 500;
  font-size: 38px; letter-spacing: -0.01em; color: var(--ink);
}
.head .note {
  font-family: 'Newsreader', serif; font-style: italic;
  font-size: 20px; color: var(--muted-2); margin-top: 12px;
}
.head .note a { color: var(--accent); text-decoration: underline;
  text-decoration-color: var(--link-underline); text-underline-offset: 3px; }

/* ---- prose ---- */
.prose p {
  margin: 0 0 22px;
  font-family: 'Spectral', serif; font-size: 18px; line-height: 1.72;
  color: var(--prose); max-width: 640px;
}
.prose a { color: var(--accent); text-decoration: underline;
  text-decoration-color: var(--link-underline); text-underline-offset: 3px; }

/* ---- Now chips (focused.isNow) ---- */
.now-list { display: flex; flex-direction: column; gap: 13px; align-items: flex-start; margin-top: 8px; }
.now-list .chip {
  background: var(--now-chip); padding: 6px 15px; border-radius: 2px;
  font-size: 17px; color: var(--ink);
}

/* ---- outline rows (collectRows / makeRow) ---- */
.outline { margin-top: 14px; }

.row-wrap { display: flex; align-items: stretch; }
.rail { flex: 0 0 26px; align-self: stretch; border-left: 1px solid var(--rail); }

.row {
  display: flex; align-items: flex-start; gap: 8px; flex: 1;
  padding: 8px 10px; border-radius: 9px;
  transition: background .12s ease;
}
.row:hover { background: var(--row-hover); }

.twirl-slot { flex: 0 0 12px; display: inline-flex; justify-content: center; padding-top: 1px; }
.twirl {
  appearance: none; background: none; border: 0; padding: 0; margin-top: 7px;
  width: 0; height: 0; cursor: pointer;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid var(--twirl);
  transition: transform .18s ease;
}
.twirl.open { transform: rotate(90deg); }

.row-link {
  display: flex; align-items: flex-start; gap: 8px; flex: 1; min-width: 0;
  text-decoration: none; color: inherit; cursor: pointer;
}
.bullet {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; margin-top: 1px;
}
.bullet.parent { border-radius: 50%; background: var(--bullet-bg); }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.bullet.parent .dot { background: var(--accent); }
.bullet.leaf   .dot { background: var(--dot-leaf); }

.row-main { flex: 1; min-width: 0; padding-top: 1px; }
.row-line {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
}
.title-wrap { text-wrap: pretty; }
.title { font-size: 17px; color: var(--ink); }
.title.is-link {
  color: var(--accent); text-decoration: underline;
  text-decoration-color: var(--link-underline); text-underline-offset: 3px;
}
.note-inline { font-size: 14.5px; color: var(--muted); font-style: italic; }
.date {
  font-size: 12.5px; color: var(--muted); letter-spacing: .04em; white-space: nowrap;
}

/* smooth zoom between focuses (View Transitions) */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root),
  ::view-transition-new(root) { animation-duration: .22s; }
}

@media (max-width: 560px) {
  .page { padding: 56px 20px 100px; }
  .h-root { font-size: 40px; }
  .head h1 { font-size: 30px; }
  .rail { flex-basis: 18px; }
}
