@font-face {
  font-family: Onest;
  src: url('/fonts/Onest-VF.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #fffdf4;
  --ink: #121212;
  --yellow: #ffe14a;
  --line: #d9d4c3;
  --muted: #4a4739;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.5 Onest, system-ui, sans-serif; overflow-wrap: anywhere; }
::selection { background: var(--ink); color: var(--yellow); }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p { margin: 0; }
.wrap { width: min(100% - 64px, 1040px); margin-inline: auto; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 112px; border-bottom: 1px solid var(--line); }
.logo { width: 146px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.intro { margin: 60px 0 36px; }
h1 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 620; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
.intro p { margin-top: 20px; font-size: 19px; line-height: 1.5; color: var(--muted); }
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.platform-slot { min-width: 0; }
.availability-note { margin: 12px 2px 0; color: var(--muted); font-size: 14px; }
.platform { display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; text-decoration: none; transition: border-color .15s, background .15s; }
.platform:hover { border-color: var(--ink); background: #fffbea; }
.platform.recommended { border-color: var(--ink); background: #fff8d4; }
.platform-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-bottom: 20px; }
.device-icon { width: 48px; height: 48px; flex: none; }
.recommendation { max-width: 16ch; color: var(--muted); font-size: 13px; line-height: 1.35; text-align: right; }
.recommendation[hidden] { display: none; }
.platform h2 { font-size: 27px; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; }
.platform-description { margin-top: 8px; color: var(--muted); }
.store-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; padding: 15px 20px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--yellow); font-size: 16px; font-weight: 550; line-height: 1.35; }
.store-action svg { width: 21px; height: 21px; flex: none; }
.phone-handoff { display: flex; align-items: center; gap: 24px; margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.phone-handoff img { flex: none; width: 116px; height: 116px; image-rendering: pixelated; }
.phone-handoff h2 { font-size: 20px; font-weight: 550; line-height: 1.3; }
.phone-handoff p { max-width: 44ch; margin-top: 8px; color: var(--muted); font-size: 15px; }
.telegram-option { margin-top: 28px; color: var(--muted); font-size: 15px; }
.telegram-option a { display: inline-block; min-height: 44px; padding-block: 10px; color: var(--ink); }
.page-footer { display: flex; flex-wrap: wrap; gap: 24px; padding-block: 28px; margin-top: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.page-footer a { display: inline-flex; align-items: center; min-height: 44px; }
.skip-link { position: absolute; top: -100px; left: 24px; padding: 12px 20px; background: var(--yellow); z-index: 2; }
.skip-link:focus { top: 16px; }

@media (max-width: 700px) {
  .wrap { width: calc(100% - 40px); }
  .page-header { min-height: 88px; gap: 16px; }
  .logo { width: 124px; }
  .back-link { font-size: 13px; }
  .intro { margin: 36px 0 28px; }
  h1 { max-width: 16ch; font-size: 36px; }
  .intro p { margin-top: 16px; font-size: 17px; }
  .desktop-break { display: none; }
  .platforms { grid-template-columns: 1fr; gap: 16px; }
  .platform { padding: 22px; }
  .platform-top { margin-bottom: 14px; }
  .platform h2 { font-size: 25px; }
  .store-action { margin-top: 22px; padding: 15px 18px; }
  .phone-handoff { display: none; }
  .telegram-option { margin-top: 24px; }
  .page-footer { margin-top: 24px; padding-block: 20px; gap: 16px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .platform { transition: none; }
}

.availability-note a { display: inline-flex; align-items: center; min-height: 44px; }
