/* /new: the current week shows; older weeks fold into one row each, newest first. */
.update-earlier { margin-top: 8px; }
.update-earlier > summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 14px 0; border-bottom: 1px solid var(--soft); cursor: pointer; list-style: none; font-weight: 850; font-size: 1.15rem; }
.update-earlier > summary::-webkit-details-marker { display: none; }
.update-earlier > summary::after { content: "›"; margin-left: auto; color: var(--muted); font-size: 1.6rem; transition: rotate .2s cubic-bezier(.2, .8, .2, 1); }
.update-earlier[open] > summary::after { rotate: 90deg; }
.update-earlier > summary span { color: var(--muted); font-weight: 700; font-size: .95rem; }
.update-earlier > .new-cards { margin: 16px 0 8px; }
@media (prefers-reduced-motion: reduce) { .update-earlier > summary::after { transition: none; } }

/* Each update and what's on the way: picture cards, three across on wide screens. */
.new-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 24px); margin: 0; padding: 0; list-style: none; }
.new-cards > li { min-width: 0; }
.new-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--radius, 24px); background: var(--surface); border: 1px solid var(--soft); box-shadow: var(--card-shadow); color: var(--ink); text-decoration: none; transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
a.new-card:hover { transform: translateY(-4px); }
a.new-card:hover h3 { text-decoration: underline; text-underline-offset: .18em; }
.new-body { display: grid; justify-items: start; gap: 8px; padding: 18px 20px 22px; }
.new-body h3 { font-size: 1.2rem; line-height: 1.25; }
.new-body p { color: var(--muted); }
.new-art { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; background: var(--soft); }
.new-art img { width: 100%; height: 100%; object-fit: cover; }
/* Several game tiles share the picture as a grid. */
.new-art.several { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.new-art.several.n3 { grid-template-columns: repeat(3, 1fr); }
/* Book covers stand in a row on the night sky, as on the shelf. */
.new-art.covers { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 0 12%; background: var(--night) url("/site/night-wide.webp") center / cover; }
.new-art.covers img { flex: 0 1 30%; width: auto; height: 74%; aspect-ratio: 2 / 3; border-radius: 6px 10px 10px 6px; border: 2px solid #fff8ea; box-shadow: 0 8px 16px #0008; }
.new-art.covers img:nth-child(1) { rotate: -4deg; } .new-art.covers img:nth-child(3) { rotate: 4deg; }
.new-art.phil { display: grid; place-items: center; background: var(--night) url("/site/night-wide.webp") center / cover; }
.new-art.phil img { width: 34%; height: auto; object-fit: contain; filter: drop-shadow(0 10px 20px #ffb90050); }
.next-cards .new-body { padding-top: 16px; }
.next-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); margin-bottom: 36px; }
@media (prefers-reduced-motion: reduce) { .new-card { transition: none; } }

/* A real line of a book, lighting up word by word as a child would read it. */
.new-art.words { display: grid; place-items: center; align-content: center; gap: 10px; background: #fff8ea; color: #2b2a26; }
.new-art.words p { margin: 0; font-family: "Big Caslon", "Libre Caslon Text", Georgia, serif; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.45; }
.new-art.words span { display: block; }
.new-art.words b { font-weight: 400; color: #2b2a2655; text-decoration: underline 3px transparent; text-underline-offset: 6px; }
.new-art.words small { color: #6b665c; font-weight: 800; font-size: .8rem; }
.reveal.is-in .new-art.words b, .new-art.words.lit b { animation: new-word-lit 300ms ease-out calc(500ms + var(--w) * 380ms) both; }
@keyframes new-word-lit { to { color: #2b2a26; text-decoration-color: #ffc33a; } }
@media (prefers-reduced-motion: reduce) { .new-art.words b { color: #2b2a26; animation: none !important; } }

/* The newest arrival, held up in the hero. */
.new-hero-art { display: grid; width: min(360px, 82vw); margin-top: clamp(24px, 4vw, 36px); overflow: hidden; border-radius: 20px; border: 4px solid #fff8ea; background: #fff8ea; box-shadow: 0 18px 40px #0009; color: #2b2a26; text-decoration: none; rotate: -2deg; }
.new-hero-art img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.new-hero-art span { padding: 10px 14px 12px; font-weight: 800; text-align: left; }
.new-hero-art b { display: inline-block; margin-right: 6px; padding: 2px 9px; border-radius: 999px; background: var(--gold); color: var(--on-gold); font-size: .8rem; }
.status-legend { margin: 28px 0 0; font-size: .95rem; }
.update-earlier summary { font-variant-numeric: tabular-nums; }

/* A week of updates, four across. Clip cards play in their picture slot; notes without art stay short. */
.update-week h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 20px; }
.update-week h2 span { color: var(--muted); font-size: 1rem; font-weight: 750; letter-spacing: 0; }
.week-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-flow: dense; }
.week-cards .new-body { padding: 14px 16px 18px; gap: 6px; }
.week-cards .new-body h3 { font-size: 1.08rem; }
.week-cards .new-body { align-content: start; }
/* Cards say a little; each one links to the full story. */
.week-cards .new-body p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.week-cards > li.note .new-card { background: color-mix(in srgb, var(--gold) 10%, var(--surface)); }
.new-art.clip video { width: 100%; height: 100%; object-fit: cover; display: block; }
.new-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.new-meta time { color: var(--muted); font-weight: 800; font-size: .85rem; }
@media (max-width: 900px) { .week-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* On a phone each update is a row: a square of its picture beside the words. Clips stay full width. */
@media (max-width: 600px) {
  .week-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .week-cards > li:not(.wide) .new-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: start; }
  .week-cards > li:not(.wide) .new-art { width: 96px; height: 96px; aspect-ratio: 1; margin: 14px 0 14px 14px; border-radius: 14px; }
  .week-cards > li.note .new-card { grid-template-columns: minmax(0, 1fr); }
  .week-cards .new-body { padding: 14px 16px 16px; gap: 6px; }
  .week-cards .new-body h3 { font-size: 1.05rem; }
  .week-cards .new-body p { font-size: .95rem; -webkit-line-clamp: 2; }
  .week-cards > li.wide .new-art { aspect-ratio: 16 / 9; }
}
