/* What's-new / changelog page (SHY-14). Public marketing-shell surface.

   SHY-78 reskin: brought onto the new warm/editorial design language
   (home.css / signin.css / me.css). It stays an editorial list — a
   timeline of dated, curated product changes — but gains the new family's
   finish: a mono tomato kicker over a confident Fraunces header (the
   page's one generous move, bible 0.3.2), warm tomato-toned "New" tags,
   and a hairline timeline rule with a tomato dot marking each entry so
   the list reads as a deliberately-placed shelf of changes rather than a
   bare stack (bible 0.3.3). No resting shadows, no accent slabs (bible
   1.6 / 1.12) — the warmth is type, a soft container tag, and a single
   tomato dot per row.

   The .changelog__heading class + "What's new" text and the
   .changelog__tag--{New,Improved} classes are load-bearing: the heading
   is asserted in changelog_test.go and the tag suffix is the Go
   changelogTag value, so neither is renamed here. */

@layer components {

.changelog {
  max-width: min(760px, var(--content-narrow));
  margin: var(--space-section) auto var(--space-10);
  color: var(--md-on-surface);
}

.changelog__header {
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-9);
}

/* Mono kicker — frames the page as the recurring "what changed" feed with
   a leading tomato dot, echoing home.css's section kicker. It labels the
   header without restating the heading (bible 1.2). */
.changelog__kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--md-primary);
}

.changelog__kicker::before {
  content: "";
  inline-size: 6px;
  block-size: 6px;
  border-radius: var(--radius-pill);
  background: var(--md-primary);
  flex: 0 0 auto;
}

/* The page's one generous move (bible 0.3.2): a confident Fraunces
   header. Fluid between --text-3xl and --text-4xl with the display
   optical size + display tracking so it matches the home hero voice. */
.changelog__heading {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
  font-weight: var(--weight-semibold);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  font-variation-settings: 'opsz' var(--opsz-display);
}

.changelog__intro {
  margin: 0;
  max-inline-size: 54ch;
  color: var(--md-on-surface-variant);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  text-wrap: pretty;
}

.changelog__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-8);
}

/* Entry: a meta column (date + tag) beside the prose on wide screens; the
   meta stacks above the prose on narrow ones. The prose column carries a
   hairline left rule + a tomato dot marker so the list reads as a calm
   timeline (one placed object per row, bible 0.3.3) without per-entry
   marker markup beyond the ::before dot. */
.changelog__entry {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: var(--space-5);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--md-border-muted);
}

.changelog__entry:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.changelog__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.changelog__date {
  color: var(--md-on-surface-variant);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.changelog__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* "New" — the warm tomato-tint tag, the same soft-container family the
   rest of the reskin uses (bible 1.12 permits a calm container tint, not
   a saturated accent slab). */
.changelog__tag--New {
  background: var(--md-primary-container);
  color: var(--md-primary-text);
}

/* "Improved" — a quiet neutral tag so the eye lands on "New" first. */
.changelog__tag--Improved {
  background: var(--md-surface-container);
  color: var(--md-on-surface-variant);
}

/* Prose column: the timeline rail. A hairline left rule with a tomato dot
   at the top of each entry's prose, so the changes read as a placed
   sequence. The rule + dot are drawn (bible 1.5), not bolted-on chrome. */
.changelog__body {
  position: relative;
  display: grid;
  gap: var(--space-2);
  padding-left: var(--space-6);
  border-left: 1px solid var(--md-border-muted);
}

.changelog__body::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  inline-size: 9px;
  block-size: 9px;
  transform: translateX(-50%);
  border-radius: var(--radius-pill);
  background: var(--md-primary);
  /* A thin surface ring lifts the dot off the rule cleanly. */
  box-shadow: 0 0 0 3px var(--md-surface);
}

.changelog__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  font-variation-settings: 'opsz' var(--opsz-heading);
}

.changelog__text {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--md-on-surface);
  text-wrap: pretty;
}

@media (max-width: 640px) {
  .changelog {
    margin-top: var(--space-8);
  }

  .changelog__header {
    margin-bottom: var(--space-8);
  }

  .changelog__entry {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  /* Date and tag sit on one row above the prose when stacked. */
  .changelog__meta {
    flex-direction: row;
    align-items: center;
    gap: var(--space-3);
  }
}

}
