/* Сайт DoDu Studio.
   Вид — как экраны игры («бумага, чернила, ценник»): светлая бумага,
   тёмные чернила, рамки в 2 px и жёсткая тень без размытия. Цвета взяты
   из menu_look.gd игры, сливовый — из логотипа студии. */

@font-face {
  font-family: "Oswald";
  src: url("../fonts/oswald.woff") format("woff");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans.woff") format("woff");
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #F2EBDD;
  --card: #FBF6EC;
  --ink: #1E1B18;
  --muted: #5E574E;
  --accent: #E8572A;
  --teal: #2F6F6A;
  --gold: #E8C553;
  --plum: #5F294D;
  --cream: #FBF6EC;

  --wrap: 1160px;
  --shadow: 5px 5px 0 var(--ink);

  --f-display: "Oswald", "Arial Narrow", sans-serif;
  --f-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; } /* якорь останавливается ниже липкой шапки, а не под ней */

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 14px; background: var(--card); border: 2px solid var(--ink); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Текст ---------- */

h1, h2, h3 {
  margin: 0 0 0.45em;
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.02;
  text-transform: uppercase;
  text-wrap: balance;
}
h2 { font-size: clamp(2.2rem, 1.5rem + 2.6vw, 3.7rem); }
h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); }
p { margin: 0 0 1em; max-width: 62ch; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font: 500 0.8rem/1 var(--f-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.eyebrow--light { color: rgba(251, 246, 236, 0.78); }

/* ---------- Кнопки: плашка с рамкой и жёсткой тенью, как в игре ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  font: 600 1.02rem/1 var(--f-display);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
/* Оранжевый — только у главного действия (вишлист), чтобы глаз находил его сразу.
   Буквы чернилами, а не белые: контраст 4.6 : 1 против 3.7 : 1 у белых */
.btn--accent { background: var(--accent); }
.btn--small { padding: 10px 14px; font-size: 0.92rem; box-shadow: 3px 3px 0 var(--ink); }

.btn svg, .trailer__play svg { width: 18px; height: 18px; flex: none; fill: currentColor; }
svg.ic-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0 24px; }

/* ---------- Ценники-плашки ---------- */

.tags { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  font: 500 0.78rem/1 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--card);
  border: 2px dashed var(--ink);
}
.tag::before { /* дырочка ценника */
  content: "";
  width: 8px; height: 8px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.tag:nth-child(odd) { transform: rotate(-1.5deg); }
.tag:nth-child(even) { transform: rotate(1deg); }
.tag--gold { background: var(--gold); }

/* ---------- Шапка ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 70px; }
.brand img { width: auto; height: 42px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav__link {
  font: 500 0.8rem/1 var(--f-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__link:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---------- Первый экран ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--cream);
  background: var(--ink);
  border-bottom: 2px solid var(--ink);
}
.hero__art { position: absolute; inset: 0; z-index: -2; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
/* Затемнение слева: текст читается на любой картинке, а зал справа остаётся виден */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(30, 27, 24, 0.9) 0%, rgba(30, 27, 24, 0.74) 36%, rgba(30, 27, 24, 0.12) 70%, rgba(30, 27, 24, 0) 100%),
    linear-gradient(0deg, rgba(30, 27, 24, 0.5), rgba(30, 27, 24, 0) 35%);
}
.hero .wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(86vh, 820px);
  padding-block: 64px;
}
.hero__title { margin: 0 0 22px; line-height: 0; }
.hero__logo { width: clamp(240px, 29vw, 400px); filter: drop-shadow(0 12px 26px rgba(0, 0, 0, 0.45)); }
.hero__lead { max-width: 40ch; font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: #F6EFE2; }
.hero .tags { margin-top: 6px; }

/* ---------- Разделы ---------- */

.section { padding-block: clamp(68px, 9vw, 120px); }
.block { margin-top: clamp(72px, 9vw, 120px); }

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.split--rev > :first-child { order: 2; }

.frame { margin: 0; background: var(--ink); border: 2px solid var(--ink); box-shadow: var(--shadow); }
.frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Цифры игры — карточки с цветной полоской сверху: четыре цвета, как обложки на полке */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: clamp(56px, 7vw, 88px) 0 0;
  padding: 0;
  list-style: none;
}
.stat {
  position: relative;
  padding: 30px 20px 20px;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.stat::before {
  content: "";
  position: absolute;
  inset: -2px -2px auto;
  height: 10px;
  background: var(--c);
  border: 2px solid var(--ink);
}
.stat__num {
  display: block;
  font: 600 clamp(2.4rem, 1.6rem + 2.4vw, 3.5rem)/1 var(--f-display);
  font-variant-numeric: tabular-nums;
}
.stat__lbl {
  display: block;
  margin-top: 10px;
  font: 500 0.78rem/1.3 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Список возможностей: маркер — маленькая пластинка */
.features { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.features li { position: relative; padding-left: 36px; }
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0 3.5px, var(--ink) 4px 7px, #4a443d 7.5px 8.5px, var(--ink) 9px);
}
.features b { font-weight: 600; }

/* Трейлер: картинка с кнопкой, плеер подставляет site.js по нажатию */
.trailer {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.trailer img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.4s ease; }
.trailer:hover img { transform: scale(1.02); filter: brightness(0.9); }
.trailer__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 26px;
  transform: translate(-50%, -50%);
  font: 600 1.15rem/1 var(--f-display);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink);
  background: var(--accent);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.trailer iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Скриншоты */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; padding: 0; list-style: none; }
