/* Updates: the weekly timeline (D1) and a post's page. A spine runs down the left; each post is an ember dot on it and a card beside it.
   The card's title link is stretched over its top part (picture, title, date, lead); "What this changed" sits under that and is its own set of links. */
.up-tl { max-width: 1000px; min-width: 0; }
.up-week { margin: 0 0 var(--sp-6); }
.up-wk { margin: var(--sp-6) 0 var(--sp-4) 36px; font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.up-week:first-child .up-wk { margin-top: 0; }
.up-list { list-style: none; margin: 0; padding: 0 0 0 36px; position: relative; }
.up-list::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: var(--border-strong); }
.up-item { position: relative; margin: 0 0 var(--sp-4); max-width: none; }
.up-item:last-child { margin-bottom: 0; }
.up-dot { position: absolute; left: -36px; top: 22px; width: 16px; height: 16px; border-radius: 50%; background: var(--ember); border: 3px solid var(--bg); box-shadow: 0 0 0 2px color-mix(in srgb, var(--ember) 35%, transparent); }

.up-card { padding: 0; overflow: hidden; display: block; }
.up-card:hover { border-color: var(--border-strong); }
.up-top { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.up-art { position: relative; min-width: 0; min-height: 176px; overflow: hidden; background: var(--surface-2); }
.up-art picture { display: block; position: absolute; inset: 0; }
.up-art .up-img { display: block; width: 100%; height: 100%; }
.up-art .up-img { object-fit: cover; object-position: 50% 35%; }
.up-card:hover .up-img { transform: scale(1.03); }
.up-img { transition: transform var(--t-slow) var(--ease); }
/* a post with no picture: a tile tinted by its trade (ember when it has none), the item big in the middle */
.up-art--tile { display: grid; place-items: center; --tint: var(--ember); background: radial-gradient(120% 120% at 50% 40%, color-mix(in srgb, var(--tint) 28%, var(--surface-2)), var(--surface) 80%); box-shadow: inset 0 -3px 0 var(--tint); }
.up-art--mining { --tint: var(--trade-mining); }
.up-art--fishing { --tint: var(--trade-fishing); }
.up-art--farming { --tint: var(--trade-farming); }
.up-art--gathering { --tint: var(--trade-gathering); }
.up-art--tile .ic { background-color: transparent; box-shadow: none; border-radius: 0; image-rendering: pixelated; }
.up-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); padding: var(--sp-4) var(--sp-5); min-width: 0; }
.up-card .wc-name { margin: 0; font: 600 22px/1.25 var(--display); letter-spacing: .015em; }
.up-card .wc-name a { color: var(--text); }
.up-card .wc-name a::after { content: ""; position: absolute; inset: 0; }   /* the title link covers picture, title, date and lead */
.up-card .wc-name a:focus-visible { outline: none; }
.up-card:has(.wc-name a:focus-visible) { outline: 2px solid var(--ember); outline-offset: 2px; }
.up-date { margin: 0; }
.up-lead { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text-2); max-width: none; }
.up-cue { display: flex; align-items: center; gap: var(--sp-2); min-height: 44px; margin: auto 0 calc(-1 * var(--sp-2)); color: var(--ember-soft); font-weight: 600; font-size: 15px; }
.up-arrow { transition: transform var(--t-fast) var(--ease); }
.up-card:hover .up-arrow, .up-card:focus-within .up-arrow { transform: translateX(3px); }
.up-changed { position: relative; z-index: 1; padding: var(--sp-3) var(--sp-5) var(--sp-4); border-top: 1px solid var(--border); }
.up-changed-k { margin: 0 0 var(--sp-2); font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
@media (max-width: 760px) {
  .up-top { grid-template-columns: minmax(0, 1fr); }
  .up-art { aspect-ratio: 16 / 9; min-height: 0; }
  .up-body { padding: var(--sp-4); }
  .up-changed { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
  .up-wk, .up-list { margin-left: 0; }
  .up-wk { margin-left: 28px; }
  .up-list { padding-left: 28px; }
  .up-list::before { left: 5px; }
  .up-dot { left: -28px; width: 12px; height: 12px; top: 18px; border-width: 2px; }
}
@media (prefers-reduced-motion: reduce) { .up-arrow, .up-img { transition: none; } .up-card:hover .up-arrow, .up-card:focus-within .up-arrow, .up-card:hover .up-img { transform: none; } }

/* a post: the date pill sits under the lead, then New, Changed and Fixed */
.up-when { margin: 0 0 var(--sp-5); }

.up-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-6); max-width: var(--read); }
.up-pg { display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 56px; padding: var(--sp-3) var(--sp-4); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); }
span.up-pg { visibility: hidden; }
a.up-pg:hover { border-color: var(--border-strong); text-decoration: none; }
.up-old { text-align: right; grid-column: 2; }
.up-new { grid-column: 1; }
.up-pg-k { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.up-pg-t { font: 600 17px/1.3 var(--display); letter-spacing: .015em; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .up-nav { grid-template-columns: minmax(0, 1fr); }
  .up-old, .up-new { grid-column: 1; text-align: left; }
  span.up-pg { display: none; }
}

/* the short list of changes on a card (also the homepage's latest update) and a post's own page */
.fr-bl { margin: var(--sp-3) 0 0; padding-left: 20px; color: var(--text-2); }
.fr-bl li { margin: 3px 0; max-width: none; }
.fr-log { max-width: var(--read); }
.fr-log > h2:first-child { margin-top: 0; }
.fr-log h3 { margin: 20px 0 6px; }
.fr-log ul { margin: 0 0 12px; padding-left: 22px; }
.fr-log li { margin: 4px 0; }
.fr-posted { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--border); color: var(--text-3); font-size: 14px; }


