/* Geometry, palette, shadows and wordmark from the test miniapp's «Объём» home. */
:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, sans-serif;
  --paper: #f1f1f4;
  --surface: #fff;
  --inset: #e9e9f1;
  --wash: #e7e7ed;
  --ink: #202126;
  --muted: #595b68;
  --accent: #262630;
  --rim: inset 0 1px 0 rgb(255 255 255 / .95), inset 0 -1px 1px rgb(79 80 105 / .14);
  --contact: rgb(39 40 60 / .22);
  --diffuse: rgb(49 50 75 / .16);
  --card-face: linear-gradient(153deg, #fff 48%, #f9f9fa);
  --art-face: radial-gradient(ellipse at 25% 10%, #f6f6f9, transparent 76%), var(--inset);
  --card-shadow: var(--rim), 0 3px 5px -2px var(--contact), 0 9px 18px -3px var(--diffuse);
  --detail-shadow: var(--rim), 0 2px 3px -1px var(--contact);
  --surface-shadow: 0 8px 18px #29294113, 0 2px 5px #1e1e2b09;
  --soft-shadow: inset 0 1px 0 rgb(255 255 255 / .62), 0 1px 2px -1px rgb(39 40 60 / .13);
  --gutter: clamp(13px,4.4vw,22px);
  background: var(--paper);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
a:focus-visible, .looks:focus-visible { outline: 3px solid #525979; outline-offset: 2px; }
.home {
  display: grid;
  gap: 16px;
  width: min(100%, 700px);
  margin-inline: auto;
  padding: clamp(16px, 4vh, 36px) var(--gutter) max(22px, env(safe-area-inset-bottom));
}
.masthead p {
  max-width: 48ch;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.38;
  margin-block: 10px 1px;
}
.topbar, .wordmark, .stylist-head, .open, .launch, .tile, .round { display: flex; align-items: center; }
.topbar { justify-content: space-between; gap: 12px; }
.wordmark { gap: 7px; font: 790 clamp(30px,4vw,38px)/1 system-ui,sans-serif; letter-spacing: -.067em; }
.sphere {
  width: .67em; height: .67em; border-radius: 50%;
  background: radial-gradient(circle at 30% 24%, #faf9f8 4%, #b7b5c2 38%, #57556e 83%);
}
.open, .launch { justify-content: center; border-radius: 999px; min-height: 44px; padding: 7px 19px; font-weight: 700; font-size: 15px; }
.dark { color: white; background: var(--accent); box-shadow: 0 5px 10px #22223324, 0 2px 3px #30305516, inset 0 1px 0 #fff; }
.section-title { font: 780 clamp(19px,2.6vw,24px)/1.2 system-ui,sans-serif; letter-spacing: -.04em; }
.looks {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 9px;
  padding: 6px 1px 14px; margin-bottom: -9px;
}
.look { min-width: 0; padding: 7px; border-radius: 29px; background: var(--card-face); box-shadow: var(--card-shadow); }
.look img { width: 100%; height: auto; aspect-ratio: 1; display: block; border-radius: 23px; background: var(--art-face); box-shadow: var(--detail-shadow); object-fit: contain; }
.look > span { display: flex; align-items: center; min-height: 35px; padding: 4px 6px 1px; font-size: 14px; line-height: 1.22; font-weight: 720; }
.surface { background: var(--surface); box-shadow: var(--surface-shadow); border-radius: 29px; }
.stylist { padding: 7px; }
.stylist-head { gap: 9px; min-height: 46px; padding: 1px 5px 4px 8px; }
.stylist-head h2 { font-size: 17px; font-weight: 760; line-height: 1.14; letter-spacing: -.02em; }
.round { justify-content: center; flex-shrink: 0; border-radius: 50%; }
.round.ink { width: 36px; height: 36px; color: white; background: var(--accent); }
.subtle { margin-left: auto; min-height: 44px; padding-inline: 12px; color: var(--muted); font-size: 14px; }
.stylist-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; }
.tile { justify-content: center; gap: 6px; min-height: 44px; border-radius: 28px; font-size: 14px; font-weight: 620; background: var(--wash); box-shadow: var(--soft-shadow); }
.tile.compose { grid-column: 1 / -1; justify-content: flex-start; padding: 7px 12px 7px 8px; min-height: 55px; gap: 10px; font-size: 16px; font-weight: 750; }
.compose .round { width: 39px; height: 39px; background: white; box-shadow: var(--soft-shadow); }
.icon { --size: 18px; display: inline-block; flex: 0 0 var(--size); width: var(--size); height: var(--size); background: currentColor; -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.chat { --glyph: var(--design-glyph-chat); }
.layers { --glyph: var(--design-glyph-compose); --size: 20px; }
.assess { --glyph: var(--design-glyph-assess); --size: 16px; }
.palette { --glyph: var(--design-glyph-palette); --size: 16px; }
.next { --glyph: var(--design-glyph-next); --size: 14px; margin-left: auto; color: var(--muted); }
.plus { --glyph: var(--design-glyph-add); }
.fitting { --glyph: var(--design-glyph-fitting); }
.tryon { --glyph: var(--design-glyph-tryon); }
.shortcuts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 2px; padding: 6px 3px; border-radius: 27px; }
.shortcuts a { display: grid; align-content: center; justify-items: center; gap: 5px; min-height: 59px; padding: 3px 1px; border-radius: 22px; font-size: 13px; line-height: 1.2; }
.shortcuts .round { width: 33px; height: 33px; background: var(--paper); box-shadow: var(--soft-shadow); }
.launch { min-height: 47px; color: var(--ink); background: var(--wash); box-shadow: var(--soft-shadow); }

.launch-platforms { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.launch-platform {
  gap: 7px;
  min-height: 52px;
  padding: 7px 9px;
  border: 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}
.launch-platform img { display: block; flex: 0 0 24px; }
.launch-platform small { display: block; margin-top: 2px; font-size: 11px; font-weight: 550; }
.launch-platform:disabled { background: var(--wash); color: var(--muted); opacity: 1; }
@media (max-width: 365px) {
  .launch-platforms { grid-template-columns: 1fr; }
}

@media (max-width: 550px) {
  .home { padding-top: 10px; gap: 14px; }
  .masthead p { margin-top: 6px; }
  .looks {
    grid-auto-columns: min(46%, 205px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding-inline: var(--gutter);
    overscroll-behavior-x: contain;
    margin-inline: calc(-1 * var(--gutter));
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .looks::-webkit-scrollbar { display: none; }
  .look { scroll-snap-align: start; }
  .look > span { font-size: 13px; }
  .tile { font-size: 13px; }
  .shortcuts a { font-size: 12px; }
}
@media (hover: hover) {
  .dark:hover { background: #383944; }
  .tile:hover, .launch:hover { background: #dfdfe7; }
  .shortcuts a:hover, .subtle:hover { background: var(--paper); }
}
@media (prefers-reduced-motion: no-preference) {
  a { transition: transform 140ms cubic-bezier(.2,.75,.25,1); }
  a:active { transform: scale(.98); }
}
