/* v8 — минимализм в духе gabrielbeaugonin.com/about: светло-серый лист,
   одна гарнитура, чёрное и серое. Колонка текста слева, справа закреплён
   3D-глобус (app.js). Ключевые слова — чёрные, остальное — серое; пункты
   списков темнеют по мере скролла (--t ставит app.js). */

:root {
  --bg: #f5f5f5;
  --ink: #0a0a0a;
  --grey: #9b9b9b;
  --soft: #c4c4c4;
  --left: 14.6vw;
  --font: "Geist", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.4 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 8px 14px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Колонка ---------- */
main {
  position: relative; z-index: 2;
  width: min(100% - 32px, calc(var(--left) + 40rem));
  padding: 0 0 0 var(--left);
}
.intro { padding-top: 30vh; }
.intro h1, .intro p {
  margin: 0;
  font: 400 clamp(28px, 2.15vw, 44px)/1.12 var(--font);
  letter-spacing: -.02em;
}
.muted { color: var(--grey); }

/* кнопки: чёрный круг и белые скруглённые квадраты */
.buttons { display: flex; gap: 4px; margin-top: 64px; }
.round, .square {
  position: relative;
  display: grid; place-items: center;
  width: 60px; height: 60px; padding: 0;
  border: 0; cursor: pointer; color: var(--ink);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), background .2s ease;
}
.round { border-radius: 50%; background: var(--ink); color: var(--bg); }
.square { border-radius: 14px; background: #fff; }
.round:hover, .square:hover { transform: translateY(-3px); }
.square:hover { background: #ebebeb; }
.buttons svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tip {
  position: absolute; left: 50%; bottom: calc(100% + 8px);
  padding: 4px 9px; border-radius: 6px;
  font-size: 12px; white-space: nowrap;
  color: var(--bg); background: var(--ink);
  opacity: 0; translate: -50% 4px; pointer-events: none;
  transition: opacity .2s ease, translate .2s ease;
}
.copy:hover .tip, .copy:focus-visible .tip, .copy.done .tip { opacity: 1; translate: -50% 0; }

/* абзацы: ключевое чёрным, остальное серым */
.copy-block { margin-top: 24vh; }
.lead {
  margin: 0 0 1em;
  font: 400 clamp(21px, 1.62vw, 32px)/1.28 var(--font);
  letter-spacing: -.015em;
  color: var(--grey);
}
.lead b { font-weight: 400; color: var(--ink); }
.lead a b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }

/* списки, как «Recognitions:» */
.list-block { margin-top: 14vh; }
.label { margin: 0 0 18px; font: 400 15px var(--font); }
.items { list-style: none; margin: 0; padding: 0; }
.items li {
  font: 400 clamp(21px, 1.62vw, 32px)/1.3 var(--font);
  letter-spacing: -.015em;
}
.items i { font-style: normal; color: var(--grey); }
.items a { display: inline-block; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.items a:hover { transform: translateX(8px); }
.js .fade { opacity: calc(.22 + .78 * var(--t, 0)); }

.foot { margin-top: 26vh; padding-bottom: 60px; font-size: 14px; color: var(--grey); }
.foot p { margin: 0 0 10px; }
.versions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.versions a:hover, .versions a[aria-current] { color: var(--ink); }

/* появление строк при загрузке и по скроллу */
.line { transition: opacity .9s ease, translate .9s cubic-bezier(.2, .7, .2, 1); }
.js .line:not(.in) { opacity: 0; translate: 0 26px; }

/* ---------- Глобус ---------- */
.globe {
  position: fixed; z-index: 1;
  right: 9vw; top: 50%;
  width: clamp(320px, 27vw, 560px); aspect-ratio: 1;
  margin: 0; translate: 0 -50%;
  display: none;
}
.has-globe .globe { display: block; }
.globe-canvas { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.globe-canvas.drag { cursor: grabbing; }
.globe-canvas canvas { display: block; width: 100%; height: 100%; }
.globe figcaption {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px);
  text-align: center; font-size: 14px; color: rgba(10, 10, 10, .3);
}
.pin-label {
  position: absolute; left: 0; top: 0;
  padding: 3px 8px; border-radius: 999px;
  font-size: 12px; white-space: nowrap;
  color: var(--bg); background: var(--ink);
  translate: 10px -50%; pointer-events: none;
  opacity: 0; transition: opacity .25s ease;
}
.pin-label.on { opacity: 1; }
/* появление глобуса */
.globe-canvas { opacity: 0; scale: .86; transition: opacity 1.2s ease, scale 1.6s cubic-bezier(.2, .7, .2, 1); }
.globe.ready .globe-canvas { opacity: 1; scale: 1; }

/* ---------- Узкий экран: глобус в потоке, под вступлением ---------- */
@media (max-width: 900px) {
  :root { --left: 20px; }
  main { width: auto; padding: 0 20px; }
  .intro { padding-top: 22vh; }
  .globe {
    position: relative; right: auto; top: auto; translate: none;
    width: min(100% - 40px, 440px); margin: 12vh auto 0;
  }
  .copy-block { margin-top: 16vh; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .line, .globe-canvas, .round, .square, .items a { transition: none; }
  .js .line:not(.in) { opacity: 1; translate: none; }
}
