/* Intellectual-context entries: thinkers, traditions, lenses, frameworks.

   Kept in its own file so it can be worked while the shared stylesheet is under refinement
   elsewhere. Everything below is scoped to .context-entry and cannot reach another page. */

.context-entry {
  width: min(calc(100% - 2.5rem), 64rem);
  margin-inline: auto;
  padding-block: clamp(2rem, 4vw, 3.5rem) clamp(3rem, 6vw, 5rem);
}

/* One axis. The previous version put the title at one left edge, its own lede at another 176px
   away, card text at a third and list items at a fourth; four edges on a page reads as damage
   rather than as structure. Every block below begins at the same place. */
.context-entry > * {
  margin-inline: 0;
}

.context-entry__back {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.context-entry__back a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.15rem;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.context-entry__back a:hover {
  color: var(--cobalt);
  border-color: var(--cobalt);
}

.context-entry__kind {
  display: block;
  margin: 0 0 0.9rem;
  color: var(--cobalt);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.context-entry__name {
  max-width: 20ch;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.015em;
  /* "Phenomenological" does not fit a 390px screen at this size, and without this the whole
     document scrolled sideways rather than the word breaking. */
  overflow-wrap: break-word;
  hyphens: auto;
}

.context-entry__orientation {
  max-width: 38rem;
  margin: clamp(1.25rem, 2.2vw, 1.75rem) 0 0;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.5vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Sections are separated by a hairline and rhythm rather than by boxing each one. A rounded
   card around a single sentence is what made these pages read as a form to be filled in. */
.context-part {
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: clamp(1.75rem, 3vw, 2.5rem);
  border-top: 1px solid var(--line);
}
.context-part__title {
  margin: 0 0 clamp(1.25rem, 2vw, 1.75rem);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Above the reading measure the section label moves into its own column. Stacked, the label sat
   over a column of text that used a little more than half the available width and left the rest
   of the page empty; set beside it, the same content occupies the composition and the two
   columns give the page a second axis it can actually justify. */
@media (min-width: 60rem) {
  .context-part {
    display: grid;
    grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
  }
  .context-part__title {
    grid-column: 1;
    margin: 0.35rem 0 0;
    text-align: right;
  }
  .context-part > :not(.context-part__title) {
    grid-column: 2;
  }
  .context-entry__orientation {
    max-width: 42rem;
  }
}

/* A placement or a populated section: a named reading, set as reading. */
.context-note + .context-note {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}
.context-note__label {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.9vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
}
.context-note__body {
  max-width: var(--read);
  margin: 0;
  line-height: 1.62;
  text-wrap: pretty;
}
.context-note__body + .context-note__body {
  margin-top: 0.9rem;
}

.context-list {
  max-width: var(--read);
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
}
.context-list li {
  padding: 0.55rem 0 0.55rem 1.4rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 45%);
  line-height: 1.5;
  position: relative;
}
.context-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 0.5rem;
  height: 1px;
  background: var(--cobalt);
}
.context-list li:last-child {
  border-bottom: 0;
}

/* Most entries are still scaffolds, so the statement of what is missing is the majority of what
   a reader meets. It is written as one honest sentence with the outstanding parts named inline,
   rather than as a bulleted apology thirteen items long. */
.context-pending {
  max-width: var(--read);
  margin: 0;
  padding: clamp(1.25rem, 2.2vw, 1.6rem) clamp(1.35rem, 2.4vw, 1.75rem);
  border-left: 2px solid var(--cobalt);
  background: color-mix(in srgb, var(--paper-bright), transparent 25%);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  line-height: 1.6;
  color: var(--ink-soft);
  text-wrap: pretty;
}
/* The outstanding parts are named, not shouted. Bolding all thirteen turned an honest sentence
   into a wall of bold heavier than anything else on the page; ink against the softer surrounding
   text carries the same emphasis quietly. */
.context-pending strong {
  color: var(--ink);
  font-weight: 400;
}

.context-citation {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
  gap: clamp(1rem, 2vw, 2rem);
  align-items: baseline;
  padding: clamp(0.9rem, 1.6vw, 1.15rem) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line), transparent 40%);
}
.context-citation:last-of-type {
  border-bottom: 0;
}
.context-citation__kind {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.context-citation__value {
  margin: 0;
  line-height: 1.55;
}
/* The registers that carry this record and say nothing further about it. Three of these were
   three headings over three empty lists. */
.context-listed {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-soft);
  line-height: 1.6;
}
.context-listed span {
  color: var(--ink);
  font-weight: 650;
}

/* Which kinds of reference are still missing, in one line. Each empty slot used to get a
   full row whose only content was that it was empty. */
.context-citation__absent {
  margin: 0.9rem 0 0;
  max-width: var(--measure);
  color: var(--ink-faint);
  font-size: 0.88rem;
  font-style: italic;
  line-height: 1.55;
}

@media (max-width: 46rem) {
  .context-citation {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.35rem;
  }
}

/* ---- why this reference appears: kind once, subject named ---- */
.context-group { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.context-group__kind {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.context-group__kind::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.context-group__kind span {
  order: 1;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-soft);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.context-group__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.15rem; }

.context-reading { display: grid; gap: 0.3rem; }
.context-reading__subject {
  margin: 0;
  max-width: none;
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}
.context-reading__subject a {
  color: inherit;
  text-decoration-color: color-mix(in oklab, var(--cobalt) 55%, transparent);
  text-underline-offset: 0.18em;
  transition: text-decoration-color 160ms, color 160ms;
}
.context-reading__subject a:hover { color: var(--cobalt); text-decoration-color: currentColor; }
/* One reason, the records it covers. The separator is a mark rather than a word so the
   heading reads as a set instead of as a sentence about a set. */
.context-reading__subject i {
  padding: 0 0.3rem;
  color: var(--line-2);
  font-style: normal;
  font-weight: 400;
}
.context-reading[data-covers="0"] .context-reading__body { margin-top: 0; }
.context-reading__body {
  margin: 0;
  max-width: var(--measure);
  color: var(--ink-soft);
  line-height: 1.62;
}
.context-boundary {
  margin: -0.4rem 0 1.6rem;
  max-width: 40rem;
  padding-left: 0.85rem;
  border-left: 2px solid color-mix(in oklab, var(--cobalt) 45%, var(--line));
  color: var(--ink-faint);
  font-size: 0.84rem;
  line-height: 1.55;
}
