/* Essays: the essay page, the index cards, stance chips and the rule-page essay links.
   Uses only site.css tokens. */
.essay__draft { margin: 0 0 1.5rem; padding: .6rem .9rem; border: 2px dashed var(--accent-text); border-radius: 6px; font-size: .85rem; color: var(--accent-text); }
.essay__orig { font-size: var(--step--1); line-height: 1.35; color: var(--muted); margin: var(--space-8) 0 0; }

/* Author: carries weight in the head */
.essay__author { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-5); }
.essay__photo { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rule); }
.essay__author .byline { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-3); row-gap: 0; }
.byline__name { font-family: var(--serif); font-size: var(--step-1); font-weight: 700; color: var(--text); letter-spacing: 0; }
.byline__who, .byline__date, .byline__site { font-size: var(--step--1); }
/* inline-block keeps the site link's underline off its separator dot */
.byline__who::before, .byline__date::before, .byline__site::before { content: "\00b7"; display: inline-block; margin-right: var(--space-3); color: var(--muted); }
.byline__site { color: var(--accent-text); }
.byline__name { flex-basis: 100%; }
.byline__name + *::before { content: none; }

/* Layout: prose at reading measure, Revisits in the right margin */
.essay__layout { display: block; }
.essay__layout { display: flex; flex-direction: column; }
.essay__engages { order: 2; margin: var(--space-6) 0 0; padding: var(--space-4) 0 0; border-top: 1px solid var(--rule); max-width: var(--measure); }
.essay__engages .eyebrow { margin: 0; }
.essay__engages ul { margin: var(--space-3) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-4); }
.revisit { display: block; margin: 0; line-height: 1.35; font-size: var(--step--1); }
.revisit__now { display: block; margin-top: var(--space-2); font-weight: 600; }
.revisit__then { display: block; margin-top: .15rem; color: var(--muted); font-style: italic; }
@media (min-width: 1000px) {
  .essay__layout { display: grid; grid-template-columns: minmax(0, var(--measure)) 18rem; column-gap: var(--space-7); align-items: start; }
  .essay__engages { grid-column: 2; grid-row: 1; max-width: none; margin: 0; position: sticky; top: var(--space-5); }
  .essay__layout > .prose { grid-column: 1; grid-row: 1; }
}

.essay__bio { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule-soft); font-style: italic; color: var(--muted); max-width: var(--measure); }
.essay__cta { margin-top: var(--space-5); max-width: var(--measure); font-size: var(--step--1); color: var(--muted); }
.essay__cta p { margin: 0 0 var(--space-3); }
.essay__more { margin-top: var(--space-5); }

/* Stances */
.stance { font-size: var(--step--1); color: var(--muted); white-space: nowrap; }
.stance--pushes-back::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; margin-right: 0.4em; border-radius: 2px; background: var(--accent-2); vertical-align: 0.06em; }
.stance--agrees { color: var(--text); }
.stance--extends { color: var(--accent-text); }
.stance--pushes-back { color: var(--text); }

/* Index cards. Scoped under .prose where the page layout would otherwise leak list and heading styles in. */
.essay-list, .prose .essay-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-soft); }
.essay-card, .prose .essay-card { margin: 0; padding: var(--space-4) 0; border-bottom: 1px solid var(--rule-soft); }
.essay-card__author { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.essay-card__photo { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--rule); }
.essay-card__by { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--space-3); font-size: var(--step--1); color: var(--muted); }
.essay-card__name { font-family: var(--serif); font-size: var(--step-0); font-weight: 700; color: var(--text); }
.essay-card__name { flex-basis: 100%; }
.essay-card__who::before, .essay-card__date::before { content: "\00b7"; margin-right: var(--space-3); }
.essay-card__name + *::before { content: none; }
.essay-card__title, .prose .essay-card__title { margin: 0 0 var(--space-2); padding: 0; border: 0; font-size: var(--step-1); }
.essay-card__desc { margin: 0 0 var(--space-3); }
.essay-card__rules { margin: var(--space-3) 0 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.essay-card > :last-child { margin-bottom: 0; }
.essays-close { margin-top: var(--space-5); }
.essays-close p { margin: 0 0 var(--space-2); }

/* On the rules page */
.rule__essays { margin-top: .75rem; font-size: .92rem; }
.rule__essays-label { font-size: var(--step--1); font-weight: 700; color: var(--muted); margin-right: .25rem; }
.rule__revisit { display: inline-block; margin-top: var(--space-3); font-size: var(--step--1); color: var(--muted); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rule__revisit:hover { color: var(--accent-text); }

/* Values page: a value's anchor sits on its illustration, so leave room for the heading above it. */
.value-art[id] { scroll-margin-top: 7rem; }
.value__revisit { margin: var(--space-4) 0 0; }
