/* reasp.pro — business-card page. Source: site/src/style.css, copied to site/www/assets/ by tools/build-site.mjs */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Colours come from the channel avatar and banner (content/outbox/channels/avatar.html, banner.html):
   cyan -> blue -> violet -> pink on a dark indigo background. */
:root {
  --bg: #090a17;
  --surface: #10112a;
  --surface-2: #181a3a;
  --line: #272a55;
  --text: #e3e5f7;
  --muted: #9da1c6;
  --cyan: #22d3ee;
  --blue: #5b7cfa;
  --violet: #8b3dff;
  --pink: #ff2e93;
  --green: #34d399;
  --accent: #93a4ff;      /* links: the avatar's blue, lightened to stay readable on the dark background */
  --mark: var(--cyan);    /* current section, focus ring */
  --accent-ink: #06071a;
  --warn: #fbbf24;
  --grad: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 30%, var(--violet) 62%, var(--pink) 100%);
  --grad-solid: linear-gradient(90deg, #4f6bf0 0%, #7c3aed 55%, #e11d74 100%);  /* darker stops: white text stays readable */
  --radius: 14px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--cyan); color: var(--accent-ink); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 10, 23, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap {
  display: flex; align-items: center; gap: 20px;
  min-height: 64px; flex-wrap: wrap; padding-block: 8px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text); font-weight: 700; letter-spacing: 0.01em; margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand .logo { width: 32px; height: 32px; flex: none; border-radius: 8px; }
/* Inter draws a capital I without serifs, so "Iaitckikh" reads as "laitckikh"; cv08 adds them. */
.brand, h1 { font-feature-settings: "cv08"; }
.brand small { color: var(--muted); font-weight: 500; }

/* Top menu: pages of the site. Sections of the current page are in .side. */
.nav { display: flex; gap: 26px; align-items: center; }
.nav a { color: var(--text); font-size: 16px; font-weight: 550; }
.nav a:hover { color: var(--cyan); text-decoration: none; }
.nav a[aria-current="page"], .nav a.in { color: var(--mark); }

