@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-normal.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+20AA, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-mono-cyrillic-500-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-500-normal.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+20AA, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Plex Mono"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-cyrillic-400-italic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Plex Mono"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/ibm-plex-mono-latin-400-italic.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+20AA, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }

:root {
  --paper: #F6F4EE;
  --ink: #1A1A1A;
  --ink-soft: #3A3834;
  --ribbon: #C8362B;
  --comment: #7D786E;
  --rule: #B8B2A6;
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.75;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 72px 28px 48px;
}

p { margin: 0 0 1em; }

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 48px;
  align-items: end;
}
.hero-text { min-width: 0; }

.photo { margin: 0; }
.photo-placeholder,
.photo-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
}
.photo-placeholder {
  border: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--comment);
  font-size: 13px;
}
.photo-img {
  height: auto;
  object-fit: cover;
}
.photo figcaption {
  margin-top: 10px;
  color: var(--comment);
  font-size: 12px;
  font-style: italic;
}

.comment {
  color: var(--comment);
  font-size: 12.5px;
  margin: 0 0 24px;
}

.name {
  font-size: clamp(40px, 9vw, 64px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}

.cursor {
  display: inline-block;
  width: 0.42em;
  height: 0.78em;
  margin-left: 0.1em;
  background: var(--ribbon);
  vertical-align: -0.08em;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.lead {
  max-width: 46ch;
  margin: 28px 0 28px;
  color: var(--ink-soft);
}

/* links */
.action {
  color: var(--ribbon);
  text-decoration: none;
  white-space: nowrap;
}
.action:hover { text-decoration: underline; text-underline-offset: 4px; }

a:focus-visible {
  outline: 2px solid var(--ribbon);
  outline-offset: 4px;
}

.links { display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* sections */
.block {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  margin-top: 40px;
  padding-top: 32px;
  position: relative;
}
/* разделитель из дефисов, как на машинке */
.block::before {
  content: "--------------------------------------------------------------------------------------------------------------";
  position: absolute;
  top: 0; left: 0; right: 0;
  overflow: hidden;
  white-space: nowrap;
  color: var(--rule);
  font-size: 13px;
  line-height: 1;
}

.label {
  color: var(--ribbon);
  font-size: 13px;
  font-weight: 400;
  margin: 3px 0 0;
}

.content > :last-child { margin-bottom: 0; }

.note {
  color: var(--comment);
  font-size: 13px;
}

.dash { list-style: none; margin: 0; padding: 0; }
.dash li { padding-left: 2ch; text-indent: -2ch; }
.dash li::before { content: "— "; }
.after-list { margin-top: 1em; }

.kv { margin: 0 0 1em; }
.kv div { display: grid; grid-template-columns: 15ch minmax(0, 1fr); }
.kv dt { color: var(--comment); }
.kv dd { margin: 0; }
.kv-years div { grid-template-columns: 9ch minmax(0, 1fr); margin-bottom: 0.4em; }
.sub { color: var(--comment); margin: 1.4em 0 0.4em; }

/* footer */
.footer {
  margin-top: 72px;
}
.footer .comment { font-style: italic; margin-bottom: 12px; }
.crisis a { color: inherit; text-underline-offset: 3px; white-space: nowrap; }

/* mobile */
@media (max-width: 680px) {
  .page { padding: 48px 20px 36px; }
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .photo { max-width: 240px; }
  .block { grid-template-columns: 1fr; gap: 10px; margin-top: 32px; padding-top: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
