/* Editorial — component kit.
 *
 * Load after colors_and_type.css and color-schemes.css. Colours come only
 * from semantic slots; size, voice, space, and motion tokens are
 * theme-invariant and used directly. Every animated component has a still
 * state under prefers-reduced-motion.
 */

/* ---- base ---------------------------------------------------------------- */
.ed {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font: 400 var(--ed-size-body) / var(--ed-leading-body) var(--font-text);
  -webkit-font-smoothing: antialiased;
}
.ed *,
.ed *::before,
.ed *::after {
  box-sizing: border-box;
}
:where(.ed) :is(h1, h2, h3, p, ul, ol, figure, blockquote, fieldset, table) {
  margin: 0;
  padding: 0;
}
:where(.ed) :is(ul, ol) {
  list-style: none;
}
:where(.ed) a {
  color: inherit;
}
.ed ::selection {
  background: var(--text-primary);
  color: var(--bg);
}
.ed :focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.ed-wrap {
  width: min(var(--ed-wide), 100%);
  margin-inline: auto;
  padding-inline: var(--ed-gutter);
}
.ed-grid {
  display: grid;
  grid-template-columns: repeat(var(--ed-columns), minmax(0, 1fr));
  column-gap: var(--ed-column-gap);
}

/* ---- label and kicker ---------------------------------------------------- */
.ed-label,
.ed-kicker {
  font: 600 var(--ed-size-label) / 1 var(--font-text);
  letter-spacing: var(--ed-track-label);
  text-transform: uppercase;
}
.ed-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ed-kicker::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
}

/* ---- masthead ------------------------------------------------------------ */
.ed-masthead__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--ed-space-4);
  min-height: 4.4rem;
}
.ed-masthead__motto,
.ed-masthead__nav {
  font: 600 0.74rem / 1 var(--font-text);
  font-stretch: 85%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ed-masthead__motto {
  color: var(--text-secondary);
}
.ed-masthead__brand {
  justify-self: center;
  font: 800 1.65rem / 1 var(--font-display);
  font-variation-settings: var(--ed-voice-bold);
  letter-spacing: -0.02em;
  text-decoration: none;
}
.ed-masthead__nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.15rem;
}
.ed-masthead__nav a {
  text-decoration: none;
}
.ed-masthead__nav a:hover,
.ed-masthead__nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.35em;
}
.ed-masthead__rules {
  height: 6px;
  border-top: var(--ed-rule-heavy) solid var(--masthead-rule);
  border-bottom: var(--ed-rule) solid var(--masthead-rule);
}
.ed-masthead__menu {
  display: none;
  justify-self: end;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.ed-menu {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg);
  color: var(--text-primary);
}
.ed-menu__inner {
  display: grid;
  align-content: start;
  gap: 2rem;
  padding: 1rem var(--ed-gutter) 3rem;
}
.ed-menu .ed-masthead__menu {
  display: grid;
}
.ed-menu nav {
  display: grid;
  gap: 0.35rem;
}
.ed-menu nav a {
  padding: 0.55rem 0;
  border-bottom: var(--ed-rule) solid var(--line-soft);
  font: 800 2rem / 1.2 var(--font-display);
  font-variation-settings: var(--ed-voice-bold);
  letter-spacing: -0.035em;
  text-decoration: none;
}

