/* Шрифты лежат в проекте и не грузятся с Google. */
@font-face {
  font-family: "Old Standard TT"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/old-standard-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Old Standard TT"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/old-standard-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Old Standard TT"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/old-standard-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Old Standard TT"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/fonts/old-standard-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/inter-tight-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Inter Tight"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #FFFFFF;
  --ink: #131313;
  --red: #C0021C;
  --grey: #6F6F6F;
  --hair: #E9E9E9;
  --surface: #F5F5F5;

  --serif: "Old Standard TT", serif;
  --sans: "Inter Tight", sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 13px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}

h1, p, figure { margin: 0; }

.page {
  max-width: calc(1150px + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Шапка и подвал */
.bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 16px;
}
.bar--top { border-bottom: 1px solid var(--ink); }
.bar--bottom { border-top: 1px solid var(--hair); }

.label {
  font-size: 10px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.label--grey { color: var(--grey); font-weight: 400; }

/* Главный жест страницы: имя как название журнала, в одну строку */
.masthead {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 24px;
  border-bottom: 1px solid var(--ink);
}
.name {
  font: 400 clamp(40px, 11vw, 124px)/1 var(--serif);
  white-space: nowrap;
}
.kicker {
  color: var(--red);
  font-size: 10px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

/* Разворот */
.spread {
  display: grid;
  gap: 24px;
  padding-bottom: 40px;
}

.photo {
  margin-inline: calc(-1 * var(--gutter));
  background: var(--surface);
  aspect-ratio: 3 / 4;
}
.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.js .photo img { opacity: 0; transition: opacity 150ms ease-out; }
.js .photo img.is-loaded { opacity: 1; }

.text p + p { margin-top: 16px; }
.lead { font-size: 15px; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
}

.action {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 10px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 150ms ease-out, border-color 150ms ease-out, opacity 120ms ease-out;
}
.action:active { opacity: 0.85; }
.action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #131313;
}
@media (hover: hover) and (pointer: fine) {
  .action:hover { color: var(--red); border-color: var(--red); }
}

@media (min-width: 640px) {
  :root { --gutter: 40px; }
  .photo {
    margin-inline: 0;
    outline: 1px solid rgba(19, 19, 19, .2);
  }
  .spread { padding-top: 40px; }
}

@media (min-width: 1024px) {
  .masthead {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
  }
  .kicker { padding-bottom: 16px; text-align: right; }
}

@media (min-width: 768px) {
  .spread {
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
  }
}

/* Вход страницы */
.enter { animation: enter 500ms ease-out both; }
@keyframes enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .enter { animation: none; }
  .js .photo img, .action { transition: none; }
}