.shots a {
  display: block;
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.shots a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Призыв в конце раздела */
.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: clamp(72px, 9vw, 120px);
  padding: clamp(28px, 4vw, 44px);
  background: var(--gold);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
}
.cta > div { flex: 1 1 420px; }
.cta h3 { margin-bottom: 10px; }
.cta p { margin: 0; }

/* ---------- О студии ---------- */

.about { color: var(--cream); background: var(--plum); border-block: 2px solid var(--ink); }
.about__grid {
  display: grid;
  grid-template-columns: minmax(160px, 300px) 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.about__bird { width: 100%; max-width: 300px; }
.about p { font-size: 1.12rem; }

/* ---------- Пресса ---------- */

.press__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.facts { padding: 6px 24px; background: var(--card); border: 2px solid var(--ink); box-shadow: var(--shadow); }
.facts dl { margin: 0; }
.facts dl > div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(30, 27, 24, 0.35);
}
.facts dl > div:last-child { border-bottom: 0; }
.facts dt {
  padding-top: 3px;
  font: 500 0.74rem/1.45 var(--f-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd { margin: 0; overflow-wrap: anywhere; }
.ai-note { margin-top: 28px; padding-left: 14px; font-size: 0.88rem; color: var(--muted); border-left: 3px solid var(--ink); }

/* ---------- Подвал ---------- */

.footer { padding-block: 56px 36px; color: var(--paper); background: var(--ink); }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font: 600 1.7rem/1 var(--f-display);
  text-transform: uppercase;
  text-decoration: none;
}
.footer__brand img { width: 54px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 30px; margin: 0; padding: 0; list-style: none; }
.footer__links a {
  font: 500 0.8rem/1 var(--f-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.footer__links a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.footer__fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.84rem;
  color: rgba(242, 235, 221, 0.62);
  border-top: 1px solid rgba(242, 235, 221, 0.18);
}

/* ---------- Окно скриншота ---------- */

.lightbox {
  max-width: min(1600px, 94vw);
  padding: 0;
  color: var(--paper);
  background: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 #000;
}
.lightbox::backdrop { background: rgba(30, 27, 24, 0.88); }
.lightbox figure { margin: 0; }
.lightbox img { width: auto; max-height: 84vh; }
.lightbox figcaption { padding: 12px 16px; font: 500 0.8rem/1.4 var(--f-mono); letter-spacing: 0.06em; }
.lightbox__close { position: absolute; top: 12px; right: 12px; }

/* ---------- Узкие экраны ---------- */

@media (max-width: 900px) {
  .split, .press__grid { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav__link { display: none; } /* в шапке остаётся только «Wishlist» */
  .brand img { height: 36px; }
  .hero::before { background: linear-gradient(0deg, rgba(30, 27, 24, 0.94) 0%, rgba(30, 27, 24, 0.78) 55%, rgba(30, 27, 24, 0.4) 100%); }
  .hero .wrap { min-height: 0; padding-block: 48px 52px; }
  .about__grid { grid-template-columns: 1fr; }
  .about__bird { max-width: 170px; }
  .facts dl > div { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 520px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .shots { grid-template-columns: 1fr; }
  .stats { gap: 14px; }
  .stat { padding: 26px 14px 16px; }
  .btn { padding: 14px 18px; }
  .trailer__play { padding: 12px 16px; font-size: 1rem; }
}

/* Кто попросил систему меньше анимации — без плавной прокрутки и сдвигов */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
