/* usual.so/changelog: a date rail on the left, the change on the right, one large screenshot on
   a soft stage. One column on phones. Pins are deep rose; the stage is a cool grey. */

.chg-hero {
  padding-bottom: 24px;
}
.chg-hero-entry {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
}
.chg-feed {
  margin-top: 20px;
}

.chg-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
  list-style: none;
}
.chg-entry {
  display: grid;
  gap: 12px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 72px;
}
.chg-single .chg-entry {
  border-top: 0;
  padding-top: 8px;
}
.chg-rail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.chg-rail time {
  font: 500 14px / 1.4 var(--label);
  color: var(--muted);
}
.chg-plan {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid rgba(184, 53, 90, 0.35);
  border-radius: 999px;
  color: var(--brand);
  font: 500 12px / 1.5 var(--label);
  white-space: nowrap;
}
.chg-plan-sm {
  margin-left: 8px;
  padding: 0 8px;
  font-size: 11px;
  vertical-align: 1px;
}
.chg-main {
  min-width: 0;
}
.chg-title {
  font: 400 28px / 1.2 var(--display);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.chg-single .chg-title {
  font-size: 36px;
  font-weight: 300;
  line-height: 1.1;
}
.chg-title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.chg-summary {
  max-width: 680px;
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.55;
}
.chg-more {
  display: inline-flex;
  margin-top: 20px;
}
.chg-items {
  max-width: 720px;
  margin-top: 18px;
}
.chg-items li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid rgba(30, 23, 40, 0.08);
  line-height: 1.5;
}
.chg-items li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* ---------- The screenshot ---------- */
.chg-fig {
  margin-top: 28px;
}
.chg-stage {
  padding: 16px;
  border-radius: 20px;
  background: #eef0f3;
}
.chg-shot {
  position: relative;
}
.chg-shot img {
  width: 100%;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(30, 23, 40, 0.08),
    0 12px 32px -12px rgba(30, 23, 40, 0.25);
}
.chg-fig-phone .chg-stage {
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}
.chg-fig-phone .chg-shot {
  width: min(300px, 82%);
  padding: 9px;
  border-radius: 46px;
  background: var(--ink);
  box-shadow: 0 24px 48px -20px rgba(30, 23, 40, 0.45);
}
.chg-fig-phone .chg-shot img {
  border-radius: 37px;
  box-shadow: none;
}
.chg-pin {
  position: absolute;
  z-index: 1;
  width: 0;
  height: 0;
}
.chg-pin b {
  position: absolute;
  left: -13px;
  top: -13px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font: 600 13px / 1 var(--sans);
  box-shadow:
    0 0 0 3px #fff,
    0 6px 14px rgba(30, 23, 40, 0.3);
}
.chg-pin-label {
  display: none;
}
.chg-legend {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.45;
}
.chg-legend li {
  display: flex;
  gap: 10px;
}
.chg-legend b {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font: 600 12px / 1 var(--sans);
}

/* ---------- The full entry ---------- */
.chg-prose {
  max-width: 680px;
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.65;
}
.chg-prose ul {
  padding-left: 20px;
  list-style: disc;
}
.chg-prose p + p,
.chg-prose p + ul,
.chg-prose ul + p {
  margin-top: 16px;
}
.chg-prose li + li {
  margin-top: 8px;
}
.chg-prose li::marker {
  color: var(--brand);
}
.chg-item-help {
  margin-left: 10px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}
.chg-prose a,
.chg-items a {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.chg-prose code {
  font: 0.9em var(--code);
}
.chg-help {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 420px;
  margin-top: 32px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 500;
  transition: border-color 0.2s var(--ease);
}
.chg-help span,
.chg-pager span {
  font: 500 13px / 1.4 var(--label);
  color: var(--muted);
}
.chg-help:hover {
  border-color: var(--ink);
}
.chg-pager {
  display: grid;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
}
.chg-pager a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 500;
}
.chg-pager-all {
  color: var(--muted);
}

@media (min-width: 760px) {
  .chg-stage {
    padding: 28px;
  }
  .chg-fig-phone .chg-stage {
    padding: 44px 28px;
  }
  .chg-pin-label {
    position: absolute;
    top: 0;
    display: block;
    padding: 5px 11px;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: 500 14px / 1.3 var(--sans);
    white-space: nowrap;
    transform: translateY(-50%);
    box-shadow:
      0 0 0 1.5px var(--brand),
      0 8px 20px -6px rgba(30, 23, 40, 0.3);
  }
  .chg-pin-label::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 22px;
    height: 2px;
    background: var(--brand);
  }
  .chg-pin-right .chg-pin-label {
    left: 36px;
  }
  .chg-pin-right .chg-pin-label::before {
    right: 100%;
  }
  .chg-pin-left .chg-pin-label {
    right: 36px;
  }
  .chg-pin-left .chg-pin-label::before {
    left: 100%;
  }
  .chg-pin-top .chg-pin-label,
  .chg-pin-bottom .chg-pin-label {
    left: -14px;
    transform: none;
  }
  .chg-pin-top .chg-pin-label {
    top: auto;
    bottom: 36px;
  }
  .chg-pin-bottom .chg-pin-label {
    top: 36px;
  }
  .chg-pin-end .chg-pin-label {
    left: auto;
    right: -14px;
  }
  .chg-pin-top .chg-pin-label::before,
  .chg-pin-bottom .chg-pin-label::before {
    top: auto;
    left: 13px;
    width: 2px;
    height: 22px;
  }
  .chg-pin-end .chg-pin-label::before {
    left: auto;
    right: 13px;
  }
  .chg-pin-top .chg-pin-label::before {
    top: 100%;
  }
  .chg-pin-bottom .chg-pin-label::before {
    bottom: 100%;
  }
  .chg-fig-phone .chg-pin-label {
    width: max-content;
    max-width: 190px;
    white-space: normal;
  }
  .chg-legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .chg-pager {
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
  }
  .chg-pager-newer {
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .chg-entry {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 40px;
    padding: 64px 0;
  }
  .chg-rail {
    position: sticky;
    top: 88px;
    flex-direction: column;
    align-items: flex-start;
    align-self: start;
  }
  .chg-title {
    font-size: 32px;
  }
  .chg-single .chg-title {
    font-size: 44px;
  }
}