/* ---- hero: name, dek, byline, portrait ---------------------------------- */
.ed-name {
  --wght: 860;
  --soft: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-size: var(--ed-size-name);
  font-weight: 860;
  line-height: var(--ed-leading-name);
  letter-spacing: var(--ed-track-name);
  font-variation-settings: "wght" var(--wght), "SOFT" var(--soft), "WONK" 0;
  animation: ed-settle var(--ed-dur-settle) var(--ease-settle) both;
}
.ed-name span:last-child {
  padding-left: 0.55em;
}
@keyframes ed-settle {
  from {
    font-variation-settings: var(--ed-voice-light);
    letter-spacing: 0.02em;
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}
.ed-dek {
  font: 380 var(--ed-size-dek) / 1.05 var(--font-display);
  font-variation-settings: var(--ed-voice-soft);
  letter-spacing: -0.02em;
}
.ed-byline {
  display: grid;
  border-top: var(--ed-rule) solid var(--rule);
}
.ed-byline li {
  padding: 10px 0;
  border-bottom: var(--ed-rule) solid var(--line);
  font-size: 15.5px;
  font-weight: 500;
}
.ed-photo {
  --py: 0px; /* parallax offset, set by script as the hero scrolls */
  position: relative;
  flex: 1;
  min-height: 420px;
  overflow: hidden;
  background: var(--bg-sunken);
}
.ed-photo picture,
.ed-photo__fill {
  position: absolute;
  inset: -40px 0;
}
.ed-photo__fill {
  transform: translateY(var(--py));
}
.ed-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  transform: translateY(var(--py));
}
.ed-photo + figcaption,
.ed-caption {
  padding: 10px 0;
  border-bottom: var(--ed-rule) solid var(--line);
  font-size: 13px;
  color: var(--text-secondary);
}

/* ---- marquee ------------------------------------------------------------- */
.ed-marquee {
  overflow: hidden;
  background: var(--marquee-bg);
  color: var(--marquee-text);
}
.ed-marquee__track {
  display: flex;
  width: max-content;
  animation: ed-marquee var(--ed-dur-marquee) linear infinite;
}
.ed-marquee:hover .ed-marquee__track {
  animation-play-state: paused;
}
.ed-marquee__set {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 14px;
  font: 600 var(--ed-size-marquee) / 1 var(--font-text);
  font-stretch: var(--ed-stretch-condensed);
  letter-spacing: var(--ed-track-marquee);
  text-transform: uppercase;
  white-space: nowrap;
}
.ed-marquee__set i {
  width: 7px;
  height: 7px;
  background: currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}
@keyframes ed-marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---- pull quote (the one deliberate break) ------------------------------- */
.ed-quote {
  max-width: 1080px;
  font: 340 var(--ed-size-quote) / var(--ed-leading-quote) var(--font-display);
  font-variation-settings: var(--ed-voice-quote);
  letter-spacing: -0.03em;
}
.ed-quote__mark {
  display: block;
  height: 0.62em;
  margin-left: -0.04em;
  font-size: 2.6em;
  line-height: 1;
  color: var(--quote-mark);
  font-variation-settings: var(--ed-voice-mark);
}
.ed-quote em {
  font-style: normal;
  font-weight: 800;
  font-variation-settings: "wght" 800, "SOFT" 0, "WONK" 1;
  background: linear-gradient(var(--text-primary), var(--text-primary)) 0 92% / 0% 0.07em no-repeat;
  transition: background-size 1.2s var(--ease) 0.4s;
}
.ed-quote.is-in em,
.ed-quote--static em {
  background-size: 100% 0.07em;
}

/* ---- heavy rule with an orange lead -------------------------------------- */
.ed-rule {
  position: relative;
  height: var(--ed-rule-heavy);
  background: var(--rule);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform var(--ed-dur-draw) var(--ease-draw);
}
.ed-rule::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--ed-rule-lead);
  height: var(--ed-rule-heavy);
  background: var(--rule-lead);
}
.ed-rule.is-in,
.ed-rule--static {
  transform: none;
}

