@font-face { font-family: Onest; src: url(fonts/Onest-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Onest; src: url(fonts/Onest-Bold.woff2) format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  --door: #101116;
  --ink: #0c0d12;
  --paper: #e6dec6;
  --muted: #a5a294;
  --gutter: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--door);
  color: var(--paper);
  font: 400 17px/1.5 Onest, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
h1, h2, p, ul { margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; }

main, .foot {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

/* Название как записка из вырезанных букв, те же плашки, что на шапке канала */
.note { display: flex; flex-direction: column; gap: calc(var(--tile) * .12); --tile: min(calc((100vw - 34px) / 10), 92px); font-weight: inherit; }
.note-row { display: flex; gap: calc(var(--tile) * .1); }
.tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--tile); height: calc(var(--tile) * 1.5);
  font-size: calc(var(--tile) * 1.1); line-height: 1;
  box-shadow: calc(var(--tile) * .05) calc(var(--tile) * .06) 0 #000;
}
.t0 { background: #e6dec6; color: #0c0d12; font-family: Onest, sans-serif; font-weight: 900; }
.t1 { background: #0c0d12; color: #e6dec6; font-family: Georgia, serif; font-weight: 700; }
.t2 { background: #b3211c; color: #f2ecdc; font-family: Onest, sans-serif; font-weight: 900; }
.t3 { background: #d8d2bd; color: #0c0d12; font-family: "Courier New", monospace; font-weight: 700; }
.t4 { background: #2a2c34; color: #e6dec6; font-family: Onest, sans-serif; font-weight: 800; }

.hero { padding: max(40px, env(safe-area-inset-top)) 0 56px; }
.lead { max-width: 22ch; margin-top: 36px; font-size: clamp(24px, 6.2vw, 40px); font-weight: 700; line-height: 1.15; }
.sub { margin-top: 14px; color: var(--muted); }

/* Площадки: каждая на своей плашке, как буквы в названии */
.links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.links a {
  display: inline-flex; align-items: center; min-height: 50px; padding: 0 18px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  box-shadow: 3px 4px 0 #000;
}
.links a:nth-child(odd) { transform: rotate(-1.5deg); }
.links a:nth-child(even) { transform: rotate(1.2deg); }
.links a:active { transform: translate(2px, 3px); box-shadow: 1px 1px 0 #000; }
@media (hover: hover) { .links a:hover { outline: 3px solid var(--paper); outline-offset: 2px; } }

.series { padding-bottom: 56px; }
.series h2 { font-size: 26px; font-weight: 700; line-height: 1.2; }
.series > p { margin-top: 8px; color: var(--muted); max-width: 44ch; }

/* На телефоне обложки листаются вбок, на широком экране лежат сеткой */
.covers {
  list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 14px;
  margin: 24px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 10px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.covers::-webkit-scrollbar { display: none; }
.covers li { scroll-snap-align: start; }
.covers img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: #2a2c34; box-shadow: 4px 5px 0 #000; }
@media (min-width: 640px) { .covers { grid-auto-columns: 30%; } }
@media (min-width: 960px) {
  .covers { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px 20px; margin: 28px 0 0; padding: 0; overflow: visible; }
}

.foot { padding-top: 28px; padding-bottom: max(32px, env(safe-area-inset-bottom)); border-top: 1px solid #2a2c34; color: var(--muted); font-size: 14px; }
.foot p + p { margin-top: 8px; max-width: 70ch; }
