:root {
  --vers-h: 46px;
  --bar-top: calc(var(--bar-h) + var(--vers-h) + env(safe-area-inset-top, 0px));
  --ink: #2b2622;
  --ink-soft: #5f554b;
  --ink-label: #8a7e72;
  --rule: rgba(43, 38, 34, 0.12);
  --chip: rgba(43, 38, 34, 0.07);
  --chip-ink: #4f463e;
  --chip-on: #1c1c1e;
  --chip-on-ink: #f4f1ea;
  --soon: #244f8f;
  --soon-bg: rgba(36, 79, 143, 0.12);
  --tick: #5f8a4f;
  --card: #fbf8f2;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.vers { display: flex; justify-content: center; gap: 6px; height: var(--vers-h); padding: 0 var(--gutter) 8px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.landing .vers__tab { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 16px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); font-size: 14px; font-weight: 700; letter-spacing: .02em; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, color 160ms ease; }
.landing .vers__tab.is-on { background: var(--chip-on); color: var(--chip-on-ink); }
.vers__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--led); }

.log-page { padding-bottom: clamp(56px, 40px + 4vw, 96px); }
.log { max-width: 920px; margin: 0 auto; }
.log__head h1 { margin: 0; font-family: var(--ui); font-size: clamp(30px, 24px + 1.6vw, 42px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.log__head p { margin: 10px 0 0; font-size: 17px; font-weight: 500; line-height: 1.45; color: var(--ink-soft); }

.ver { margin-top: 24px; padding: 24px 20px 26px; border-radius: 6px; background: var(--card) url("textures/tooth-10.webp"); background-size: 180px; box-shadow: 0 1px 1px rgba(30,18,8,.18), 0 6px 16px rgba(20,12,4,.08); scroll-margin-top: calc(var(--bar-top) + 16px); }
.log__head + .ver { margin-top: clamp(28px, 20px + 2vw, 44px); }
.ver--soon { background: transparent; box-shadow: none; border: 1.5px dashed rgba(43,38,34,.3); }

.ver__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-bottom: 16px; border-bottom: 1px solid var(--rule); }
.ver__name { margin: 0; font-family: var(--ui); font-size: 26px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.ver__app { font-weight: 500; color: var(--ink-soft); }
.ver__date { flex-basis: 100%; margin: 0; font-size: 15px; font-weight: 500; color: var(--ink-soft); }

.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--chip); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--chip-ink); }
.tag--now { background: var(--chip-on); color: var(--chip-on-ink); }
.tag__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--led); }

.grp { margin-top: 20px; }
.grp + .grp { margin-top: 28px; }
.grp__label { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-label); }

.feats, .fixes { margin: 0; padding: 0; list-style: none; }
.feat { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.feat:last-child { border-bottom: none; padding-bottom: 0; }
.feat p { margin: 0; font-size: 16.5px; font-weight: 500; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.feat b { font-weight: 700; }

.thumb { display: block; width: 76px; height: 76px; border-radius: 6px; object-fit: cover; object-position: top; background: #1c1a18; box-shadow: 0 1px 2px rgba(30,18,8,.25); }
.thumb--tall { height: 104px; }

.fixes { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.fixes li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: 15.5px; font-weight: 500; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
.fixes li::before { content: ""; width: 10px; height: 6px; margin-top: 6px; border-left: 2px solid var(--tick); border-bottom: 2px solid var(--tick); transform: rotate(-45deg); }

.get-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: clamp(40px, 30px + 2vw, 56px); padding-top: 24px; border-top: 1px solid var(--rule); }
.get-row p { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); }
.get-row .stores { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }


@media (min-width: 900px) {
  :root { --bar-top: calc(var(--bar-h) + env(safe-area-inset-top, 0px)); }
  .vers { position: absolute; left: 50%; top: env(safe-area-inset-top, 0px); height: var(--bar-h); padding: 0; transform: translateX(-50%); }
  .ver { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 40px; padding: 32px 36px 34px; }
  .ver__head { position: sticky; top: calc(var(--bar-top) + 24px); align-self: start; flex-direction: column; align-items: flex-start; padding-bottom: 0; border-bottom: none; }
  .ver__name { font-size: 30px; }
  .ver__body > .grp:first-child { margin-top: 0; }
  .thumb { width: 88px; height: 88px; }
  .thumb--tall { height: 120px; }
}
