/* 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;
}

.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.68rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.context-citation__value {
  margin: 0;
  line-height: 1.55;
}
.context-citation__value--absent {
  color: var(--ink-soft);
  font-style: italic;
}

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