/* ---- chapter ------------------------------------------------------------- */
.ed-chapter {
  display: grid;
  grid-template-columns: repeat(var(--ed-columns), minmax(0, 1fr));
  column-gap: var(--ed-column-gap);
}
.ed-chapter > .ed-rule {
  grid-column: 1 / -1;
  margin-bottom: 36px;
}
.ed-chapter__head {
  position: sticky;
  top: 28px;
  grid-column: 1 / span 4;
  align-self: start;
  isolation: isolate;
}
.ed-chapter__numeral {
  position: absolute;
  right: 0;
  top: -0.06em;
  z-index: -1;
  font: 900 var(--ed-size-numeral) / 0.8 var(--font-display);
  font-variation-settings: var(--ed-voice-mark);
  letter-spacing: -0.04em;
  color: var(--watermark);
  pointer-events: none;
}
.ed-chapter__kicker {
  padding-top: 6px;
}
.ed-chapter__title {
  margin-top: 14px;
  font: 800 var(--ed-size-chapter) / 0.86 var(--font-display);
  letter-spacing: -0.05em;
  font-variation-settings: var(--ed-voice-light);
  transition: font-variation-settings var(--ed-dur-morph) var(--ease-settle) 0.15s;
}
.ed-chapter__head.is-in .ed-chapter__title,
.ed-chapter__head--static .ed-chapter__title {
  font-variation-settings: var(--ed-voice-heavy);
}
.ed-chapter__deck {
  margin-top: 18px;
  max-width: 14em;
  font: 420 var(--ed-size-deck) / 1.15 var(--font-display);
  font-variation-settings: var(--ed-voice-deck);
}
.ed-chapter__body {
  grid-column: 6 / span 7;
  display: grid;
  gap: 44px;
}

/* ---- lede and drop cap --------------------------------------------------- */
.ed-lede {
  max-width: var(--ed-measure);
  font-size: var(--ed-size-lede);
  line-height: 1.55;
}
.ed-drop::first-letter {
  float: left;
  margin: 0.06em 0.1em 0 0;
  font: 860 var(--ed-dropcap-size) / 0.8 var(--font-display);
  font-variation-settings: var(--ed-voice-heavy);
}

/* ---- table (schools) ----------------------------------------------------- */
.ed-table {
  width: 100%;
  border-collapse: collapse;
  border-top: var(--ed-rule) solid var(--rule);
}
.ed-table tr {
  border-bottom: var(--ed-rule) solid var(--line);
}
.ed-table th {
  width: 4.2em;
  padding: 16px 12px 16px 0;
  text-align: left;
  vertical-align: top;
  font: 700 24px / 1 var(--font-display);
  font-variation-settings: var(--ed-voice-table);
  letter-spacing: -0.02em;
}
.ed-table td {
  padding: 16px 12px 16px 0;
  vertical-align: top;
  font-size: 16px;
}
.ed-table td b {
  display: block;
  font-weight: 600;
}
.ed-table__note {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--text-secondary);
}
.ed-table__end {
  text-align: right;
  color: var(--text-secondary);
}
.ed-table__at {
  display: none;
  font-size: 15px;
  color: var(--text-secondary);
}

/* ---- proof (before → after) and counts ----------------------------------- */
.ed-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: var(--ed-rule) solid var(--rule);
}
.ed-proof__item {
  padding: 22px 20px 22px 0;
  border-bottom: var(--ed-rule) solid var(--line);
}
.ed-proof__item:nth-child(odd) {
  border-right: var(--ed-rule) solid var(--line);
}
.ed-proof__item:nth-child(even) {
  padding-left: 20px;
}
.ed-proof__num {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2em;
  font: 800 var(--ed-size-number) / 1 var(--font-display);
  font-variation-settings: var(--ed-voice-bold);
  letter-spacing: var(--ed-track-display);
  font-variant-numeric: lining-nums;
}
.ed-proof__from {
  color: var(--text-faint);
  font-variation-settings: var(--ed-voice-from);
}
.ed-proof__arrow {
  font-size: 0.55em;
  color: var(--text-faint);
}
.ed-proof__label {
  margin-top: 10px;
  max-width: 26em;
  font-size: var(--ed-size-small);
  line-height: 1.45;
  color: var(--text-secondary);
}
.ed-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--ed-rule) solid var(--rule);
}
.ed-count {
  padding: 18px 14px 18px 0;
}
.ed-count + .ed-count {
  padding-left: 14px;
  border-left: var(--ed-rule) solid var(--line);
}
.ed-count__num {
  font: 800 var(--ed-size-count) / 1 var(--font-display);
  font-variation-settings: var(--ed-voice-bold);
  letter-spacing: var(--ed-track-display);
  font-variant-numeric: lining-nums tabular-nums;
}
.ed-count__label {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.35;
  color: var(--text-secondary);
}

