/* The demo change log: a gold title bar over one burnt parchment sheet, in
   the game's council-screen style. The main contributor's portrait stands
   beside the update they are credited on, as the game seats a leader. The
   parchment is the game's own texture
   (Content/SourceAssets/Interface/epoch-scroll-light.png). */

:root {
  --scroll-ink: #2a2620;
  --scroll-muted: #6f6453;
  --scroll-strip: rgba(255, 248, 232, .72);
  --royal: #1f3f7a;
  --royal-hover: #28509a;
  --scroll-edge: 30px;
}

.chronicle { padding: 26px clamp(16px, 4vw, 56px) 64px; max-width: 1180px; margin: 0 auto; }

/* The game's screen header: gold small-caps title, quiet hint at right. */
.chronicle-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.chronicle-bar h1 { margin: 0; font: 600 clamp(24px, 3vw, 34px)/1.2 var(--display); letter-spacing: .06em; text-transform: uppercase; color: var(--gold); text-wrap: balance; }
.chronicle-bar p { margin: 0; font: italic 14px var(--body); color: var(--muted); }

/* One burnt parchment sheet, sliced so the singed edge stays crisp at any
   size. Its long sides tile; stretched that far they streak. */
.scroll {
  border: var(--scroll-edge) solid transparent;
  border-image: url('assets/changelog/scroll-light.webp') 56 fill / var(--scroll-edge) stretch round;
  color: var(--scroll-ink);
  padding: clamp(6px, 1.5vw, 18px) clamp(6px, 3vw, 40px) 12px;
}

.now-playing { display: grid; gap: 10px; padding: 16px 18px; background: var(--scroll-strip); border-radius: 6px; margin-bottom: 30px; }
.now-label { margin: 0; font: 600 12px var(--display); letter-spacing: .16em; color: var(--scroll-muted); }
.now-builds { margin: 0; font: 600 17px var(--display); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.now-builds .sep { color: var(--scroll-muted); }
.now-build { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.now-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* The game's royal-blue command button. */
.royal-button { display: inline-flex; align-items: baseline; gap: 10px; padding: 12px 18px; border-radius: 6px; background: var(--royal); color: #f6ecd2; font: 600 13px var(--display); letter-spacing: .1em; box-shadow: inset 0 0 0 1px rgba(214, 171, 87, .35); transition: background-color .2s, box-shadow .2s; }
.royal-button small { font: 12px var(--body); letter-spacing: 0; color: #cdbf9f; white-space: nowrap; }
.royal-button:hover { background: var(--royal-hover); box-shadow: inset 0 0 0 1px var(--gold); }

.platform { display: inline-block; padding: 3px 8px 2px; border-radius: 4px; background: var(--royal); color: #f6ecd2; font: 600 10px/1.4 var(--display); letter-spacing: .14em; vertical-align: middle; }
.platform.is-soon { background: transparent; color: var(--scroll-muted); box-shadow: inset 0 0 0 1px rgba(111, 100, 83, .55); }

.update { padding: 4px 0 26px; scroll-margin-top: calc(var(--header-height) + 16px); }
.update + .update { border-top: 1px solid rgba(111, 100, 83, .3); padding-top: 26px; }
.update-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 7px 12px; border-radius: 5px; background: var(--scroll-strip); }
.update-no { font: 600 13px var(--display); letter-spacing: .14em; }
.update-strip time { font: italic 13px var(--body); color: var(--scroll-muted); margin-right: auto; }
.update h2 { margin: 16px 0 6px; font: 600 clamp(22px, 2.4vw, 28px)/1.2 var(--display); color: var(--scroll-ink); text-wrap: balance; }
.update-lede { margin: 0 0 6px; font: italic 16px/1.6 var(--body); color: #4b4336; max-width: 62ch; }
.update h3 { margin: 18px 0 8px; font: 600 12px var(--display); letter-spacing: .16em; text-transform: uppercase; color: #8a6a2c; }
.update ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; max-width: 66ch; }
.update li { position: relative; padding-left: 20px; font: 15px/1.65 var(--body); }
.update li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 0 1px rgba(138, 106, 44, .45); }
.update li strong { font-weight: 700; }

.update-credit { margin: 16px 0 0; font: italic 14px var(--body); color: var(--scroll-muted); }
.update-credit a { color: var(--royal); font-style: normal; font-family: var(--display); font-weight: 600; letter-spacing: .04em; border-bottom: 1px solid rgba(31, 63, 122, .35); }
.update-credit a:hover { border-bottom-color: var(--royal); }

/* An update with its main contributor: the text, and beside it the portrait
   standing in a lighter niche of the sheet, kept in view while its update is
   read. */
.update-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 330px); gap: clamp(20px, 3vw, 44px); align-items: start; }
.envoy { position: sticky; top: calc(var(--header-height) + 20px); margin: 16px 0 0; scroll-margin-top: calc(var(--header-height) + 16px); }
.envoy-portrait { display: flex; align-items: flex-end; justify-content: center; padding: 18px 10px 0; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, rgba(255, 248, 232, .15), rgba(255, 248, 232, .75)); box-shadow: inset 0 0 0 1px rgba(111, 100, 83, .22); overflow: hidden; }
.envoy-portrait img { display: block; width: 100%; height: auto; max-height: 440px; object-fit: contain; object-position: bottom center; }
.envoy-plate { display: grid; gap: 3px; padding: 12px 14px 14px; text-align: center; border-radius: 0 0 8px 8px; background: var(--scroll-strip); box-shadow: inset 0 0 0 1px rgba(111, 100, 83, .22); }
.envoy-kicker { font: 600 11px var(--display); letter-spacing: .18em; color: var(--scroll-muted); }
.envoy-name { font: 600 21px/1.2 var(--display); color: var(--scroll-ink); text-transform: uppercase; letter-spacing: .03em; }
.envoy-title { font: 600 11px var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--scroll-muted); }

@media (max-width: 900px) {
  :root { --scroll-edge: 22px; }
  /* On a phone the portrait comes first in its update, at a modest size. */
  .update-body { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .envoy { position: static; order: -1; width: min(100%, 280px); margin: 18px auto 4px; }
  .envoy-portrait img { max-height: 300px; }
  .envoy-name { font-size: 19px; }
}

@media (max-width: 480px) {
  .royal-button { width: 100%; justify-content: center; }
  .update li { font-size: 14px; }
}
