/* sheleft.me — вариант «слова»: названия огромными строчными буквами с зерном на чёрном.
   Нельзя: градиенты, свечение, тени, скругления, эмодзи, капс, стрелки в кнопках. Анимируются только transform и opacity. */

@font-face { font-family: 'Dela Gothic One'; font-weight: 400; font-display: block; src: url(fonts/DelaGothicOne-400-normal-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Dela Gothic One'; font-weight: 400; font-display: block; src: url(fonts/DelaGothicOne-400-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Old Standard TT'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/OldStandardTT-400-normal-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Old Standard TT'; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/OldStandardTT-400-normal-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: 'Old Standard TT'; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/OldStandardTT-400-italic-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Old Standard TT'; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/OldStandardTT-400-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

:root {
  --white: #d4cfc1; --hot: #f3eee0; --off: #4b4843; --grey: #8d897f; --yellow: #a8935a; --black: #050505;
  --pad: 16px; --fs: 38.5vw; --tg-st: 0px; --tg-sb: 0px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--black); -webkit-text-size-adjust: 100%; }
body { font: 17px/1.35 'Old Standard TT', Georgia, serif; color: var(--white); min-height: 100vh; min-height: 100dvh; overflow-x: hidden; display: flex; flex-direction: column; padding-top: var(--tg-st); padding-bottom: var(--tg-sb); }
main { flex: 1; position: relative; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; border-radius: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
.u, .link { border-bottom: 1px solid var(--grey); }
.g { color: var(--grey); }
.y { color: var(--yellow); }
.pad { padding: 18px var(--pad); }
.quiet { color: var(--grey); font-style: italic; }

/* редкая медленная пыль на чёрном */
.dust { position: fixed; left: -220px; top: -220px; right: 0; bottom: 0; background: url(grain/dust.png) 0 0 / 440px 440px; image-rendering: pixelated; pointer-events: none; z-index: 3; animation: dust 150s linear infinite; }
@keyframes dust { to { transform: translate(220px, 220px); } }

/* полосы сверху и снизу */
.bar { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 9px var(--pad) 11px; font-size: 15px; position: relative; z-index: 5; }
.bar .mark { font-style: italic; }
.bar nav { display: flex; gap: 16px; }
.bar.bot { margin-top: 40px; padding-bottom: 18px; flex-wrap: wrap; }
.bar.bot a { border-bottom: 1px solid var(--grey); }
.bar.bot a + a { color: var(--grey); }

/* огромное слово */
.word { display: block; width: 100%; position: relative; overflow: hidden; text-align: left; font: var(--fs)/.86 'Dela Gothic One', 'Arial Black', sans-serif; letter-spacing: -.035em; text-indent: -.055em; white-space: nowrap; text-transform: lowercase; color: var(--white); padding: .2em 0 .09em; transition: color 2.2s ease; }
.word span { display: block; }
button.word, .word[data-play] { cursor: pointer; }

/* зерно: чёрные точки поверх букв. медленно осыпается вниз, второе зерно приходит и уходит */
.ero, .ero2 { position: absolute; left: 0; right: 0; top: -240px; bottom: 0; background-size: 240px 240px; image-rendering: pixelated; pointer-events: none; text-indent: 0; }
.ero { animation: fall 70s linear infinite; }
.ero2 { background-image: url(grain/x.png); opacity: 0; animation: fall 46s linear infinite, breathe 19s ease-in-out infinite; }
.l0 .ero { background-image: url(grain/e0.png); } .l1 .ero { background-image: url(grain/e1.png); } .l2 .ero { background-image: url(grain/e2.png); }
.l3 .ero { background-image: url(grain/e3.png); } .l4 .ero { background-image: url(grain/e4.png); } .l5 .ero { background-image: url(grain/e5.png); }
.tr:nth-child(2n) .ero2 { animation-delay: -6s, -7s; } .tr:nth-child(3n) .ero2 { animation-delay: -17s, -12s; }
@keyframes fall { to { transform: translateY(240px); } }
@keyframes breathe { 0%, 100% { opacity: 0; } 50% { opacity: .9; } }

/* трек в списке: слово и рядом название целиком мелким текстом */
.tr { display: block; position: relative; }
.tag { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 4px var(--pad) 26px; position: relative; z-index: 5; }
.tag b { display: block; font-weight: 400; font-size: 20px; line-height: 1.2; text-transform: lowercase; }
.tag em { display: block; color: var(--grey); font-size: 16px; }
.tag small { text-align: right; color: var(--grey); font-size: 13px; line-height: 1.5; white-space: nowrap; padding-top: 3px; }
.tag small u, .tag small i { display: block; text-decoration: none; font-style: normal; }
.tag small b { display: inline; font-size: inherit; color: var(--white); }
.tag.solo { padding-bottom: 8px; }
/* играет: его слово ярче, остальные тускнеют */
.playing .tr .word, .tr.off .word { color: var(--off); }
.playing .tr.on .word, .track.playing > .word { color: var(--hot); }

/* маленький плеер на главной */
.mini { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--black); border-top: 2px solid var(--white); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px var(--pad) calc(12px + var(--tg-sb)); }
.mini b { font-weight: 400; display: block; text-transform: lowercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.mini small { color: var(--grey); font-size: 13px; }
.pp { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; gap: 6px; flex: none; }
.pp i { width: 6px; height: 20px; background: var(--white); }
.pp.paused { gap: 0; }
.pp.paused i:first-child { width: 0; height: 0; background: none; border: 10px solid transparent; border-left: 17px solid var(--white); border-right: 0; }
.pp.paused i:last-child { display: none; }
.prog { height: 10px; background: #24242a; position: relative; overflow: hidden; }
.prog i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--white); transform: scaleX(0); transform-origin: 0 50%; }

/* страница трека */
.cols { padding: 6px var(--pad) 0; position: relative; z-index: 5; }
.meta { display: grid; grid-template-columns: 124px 1fr; gap: 16px; align-items: end; }
.cv { width: 124px; height: 124px; display: block; object-fit: cover; background: #111; }
.full { font-size: 24px; line-height: 1.15; text-transform: lowercase; }
.cap { font-style: italic; color: var(--white); margin-top: 4px; }
.dur { color: var(--grey); font-size: 13px; margin-top: 6px; }
audio { width: 100%; margin-top: 18px; }
.player { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: center; margin-top: 20px; }
.player .prog { cursor: pointer; height: 12px; }
.times { grid-column: 2; display: flex; justify-content: space-between; font-size: 13px; color: var(--grey); margin-top: 3px; }
.btn { display: inline-block; background: var(--white); color: var(--black); font: 20px/1 'Dela Gothic One', sans-serif; text-transform: lowercase; padding: 12px 15px 14px; transition: background-color .6s; }
.btn b { font-weight: 400; color: #6d695f; margin-left: 12px; }
.btn[disabled] { background: var(--off); cursor: default; }
.btn.small { font-size: 16px; padding: 9px 12px 11px; }
.btn.big { font-size: 30px; padding: 14px 24px 18px; }
.same { margin-top: 20px; }
.same[aria-pressed="true"] { background: var(--yellow); }
.same[aria-pressed="true"] b { color: #3b3320; }

/* строчки людей: медленная колонка как титры */
.credits { margin-top: 34px; height: 300px; overflow: hidden; position: relative; border-top: 2px solid var(--off); border-bottom: 2px solid var(--off); }
.credits ul { list-style: none; text-align: center; padding: 14px 0 0; }
.credits li { padding: 0 6px 22px; }
.credits li p { font-size: 20px; line-height: 1.25; text-transform: lowercase; overflow-wrap: anywhere; }
.credits li small { display: block; font-style: italic; font-size: 14px; color: var(--grey); margin-top: 2px; }
.credits.static { height: auto; max-height: 420px; overflow-y: auto; }
.credits .quiet { text-align: center; padding-top: 126px; }
.roll.go { animation: roll var(--d, 40s) linear infinite; }
@keyframes roll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* написать строчку (только в мини-апке) */
.writebox { padding: 34px var(--pad) 0; position: relative; z-index: 5; max-width: 620px; }
.wl { display: block; font: 20px/1.2 'Dela Gothic One', sans-serif; text-transform: lowercase; margin-bottom: 10px; }
.field { position: relative; }
.field input { width: 100%; height: 48px; background: var(--black); color: var(--white); border: 2px solid var(--white); border-radius: 0; padding: 0 44px 2px 12px; font: 18px 'Old Standard TT', serif; text-transform: lowercase; -webkit-appearance: none; appearance: none; }
.field input::placeholder { color: var(--grey); font-style: italic; }
.field .left { position: absolute; right: 10px; top: 15px; font-size: 13px; color: var(--grey); }
.sign { display: flex; gap: 22px; margin-top: 12px; }
.sign button { color: var(--grey); font-size: 17px; padding: 4px 0 3px; border-bottom: 2px solid transparent; }
.sign button[aria-checked="true"] { color: var(--white); border-bottom-color: var(--white); }
.honest { color: var(--grey); font-style: italic; font-size: 15px; margin-top: 8px; }
.rules { margin: 18px 0; border-left: 2px solid var(--off); padding-left: 12px; font-size: 16px; }
.rules p { color: var(--grey); }
.rules ol { list-style: none; margin: 4px 0; }
.say { margin-top: 12px; min-height: 1.4em; }
.say a { border-bottom: 1px solid var(--grey); }
.only-tg { padding: 30px var(--pad) 0; position: relative; z-index: 5; }
.mineline { border: 2px solid var(--off); padding: 10px 12px; }
.mineline small { display: block; color: var(--grey); font-size: 13px; }

/* другие треки внизу страницы трека */
.more { margin-top: 56px; }
.more .tag { padding-bottom: 20px; }

/* статьи */
.alist { list-style: none; padding: 20px var(--pad) 0; position: relative; z-index: 5; max-width: 900px; }
.alist li + li { margin-top: 26px; }
.alist b { display: block; font: 400 30px/1.02 'Dela Gothic One', sans-serif; letter-spacing: -.02em; text-transform: lowercase; overflow-wrap: anywhere; }
.alist small { color: var(--grey); font-size: 13px; }
.atitle { position: relative; overflow: hidden; font: 400 clamp(46px, 13vw, 132px)/.9 'Dela Gothic One', sans-serif; letter-spacing: -.03em; text-transform: lowercase; overflow-wrap: anywhere; padding: 18px var(--pad) .14em; }
.adate { color: var(--grey); font-size: 13px; padding: 6px var(--pad) 0; position: relative; z-index: 5; }
.aimg { display: block; width: calc(100% - var(--pad) * 2); max-width: 760px; margin: 22px var(--pad) 0; position: relative; z-index: 5; }
.prose { padding: 22px var(--pad) 0; max-width: calc(34em + var(--pad) * 2); font-size: 19px; line-height: 1.62; color: #ded9cc; position: relative; z-index: 5; overflow-wrap: anywhere; }
.prose p + p { margin-top: 1.05em; }
.prose a { border-bottom: 1px solid var(--grey); }
.prose blockquote { border-left: 2px solid var(--off); padding-left: 14px; font-style: italic; }
.prose pre, .prose code { font: 15px/1.5 ui-monospace, Menlo, monospace; white-space: pre-wrap; }
.back { padding: 34px var(--pad) 0; position: relative; z-index: 5; }

/* если совсем плохо: тихая страница */
.help { padding: 9vh var(--pad) 40px; max-width: calc(31em + var(--pad) * 2); position: relative; z-index: 5; }
.help h1 { font-weight: 400; font-style: italic; font-size: 17px; color: var(--grey); margin-bottom: 2.2em; }
.help p { font-size: 22px; line-height: 1.45; margin-bottom: 1.5em; }
.help small { display: block; color: var(--grey); font-size: 15px; margin-top: 8px; }
.help .urgent { font-size: 17px; color: var(--grey); margin-top: 3em; }

/* напиши и сожги */
.burn { display: flex; flex-direction: column; }
.sheet { position: relative; flex: 1; min-height: 46vh; }
.mirror, .burn textarea { font: clamp(48px, 15.5vw, 150px)/.95 'Dela Gothic One', sans-serif; letter-spacing: -.03em; text-transform: lowercase; padding: 8px var(--pad) 20px; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.mirror { color: var(--white); min-height: 46vh; pointer-events: none; }
.burn textarea { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: none; border: 0; outline: 0; resize: none; overflow: hidden; color: transparent; caret-color: var(--white); border-radius: 0; -webkit-appearance: none; appearance: none; }
.burn textarea::placeholder { color: var(--off); opacity: 1; }
.burn textarea.gone::placeholder { color: transparent; }
.burn textarea::selection { background: var(--off); }
.ash { position: fixed; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; }
.burnrow { padding: 10px var(--pad) 0; position: relative; z-index: 7; }
.note { color: var(--grey); font-style: italic; font-size: 15px; margin-top: 12px; max-width: 24em; }

/* профиль */
.me .outside { padding: 12vh var(--pad); font-size: 22px; }
.me .outside p { margin-bottom: 16px; }
.days .n { color: var(--yellow); }
.hint { padding: 0 var(--pad); color: var(--grey); font-style: italic; position: relative; z-index: 5; }
.since, .pref, .mine, .wipe, .me .say { padding: 26px var(--pad) 0; position: relative; z-index: 5; max-width: 620px; }
.since { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.since label { width: 100%; color: var(--grey); }
.since input { height: 40px; background: var(--black); color: var(--white); border: 2px solid var(--white); border-radius: 0; padding: 0 10px; font: 17px 'Old Standard TT', serif; -webkit-appearance: none; appearance: none; min-width: 170px; }
.pref > p:first-child { color: var(--grey); }
.mine h2 { font: 400 22px/1.1 'Dela Gothic One', sans-serif; text-transform: lowercase; margin-bottom: 12px; }
.mylines { list-style: none; }
.mylines li { border-top: 2px solid var(--off); padding: 10px 0 12px; }
.mylines p { font-size: 19px; text-transform: lowercase; overflow-wrap: anywhere; }
.mylines small { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--grey); font-size: 13px; margin-top: 3px; }
.mylines button { color: var(--grey); border-bottom: 1px solid var(--grey); font-size: 13px; }
.wipe { padding-bottom: 10px; }

@media (min-width: 900px) {
  :root { --pad: 40px; --fs: 20.3vw; }
  .word span { display: inline; }
  .bar { font-size: 17px; }
  .tag b { font-size: 24px; } .tag em { font-size: 19px; } .tag small { font-size: 15px; }
  .cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; padding-top: 14px; }
  .meta { grid-template-columns: 200px 1fr; gap: 24px; }
  .cv { width: 200px; height: 200px; }
  .full { font-size: 32px; }
  .credits { margin-top: 0; height: 430px; }
  .credits li p { font-size: 24px; }
  .mini { left: auto; width: 440px; border-left: 2px solid var(--white); }
  .alist b { font-size: 46px; }
  .prose { font-size: 20px; }
  .days { --fs: 13vw; }
}

/* у кого в системе выключены анимации: всё стоит на месте */
@media (prefers-reduced-motion: reduce) {
  .dust, .ero, .ero2, .roll.go { animation: none; }
  .word, .btn { transition: none; }
}
