/* minsk.ad: shared look. Night blue, library cyan, street-lamp amber; warm paper in light. */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-variable-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-017F, U+0131, U+0152-0153, U+02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2116, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-variable-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-017F, U+0131, U+0152-0153, U+02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2116, U+2122, U+2190-2193, U+2212;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-variable-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light;
  --night-0: #0b1430;
  --night-1: #13204a;
  --night-2: #1c2f63;
  --cyan: #3de0ff;
  --amber: #ffb547;
  --paper: #f4f1ea;
  --ink-blue: #14183a;
  --deep: #2340c9;

  --bg: var(--paper);
  --bg-raise: #fbf9f4;
  --bg-sunk: #ebe6da;
  --ink: var(--ink-blue);
  --ink-2: #464b69;
  --ink-3: #5c6080;
  --line: rgb(20 24 58 / 0.14);
  --line-strong: rgb(20 24 58 / 0.28);
  --link: var(--deep);
  --glow: var(--deep);
  --eyebrow: #a24f00;
  --btn: var(--amber);
  --btn-ink: var(--ink-blue);
  --btn-2-ink: var(--ink-blue);
  --card: rgb(255 255 255 / 0.62);
  --card-line: rgb(20 24 58 / 0.1);
  --shadow: 0 1px 2px rgb(20 24 58 / 0.06), 0 12px 32px -12px rgb(20 24 58 / 0.22);
  --topbar: rgb(244 241 234 / 0.78);
  --focus: var(--deep);

  --font-head: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --gutter: 20px;
  --max: 1180px;
  --radius: 22px;
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: var(--night-0);
    --bg-raise: #111c42;
    --bg-sunk: #08102a;
    --ink: #eef1fb;
    --ink-2: #c3cbe8;
    --ink-3: #9ba7d0;
    --line: rgb(195 203 232 / 0.14);
    --line-strong: rgb(195 203 232 / 0.3);
    --link: var(--cyan);
    --glow: var(--cyan);
    --eyebrow: var(--cyan);
    --btn-2-ink: #eef1fb;
    --card: rgb(28 47 99 / 0.42);
    --card-line: rgb(61 224 255 / 0.12);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -18px rgb(0 0 0 / 0.6);
    --topbar: rgb(11 20 48 / 0.72);
    --focus: var(--cyan);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: var(--night-0);
  --bg-raise: #111c42;
  --bg-sunk: #08102a;
  --ink: #eef1fb;
  --ink-2: #c3cbe8;
  --ink-3: #9ba7d0;
  --line: rgb(195 203 232 / 0.14);
  --line-strong: rgb(195 203 232 / 0.3);
  --link: var(--cyan);
  --glow: var(--cyan);
  --eyebrow: var(--cyan);
  --btn-2-ink: #eef1fb;
  --card: rgb(28 47 99 / 0.42);
  --card-line: rgb(61 224 255 / 0.12);
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 18px 40px -18px rgb(0 0 0 / 0.6);
  --topbar: rgb(11 20 48 / 0.72);
  --focus: var(--cyan);
}

@media (min-width: 720px) {
  :root { --gutter: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  background-image: linear-gradient(180deg, var(--bg) 0%, var(--bg) 60%, var(--bg-sunk) 100%);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 450;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
:lang(zh) body, body:lang(zh) { line-height: 1.75; }
/* Chinese: Latin letters and digits stay in the site's fonts, characters come from the device */
:root:lang(zh) {
  --font-head: "Unbounded", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  --font-body: "Manrope", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}
/* a page about to switch from its English HTML stays hidden until the strings land (boot.js) */
.lang-wait body { visibility: hidden; }

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1:lang(zh), h2:lang(zh), h3:lang(zh) { letter-spacing: 0.02em; line-height: 1.25; font-weight: 800; }
.eyebrow:lang(zh) { font-size: 13px; letter-spacing: 0.08em; }
p { margin: 0; text-wrap: pretty; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--btn);
  color: var(--btn-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--eyebrow);
}
.eyebrow::before {
  content: "";
  width: 18px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

/* ---------- star field and glow ---------- */

.starfield {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.75;
}
@media (prefers-reduced-motion: no-preference) {
  .starfield { animation: breathe 7s ease-in-out infinite alternate; }
}
@keyframes breathe { from { opacity: 0.5; } to { opacity: 0.85; } }

.cursor-glow {
  position: fixed;
  left: 0; top: 0;
  width: 440px; height: 440px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 16%, transparent), transparent);
  transition: opacity 0.6s ease;
  mix-blend-mode: screen;
}
:root[data-theme="light"] .cursor-glow { mix-blend-mode: multiply; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .cursor-glow { mix-blend-mode: multiply; }
}
.cursor-glow.on { opacity: 1; }

main, .site-footer { position: relative; z-index: 2; }

