/* Roadmap page — a Soviet newspaper sheet ("газетная полоса").
   The sheet keeps its paper colours in both site themes; only the page around it
   follows the theme. Layout is driven by container queries on .rm-sheet, not media
   queries: html { zoom } on this site makes the viewport width a poor guide to the
   width the sheet actually gets. Sizes are in cqi so the desktop sheet scales like
   the 1920x1080 original it reproduces (1cqi = 19.2px of the original). */

@font-face {
  font-family: "Buran USSR";
  font-weight: 700;
  font-display: swap;
  src: url("fonts/buran-ussr.woff2") format("woff2");
}

.rm {
  --paper: #ece2c8;
  --ink: #1b1813;
  --ink2: #3a342b;
  --red: #b5121b;
  --muted: #5f5545;
  --st-done: #c0141c;
  --st-wip: #b85a00;
  --st-planned: #26357a;
  --f-head: "Buran USSR", "Oswald", "Arial Narrow", sans-serif;
  --f-text: "Oswald", "Arial Narrow", sans-serif;
  --f-sub: "Noto Sans", "Segoe UI", Arial, sans-serif;
  padding: 1.5em 2% 3em;
  clear: both;
}

/* Buran carries Latin and Cyrillic only, with no diacritics: a German or Polish
   heading would switch fonts mid-word. Locales other than RU and EN set the
   display text in Oswald, the sheet's own second face. */
html:not([lang="ru"]):not([lang="en"]) .rm {
  --f-head: "Oswald", "Arial Narrow", sans-serif;
}
html:not([lang="ru"]):not([lang="en"]) .rm .rm-head {
  font-weight: 700;
  letter-spacing: .01em;
}

.rm-sheet {
  container-type: inline-size;
  position: relative;
  max-width: 1500px;
  margin: 0 auto;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse at 50% 45%, rgba(255, 250, 235, .55), transparent 65%),
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(120, 90, 40, .28) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .3 0 0 0 0 .24 0 0 0 0 .14 0 0 0 .2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  box-shadow: 0 6px 28px rgba(0, 0, 0, .28);
  padding: 2.1cqi 2.1cqi 1.6cqi;
  font-family: var(--f-text);
  text-align: left;
}

.rm-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Read by screen readers and crawlers, not drawn: the poster headings say
   "DLC 1988" while the eye reads the badge and the year separately. */
