:root {
  --paper: #f6f4ef;
  --ink: #1b1a18;
  --muted: #6b675f;
  --rule: #d9d5cc;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "PT Serif", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Шапка */

.top {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--sans);
  font-size: 15px;
  letter-spacing: 0.02em;
}
.top a { text-decoration: none; }
.top a:hover { text-decoration: underline; }
.top-name { font-weight: 600; }
.top nav { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); }
.top nav a:hover { color: var(--ink); }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

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

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: end;
  padding: 64px 0 96px;
}
.eyebrow {
  margin: 0 0 24px;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  margin: 0 0 32px;
  font-size: clamp(44px, 6.4vw, 76px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.lead { margin: 0; max-width: 30em; color: #33312d; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; filter: grayscale(1) contrast(1.03); }

/* Разделы */

section[id] {
  border-top: 1px solid var(--rule);
  padding: 56px 0 80px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  column-gap: 56px;
  scroll-margin-top: 16px;
}
section[id] > h2 { grid-column: 1; grid-row: 1 / span 9; }
section[id] > :not(h2) { grid-column: 2; }

h2 {
  margin: 4px 0 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prose { max-width: 34em; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

blockquote {
  margin: 56px 0 0;
  max-width: 30em;
  padding-left: 24px;
  border-left: 2px solid var(--ink);
}
blockquote p { margin: 0 0 16px; font-size: 23px; line-height: 1.5; font-style: italic; }
blockquote footer { font-family: var(--sans); font-size: 15px; color: var(--muted); }

/* Хронология и награды */

.timeline, .machines { margin: 0; max-width: 34em; }
.timeline > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.timeline > div:first-child { padding-top: 0; }
.timeline dt { font-variant-numeric: tabular-nums; color: var(--muted); }
.timeline dd { margin: 0; }

.machines > div { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.machines dt { font-size: 24px; margin-bottom: 6px; }
.machines dd { margin: 0; color: #33312d; }

figure.wide { margin: 0 0 32px; max-width: 34em; }
figure.wide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; filter: grayscale(1); }
figcaption { margin-top: 10px; font-family: var(--sans); font-size: 14px; color: var(--muted); }

/* Видео */

.videos { display: grid; gap: 48px; max-width: 34em; }
.player {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border: 0;
  overflow: hidden;
}
.player img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .2s; }
.player:hover img { filter: none; }
.play {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--paper);
}
.play::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 17px;
  border-style: solid;
  border-width: 11px 0 11px 17px;
  border-color: transparent transparent transparent var(--ink);
}
.video h3 { margin: 16px 0 4px; font-size: 24px; font-weight: 400; line-height: 1.25; }
.video p { margin: 0; font-family: var(--sans); font-size: 16px; color: var(--muted); }

/* Публикации */

.links { list-style: none; margin: 0; padding: 0; max-width: 34em; }
.links li { padding: 16px 0; border-bottom: 1px solid var(--rule); }
.links li:first-child { padding-top: 0; }
.links span { display: block; margin-top: 2px; font-family: var(--sans); font-size: 15px; color: var(--muted); }

/* Подвал */

.bottom {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 56px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
}
.bottom p { margin: 0 0 6px; }

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

@media (max-width: 860px) {
  body { font-size: 19px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 32px 0 64px; }
  .hero-photo { order: -1; }
  section[id] { display: block; padding: 40px 0 56px; }
  .timeline > div { grid-template-columns: 104px 1fr; }
  .top { padding: 20px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .player img { transition: none; }
}

@media print {
  .top nav, .videos, .play { display: none; }
  body { background: #fff; font-size: 12pt; }
}

/* Переключатель языка */

.lang { display: inline-flex; gap: 10px; padding-left: 24px; border-left: 1px solid var(--rule); }
.lang [aria-current] { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .lang { padding-left: 0; border-left: 0; } }
