/* Updates: a chronological shipping ledger within Naisho's authored site system. */

.updates-page {
  max-width: 1120px;
}

.updates-page .page-lede {
  max-width: 54ch;
  margin-bottom: clamp(52px, 7vw, 82px);
}

.updates-ledger {
  display: grid;
  gap: clamp(62px, 8vw, 96px);
}

.update-group {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  padding-top: 22px;
  border-top: 0.5px solid var(--line);
}

.update-date time {
  display: block;
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.35;
}

.update-group-body {
  min-width: 0;
}

.update-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 1.2fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}

.update-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(44px, 6vw, 72px) clamp(26px, 3.5vw, 44px);
}

[data-update-date="2026-08-09"] .update-list {
  grid-template-columns: minmax(0, 1fr);
}

[data-update-date="2026-08-09"] .update-entry {
  grid-template-columns: minmax(340px, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(28px, 4vw, 52px);
}

.update-feature,
.update-entry {
  position: relative;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.update-entry {
  display: grid;
  align-content: start;
  gap: 20px;
}

.update-feature::before,
.update-entry::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -14px;
  width: 2px;
  background: var(--brand-pink);
  border-radius: 999px;
  content: "";
  opacity: 0;
  transition: opacity 160ms var(--ease-standard);
}

.update-copy {
  display: block;
}

.update-copy h2 {
  margin: 0 0 9px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.1vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.18;
  transition: color 160ms var(--ease-standard);
}

.update-feature .update-copy h2 {
  font-size: clamp(25px, 3.2vw, 34px);
  letter-spacing: -0.024em;
  line-height: 1.12;
}

.update-copy p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.update-evidence {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin: 0;
  border: 0.5px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: border-color 160ms var(--ease-standard), box-shadow 160ms var(--ease-standard);
}

.update-evidence-track,
.update-evidence-fallback {
  width: 100%;
  height: 100%;
}

.update-evidence-track {
  display: block;
}

.update-evidence[data-evidence-hydrated="true"] {
  height: clamp(500px, 40vw, 540px);
  aspect-ratio: auto;
}

.update-evidence-fallback {
  display: grid;
  place-items: center;
  background: var(--surface-tint);
}

.update-evidence-fallback img {
  grid-area: 1 / 1;
  display: block;
  width: min(34%, 152px);
  height: auto;
  max-height: 64%;
  object-fit: contain;
}

.editorial-evidence-static,
.editorial-evidence-comparison {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background: var(--surface-tint);
}

.editorial-evidence-static {
  display: grid;
  place-items: center;
}

.editorial-evidence-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline proximity;
}

.editorial-evidence-frame {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0.5px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.editorial-evidence-static .editorial-evidence-frame {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.editorial-evidence-comparison .editorial-evidence-frame {
  scroll-snap-align: start;
}

.editorial-evidence-media {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
}

.editorial-evidence-label {
  display: flex;
  min-height: 32px;
  align-items: center;
  padding: 6px 10px;
  border-top: 0.5px solid var(--line);
  color: var(--ink-soft);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

.theme-dark .updates-page .theme-art-light,
.theme-light .updates-page .theme-art-dark {
  display: none;
}

.update-feature:hover::before,
.update-entry:hover::before,
.update-feature:focus-visible::before,
.update-entry:focus-visible::before {
  opacity: 1;
}

.update-feature:hover .update-copy h2,
.update-entry:hover .update-copy h2,
.update-feature:focus-visible .update-copy h2,
.update-entry:focus-visible .update-copy h2 {
  color: var(--accent-ink);
}

.update-feature:hover .update-evidence,
.update-entry:hover .update-evidence,
.update-feature:focus-visible .update-evidence,
.update-entry:focus-visible .update-evidence {
  border-color: var(--line-strong);
  box-shadow: inset 0 0 0 0.5px var(--line-strong);
}

.update-feature:active .update-copy h2,
.update-entry:active .update-copy h2 {
  color: var(--ink);
}

.update-feature:focus-visible,
.update-entry:focus-visible {
  border-radius: 16px;
  outline: 2px solid var(--brand-pink);
  outline-offset: 8px;
}

@media (min-width: 768px) and (max-width: 900px) {
  .update-group {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 24px;
  }

  .update-feature {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1.2fr);
    gap: 24px;
  }

  .update-list {
    column-gap: 24px;
  }

  [data-update-date="2026-08-09"] .update-entry {
    grid-template-columns: minmax(320px, 1.1fr) minmax(0, 0.9fr);
    gap: 24px;
  }
}

@media (max-width: 767px) {
  .update-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .update-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .update-feature .update-copy {
    order: 1;
  }

  .update-feature .update-evidence {
    order: 2;
  }

  .update-list,
  [data-update-date="2026-08-09"] .update-list {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-update-date="2026-08-09"] .update-entry {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .updates-page {
    padding-right: 22px;
    padding-left: 22px;
  }

  .updates-ledger {
    gap: 56px;
  }

  .update-feature::before,
  .update-entry::before {
    left: -10px;
  }

  .editorial-evidence-comparison {
    grid-auto-columns: minmax(220px, 78%);
    grid-auto-flow: column;
    grid-template-columns: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .update-feature::before,
  .update-entry::before,
  .update-copy h2,
  .update-evidence {
    transition: none;
  }
}