.rm-vh {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rm-head {
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  margin: 0;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.rm-rule {
  height: max(7px, .47cqi);
  border-top: max(3px, .21cqi) solid var(--ink);
  border-bottom: max(1px, .08cqi) solid var(--ink);
  margin: 1cqi 0;
}

/* ── Masthead ─────────────────────────────────────────────────────────── */
/* The sheet uses div throughout: the site theme styles bare header and section
   elements (grey bar, flex row), and those rules serve every other page. */
.rm-mast {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 2cqi;
  align-items: center;
}

.rm-slogan {
  border: 3px solid var(--ink);
  outline: 1px solid var(--ink);
  outline-offset: 4px;
  margin: 5px;
  padding: .7cqi .9cqi;
}
.rm-slogan p {
  margin: 0;
  font-size: 1.6cqi;
  line-height: 1.12;
  letter-spacing: .05em;
  white-space: nowrap;
}
.rm-slogan .l1 { display: flex; align-items: center; gap: .6cqi; }
.rm-slogan .l1 svg { flex: none; height: 2cqi; width: auto; }
.rm-slogan .l3 { color: var(--red); }

.rm-masthead-title { text-align: center; }
.rm-issue {
  margin: 0;
  font-family: var(--f-sub);
  font-size: 1.25cqi;
  letter-spacing: .32em;
  color: var(--ink2);
}
.rm-mast h1.rm-head {
  color: var(--red);
  font-size: 8.4cqi;
  letter-spacing: .02em;
  margin-top: .3cqi;
  text-shadow: 0 0 1px rgba(181, 18, 27, .6);
  text-wrap: balance;
}
.rm-game {
  margin: .5cqi 0 0;
  font-family: var(--f-sub);
  font-size: 1.05cqi;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── The five updates ─────────────────────────────────────────────────── */
.rm-line {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  column-gap: 3.6cqi;
  align-items: start;
}

.rm-item {
  position: relative;
  margin: 0;
  padding: 0;
}
/* Odd updates sit lower with their stamp above; even ones sit higher with the
   stamp below — the zigzag of the original sheet. */
.rm-item.rm-low { padding-top: 5.4cqi; }
.rm-item.rm-high { padding-bottom: 5.6cqi; }

.rm-card { border-top: max(4px, .26cqi) solid var(--ink); padding-top: .52cqi; }

.rm-ver {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5cqi;
  background: var(--ink);
  color: var(--paper);
  padding: .3cqi .62cqi .36cqi;
}
.rm-done .rm-ver { background: var(--red); }
.rm-ver b {
  font-family: var(--f-text);
  font-weight: 700;
  font-size: 1.77cqi;
  letter-spacing: .02em;
  line-height: 1;
}
.rm-ver span {
  font-family: var(--f-sub);
  font-size: .73cqi;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .9;
}

.rm-item h2.rm-head {
  font-size: 2.35cqi;
  margin: .73cqi 0 .52cqi;
  letter-spacing: .03em;
}
.rm-thin { height: 1px; background: var(--ink); margin-bottom: .52cqi; }
.rm-item p {
  margin: 0;
  font-size: 1.2cqi;
  line-height: 1.3;
  color: var(--ink2);
}

/* Arrows between updates; the link that leaves a finished update is red. */
.rm-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 11.4cqi;
  right: -3.05cqi;
  width: 2.5cqi;
  height: 1.5cqi;
  background: var(--ink);
  clip-path: polygon(0 38%, 55% 38%, 55% 0, 100% 50%, 55% 100%, 55% 62%, 0 62%);
}
.rm-item.rm-done:not(:last-child)::after { background: var(--red); }

/* Rubber stamps. */
.rm-stamp {
  display: inline-block;
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 1.67cqi;
  line-height: 1.1;
  padding: .3cqi .73cqi .26cqi;
  border: max(3px, .21cqi) solid currentColor;
  border-radius: 7px;
  outline: 1.5px solid currentColor;
  outline-offset: 3px;
  white-space: nowrap;
  filter: url(#rm-grunge);
  mix-blend-mode: multiply;
  opacity: .9;
}
.rm-stamp.st-done { color: var(--st-done); }
.rm-stamp.st-wip { color: var(--st-wip); }
.rm-stamp.st-planned { color: var(--st-planned); }

.rm-item > .rm-stamp {
  position: absolute;
  left: 50%;
}
.rm-low > .rm-stamp { top: 1.2cqi; }
.rm-high > .rm-stamp { bottom: .6cqi; }
.rm-item:nth-child(1) > .rm-stamp { transform: translateX(-50%) rotate(-6deg); }
.rm-item:nth-child(2) > .rm-stamp { transform: translateX(-50%) rotate(5deg); }
.rm-item:nth-child(3) > .rm-stamp { transform: translateX(-50%) rotate(-4deg); }
.rm-item:nth-child(4) > .rm-stamp { transform: translateX(-50%) rotate(6deg); }
.rm-item:nth-child(5) > .rm-stamp { transform: translateX(-50%) rotate(-5deg); }

/* ── Bottom band: in brief, two DLC posters, stop-the-press ───────────── */
/* The column rules are elements of their own: a pseudo-element on a poster would
   be cut off by the poster's own clipping. */
.rm-band {
  display: grid;
  grid-template-columns: 312fr 1px 330fr 1px 380fr 1px 710fr;
  column-gap: .95cqi;
  align-items: stretch;
}
.rm-band > div { position: relative; min-width: 0; }
.rm-vrule { background: var(--ink); }

.rm-brief h2.rm-head { font-size: 3.1cqi; }
.rm-kick {
  margin: .3cqi 0 .52cqi;
  padding-bottom: .42cqi;
  border-bottom: 3px double var(--ink);
  font-family: var(--f-sub);
  font-size: .83cqi;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.rm-brief ul { list-style: none; margin: 0; padding: 0; }
.rm-brief li {
  font-size: 1.04cqi;
  line-height: 1.28;
  color: var(--ink2);
  padding: .42cqi 0;
  border-bottom: 1px solid rgba(27, 24, 19, .45);
}
.rm-brief li:last-child { border-bottom: none; }
.rm-brief li b {
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: .03em;
}

.rm-poster {
  overflow: hidden;
  color: var(--paper);
  min-height: 18.5cqi;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: .94cqi;
  isolation: isolate;
}
.rm-poster > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.rm-poster .rm-dlc {
  align-self: flex-start;
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: .18em;
  font-size: 1.25cqi;
  padding: .2cqi .52cqi .16cqi;
}
.rm-p88 .rm-dlc { background: var(--ink); }
.rm-p91 .rm-dlc { background: var(--red); }
.rm-poster h2.rm-head {
  font-size: 6.6cqi;
  line-height: .9;
  letter-spacing: .01em;
  margin-top: auto;
}
.rm-p88 h2.rm-head { text-shadow: .26cqi .26cqi 0 var(--ink); }
.rm-p91 h2.rm-head { text-shadow: .26cqi .26cqi 0 var(--red); }
.rm-poster p {
  margin: .5cqi 0 0;
  font-family: var(--f-text);
  font-weight: 600;
  font-size: 1.2cqi;
  line-height: 1.18;
}

.rm-proj .rm-kickbar {
  display: inline-block;
  background: var(--red);
  color: var(--paper);
  font-family: var(--f-sub);
  font-size: .89cqi;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: .26cqi .62cqi;
}
/* The original fits this heading into 470 of its 710 px, leaving the stamp room:
   the RU line measures 9.06em in Buran, so 2.7cqi keeps it on one line. */
.rm-proj h2.rm-head {
  font-size: 2.7cqi;
  margin: .62cqi 0 .73cqi;
  letter-spacing: .03em;
  max-width: 25.5cqi;
}
.rm-photo { margin: 0; }
.rm-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1.5px solid var(--ink);
  padding: 5px;
  background: rgba(255, 255, 255, .18);
  mix-blend-mode: multiply;
}
.rm-photo figcaption {
  font-family: var(--f-sub);
  font-size: .78cqi;
  font-style: italic;
  color: var(--muted);
  margin-top: .3cqi;
}
.rm-proj p {
  margin: .62cqi 0 0;
  font-size: 1.25cqi;
  line-height: 1.3;
  color: var(--ink2);
}
.rm-proj .rm-stamp {
  position: absolute;
  right: .3cqi;
  top: 2.7cqi;
  transform: rotate(-8deg);
  font-size: 1.25cqi;
  color: var(--st-done);
}

.rm-price {
  margin: 1cqi 0 0;
  text-align: right;
  font-family: var(--f-sub);
  font-size: .99cqi;
  letter-spacing: .06em;
  color: var(--ink2);
}

/* ── Narrow sheet: one column, updates top to bottom ──────────────────── */
@container (max-width: 820px) {
  .rm-sheet { padding: 16px 16px 14px; }
  .rm-rule { margin: 14px 0; }

  .rm-mast { grid-template-columns: 1fr; gap: 16px; }
  .rm-slogan { justify-self: center; padding: 8px 12px; }
  .rm-slogan p { font-size: clamp(17px, 5.2cqi, 26px); }
  .rm-slogan .l1 svg { height: 1.25em; }
  .rm-issue { font-size: 12px; }
  .rm-mast h1.rm-head { font-size: clamp(38px, 12.5cqi, 84px); }
  .rm-game { font-size: 11px; }

  .rm-line { grid-template-columns: 1fr; row-gap: 46px; }
  .rm-item.rm-low,
  .rm-item.rm-high { padding: 0; }
  .rm-item > .rm-stamp {
    position: static;
    transform: rotate(-3deg) !important;
    margin: 0 0 12px 4px;
  }
  .rm-item:nth-child(even) > .rm-stamp { transform: rotate(3deg) !important; }
  .rm-stamp { font-size: 18px; padding: 3px 10px 2px; }
  .rm-ver b { font-size: 24px; }
  .rm-ver span { font-size: 11px; }
  .rm-ver { padding: 4px 9px 5px; }
  .rm-card { padding-top: 7px; }
  .rm-item h2.rm-head { font-size: clamp(24px, 7.2cqi, 34px); margin: 9px 0 7px; }
  .rm-item p { font-size: 18px; }
  .rm-item:not(:last-child)::after {
    top: auto;
    bottom: -38px;
    right: auto;
    left: 50%;
    width: 22px;
    height: 30px;
    transform: translateX(-50%);
    clip-path: polygon(38% 0, 62% 0, 62% 55%, 100% 55%, 50% 100%, 0 55%, 38% 55%);
  }

  .rm-band { grid-template-columns: 1fr 1fr; gap: 16px; }
  .rm-vrule { display: none; }
  .rm-brief, .rm-proj { grid-column: 1 / -1; }
  .rm-brief h2.rm-head { font-size: 40px; }
  .rm-kick { font-size: 12px; margin: 4px 0 8px; padding-bottom: 6px; }
  .rm-brief li { font-size: 17px; padding: 7px 0; }
  .rm-poster { min-height: 230px; padding: 12px; }
  .rm-poster .rm-dlc { font-size: 16px; padding: 3px 8px 2px; }
  .rm-poster h2.rm-head { font-size: clamp(54px, 17cqi, 96px); }
  .rm-p88 h2.rm-head, .rm-p91 h2.rm-head { text-shadow: 3px 3px 0 var(--ink); }
  .rm-p91 h2.rm-head { text-shadow: 3px 3px 0 var(--red); }
  .rm-poster p { font-size: 15px; margin-top: 6px; }
  .rm-proj .rm-kickbar { font-size: 12px; padding: 4px 9px; }
  .rm-proj h2.rm-head { font-size: clamp(28px, 8cqi, 40px); max-width: none; margin: 10px 0; }
  .rm-proj .rm-stamp { position: static; display: inline-block; margin: 18px 0 4px 6px; font-size: 16px; }
  .rm-photo figcaption { font-size: 12px; }
  .rm-proj p { font-size: 17px; }
  .rm-price { font-size: 12px; margin-top: 12px; }
}

/* Two posters side by side stop working below phone width. */
@container (max-width: 440px) {
  .rm-band { grid-template-columns: 1fr; }
  .rm-poster { min-height: 210px; }
}

@media (prefers-reduced-motion: reduce) {
  .rm * { transition: none !important; }
}