/* the week label names its Monday and its range; the right rail (from 1200 px) jumps to a week and points at Discord */
.up-range { display: block; margin-top: 2px; font-weight: 500; letter-spacing: .08em; color: var(--text-3); }
.up-rail { display: none; }
@media (min-width: 1200px) {
  .up-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: var(--sp-7); align-items: start; }
  .up-tl { max-width: 880px; }
  .up-rail { display: block; position: sticky; top: calc(var(--header) + var(--sp-5)); }
  .up-rail-b { margin: 0 0 var(--sp-5); }
  .up-rail-k { margin: 0 0 var(--sp-2); font: 600 12px/1.3 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); max-width: none; }
  .up-rail ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
  .up-rail li { max-width: none; }
  .up-rail li a { display: block; padding: 6px 0 6px var(--sp-3); margin-left: -1px; border-left: 1px solid transparent; color: var(--text-2); font-size: 14px; line-height: 1.4; }
  .up-rail li a:hover { color: var(--text); border-left-color: var(--ember); text-decoration: none; }
  .up-rail-t { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-2); max-width: none; }
}

/* A post with no picture is a short card on the timeline (28 Nov 2026): its icon sits in a small tinted tile beside the title, so the page is a
   list to read down, and a post that has a picture stands out from the rest. The home page's one card keeps the tall tile. */
.up-tl .up-top:has(> .up-art--tile) { grid-template-columns: 112px minmax(0, 1fr); }
.up-tl .up-art--tile { min-height: 112px; box-shadow: inset -3px 0 0 var(--tint); }
.up-tl .up-art--tile .ic { --s: 56px !important; }   /* the icon's size is a variable on the tag itself (the sprite is cut by it) */
@media (max-width: 760px) {
  .up-tl .up-top:has(> .up-art--tile) { grid-template-columns: 72px minmax(0, 1fr); }
  .up-tl .up-art--tile { aspect-ratio: auto; min-height: 72px; }
  .up-tl .up-art--tile .ic { --s: 40px !important; }
}

/* The timeline is a changelog to read down (28 Nov 2026, the bold pass): a post is a row on the ground, not a boxed card. Its tile is a small
   square beside the title, the date is one quiet line over the title, "Read the update" is gone (the title is the link, stretched over the
   row) and "What this changed" is one line of links. A hairline parts the posts, and the week is named once. */
:is(.up-tl, .hm-week) .up-card, :is(.up-tl, .hm-week) .up-card:hover { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; transform: none; }
.up-tl .up-item { margin: 0; padding: var(--sp-4) 0; border-bottom: 1px solid var(--border); }
.up-tl .up-item:last-child { border-bottom: 0; }
.up-tl .up-dot { top: calc(var(--sp-4) + 20px); }
:is(.up-tl, .hm-week) .up-top:has(> .up-art--tile) { grid-template-columns: 56px minmax(0, 1fr); column-gap: var(--sp-4); align-items: start; }
:is(.up-tl, .hm-week) .up-art--tile { min-height: 0; height: 56px; aspect-ratio: auto; border-radius: 12px; box-shadow: none; }
:is(.up-tl, .hm-week) .up-art--tile .ic { --s: 32px !important; }
:is(.up-tl, .hm-week) .up-art:not(.up-art--tile) { border-radius: 12px; }
:is(.up-tl, .hm-week) .up-top:not(:has(> .up-art--tile)) .up-body { padding: 0 0 0 var(--sp-5); }
:is(.up-tl, .hm-week) .up-body { padding: 0; gap: 2px; }
:is(.up-tl, .hm-week) .up-card .wc-name { font-size: 20px; }
:is(.up-tl, .hm-week) .up-card:hover .wc-name a { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
:is(.up-tl, .hm-week) .up-date { order: -1; }
:is(.up-tl, .hm-week) .up-date .c-pill { padding: 0; background: none; border-radius: 0; font: 500 13px/1.4 var(--sans); color: var(--text-3); }
:is(.up-tl, .hm-week) .up-lead { font-size: 15px; }
:is(.up-tl, .hm-week) .up-cue { display: none; }
:is(.up-tl, .hm-week) .up-range { display: none; }
:is(.up-tl, .hm-week) .up-changed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--sp-2); padding: 6px 0 0 calc(56px + var(--sp-4)); border-top: 0; }
:is(.up-tl, .hm-week) .up-changed-k { margin: 0; font: 500 13px/1.6 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text-3); }
:is(.up-tl, .hm-week) .up-changed .c-chips { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; }
:is(.up-tl, .hm-week) .up-changed .c-chips > li:not(:last-child)::after { content: "\00B7"; margin: 0 7px; color: var(--text-3); }
:is(.up-tl, .hm-week) .up-changed .c-chip { display: inline; min-height: 0; padding: 4px 0; border: 0; border-radius: 0; background: none; font: 500 13px/1.6 var(--sans); color: var(--text-2);
  text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
:is(.up-tl, .hm-week) .up-changed .c-chip:hover { color: var(--text); text-decoration-color: currentColor; }
@media (max-width: 760px) {
  :is(.up-tl, .hm-week) .up-top:has(> .up-art--tile) { grid-template-columns: 44px minmax(0, 1fr); column-gap: var(--sp-3); }
  :is(.up-tl, .hm-week) .up-art--tile { height: 44px; min-height: 0; border-radius: 10px; }
  :is(.up-tl, .hm-week) .up-art--tile .ic { --s: 24px !important; }
  .up-tl .up-dot { top: calc(var(--sp-4) + 16px); }
  :is(.up-tl, .hm-week) .up-changed { padding-left: calc(44px + var(--sp-3)); }
  :is(.up-tl, .hm-week) .up-top:not(:has(> .up-art--tile)) .up-body { padding: var(--sp-3) 0 0; }
}