/* ---------- top bar ---------- */

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 max(12px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-left));
  background: var(--topbar);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.topbar.clear {
  background: transparent;
  border-bottom-color: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
@media (min-width: 720px) {
  .topbar { padding-inline: 28px; gap: 28px; }
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.wordmark .tld { color: var(--link); }
.wordmark svg { width: 22px; height: 22px; filter: drop-shadow(0 0 6px rgb(61 224 255 / 0.55)); }

.topnav {
  display: none;
  gap: 4px;
}
@media (min-width: 640px) {
  .topnav { display: flex; }
}
.topnav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.topnav a:hover { color: var(--ink); background: var(--line); }
.topnav a[aria-current="page"] { color: var(--ink); background: var(--line); }

.controls {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* language */
.lang-switch { position: relative; }
.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: 800 12px/1 var(--font-body);
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-spring), background 0.2s ease;
}
.lang-button:hover { background: var(--line); }
.lang-button:active { transform: scale(0.92); }
.lang-button svg { width: 17px; height: 17px; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 210px;
  padding: 6px;
  border-radius: 18px;
  background: var(--bg-raise);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  display: grid;
  gap: 2px;
  transform-origin: top right;
}
.lang-menu[hidden] { display: none; }
.lang-menu:not([hidden]) { animation: pop 0.28s var(--ease-spring); }
@keyframes pop { from { opacity: 0; transform: scale(0.9) translateY(-6px); } }
.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: 600 15px/1.2 var(--font-body);
  text-align: left;
  cursor: pointer;
}
.lang-option:hover, .lang-option:focus-visible { background: var(--line); outline-offset: -2px; }
.lang-option[aria-checked="true"] { color: var(--link); }
.lang-option[aria-checked="true"] .lang-name::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.lang-soon {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px 7px;
}

/* theme: a three-way segmented control with a sliding thumb */
.theme-switch {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 34px);
  height: 36px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
}
.theme-switch button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.25s ease, transform 0.25s var(--ease-spring);
}
.theme-switch button:active { transform: scale(0.85); }
.theme-switch button[aria-checked="true"] { color: var(--btn-ink); }
.theme-switch button:focus-visible { outline-offset: 0; }
.theme-switch svg { width: 17px; height: 17px; }
.theme-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 34px; height: 30px;
  border-radius: 999px;
  background: var(--btn);
  box-shadow: 0 0 14px rgb(255 181 71 / 0.55);
  transition: transform 0.42s var(--ease-spring);
}
.theme-switch[data-choice="light"] .theme-thumb { transform: translateX(34px); }
.theme-switch[data-choice="dark"] .theme-thumb { transform: translateX(68px); }

/* ---------- buttons ---------- */

.btn {
  --lift: 0px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font: 800 16px/1 var(--font-body);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease, background 0.2s ease;
  transform: translateY(var(--lift));
}
.btn:hover { --lift: -2px; text-decoration: none; }
.btn:active { transform: translateY(1px) scale(0.97); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: var(--btn);
  color: var(--btn-ink);
  box-shadow: 0 0 0 1px rgb(255 181 71 / 0.4), 0 10px 30px -8px rgb(255 181 71 / 0.65);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgb(255 181 71 / 0.6), 0 16px 40px -8px rgb(255 181 71 / 0.85); }
.btn-ghost {
  background: rgb(255 255 255 / 0.06);
  color: var(--btn-2-ink);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--link); }

.maps-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}
.maps-link::before {
  content: "";
  width: 9px; height: 9px;
  flex: none;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.maps-link:hover { text-decoration: underline; }

/* ---------- reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--delay, 0s);
  }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- sections ---------- */

.section { padding-block: 88px; }
@media (min-width: 900px) { .section { padding-block: 132px; } }

.section-head { display: grid; gap: 16px; margin-bottom: 40px; max-width: 760px; }
.section-head h2 { font-size: clamp(30px, 7.6vw, 60px); }
.section-head p { color: var(--ink-2); font-size: 18px; max-width: 620px; }

.photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  background: var(--bg-sunk);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.credit {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-3);
}
.credit a { color: inherit; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 calc(48px + env(safe-area-inset-bottom));
  color: var(--ink-2);
  font-size: 15px;
}
.site-footer .wrap { display: grid; gap: 22px; }
@media (min-width: 720px) {
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
.footer-line { font-weight: 700; color: var(--ink); }
.footer-line a { color: var(--link); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-nav a { color: var(--ink-2); font-weight: 700; text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-note { grid-column: 1 / -1; font-size: 13px; color: var(--ink-3); max-width: 720px; }

/* ---------- simple page header (history, play, sources, 404) ---------- */

.page-head {
  padding-block: 128px 40px;
  position: relative;
}
@media (min-width: 900px) { .page-head { padding-block: 168px 64px; } }
.page-head h1 { font-size: clamp(40px, 11vw, 104px); margin-top: 18px; }
.page-head .lede { margin-top: 22px; font-size: 19px; color: var(--ink-2); max-width: 640px; }
