@font-face {
  font-family: Manrope;
  src: url("/belozerov-ai/assets/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: Manrope;
  src: url("/belozerov-ai/assets/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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+2190-2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #27232b;
  --muted: #58515e;
  --rule: #d5cfce;
  --plum: #664275;
  --dark: #302437;
  --lilac: #e8cbf6;
  --pad: clamp(18px, 5vw, 72px);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 Manrope, Arial, sans-serif; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid #9751ad; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.13; text-wrap: balance; }
.wrap { max-width: 1360px; margin-inline: auto; padding-inline: var(--pad); }
.skip { position: absolute; top: 8px; left: 8px; z-index: 1; padding: 10px 16px; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }

.masthead { display: flex; align-items: center; gap: 20px; padding-block: 18px; border-bottom: 1px solid var(--rule); }
.back, .masthead nav a, .footer a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 650; }
.back { text-decoration: none; }
.back:hover, .masthead nav a:hover { text-decoration: underline; }
.wordmark { border-left: 1px solid var(--rule); padding-left: 20px; font-size: 1.65rem; line-height: 1; font-weight: 800; letter-spacing: -.065em; }
.wordmark span { color: var(--plum); }
.masthead nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
.masthead nav a { text-decoration: none; }

.hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 5vw, 84px); padding-block: clamp(56px, 8vw, 112px); }
.hero > *, .workflow > *, .module-grid > * { min-width: 0; }
.category { margin-bottom: 16px; color: var(--plum); font-size: .875rem; font-weight: 750; }
h1 { font-size: clamp(3.1rem, 6.3vw, 6rem); line-height: 1.02; letter-spacing: -.075em; font-weight: 700; }
h1 em { display: block; color: var(--plum); font-weight: 550; font-style: normal; }
.summary { max-width: 43ch; margin-block: 26px 30px; font-size: clamp(1.025rem, 1.4vw, 1.22rem); line-height: 1.65; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; max-width: 100%; padding: 12px 20px; border-radius: 8px; background: var(--dark); color: #fff; font-weight: 700; text-decoration: none; }
.button:hover { color: #fff; background: var(--plum); }

.example { padding: clamp(18px, 3vw, 38px); color: #fff6fc; background: var(--dark); border-radius: 18px; }
.example .category { color: #e4c6ee; margin-bottom: 6px; }
.example-heading h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 650; letter-spacing: -.055em; }
.versions { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 26px 0 0; padding: 0; border: 0; min-inline-size: 0; }
.versions legend, .version-input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.versions label { display: grid; place-items: center; min-height: 44px; padding: 6px; border: 1px solid #816f88; border-radius: 6px; color: #f8effb; font-size: .875rem; font-weight: 600; text-align: center; cursor: pointer; }
.versions label:hover { background: #513e59; }
.version-input:checked + label { border-color: var(--lilac); background: var(--lilac); color: #302237; font-weight: 800; }
.version-input:focus-visible + label { outline: 3px solid #fff; outline-offset: 2px; }
.panels { display: grid; grid-column: 1 / -1; margin-top: 10px; }
.panel { display: flex; flex-direction: column; grid-area: 1 / 1; padding: clamp(16px, 2.3vw, 30px); border-radius: 8px; background: #fbf9f4; color: var(--ink); visibility: hidden; }
#version-source:checked ~ .panels #source-text,
#version-model:checked ~ .panels #model-text,
#version-reply:checked ~ .panels #reply-text { visibility: visible; }
.panel h3 { margin-bottom: 18px; color: var(--muted); font-size: .81rem; font-weight: 750; }
.panel > p:first-of-type { margin-bottom: 28px; font-size: clamp(1.12rem, 1.8vw, 1.55rem); line-height: 1.6; letter-spacing: -.022em; overflow-wrap: anywhere; }
.panel mark, .panel code { padding: .04em .15em; border-radius: 3px; }
.panel mark { color: #342839; background: #eadfeb; box-decoration-break: clone; }
.panel code { color: #40254a; background: #e5c4f1; font: 650 .89em/1.4 ui-monospace, Consolas, monospace; white-space: nowrap; }
.note { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: auto; color: var(--muted); font-size: .8125rem; line-height: 1.55; }

.workflow, .contact { display: grid; grid-template-columns: .9fr 1.1fr; align-items: start; gap: clamp(28px, 6vw, 90px); border-top: 1px solid var(--rule); padding-block: clamp(44px, 6vw, 84px); }
.workflow h2, .modules h2, .contact h2 { font-size: clamp(2rem, 3.7vw, 3.3rem); font-weight: 650; letter-spacing: -.065em; }
.section-intro > p, .modules-intro > p, .contact p { margin-top: 16px; max-width: 48ch; color: var(--muted); }
.checks { margin: 0; padding-left: 2.2rem; }
.checks li { padding-left: 10px; }
.checks li + li { margin-top: 22px; border-top: 1px solid var(--rule); padding-top: 22px; }
.checks li::marker { color: var(--plum); font-weight: 750; }
.checks h3, .module-grid h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 700; letter-spacing: -.035em; }
.checks p, .module-grid p { margin-top: 8px; color: var(--muted); }
.modules { padding-block: clamp(40px, 5vw, 72px); background: #eeeaee; }
.module-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 5vw, 64px); margin-top: 32px; }
.module-grid article { border-top: 2px solid #a891ae; padding-top: 18px; }
.contact { grid-template-columns: 1fr auto; align-items: center; border: 0; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding-block: 12px; border-top: 1px solid var(--rule); }
.footer > span { font-weight: 750; }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .lead { max-width: 38rem; }
  .example { width: 100%; }
  .workflow { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .masthead { flex-wrap: wrap; gap: 0 14px; padding-block: 8px; }
  .masthead nav { flex-basis: 100%; margin-left: 0; }
  .wordmark { padding-left: 14px; font-size: 1.4rem; }
  .hero { padding-block: 38px; }
  .summary { margin-block: 18px 22px; }
  .versions { gap: 4px; margin-top: 20px; }
  .versions label { padding-inline: 3px; font-size: .8125rem; }
  .module-grid, .contact { grid-template-columns: 1fr; }
  .contact .button { justify-self: start; }
}
@media (forced-colors: active) {
  .version-input:checked + label { outline: 2px solid Highlight; outline-offset: -3px; }
  .version-input:focus-visible + label { outline: 3px dashed Highlight; outline-offset: 2px; }
}
