/* PaskLove — студия визуальных историй */

:root {
  --paper: #f6f2ec;
  --ink: #23262e;
  --muted: #6d6a65;
  --line: #e5ddd2;
  --accent: #b3543f;
  --card: #fffdf9;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #191919;
    --ink: #ece7de;
    --muted: #a09a90;
    --line: #2e2c29;
    --accent: #d1795f;
    --card: #201f1d;
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
}

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px;
}

a { color: inherit; }
a:hover { color: var(--accent); }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  position: static;
}

/* Шапка */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
  padding-top: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.logo span { color: var(--accent); }

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  font-size: 0.95rem;
}

.site-header nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-header nav a:hover {
  color: var(--ink);
}

/* Главный экран */

.hero {
  padding: 72px 0 40px;
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 18px;
  max-width: 18ch;
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

/* Секции */

.section {
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.section > h2 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 22px;
}

/* Карточки-проекты */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.card a {
  display: block;
  text-decoration: none;
}

.thumb {
  aspect-ratio: 4 / 3;
  display: block;
}

.cards li:nth-child(3n+1) .thumb { background: linear-gradient(140deg, #d9c3a8 0%, #a98c6f 55%, #6f5b48 100%); }
.cards li:nth-child(3n+2) .thumb { background: linear-gradient(160deg, #c9d2d4 0%, #8fa0a6 50%, #556369 100%); }
.cards li:nth-child(3n+3) .thumb { background: linear-gradient(125deg, #e3bda6 0%, #b3705a 60%, #6e3f31 100%); }

.card .body {
  padding: 14px 16px 16px;
}

.card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0 0 6px;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.meta {
  margin-top: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Список серий */

.series {
  margin: 0;
  padding: 0;
  list-style: none;
}

.series li {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 14px 2px;
  border-top: 1px solid var(--line);
}

.series li:last-child { border-bottom: 1px solid var(--line); }

.series .year {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.series .title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}

.series .fmt {
  color: var(--muted);
  font-size: 0.88rem;
  white-space: nowrap;
}

/* Услуги и колонки */

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}

.cols h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.cols p, .cols ul {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.cols ul { padding-left: 18px; }

/* Заметки */

.note {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.note time {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.note h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 1.3rem;
  margin: 8px 0 10px;
}

.note p { margin: 0 0 12px; max-width: 68ch; }
.note p:last-child { margin-bottom: 0; }

/* О студии / контакты */

.prose p { max-width: 68ch; }
.prose p.lead { margin-bottom: 26px; }

dl.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 10px 26px;
  margin: 0;
}

dl.facts dt {
  color: var(--muted);
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

dl.facts dd { margin: 0; }

/* 404 */

.center {
  text-align: center;
  padding: 96px 24px;
}

.center h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4rem);
  margin: 0 0 14px;
}

.center p { color: var(--muted); }

/* Подвал */

.site-footer {
  margin-top: 48px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  justify-content: space-between;
}

@media (max-width: 560px) {
  .series li { grid-template-columns: 48px 1fr; }
  .series .fmt { grid-column: 2; }
}
