/* ============================================================
   Kaleido - editorial monochrome (from design/candidate-a.html)
   Ink on paper. Exactly one drop of hue per element, never two.
   The hue toggle re-tints paper, ink and accent together, so one
   click changes the mood of the whole issue.

   intended display face: GT Sectra Fine (fallback: Georgia stack)
   intended text face:    Untitled Sans   (fallback: system-ui stack)
   intended label face:   Söhne Mono      (fallback: ui-monospace stack)
   ============================================================ */

/* ---- color scheme: system by default, cookie pins light or dark ---- */
html { color-scheme: light dark; }
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; }

/* ---- hue themes: every color on the page derives from these.
   each token carries its light and dark value in one light-dark() pair;
   dark inverts paper and ink and lifts the hue so it holds contrast. ---- */
html[data-hue="a"] {
  --hue-1: light-dark(#b8321a, #e05a3e);      /* carmine */
  --hue-deep: light-dark(#8a2412, #ec7f66);
  --hue-wash: light-dark(#f1e0da, #33201a);
  --paper: light-dark(#faf7f2, #17130f);
  --paper-2: light-dark(#f3efe8, #211c16);
  --ink: light-dark(#1a1512, #f0e9df);
  --ink-2: light-dark(#6f665e, #a89d90);
  --line: light-dark(#e2dbd2, #2e2820);
  --line-strong: light-dark(#c9c0b5, #453d32);
}
html[data-hue="b"] {
  --hue-1: light-dark(#1f3ec0, #7289ec);      /* cobalt */
  --hue-deep: light-dark(#172e95, #93a5f1);
  --hue-wash: light-dark(#dfe3f5, #1b2138);
  --paper: light-dark(#f7f8fb, #10131a);
  --paper-2: light-dark(#eef0f6, #181c26);
  --ink: light-dark(#12141c, #eef1f8);
  --ink-2: light-dark(#61656f, #98a0b2);
  --line: light-dark(#dde0e8, #242938);
  --line-strong: light-dark(#c2c6d2, #384054);
}
html[data-hue="c"] {
  --hue-1: light-dark(#20623c, #4aa877);      /* laurel */
  --hue-deep: light-dark(#174a2d, #6fbf95);
  --hue-wash: light-dark(#dfe9e0, #16281d);
  --paper: light-dark(#f7f9f5, #0f1410);
  --paper-2: light-dark(#eef2ec, #171e18);
  --ink: light-dark(#141712, #edf3ee);
  --ink-2: light-dark(#636b61, #93a396);
  --line: light-dark(#dee4dc, #232c24);
  --line-strong: light-dark(#c4ccc1, #364237);
}

/* ---- reset-ish ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* the one orchestrated moment: hue switch cross-fades the page mood */
@media (prefers-reduced-motion: no-preference) {
  body,
  .card, .cover, .toolbar, .mast, .seg-btn, .hue-btn, .theme-btn, .photos-btn, .site-footer {
    transition: background-color .35s ease, color .35s ease, border-color .35s ease;
  }
  .card { transition: background-color .35s ease, color .35s ease, border-color .35s ease, opacity .25s ease, transform .25s ease; }
}

::selection { background: var(--hue-1); color: var(--paper); }

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--hue-1);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: .5rem 1rem;
  z-index: 10;
}
.skip-link:focus-visible { left: 1rem; top: 1rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- type helpers ---- */
.serif {
  font-family: "GT Sectra Fine", Georgia, "Times New Roman", "Iowan Old Style", serif;
}
.mono {
  font-family: "Söhne Mono", ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Case-sensitive secrets must render verbatim, not uppercased. */
.admin-token {
  text-transform: none;
  letter-spacing: normal;
  word-break: break-all;
  user-select: all;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

/* ---- masthead ---- */
.mast { border-bottom: 1px solid var(--ink); }

.mast-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 1rem;
  padding: 1.4rem 0 1.1rem;
}
.mast-meta { color: var(--ink-2); }
.mast-meta.right { text-align: right; }

.mast-brand { text-align: center; }
.wordmark {
  font-family: "GT Sectra Fine", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: .22em;
  text-indent: .22em; /* optically recenters the tracked wordmark */
  text-align: center;
  line-height: 1;
}
.mast-tagline {
  color: var(--ink-2);
  margin-top: .5rem;
  letter-spacing: .04em;
}
.wordmark span { color: var(--hue-1); } /* the single tinted letter */

.mast-nav {
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .1rem 1.6rem;
  padding: .65rem 0;
}
.mast-nav a {
  color: var(--ink-2);
  padding: .15rem .1rem;
}
.mast-nav a:hover { color: var(--hue-1); }
.mast-nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom: 2px solid var(--hue-1);
}

/* ---- toolbar: audience filter; hue/theme toggles live in the masthead ---- */
.toolbar {
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.toolbar-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .8rem 1.4rem;
  padding: .6rem 0;
}
.toolbar-label { color: var(--ink-2); }

.seg { display: inline-flex; border: 1px solid var(--line-strong); }
.seg-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-family: "Söhne Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .45rem .9rem;
  cursor: pointer;
}
.seg-btn + .seg-btn { border-left: 1px solid var(--line-strong); }
.seg-btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

.mast-controls {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .5rem;
}

.hue-btn,
.theme-btn,
.photos-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: "Söhne Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .45rem .9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.hue-btn:hover, .theme-btn:hover, .photos-btn:hover { border-color: var(--hue-1); }
.mast-signin { text-decoration: none; }
.mast-account {
  display: inline-flex;
  align-items: center;
  color: var(--ink-2);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mast-logout { display: inline-flex; margin: 0; }
.hue-dot {
  width: .7rem;
  height: .7rem;
  border-radius: 50%;
  background: var(--hue-1);
  flex: none;
}

.filter-status { color: var(--ink-2); }

/* ---- location search (travel & events) ---- */
.loc-search-wrap { margin-top: 1.2rem; }
.loc-search {
  position: relative;
  max-width: 26rem;
}
.loc-input {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
}
.loc-input::placeholder { color: var(--ink-2); }
.loc-input:focus-visible { outline: 2px solid var(--hue-1); outline-offset: 1px; }
.loc-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 20;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-top: 0;
}
.loc-suggest li {
  padding: .5rem .7rem;
  cursor: pointer;
  border-top: 1px solid var(--line);
}
.loc-suggest li:first-child { border-top: 0; }
.loc-suggest li[aria-selected="true"],
.loc-suggest li:hover { background: var(--paper-2); }
.loc-nomatch { margin-top: .5rem; color: var(--ink-2); }

/* ---- cards, shared ---- */
.card { display: block; }
.card.is-hidden { display: none; }

.card-link { display: block; }
.card-link:hover .title { color: var(--hue-deep); }
.card-link:hover .cover svg { opacity: .92; }

.cover {
  background: var(--paper-2);
  border: 1px solid var(--line);
  line-height: 0;
  overflow: hidden;
}
.cover svg { width: 100%; height: auto; display: block; }

/* photo covers: duotone toward the hue, so the toggle re-tints them too.
   grayscale photo multiplied over the hue field, then the paper tone
   screened back on top: darkest values lift toward paper, highlights
   settle into the ink color. riso, not instagram. */
.cover-photo { position: relative; background: var(--hue-1); }
.cover-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: grayscale(1) contrast(1.06) brightness(1.02);
  mix-blend-mode: multiply;
  opacity: .92;
}
.cover-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--paper);
  mix-blend-mode: screen;
  opacity: .3;
  pointer-events: none;
}
.card-link:hover .cover-photo img { opacity: .85; }

html[data-photos="natural"] .cover-photo { background: none; }
html[data-photos="natural"] .cover-photo img {
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}
html[data-photos="natural"] .cover-photo::after { content: none; }

/* photo credit + caption, article detail only */
.cover-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: .3rem 1.1rem;
  margin-top: .55rem;
  color: var(--ink-2);
}
.cover-note {
  flex: 1 1 20ch;
  min-width: 0;
  font-size: .9rem;
  line-height: 1.45;
  font-style: italic;
}
.cover-credit {
  margin-left: auto;
  font-size: .62rem;
  letter-spacing: .02em;
  color: var(--ink-2);
  white-space: nowrap;
}
.cover-credit .ck { margin-right: .55ch; font-size: .58rem; color: var(--hue-1); }

.label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .4rem 1rem;
  margin-top: .8rem;
}
.label > span { white-space: nowrap; }
.label .sec { color: var(--hue-1); }
.label .aud { color: var(--ink-2); letter-spacing: .08em; text-transform: none; }
.label .date,
.label .evt,
.label .city { color: var(--ink-2); font-size: .62rem; letter-spacing: .1em; }

.title {
  font-family: "GT Sectra Fine", Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.12;
  margin-top: .45rem;
}
.title .hw { color: var(--hue-1); font-style: italic; } /* the hue-word */

.dek {
  color: var(--ink-2);
  margin-top: .55rem;
  font-size: .93rem;
  max-width: 60ch;
}

.byline {
  margin-top: .7rem;
  font-size: .8rem;
  color: var(--ink);
}
.byline .with {
  font-family: "GT Sectra Fine", Georgia, serif;
  font-style: italic;
  color: var(--ink-2);
}

/* entry up/down vote: reuses the comment .vote-arrow/.vote-score idiom,
   nudged left to sit where the old like control did */
.entry-vote {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  margin: .45rem 0 -.1rem -.45rem;
}

/* quiet invitation to re-rank after a vote */
#refresh-pill {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  padding: .35rem .8rem;
  margin: 1.2rem 0 .4rem;
  cursor: pointer;
}
#refresh-pill:hover { color: var(--hue-1); border-color: var(--hue-1); }

/* slot tags: promotion into hero/featured must be unmissable */
.slot-tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--hue-1);
  border: 1px solid var(--hue-1);
  padding: .3rem .7rem;
  margin-bottom: 1.1rem;
}
.slot-tag b { font-weight: 400; color: var(--ink-2); }

/* ---- hero slot ---- */
.hero { padding: clamp(1.6rem, 4vw, 3rem) 0 clamp(1.8rem, 4vw, 3rem); }
.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero .title {
  font-size: clamp(2.2rem, 5.6vw, 4.6rem);
  letter-spacing: -.01em;
  max-width: 16ch;
}
.hero .dek { font-size: 1.05rem; margin-top: 1rem; max-width: 52ch; }
.hero .byline { margin-top: 1.1rem; font-size: .85rem; }
.hero .cover { border: 1px solid var(--line-strong); }
.hero .label { justify-content: flex-start; gap: 1.5rem; margin-top: 0; }

/* ---- featured slots ---- */
.features {
  border-top: 1px solid var(--ink);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3.5vw, 3rem);
}
.feature-card { border-left: 3px solid var(--hue-1); padding-left: clamp(.9rem, 2vw, 1.4rem); }
.feature-card .title { font-size: clamp(1.4rem, 2.6vw, 2rem); max-width: 22ch; }

/* ---- the rest: standard grid ---- */
.river-head {
  border-top: 1px solid var(--ink);
  padding: 1rem 0 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.river-head .mono { color: var(--ink-2); }
.river-head .rule-word { color: var(--hue-1); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.6rem clamp(1.4rem, 3vw, 2.4rem);
  padding: 1.6rem 0 3rem;
}
.grid .card { border-top: 1px solid var(--line-strong); padding-top: 1rem; }
.grid .title { font-size: 1.25rem; }

/* ---- article page: the front page language, one story at a time ---- */
.article {
  max-width: 760px;
  padding-top: clamp(1.6rem, 4vw, 3rem);
  padding-bottom: 3rem;
}
.article-meta { justify-content: flex-start; gap: 1.5rem; margin-top: 0; color: var(--ink-2); }
.article-title {
  font-size: clamp(2rem, 5vw, 3.6rem);
  letter-spacing: -.01em;
  margin-top: .9rem;
}
.article-dek { font-size: 1.05rem; margin-top: 1rem; max-width: 52ch; }
.article .byline { margin-top: 1.1rem; font-size: .85rem; }
.article-cover { margin-top: 1.6rem; border: 1px solid var(--line-strong); }
.article-body { margin-top: 1.8rem; }
.article-body p { margin: 0 0 1.1rem; max-width: 65ch; }
/* section subheads: more space above than below, so the head binds to the
   text it introduces and reads as a break in the column. */
.article-body h2 {
  font-family: "GT Sectra Fine", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
  max-width: 65ch;
  margin: 2.4rem 0 .9rem;
}
.article-body h3 {
  font-family: "GT Sectra Fine", Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  max-width: 65ch;
  margin: 1.8rem 0 .7rem;
}
.article-back { margin-top: 1.8rem; }
.article-back a { color: var(--ink-2); }
.article-back a:hover { color: var(--hue-1); }

/* ---- post layouts: the author picks how a story opens ----
   full: the cover runs edge to edge under the masthead, two thirds
   of the viewport tall; the column follows below.
   split: title beside a tall image, 45/55, magazine-spread style.
   breakout: 680px measure, the image widens to 1040px, centered. */
.bleed-cover {
  border-bottom: 1px solid var(--line-strong);
}
.bleed-cover img {
  height: clamp(360px, 66vh, 760px);
  aspect-ratio: auto;
}
.bleed-cover .cover-caption {
  padding: .5rem clamp(1.2rem, 2.5vw, 2rem) .2rem;
}

.split-open {
  display: grid;
  grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
  min-height: min(82vh, 860px);
  border-bottom: 1px solid var(--line-strong);
}
.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.8rem, 5vw, 4rem) clamp(1.2rem, 3.5vw, 3rem);
}
.split-title {
  font-size: clamp(2rem, 3.4vw, 3.1rem);
  max-width: 15ch;
}
.split-text .article-dek { max-width: 44ch; }
.split-cover {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  border-left: 1px solid var(--line-strong);
}
.split-cover img {
  flex: 1 1 auto;
  min-height: 0;
  aspect-ratio: auto;
}
.split-cover .cover-caption {
  padding: .5rem clamp(1.2rem, 2.5vw, 2rem) .9rem;
}
@media (max-width: 900px) {
  .split-open { grid-template-columns: 1fr; min-height: 0; }
  .split-cover { order: -1; min-height: 0; border-left: 0; border-bottom: 1px solid var(--line-strong); }
  .split-cover img { height: clamp(260px, 46vh, 420px); }
}

.article-c { max-width: 680px; }
.breakout {
  width: min(1040px, 92vw);
  margin: 1.8rem 0 0 50%;
  transform: translateX(-50%);
}
.breakout img { aspect-ratio: 16 / 9; }

/* ---- action line: share icons left, comment trigger right, conversation below ---- */
.action-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem 1.2rem;
  margin-top: 1.4rem;
}
.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .35rem;
  margin-right: auto;
}
.share-label { color: var(--ink-2); margin-right: .5rem; }
.follow-row {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.follow-btn {
  appearance: none;
  border: 1px solid var(--hue-1);
  background: transparent;
  color: var(--hue-1);
  font-size: .68rem;
  letter-spacing: .14em;
  padding: .3rem .7rem;
  cursor: pointer;
}
.follow-btn:hover { background: var(--hue-1); color: var(--paper); }
.follow-btn[data-following="true"] { background: var(--hue-1); color: var(--paper); }
.follow-count { color: var(--ink-2); font-size: .68rem; letter-spacing: .1em; }
.share-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: .3rem;
  cursor: pointer;
}
.share-btn:hover { color: var(--hue-1); }
.share-btn svg { display: block; }
.copy-link {
  font-size: .68rem;
  letter-spacing: .14em;
  margin-left: .5rem;
}
.copy-link:hover { text-decoration: underline; }

/* ---- footer: a back-of-book colophon and section index ---- */
.site-footer {
  border-top: 1px solid var(--ink);
  color: var(--ink-2);
  font-size: .8rem;
}
.footer-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 1.6rem 4rem;
  padding: 2.4rem 0 2rem;
}
.footer-lede { max-width: 34ch; display: grid; gap: .55rem; align-content: start; }
.footer-mark {
  font-family: "GT Sectra Fine", Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-indent: .26em;
  text-transform: none;
  color: var(--ink);
}
.footer-mark span { color: var(--hue-1); }
.footer-note { color: var(--ink-2); }

.footer-eyebrow { color: var(--ink-2); margin-bottom: .9rem; }
.footer-sections {
  list-style: none;
  columns: 3;
  column-gap: 2rem;
}
@media (max-width: 640px) { .footer-sections { columns: 2; } }
.footer-sections li {
  border-top: 1px solid var(--line);
  break-inside: avoid;
}
.footer-sections a {
  display: block;
  padding: .5rem .1rem;
  color: var(--ink);
}
.footer-sections a:hover { color: var(--hue-1); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding: 1rem 0 2.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
}
.site-footer a:hover { color: var(--hue-1); }
.footer-fedi { flex-basis: 100%; }

@media (max-width: 720px) {
  .footer-in { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---- static colophon pages (about, privacy) ---- */
.page {
  padding: 3.2rem clamp(1rem, 4vw, 2.5rem) 4rem;
  max-width: 68ch;
}
.page-eyebrow { color: var(--hue-1); margin-bottom: 1.1rem; }
.page-title {
  font-family: "GT Sectra Fine", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.8rem;
}
.page-body { display: grid; gap: 1.1rem; font-size: 1.02rem; line-height: 1.65; }
.page-body a { color: var(--hue-1); }
.page-note { color: var(--ink-2); margin-top: .8rem; }

/* ---- shaping debug panel ---- */
.debug-panel {
  position: fixed;
  top: 7rem;
  right: .75rem;
  width: 16.5rem;
  max-height: calc(100vh - 9rem);
  overflow-y: auto;
  padding: .7rem .8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: .65rem;
  line-height: 1.6;
  z-index: 40;
}
.debug-panel .debug-head {
  margin: 0 0 .3rem;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.debug-panel .debug-empty { margin: 0 0 .7rem; color: var(--ink-2); }
.debug-list {
  list-style: none;
  margin: 0 0 .7rem;
  padding: 0;
}
.debug-list li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 .5rem;
  border-top: 1px solid var(--line);
  padding: .2rem 0;
}
.debug-list b { font-weight: 600; }
.debug-list small { flex-basis: 100%; color: var(--ink-2); font-size: .6rem; }

.set-aside { margin: 1.4rem 0 0; color: var(--ink-2); }
.set-aside a { color: var(--ink); text-decoration: underline; }

/* ---- related stories under an article ---- */
.related { border-top: 1px solid var(--ink); margin-top: 2.6rem; padding-top: 1rem; }
.related-head { margin: 0; color: var(--ink-2); }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem clamp(1.2rem, 2.5vw, 2rem);
  padding: 1.2rem 0 0;
}
.related-card { border-top: 1px solid var(--line-strong); padding-top: 1rem; }
.related-card .title { font-size: 1.05rem; }
.related-card .label { justify-content: flex-start; }

/* ---- conversation: seeded demo comments under an article ---- */
/* display: contents lets the summary share the action line while the body wraps below */
.conversation { display: contents; }
.conversation::details-content { width: 100%; }
.conversation:not([open])::details-content { display: none; }
.conversation-head {
  margin: 0;
  color: var(--ink-2);
  list-style: none;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-height: 24px;
  cursor: pointer;
}
.conversation-head::-webkit-details-marker { display: none; }
.conversation-head::after {
  content: "+";
  color: var(--hue-1);
  font-size: .95rem;
  line-height: 1;
}
.conversation[open] .conversation-head::after { content: "\2212"; }
.conversation-head:hover { color: var(--ink); }

.comment-list { list-style: none; margin: 0; padding: .4rem 0 0; width: 100%; }
.comment { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.comment:first-child { border-top: 0; }

.comment-item { display: flex; gap: .8rem; }
.comment-item.reply { margin-top: 1rem; }
.comment-replies { margin-left: 2.8rem; }

.avatar {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hue-wash);
  color: var(--hue-deep);
  letter-spacing: .08em;
  text-indent: .08em; /* optically recenters the tracked initials */
}

.comment-body { min-width: 0; }
.comment-meta {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-size: .8rem;
}
.comment-author { font-weight: 600; }
.comment-time { color: var(--ink-2); font-size: .62rem; letter-spacing: .1em; }

.comment-origin-label {
  color: color-mix(in oklab, var(--ink) 48%, var(--paper));
  font-size: .58rem;
  letter-spacing: .18em;
}
.comment-origin {
  color: color-mix(in oklab, var(--ink) 48%, var(--paper));
  font-size: .62rem;
  text-transform: none;
  border-bottom: 1px dotted currentColor;
}
.comment-origin::after { content: " \2197"; }
.comment-origin:hover,
.comment-origin:focus-visible { border-bottom-style: solid; }

.comment-text {
  margin-top: .35rem;
  font-size: .93rem;
  max-width: 60ch;
}

.comment-actions {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin-top: .15rem;
}
.comment-vote {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-left: -.3rem;
}
.vote-arrow {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-size: .7rem;
  line-height: 1;
  min-width: 24px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .2rem;
  cursor: pointer;
}
.vote-arrow.is-static { cursor: default; }
button.vote-arrow:hover,
.vote-arrow[aria-pressed="true"] { color: var(--hue-1); }
.vote-score {
  font-size: .75rem;
  min-width: 1.4ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.comment-collapse { margin-top: .35rem; }
.comment-collapse-summary {
  color: var(--ink-2);
  font-size: .7rem;
  letter-spacing: .08em;
  cursor: pointer;
}
.comment.is-collapsed > .comment-item > .avatar,
.comment-item.reply.is-collapsed > .avatar { opacity: .5; }

.reply-affordance { margin-top: .6rem; }
.comment-reply-toggle {
  display: inline-block;
  color: var(--ink-2);
  font-size: .7rem;
  letter-spacing: .1em;
  cursor: pointer;
}
.comment-reply-toggle:hover { color: var(--hue-1); }
.reply-affordance[open] .comment-reply-toggle { color: var(--hue-1); }
.reply-form { margin-top: .6rem; max-width: 60ch; }
.reply-form .comment-post { margin-top: .5rem; }

.comment-composer {
  width: 100%;
  border-top: 1px solid var(--line);
  margin-top: .4rem;
  padding-top: 1.2rem;
}
.comment-input {
  width: 100%;
  padding: .55rem .7rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}
.comment-input::placeholder { color: var(--ink-2); }
.comment-input:focus-visible { outline: 2px solid var(--hue-1); outline-offset: 1px; }
.comment-post {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  padding: .45rem .9rem;
  margin-top: .6rem;
  cursor: pointer;
}
.comment-post:hover { border-color: var(--hue-1); color: var(--hue-1); }
.comment-note { margin-top: .6rem; color: var(--ink-2); font-size: .8rem; }
.comment-pending { margin: .8rem 0; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: .4rem; color: var(--ink-2); font-size: .8rem; }
.reply-fedi-notice {
  margin: .6rem 0;
  color: var(--ink-2);
  font-size: .62rem;
  letter-spacing: .04em;
  text-transform: none;
  line-height: 1.5;
  max-width: 60ch;
}
.reply-fedi-notice a { border-bottom: 1px dotted currentColor; }
.reply-fedi-notice a:hover,
.reply-fedi-notice a:focus-visible { border-bottom-style: solid; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { grid-template-columns: 1fr; }
  .hero .cover { order: -1; max-width: 34rem; }
}
@media (max-width: 660px) {
  .mast-top { grid-template-columns: 1fr; text-align: center; }
  .mast-meta, .mast-meta.right { text-align: center; }
  .features { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .mast-controls { justify-content: center; }
  .bleed-cover img { height: clamp(260px, 52vh, 480px); }
}
