/* ---------- IBM Plex (License: fonts/IBM-Plex-OFL.txt) ---------- */
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Plex Mono"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Plex Mono"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-mono-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: "Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Plex Sans"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+2116; }
@font-face { font-family: "Plex Sans"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2212; }
@font-face { font-family: "Plex Sans"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-cyrillic-600-normal.woff2") format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+2116; }

:root {
    color-scheme: dark;
    --bg: #040913;
    --text: #b3bcc7; /* основной текст */
    --heading: #c5cdd7; /* имя и названия работ */
    --muted: #8a99ac; /* второстепенный текст и ссылки */
    --accent: #c99a5a; /* бронзовый акцент */
    --line: #1c2a3d; /* линия ленты, разделители и рамка выбранного языка */
    --mono: "Plex Mono", ui-monospace, Consolas, monospace;
    --sans: "Plex Sans", system-ui, "Segoe UI", sans-serif;
    --width: 760px;
    --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  /* Мягкая синяя подсветка верхней части страницы. */
  background-image: radial-gradient(900px 480px at 50% -160px, rgba(46, 98, 170, 0.30), transparent 70%);
  background-repeat: no-repeat;
}
body {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0px var(--gutter) 56px;
  color: var(--text);
  font: 17px/1.7 var(--sans);
}
header {
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(110, 65, 180, 0.10),
            transparent 75%
        ),
        #0b1020;
}
.header__description {
    margin: 10px 0 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.5;
    color: var(--text);
}

.header__availability {
    margin: 4px 0 0;
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--accent);
}
a { color: var(--text); text-decoration-color: rgba(201, 154, 90, 0.55); }

a:hover { color: var(--heading); text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
ul { list-style: none; margin: 0; padding: 0; }
p { margin: 0; }

.min-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; font-family: var(--mono); font-size: 13px; }
.wordmark { color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; }
.lang ul { display: flex; gap: 4px; }
.lang li > * { display: block; padding: 4px 9px; text-decoration: none; border: 1px solid transparent; }
.lang a { color: var(--muted); }
.lang a:hover { color: var(--heading); }
.lang [aria-current] { color: var(--heading); border-color: var(--line); }

h1 { margin: 0; color: var(--heading); font: 600 clamp(26px, 4.4vw, 34px)/1.3 var(--mono); letter-spacing: -0.02em; }
h1 [lang] { color: var(--muted); font-weight: 400; font-size: 0.8em; }
.slash { color: var(--accent); font-weight: 400; }
h1 a { text-decoration: none; }

.contacts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-family: var(--mono); font-size: 14px; }


main { margin-top: 44px; }
section + section { margin-top: 48px; }
h2 {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 8px;
  color: var(--muted);
  font: 400 13px/1 var(--mono);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }


.work, .study { position: relative; padding: 22px 0 22px 30px; }
.work::before, .study::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.works > .work:first-child::before { top: 33px; }
.works > .work:last-child::before { bottom: auto; height: 33px; }
.study::before, .study::after {
    display: none;
}

.work::after, .study::after {
  content: ""; position: absolute; left: 0; top: 28px;
  width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2c2a26, #110f0c);
  border: 1px solid rgba(242, 169, 59, 0.25);
}

.work--active::after {
  background: radial-gradient(circle at 40% 35%, #ffe2b0, var(--accent) 55%, #9a5a12);
  border-color: transparent;
  box-shadow: 0 0 6px rgba(242, 169, 59, 0.7), 0 0 16px rgba(242, 169, 59, 0.25);
}

.work__name { margin: 0; color: var(--heading); font: 600 22px/1.3 var(--mono); letter-spacing: -0.01em; }
.work__state { margin-top: 4px; color: var(--muted); font: 13px/1.5 var(--mono); }
.work__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 10px; font: 14px/1.5 var(--mono); }
.work__links a, .contacts a { color: var(--muted); }
.work__links a:hover, .contacts a:hover { color: var(--heading); }
.work__text { max-width: 66ch; margin-top: 12px; }
.work__shot { display: block; margin-top: 14px; max-width: 66ch; }
.work__shot:hover img{ border-color: var(--accent); }
.work__shot:focus-visible{ outline: 2px solid var(--accent); outline-offset: 3px; }
.work__shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid var(--line);
}
.study p + p { margin-top: 4px; }
.study .work__state { margin: 0 0 8px; }


@media (max-width: 600px) {
  body { font-size: 16px; }
  .min-nav { margin-bottom: 20px; }
  main { margin-top: 34px; }
  .work__name { font-size: 20px; }
  h1 .slash { display: none; }
  h1 [lang] { display: block; margin-top: 2px; }
}
