/* The public page obavo.app/@nick (static/site/page.html, new top 2026-11-17): the logo with the slogan; the owner — a
   chip whose phrase runs through the languages, the name as the heading, line, place, skills — and the message card;
   then about, links and works. Wide: the owner left, the card right. Phone: one column. */
.top, .hero, .folio, .foot { width: min(1160px, 100% - 32px); margin: 0 auto; }
.top { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge { height: 38px; padding: 0 16px; border-radius: 9999px; display: inline-flex; align-items: center; text-decoration: none;
  background: linear-gradient(180deg, #4a4e55 0%, #24272c 55%, #17191c 100%); color: #e9eaec; font-weight: 800; font-size: 16px; letter-spacing: .06em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.4), 0 0 0 1px #0f1012, 0 4px 12px -6px rgba(0,0,0,.45); }
.badge-sm { height: 22px; padding: 0 9px; font-size: 10px; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 0 0 1px #0f1012; }
.langs { position: relative; }
.langs summary { list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs nav { position: absolute; inset-inline-end: 0; top: 44px; z-index: 2; width: 200px; padding: 6px; display: flex; flex-direction: column; }
.langs nav a { padding: 9px 12px; border-radius: 12px; text-decoration: none; font-size: 15px; }
.langs nav a:hover { background: var(--canvas); }
.langs nav a[aria-current] { font-weight: 700; }

.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.slogan { font-size: 12px; color: var(--muted); padding-inline-start: 4px; }

.hero { padding: 32px 0 72px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.intro { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; }
.chip { margin: 0 0 24px; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 16px;
  border-radius: 9999px; background: var(--canvas); font-size: 14px; color: #6b6b6b; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.say { color: var(--ink); font-weight: 700; transition: opacity .35s; }
.say.out { opacity: 0; }
.who { display: flex; align-items: center; gap: 20px; }
.avatar { position: relative; width: 76px; height: 76px; flex: none; }
.photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; background: #e9e4dc; display: block; }
.photo.logo { border-radius: 20px; }
.initials { display: flex; align-items: center; justify-content: center; font-size: 28px; font-weight: 700; color: #57534e; }
.dot { position: absolute; right: 2px; bottom: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px #fff; }
.who .cap:empty { display: none; }
.name { margin: 0; font-size: clamp(36px, 4.4vw, 56px); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.line { margin: 18px 0 0; max-width: 580px; font-size: 21px; line-height: 1.45; color: #262626; overflow-wrap: anywhere; }
.where { margin: 10px 0 0; font-size: 15px; color: #6b6b6b; }
.line:empty, .where:empty, .note:empty { display: none; }
.intro .tags { margin-top: 20px; max-width: 580px; }

.note-card { flex: 1 1 420px; max-width: 470px; padding: 22px; border-radius: 28px; background: var(--paper); display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 0 0 1px rgba(23,23,23,.06), 0 2px 4px rgba(0,0,0,.06), 0 24px 56px -20px rgba(0,0,0,.22); }
.card-title { margin: 4px 0 0; font-size: 26px; line-height: 1.2; letter-spacing: -.01em; font-weight: 800; }
.note-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.for { font-size: 15px; color: #6b6b6b; }
.pair { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #525252; }
.pair span, .pair b { padding: 3px 8px; border-radius: 9999px; background: var(--canvas); }
.pair b { background: var(--ink); color: #fafafa; }
[data-same=true] .pair, [data-same=true] .bubble { display: none; }
.note-card textarea { resize: none; border: 0; border-radius: 18px; background: var(--soft); box-shadow: inset 0 0 0 1px #efefef; padding: 16px;
  font: 400 18px/1.5 var(--sans); color: var(--ink); min-height: 120px; }
.note-card textarea:focus { outline: 2px solid var(--ink); background: #fff; }
.bubble { align-self: flex-end; max-width: 88%; padding: 12px 16px; border-radius: 18px 18px 6px 18px; background: var(--ink); color: #fafafa; display: flex; flex-direction: column; gap: 4px; }
[dir=rtl] .bubble { align-self: flex-start; border-radius: 18px 18px 18px 6px; }
.bubble[hidden] { display: none; }
.reads { font-size: 12px; color: #a3a3a3; }
.said { font-size: 16px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.bubble.wait .said { color: #a3a3a3; }
.send { height: 54px; margin-top: 6px; font-size: 16px; font-weight: 600; }
[dir=rtl] .send svg { transform: scaleX(-1); }
.free { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }

.folio { padding: 64px 0; display: flex; flex-wrap: wrap; gap: 56px; }
.side { flex: 1 1 320px; display: flex; flex-direction: column; gap: 14px; }
.grid { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.folio h2 { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.about { margin: 0; font-size: 18px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.about b { font-weight: 700; }
.tags { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 9999px; box-shadow: 0 0 0 1px var(--hair); font-size: 14px; }
.links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.pill-soft { height: 40px; padding: 0 16px; background: var(--canvas); font-size: 14px; }
.pill-soft:hover { background: #ececec; }
.works { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.works a { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
/* A picture is shown whole and in its own proportions, smaller when needed, on a grey tile: never cut or stretched */
.works .pic, .works .blank { width: 100%; aspect-ratio: 4 / 3; border-radius: 20px; background: var(--canvas); display: grid; place-items: center; overflow: hidden; }
.works .pic img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.works .pic.logo img { max-width: 42%; max-height: 52%; }
.works b { font-size: 15px; font-weight: 600; line-height: 1.3; }
/* An app from a store: a wide strip of its screenshots, one height, each in its own width */
.works .app { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.strip { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px; background: var(--canvas); border-radius: 24px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip img { height: 300px; width: auto; flex: none; border-radius: 18px; scroll-snap-align: start; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 8px 24px -12px rgba(0,0,0,.25); }
.app-cap { display: flex; align-items: center; gap: 12px; }
.app-cap a { display: inline; }
.app-cap .icon-link { display: block; flex: none; line-height: 0; }
.app-cap .icon { width: 44px; height: 44px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(0,0,0,.06); }
.app-cap span { display: flex; flex-direction: column; gap: 2px; }
.app-cap .stores { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
.app-cap .stores a { color: var(--muted); }
.app-cap .stores a:hover { color: var(--ink); }
.works .more { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.arrows { margin-inline-start: auto; flex-direction: row !important; gap: 8px !important; }
.arrows button { width: 40px; height: 40px; border-radius: 9999px; border: 0; background: var(--canvas); color: var(--ink); font-size: 20px; cursor: pointer; }
.arrows button:hover { background: #ececec; }

.foot { padding: 24px 0 32px; border-top: 1px solid #efefef; display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted); }
/* the footer's quiet link to make one's own page: a thin pill with the small badge and an arrow */
.mine { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 8px 0 6px; border-radius: 9999px;
  box-shadow: 0 0 0 1px var(--hair); text-decoration: none; color: var(--ink); font-size: 14px; }
.mine:hover { box-shadow: 0 0 0 1px #d4d4d4; background: var(--soft); }
.mine .badge-sm { height: 26px; padding: 0 10px; }
.go { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--canvas); }
[dir=rtl] .go { transform: scaleX(-1); }
.foot .note a { color: inherit; }

@media (max-width: 720px) {
  .top { padding: 14px 0; }
  .badge:not(.badge-sm) { height: 36px; font-size: 15px; }
  .slogan { font-size: 11px; }
  .hero { padding: 20px 0 48px; gap: 36px; }
  .chip { margin-bottom: 22px; font-size: 13px; padding: 5px 12px; gap: 8px; }
  .who { gap: 16px; }
  .avatar, .photo { width: 56px; height: 56px; }
  .initials { font-size: 21px; }
  .dot { width: 13px; height: 13px; }
  .name { font-size: 32px; line-height: 1.1; }
  .line { margin-top: 18px; font-size: 17px; line-height: 1.5; }
  .where { margin-top: 10px; font-size: 14px; }
  .intro .tags { margin-top: 20px; gap: 8px; }
  .intro .tags li { padding: 5px 12px; font-size: 13px; }
  .card-title { font-size: 21px; }
  .for { font-size: 14px; }
  .note-card { max-width: none; padding: 20px 16px 18px; border-radius: 24px; gap: 14px; }
  .note-card textarea { font-size: 16px; padding: 12px 14px; border-radius: 14px; min-height: 100px; }
  .send { height: 52px; }
  .folio { width: 100%; margin: 0; padding: 44px 16px 52px; gap: 48px; background: var(--soft); }
  .side, .grid { gap: 18px; }
  .about { font-size: 16px; line-height: 1.65; }
  .links { padding-top: 8px; }
  .tags li, .pill-soft { background: #fff; box-shadow: 0 0 0 1px var(--hair); }
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .works .pic, .works .blank { aspect-ratio: 1 / 1; border-radius: 16px; }
  .strip { padding: 14px; gap: 10px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--hair); }
  .strip img { height: 240px; border-radius: 14px; }
  .arrows { display: none !important; }
  .foot { flex-direction: column; text-align: center; font-size: 13px; padding: 32px 0 44px; gap: 20px; }
  .foot .sep { display: none; }
  .foot .note a { display: block; margin-top: 6px; }
}

.missing { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 20px; padding: 16px; text-align: center; font-size: 18px; }
.missing p { margin: 0; }

/* Apple's «Download on the App Store» badge, when the app has an App Store page (render.py) */
.store { display: inline-flex; border-radius: 8px; }
.store img { display: block; height: 40px; width: auto; }

/* Phones: the bar «Удобнее в приложении · Открыть» stays at the bottom (app_links.py, page.js shows it). */
.app-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 5; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); box-shadow: 0 -1px 0 var(--hair), 0 -8px 24px -16px rgba(0,0,0,.3);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.app-bar[hidden] { display: none; }
.app-bar .app-line { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; }
.app-bar .pill { flex: none; text-decoration: none; }
body.with-app-bar { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }

/* Sent from a phone without the app (/@nick/write): App Store or Google Play, or on in the browser. */
.get-app main { width: min(440px, 100% - 32px); margin: 0 auto; padding: 56px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.get-app h1 { margin: 8px 0 0; font-size: 28px; line-height: 1.15; font-weight: 800; }
.get-app .said { margin: 0; padding: 12px 16px; border-radius: 18px; background: var(--canvas); max-width: 100%; overflow-wrap: anywhere; }
.get-app .line { margin: 0; font-size: 16px; color: var(--muted); }
.get-app .pill { text-decoration: none; }
.get-app .browser { color: var(--ink); font-size: 15px; }
.top-end { display: flex; align-items: center; gap: 8px; }
.top-end .mac { text-decoration: none; }
.top-end .mac[hidden] { display: none; }