.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-size: 13px; font-weight: 600;
}
.lang a, .lang span { padding: 5px 12px; color: var(--muted); }
.lang a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.lang [aria-current="true"] { background: var(--grad-solid); color: #fff; }

/* ---------- side navigation: sections of the current page, the active one is marked ---------- */

/* Narrow screens: no room at the side, so the sections become one scrollable row that sticks to the top. */
@media (max-width: 1179px) {
  .top { position: static; }
  .side {
    position: sticky; top: 0; z-index: 45; overflow-x: auto; scrollbar-width: none;
    background: rgba(9, 10, 23, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  }
  .side::-webkit-scrollbar { display: none; }
  .side ol { display: flex; list-style: none; margin: 0; padding: 0 12px; width: max-content; }
  .side a {
    display: block; padding: 12px 10px; font-size: 15px; white-space: nowrap; color: var(--muted);
    border-bottom: 2px solid transparent;
  }
  .side a:hover { text-decoration: none; color: var(--text); }
  .side a.active { color: var(--mark); border-bottom-color: var(--mark); font-weight: 650; }
  html { scroll-padding-top: 62px; }
}

@media (min-width: 1180px) {
  .side { display: block; position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 40; }
  .side ol { list-style: none; margin: 0; padding: 0; border-right: 3px solid var(--line); }
  .side a {
    display: block; position: relative; padding: 13px 24px 13px 0; margin-right: -3px;
    border-right: 3px solid transparent; text-align: right; max-width: 270px;
    font-size: 22px; line-height: 1.2; color: var(--muted);
    transition: color 0.15s, border-color 0.15s;
  }
  .side a:hover { color: var(--text); text-decoration: none; }
  .side a.active { color: var(--mark); border-right-color: var(--mark); font-weight: 650; }
}

/* Not enough room for labels beside the text: show marks only, the label appears on hover and for the active section. */
@media (min-width: 1180px) and (max-width: 1699px) {
  .side { right: 10px; }
  .side a { height: 46px; width: 26px; padding: 0; max-width: none; }
  .side a span {
    position: absolute; right: 22px; top: 50%; transform: translateY(-50%); white-space: nowrap;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 13px;
    font-size: 17px;
    opacity: 0; pointer-events: none; transition: opacity 0.15s;
  }
  .side a:hover span, .side a:focus-visible span { opacity: 1; }
}


/* ---------- common ---------- */

section { padding: 72px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: 0; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 750; }
h2 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

p { margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--text); max-width: 62ch; }
.intro { color: var(--muted); max-width: 68ch; margin-bottom: 34px; }
.muted { color: var(--muted); }

.kicker {
  font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px;
  display: inline-block; color: var(--cyan);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line); color: var(--text); background: var(--surface);
}
.btn:hover { text-decoration: none; border-color: var(--blue); color: #fff; }
.btn.primary { background: var(--grad-solid); border-color: transparent; color: #fff; }
.btn.primary:hover { filter: brightness(1.12); color: #fff; border-color: transparent; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 14px 0 0; list-style: none; }
.tags li {
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px;
}

.links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 15px; font-weight: 600; }

/* ---------- hero ---------- */

.hero {
  padding: 84px 0 76px;
  background:
    radial-gradient(ellipse 620px 380px at 78% 42%, rgba(139, 61, 255, 0.22), transparent 70%),
    radial-gradient(ellipse 520px 420px at 4% 30%, rgba(34, 211, 238, 0.09), transparent 70%),
    radial-gradient(ellipse 520px 420px at 100% 90%, rgba(255, 46, 147, 0.1), transparent 70%);
}
.pagehead {
  background:
    radial-gradient(ellipse 620px 320px at 80% 30%, rgba(139, 61, 255, 0.16), transparent 70%),
    radial-gradient(ellipse 480px 320px at 6% 60%, rgba(34, 211, 238, 0.07), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .role { font-size: clamp(19px, 2.2vw, 23px); color: var(--muted); margin-bottom: 22px; max-width: 34ch; }
/* The photo sits in a thin frame painted with the avatar gradient. */
.hero .photo {
  border-radius: 24px; padding: 3px; background: linear-gradient(135deg, var(--cyan), var(--blue) 35%, var(--violet) 65%, var(--pink));
  aspect-ratio: 1; max-width: 360px; justify-self: end;
  box-shadow: 0 0 60px rgba(139, 61, 255, 0.25);
}
.hero .photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 21px; }

/* ---------- help ---------- */

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); font-size: 16px; }

/* ---------- own projects ---------- */

.project {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; margin-bottom: 18px;
}
.project header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.project .icon {
  width: 56px; height: 56px; border-radius: 12px; flex: none; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 800; color: var(--cyan); font-size: 18px;
}
.project .icon img { width: 100%; height: 100%; object-fit: cover; }
.project .what { color: var(--muted); font-size: 15px; margin: 2px 0 0; }
.project .body { max-width: 72ch; }
.status {
  margin-left: auto; font-size: 13px; font-weight: 600; color: var(--warn);
  border: 1px solid rgba(251, 191, 36, 0.35); border-radius: 999px; padding: 3px 12px; white-space: nowrap;
}
.status.live { color: var(--green); border-color: rgba(52, 211, 153, 0.4); }
.honest { border-left: 3px solid var(--line); padding-left: 14px; color: var(--muted); font-size: 16px; }

.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.facts li {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; font-size: 14px; color: var(--muted); min-width: 130px;
}
.facts b { display: block; color: #fff; font-size: 19px; font-weight: 700; }
.asof { font-size: 13px; color: var(--muted); margin-top: 10px; }

details.more { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--accent); list-style-position: inside; }
details.more h4 { margin-top: 22px; }
.plugins { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 28px; padding: 0; margin: 16px 0 0; list-style: none; }
.plugins li { font-size: 15px; color: var(--muted); }
.plugins b { color: var(--text); font-weight: 650; }

.project h3 a { color: var(--text); }
.project h3 a:hover { color: var(--cyan); text-decoration: none; }

/* ---------- project pages ---------- */

.wrap.narrow { width: min(100% - 40px, 820px); }
.pagehead { padding: 56px 0 60px; }
.pagehead h1 { font-size: clamp(30px, 4.4vw, 44px); }
.pagehead .lead { margin-top: 18px; }
.crumb { font-size: 15px; font-weight: 600; margin-bottom: 22px; }
.pagehead .crumb + .kicker { display: block; width: max-content; margin-bottom: 12px; }
.projecthead { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 8px; }
.projecthead .icon {
  width: 72px; height: 72px; border-radius: 16px; flex: none; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-weight: 800; color: var(--cyan); font-size: 22px;
}
.projecthead .icon img { width: 100%; height: 100%; object-fit: cover; }
.projecthead .what { color: var(--muted); margin: 4px 0 0; }
.bullets { margin: 0; padding-left: 20px; }
.bullets li { margin-bottom: 10px; }
.narrow .plugins { grid-template-columns: 1fr; gap: 12px; margin-top: 6px; }
.narrow .plugins li { font-size: 16px; }
.apps { display: grid; gap: 14px; margin-bottom: 22px; }
.apps .card h3 { margin-bottom: 4px; }
.apps .meta { font-size: 14px; margin-bottom: 10px; }
.narrow .shot { margin: 8px 0 18px; }
.channels { margin: 26px 0 0; font-size: 15px; }
.channels + .links { margin-top: 6px; }

/* ---------- studio work ---------- */

.job {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start;
  padding: 34px 0; border-top: 1px solid var(--line);
}
.job:first-of-type { border-top: 0; padding-top: 6px; }
.job .meta { color: var(--muted); font-size: 15px; margin: 6px 0 14px; }
.job p { color: #cfd2ec; font-size: 16px; }
.job .media { display: grid; gap: 12px; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }

.yt {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: #000; cursor: pointer;
}
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: 0.85; transition: opacity 0.15s; }
.yt:hover img { opacity: 1; }
.yt::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(9, 10, 23, 0.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%2322d3ee' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 34px no-repeat;
  border: 1px solid var(--cyan);
}
.yt span {
  position: absolute; left: 12px; bottom: 10px; right: 12px; text-align: left;
  color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px #000;
}
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- skills, education ---------- */

.skills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.skills div { border-top: 1px solid var(--line); padding-top: 14px; }
.skills p { color: var(--muted); margin: 6px 0 0; font-size: 16px; }

.edu { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.edu ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.edu li { margin-bottom: 4px; }

/* ---------- contact, footer ---------- */

.contact .wrap { text-align: left; }
.contact .lead { margin-bottom: 0; }

footer { padding: 28px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
footer a { color: var(--muted); text-decoration: underline; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .hero { padding: 48px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 30px; }
  .hero .photo { justify-self: start; max-width: 220px; order: -1; }
  .cols, .job, .skills, .edu, .plugins { grid-template-columns: 1fr; }
  .status { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
