/* indiemurat.com — палитра и шрифт канала (kit/kit.css): Inter, мятная плашка, стикер с белой обводкой */
:root {
  color-scheme: light;
  --paper: #f6f7f6;
  --ink: #111214;
  --dim: #5d6168;
  --line: #e2e5e3;
  --mark: #b8f5d8;
  --mint: #15a372;
  --navy: #1f2b57;
  --red: #ff4d55;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 Inter, system-ui, sans-serif; }
main { max-width: 640px; margin: 0 auto; padding: 32px 20px 72px; }
a { color: var(--ink); text-decoration-color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; border-radius: 6px; }
p { margin: 0 0 14px; }
code, .prompt { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; }

/* мятная плашка канала: заливка под словом */
.mk { background: linear-gradient(var(--mark), var(--mark)) no-repeat 0 60% / 100% 72%; padding: 0 .12em; margin: 0 -.06em;
      -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* ── герой ── */
.hero { position: relative; display: grid; grid-template-columns: 1fr; padding-top: 8px; }
/* пол-сетка в перспективе, как .floor в kit: тает к горизонту и к краям */
.floor { position: absolute; z-index: -1; left: -20px; right: -20px; top: 120px; height: 520px; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.floor i { position: absolute; left: -40%; right: -40%; top: 0; height: 100%; transform-origin: 50% 0;
  transform: perspective(520px) rotateX(64deg);
  background-image: linear-gradient(rgba(17,18,20,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(17,18,20,.08) 1px, transparent 1px); background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, transparent 85%); mask-image: linear-gradient(180deg, transparent, #000 25%, transparent 85%); }
.me { position: relative; width: 210px; height: 210px; margin: 0 0 8px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
.me:focus-visible { border-radius: 24px; }
.tap { position: absolute; left: 12px; bottom: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
  transform: rotate(-6deg); transition: opacity .3s; }
.me.tapped .tap { opacity: 0; }
.me.hop img { animation: hop .4s cubic-bezier(.3,1.6,.5,1); }
.me.hop .bubble { animation: pop .35s cubic-bezier(.3,1.6,.5,1) both; }
@keyframes hop { 40% { transform: translateY(-10px) scale(1.04) rotate(-2deg); } }
.me img { width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff) drop-shadow(0 14px 18px rgba(17,18,20,.16)); }
.bubble { position: absolute; left: 172px; top: 30px; width: max-content; max-width: calc(100vw - 172px - 36px); padding: 10px 16px; border-radius: 20px 20px 20px 6px; text-align: left;
  background: #fff; font-weight: 700; font-size: 17px; line-height: 1.3; box-shadow: 0 10px 24px rgba(17,18,20,.1); }
h1 { margin: 0 0 16px; font-weight: 900; font-size: clamp(40px, 10.5vw, 60px); line-height: 1.04; letter-spacing: -.035em; }
.lede { font-size: 20px; color: var(--ink); max-width: 34em; }
.links { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.links a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; font-weight: 600; font-size: 16px; }
.links a:hover { border-color: var(--ink); }
.links svg { width: 18px; height: 18px; flex: none; }
.links span { color: var(--dim); font-weight: 500; }

/* ── разделы ── */
section { margin-top: 64px; }
h2 { margin: 0 0 6px; font-weight: 900; font-size: 30px; line-height: 1.15; letter-spacing: -.02em; }
.sub { color: var(--dim); margin-bottom: 18px; }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.rows a { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; padding: 16px 0; text-decoration: none; }
.rows a:hover b { text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.rows b { font-size: 19px; font-weight: 700; line-height: 1.3; }
.rows small { grid-column: 2; color: var(--dim); font-size: 16px; line-height: 1.45; }

/* поиск по туториалам */
.find { display: block; width: 100%; margin: 0 0 14px; padding: 13px 16px 13px 44px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  color: var(--ink); font: 500 17px Inter, system-ui, sans-serif; -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%235d6168' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='8.5' cy='8.5' r='6'/%3E%3Cpath d='m13 13 5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 15px 50%; }
.find::placeholder { color: #8b9098; }
.find:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 3px var(--mark); }
.search { position: relative; margin-top: 18px; }
.search .find { margin: 0; box-shadow: 0 8px 20px rgba(17,18,20,.06); }
.results { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(17,18,20,.14); }
.results a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; }
.results a:hover, .results li:first-child a { background: var(--paper); }
.results .word { width: 88px; min-width: 0; flex: none; }
.results .vid { background: var(--ink); color: #fff; }
.results b { font-weight: 600; font-size: 16px; line-height: 1.35; }
.nohit { padding: 10px; color: var(--dim); font-size: 16px; }

/* слово из комментария — то, что зритель написал */
.word { display: inline-block; min-width: 92px; padding: 5px 10px; border-radius: 10px; background: var(--mark); color: #0f3d34;
  font-weight: 900; font-size: 15px; letter-spacing: .02em; text-align: center; }
.rows .word { grid-row: span 2; align-self: start; margin-top: 2px; }

/* проекты: иконка приложения */
.icon { width: 60px; height: 60px; border-radius: 15px; grid-row: span 2; align-self: start; box-shadow: 0 0 0 1px rgba(17,18,20,.08), 0 6px 14px rgba(17,18,20,.08); }

/* история */
.story p { font-size: 19px; }
.died { color: var(--red); font-weight: 700; }

/* стена шортсов: обложки в форме экрана телефона, на телефоне — лента с прокруткой вбок */
.shorts { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; margin: 0 -20px; padding: 4px 20px 14px; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 20px; scrollbar-width: none; }
.shorts::-webkit-scrollbar { display: none; }
.shorts li { scroll-snap-align: start; }
.shorts a { display: block; border-radius: 18px; overflow: hidden; background: var(--ink); box-shadow: 0 0 0 1px rgba(17,18,20,.08), 0 10px 22px rgba(17,18,20,.12); }
.shorts img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; transition: transform .25s; }
.shorts a:hover img { transform: scale(1.03); }
.more { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 16px; }

/* кладбище: три надгробия, имя зачёркнуто */
.graves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 22px; padding: 0; list-style: none; }
.graves li { padding: 20px 6px 16px; border-radius: 48px 48px 10px 10px; background: #e9ebea; border: 1px solid #d9dcda; text-align: center; }
.graves b { display: block; white-space: nowrap; font-weight: 900; font-size: 15px; text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 3px; }
.graves small { display: block; margin-top: 8px; color: var(--dim); font-size: 14px; line-height: 1.35; }

footer { margin-top: 72px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); font-size: 15px; }

/* ── страница инструкции ── */
.back { display: block; width: fit-content; margin-bottom: 28px; font-weight: 600; font-size: 16px; }
.guide h1 { font-size: clamp(34px, 8.5vw, 48px); margin-top: 12px; }
.guide .note { color: var(--dim); }
.guide h2 { font-size: 22px; margin: 36px 0 8px; }
.guide ol, .guide ul { padding-left: 24px; margin: 8px 0 0; }
.guide li { margin: 10px 0; padding-left: 4px; }
.guide ol > li::marker { font-weight: 900; }
.guide code { font-size: .86em; background: #fff; border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.prompt { position: relative; margin: 12px 0 4px; padding: 16px 16px 58px; border-radius: 16px; background: var(--navy); color: #eef1ff;
  font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.prompt button { position: absolute; right: 10px; bottom: 10px; padding: 8px 16px; border: 0; border-radius: 10px; background: var(--mark); color: #0f3d34;
  font: 800 15px Inter, system-ui, sans-serif; cursor: pointer; }
/* главный промпт: карточка сверху, крупная кнопка на всю ширину */
.start { margin: 28px 0 8px; padding: 18px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 30px rgba(17,18,20,.07); }
.start h2 { margin: 0 0 4px; font-size: 20px; }
.start > p { margin: 0 0 12px; color: var(--dim); font-size: 16px; }
.prompt.main { margin: 0; padding: 16px 16px 76px; font-size: 14.5px; }
.prompt.main button { left: 10px; right: 10px; bottom: 10px; padding: 14px; border-radius: 12px; font-size: 17px; }
.prompt button.done { background: #fff; color: var(--ink); }
.prompt .fill { background: #ffe58a; color: #3d2f00; border-radius: 4px; padding: 0 3px; }
.guide h3 { font-size: 18px; margin: 22px 0 6px; }
.facts { margin-top: 8px; padding: 14px 16px; border-left: 4px solid var(--mark); background: #fff; border-radius: 0 12px 12px 0; }
.facts p:last-child { margin-bottom: 0; }
.src { color: var(--dim); font-size: 15px; }
.watch { display: inline-flex; margin-top: 28px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; }
.watch:hover { background: var(--navy); }

/* один момент движения: пузырь появляется, плашка проводится */
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: pop .45s .35s cubic-bezier(.3,1.6,.5,1) both; }
  h1 .mk { animation: swipe .7s .55s cubic-bezier(.6,0,.2,1) both; }
}
@keyframes pop { from { opacity: 0; transform: scale(.6) translateY(8px); transform-origin: 0 100%; } }
@keyframes swipe { from { background-size: 0% 72%; } }

@media (min-width: 720px) {
  main { padding-top: 56px; }
  .me { width: 240px; height: 240px; }
  .bubble { left: 214px; top: 40px; font-size: 18px; max-width: 260px; }
  .shorts { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 4px 0 0; overflow: visible; }
  .graves li { padding: 22px 16px 18px; }
}

/* широкий экран: аватар слева, текст справа; шортсы в один ряд */
@media (min-width: 1000px) {
  main:not(.guide) { max-width: 1040px; padding-left: 40px; padding-right: 40px; }
  .hero { grid-template-columns: 340px 1fr; gap: 48px; align-items: center; padding-top: 24px; }
  .floor { top: 200px; }
  .me { width: 320px; height: 320px; }
  .bubble { left: 250px; top: 26px; }
  h1 { font-size: 72px; }
  section > :not(.shorts) { max-width: 680px; }
  .shorts { grid-template-columns: repeat(6, 1fr); }
}