/* ---- articles and sidebar ------------------------------------------------ */
.ed-articles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ed-column-gap);
}
.ed-article {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: var(--ed-rule-heavy) solid var(--rule);
}
.ed-article__kicker {
  font: 600 11.5px / 1.2 var(--font-text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.ed-article__title {
  font: 720 var(--ed-size-article) / 1 var(--font-display);
  font-variation-settings: var(--ed-voice-article);
  letter-spacing: -0.03em;
}
.ed-article__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.ed-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 8px 32px;
  padding: 26px 28px;
  border: var(--ed-rule-box) solid var(--rule);
  background: var(--sidebar-bg);
}
.ed-sidebar > .ed-article__kicker {
  grid-column: 1 / -1;
}
.ed-sidebar__title {
  font: 860 clamp(36px, 3.6vw, 52px) / 0.95 var(--font-display);
  font-variation-settings: var(--ed-voice-heavy-wonk);
  letter-spacing: var(--ed-track-display);
}
.ed-sidebar__text {
  font-size: 16px;
  line-height: 1.5;
}
.ed-sidebar .ed-link {
  grid-column: 2;
}

/* ---- links and buttons --------------------------------------------------- */
.ed-link {
  margin-top: auto;
  overflow-wrap: anywhere; /* long URL labels wrap inside narrow columns */
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.ed-link:hover {
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}
.ed-link--strong {
  font-size: 15px;
}
.ed-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 26px;
  border: 0;
  border-radius: var(--ed-radius);
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  font: 700 16px / 1 var(--font-text);
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--ed-dur-quick), translate var(--ed-dur-quick) ease-out;
}
.ed-btn:hover {
  background: var(--button-primary-bg-hover);
}
/* Inner pages use compact buttons: an outline, and an orange primary. */
.ed-btn--outline,
.ed-btn--compact {
  gap: 0.55em;
  padding: 0.72em 1.15em;
  border: var(--ed-rule) solid var(--line-firm);
  font: 500 0.95rem / 1.2 var(--font-text);
  letter-spacing: 0;
  transition: background-color var(--ed-dur-quick) ease, border-color var(--ed-dur-quick) ease;
}
.ed-btn--outline {
  background: transparent;
  color: var(--text-primary);
}
.ed-btn--outline:hover {
  background: var(--wash);
  border-color: var(--text-primary);
}
.ed-btn--compact {
  border-color: var(--button-primary-bg);
}
.ed-btn--compact:hover {
  border-color: var(--button-primary-bg-hover);
}
.ed-btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ---- figure, date box, list --------------------------------------------- */
.ed-figure__media {
  aspect-ratio: 16 / 9;
  background: var(--bg-inverse);
  color: var(--text-inverse);
}
.ed-figure figcaption {
  padding: 12px 0;
  border-bottom: var(--ed-rule) solid var(--line);
  font-size: var(--ed-size-small);
  line-height: 1.5;
  color: var(--text-secondary);
}
.ed-figure figcaption b {
  color: var(--text-primary);
}
.ed-figure__media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ed-figure__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  font-weight: 600;
  color: var(--text-primary);
}
.ed-figure__links a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ed-datebox {
  padding: 22px 24px;
  border: var(--ed-rule-box) solid var(--rule);
}
.ed-datebox__row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 14px;
}
.ed-datebox__date {
  display: grid;
  flex: none;
  place-items: center;
  width: 84px;
  padding: 8px 0 10px;
  background: var(--date-block-bg);
  color: var(--date-block-text);
  font: 800 44px / 1 var(--font-display);
  font-variation-settings: var(--ed-voice-bold);
}
.ed-datebox__date span {
  font: 700 12px / 1.6 var(--font-text);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ed-datebox__event {
  font: 700 24px / 1.1 var(--font-display);
  font-variation-settings: var(--ed-voice-table);
  letter-spacing: -0.02em;
}
.ed-datebox__meta {
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-secondary);
}
.ed-datebox__meta span:not(:empty)::before {
  content: "· ";
}
.ed-datebox__sessions {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: var(--ed-rule) solid var(--line);
  font-size: 15px;
}
.ed-datebox__sessions span {
  margin-right: 6px;
  font: 600 11.5px / 1 var(--font-text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.ed-list {
  display: grid;
  border-top: var(--ed-rule) solid var(--rule);
}
.ed-list li {
  padding: 9px 0;
  border-bottom: var(--ed-rule) solid var(--line);
  font-size: 15px;
  line-height: 1.4;
  color: var(--text-secondary);
}
.ed-list b {
  font-weight: 600;
  color: var(--text-primary);
}

/* ---- books: covers that turn like pages --------------------------------- */
.ed-books {
  display: grid;
  grid-template-columns: 80px repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.ed-books__col,
.ed-books__row {
  font: 600 var(--ed-size-label) / 1 var(--font-text);
  letter-spacing: var(--ed-track-label);
  text-transform: uppercase;
}
.ed-books__col {
  align-self: end;
  padding-bottom: 10px;
  border-bottom: var(--ed-rule) solid var(--rule);
}
.ed-books__row {
  padding-top: 6px;
  border-top: var(--ed-rule) solid var(--rule);
}
.ed-book {
  position: relative;
  min-height: 240px;
  perspective: 1400px;
}
.ed-book__end {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 18px 20px;
  background: var(--cover-endpaper);
  color: var(--text-inverse);
  font: 600 var(--ed-size-label) / 1 var(--font-text);
  letter-spacing: var(--ed-track-label);
  text-transform: uppercase;
}
.ed-book__cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 26px 28px;
  background: var(--cover-bg);
  border: 1.5px solid var(--rule);
  transform-origin: left center;
  transition: transform var(--ed-dur-turn) var(--ease), box-shadow var(--ed-dur-turn);
}
.ed-book:hover .ed-book__cover,
.ed-book:focus-within .ed-book__cover {
  transform: rotateY(var(--ed-turn));
  box-shadow: var(--ed-shadow-turn);
}
.ed-book h3 {
  max-width: 14em;
  font: 760 var(--ed-size-cover) / 1 var(--font-display);
  font-variation-settings: var(--ed-voice-cover);
  letter-spacing: -0.035em;
}
.ed-book p {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
}
.ed-book .ed-book__note {
  margin-top: 4px;
  font-weight: 400;
  color: var(--text-secondary);
}

/* ---- contact: classified picks and a letter ------------------------------ */
.ed-classifieds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
  border: 0;
  border-top: var(--ed-rule-heavy) solid var(--rule);
  border-bottom: var(--ed-rule) solid var(--rule);
}
.ed-classified {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 28px 26px 0;
}
.ed-classified + .ed-classified {
  padding-left: 28px;
  border-left: var(--ed-rule) solid var(--rule);
}
.ed-classified h3 {
  margin-bottom: 6px;
  font: 700 13px / 1 var(--font-text);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ed-pick {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 6px 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}
.ed-pick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ed-pick__box {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border: 1.5px solid var(--pick-box);
  transition: background-color 160ms, box-shadow 160ms;
}
.ed-pick b {
  color: var(--text-primary);
}
.ed-pick:has(input:checked) {
  color: var(--text-primary);
}
.ed-pick:has(input:checked) .ed-pick__box {
  background: var(--pick-box);
  box-shadow: inset 0 0 0 3px var(--bg);
}
.ed-pick:has(input:focus-visible) .ed-pick__box {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.ed-letter__sheet {
  padding: 34px 40px 30px;
  border: var(--ed-rule) solid var(--line);
  background: var(--letter-bg);
  box-shadow: var(--ed-shadow-sheet);
}
.ed-letter__dear {
  font: 380 clamp(28px, 3vw, 38px) / 1.1 var(--font-display);
  font-variation-settings: var(--ed-voice-soft);
}
.ed-letter__msg {
  display: block;
  width: 100%;
  min-height: 216px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: repeating-linear-gradient(transparent 0 35px, var(--letter-line) 35px 36px);
  color: var(--text-primary);
  font: 400 18px / 36px var(--font-text);
  resize: vertical;
}
.ed-letter__from {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 18px;
  margin-top: 22px;
  font: 380 26px / 1.2 var(--font-display);
  font-variation-settings: var(--ed-voice-soft);
}
.ed-letter__from label {
  flex: 1 1 220px;
}
.ed-input {
  width: 100%;
  padding: 6px 2px;
  border: 0;
  border-bottom: 1.5px solid var(--input-underline);
  background: transparent;
  color: var(--text-primary);
  font: 400 17px / 1.4 var(--font-text);
}
.ed-input:focus,
.ed-letter__msg:focus {
  outline: none;
}
.ed-input:focus {
  border-bottom-color: var(--input-underline-focus);
}
:is(.ed-input, .ed-letter__msg)::placeholder {
  color: var(--text-faint);
}
.ed-status {
  font-size: var(--ed-size-small);
  color: var(--text-secondary);
}
.ed-status[data-state="sent"] {
  font-weight: 600;
  color: var(--text-primary);
}
.ed-status[data-state="error"] {
  font-weight: 600;
  color: var(--status-error);
}

/* ---- inner-page opener, chips, timeline --------------------------------- */
.ed-intro {
  padding-bottom: clamp(26px, 3vw, 38px);
  border-bottom: var(--ed-rule) solid var(--rule);
}
.ed-intro__title {
  margin-top: 22px;
  max-width: 14ch;
  font: 860 clamp(52px, 8vw, 116px) / 0.92 var(--font-display);
  font-variation-settings: var(--ed-voice-heavy);
  letter-spacing: -0.035em;
}
.ed-intro__title em {
  font-style: normal;
  font-weight: 380;
  font-variation-settings: var(--ed-voice-soft);
}
.ed-intro__lede {
  margin-top: 26px;
  max-width: 40rem;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--text-secondary);
}
.ed-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border: var(--ed-rule) solid var(--line);
  border-radius: var(--ed-radius);
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.ed-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.ed-chip:hover {
  border-color: var(--line-firm);
  color: var(--text-primary);
}
.ed-chip:has(input:checked) {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: var(--bg);
}
.ed-chip:has(input:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
/* Writing: entries grouped by year; the year sits in a 6rem column on wide screens. */
.ed-year {
  display: grid;
  gap: 0.5rem 2.5rem;
  margin-bottom: 3.5rem;
}
.ed-year__label {
  padding-top: 1.2rem;
  font: 800 clamp(1.55rem, 1.35rem + 0.9vw, 2.05rem) / 1.04 var(--font-display);
  font-variation-settings: var(--ed-voice-bold);
  letter-spacing: -0.035em;
  color: var(--text-faint);
}
.ed-timeline {
  border-top: var(--ed-rule) solid var(--line);
}
.ed-entry {
  display: grid;
  gap: 0.35rem;
  padding: 1.45rem 0 1.55rem;
  border-bottom: var(--ed-rule) solid var(--line-soft);
}
.ed-entry__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.ed-entry__title {
  font: 400 clamp(1.55rem, 1.35rem + 0.9vw, 2.05rem) / 1.18 var(--font-display);
  text-decoration: none;
}
.ed-entry__desc {
  max-width: 44rem;
  color: var(--text-secondary);
}

/* ---- colophon ------------------------------------------------------------ */
.ed-colophon {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 2rem;
  padding: 1.4rem 0 2.6rem;
  border-top: var(--ed-rule-heavy) solid var(--rule);
  font-size: 0.88rem;
}
.ed-colophon__brand {
  font: 800 1.35rem / 1 var(--font-display);
  font-variation-settings: var(--ed-voice-bold);
  letter-spacing: -0.02em;
}
.ed-colophon nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  font-weight: 500;
}
.ed-colophon nav a {
  text-decoration: none;
}
.ed-colophon nav a:hover {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}
.ed-colophon__quiet {
  color: var(--text-tertiary);
}
.ed-colophon__note {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
  color: var(--text-tertiary);
}

/* ---- reveal (add .is-in when the element enters the viewport) ------------ */
.ed-reveal {
  opacity: 0;
  transform: translateY(var(--ed-lift));
  transition: opacity var(--ed-dur-reveal) ease-out, transform 800ms var(--ease);
}
.ed-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---- responsive ---------------------------------------------------------- */
@media (max-width: 1020px) {
  .ed-articles {
    grid-template-columns: 1fr;
  }
  .ed-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ed-count:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 900px) {
  .ed-photo {
    min-height: 0;
    aspect-ratio: 4 / 5;
  }
  .ed-sidebar .ed-link {
    grid-column: 1;
  }
  .ed-chapter {
    grid-template-columns: 1fr;
  }
  .ed-chapter__head,
  .ed-chapter__body {
    grid-column: 1 / -1;
  }
  .ed-chapter__head {
    position: relative;
    top: 0;
    margin-bottom: 32px;
  }
  .ed-sidebar {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .ed-colophon {
    grid-template-columns: 1fr;
  }
  .ed-colophon__note {
    justify-items: start;
  }
}
@media (min-width: 860px) {
  .ed-year {
    grid-template-columns: 6rem minmax(0, 1fr);
  }
}
@media (max-width: 860px) {
  .ed-masthead__row {
    grid-template-columns: 1fr auto;
  }
  .ed-masthead__motto,
  .ed-masthead__nav {
    display: none;
  }
  .ed-masthead__brand {
    justify-self: start;
  }
  .ed-masthead__menu {
    display: grid;
  }
}
@media (max-width: 640px) {
  .ed-proof,
  .ed-classifieds {
    grid-template-columns: 1fr;
  }
  .ed-table th {
    font-size: 20px;
  }
  .ed-table__end {
    display: none;
  }
  .ed-table__at {
    display: block;
  }
  .ed-books {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .ed-books__corner,
  .ed-books__col {
    display: none;
  }
  .ed-books__row {
    margin-top: 12px;
    padding-bottom: 4px;
  }
  .ed-book {
    min-height: 190px;
  }
  .ed-proof__item:nth-child(odd) {
    border-right: 0;
  }
  .ed-proof__item:nth-child(even) {
    padding-left: 0;
  }
  .ed-classified + .ed-classified {
    padding-left: 0;
    border-left: 0;
    border-top: var(--ed-rule) solid var(--rule);
  }
  .ed-letter__sheet {
    padding: 24px 18px 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ed-name,
  .ed-marquee__track {
    animation: none;
  }
  .ed-rule {
    transform: none;
    transition: none;
  }
  .ed-chapter__title {
    font-variation-settings: var(--ed-voice-heavy);
    transition: none;
  }
  .ed-quote em {
    background-size: 100% 0.07em;
    transition: none;
  }
  .ed-book__cover,
  .ed-reveal {
    transition: none;
  }
  .ed-reveal {
    opacity: 1;
    transform: none;
  }
}
