:root {
  color-scheme: light;
  --paper: #f8f6f0;
  --ink: #211a2d;
  --muted: #605967;
  --line: #ded8e1;
  --accent: #513493;
  --soft: #eee8f8;
  --dark: #201631;
  --white: #faf6ff;
  --width: 1160px;
  --sans: "Golos Text", "Inter", "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid #7955cc; outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 730; letter-spacing: -.055em; text-wrap: balance; }
p { line-height: 1.65; }
.wrap { width: min(var(--width), calc(100% - 112px)); margin-inline: auto; }
.skip { position: absolute; top: .8rem; left: 1rem; z-index: 3; background: var(--paper); color: var(--ink); padding: .8rem 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 77px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.brand { display: inline-flex; gap: 13px; align-items: center; text-decoration: none; font-weight: 710; font-size: 16px; letter-spacing: -.035em; white-space: nowrap; }
.mark { display: grid; place-items: center; flex: none; width: 35px; aspect-ratio: 1; background: var(--dark); border-radius: 7px; color: var(--white); font: 650 12px var(--mono); letter-spacing: -.075em; }
.nav { display: flex; align-items: center; gap: clamp(24px, 4vw, 48px); }
.nav a { position: relative; display: block; padding-block: 12px; color: var(--muted); font-size: 14px; font-weight: 620; text-decoration: none; }
.nav a:hover, .nav a[aria-current] { color: var(--accent); }
.nav a[aria-current]::after { position: absolute; height: 2px; left: 0; right: 0; bottom: 4px; background: var(--accent); content: ""; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 76px); align-items: center; padding-block: clamp(48px, 6vw, 90px) clamp(55px, 7vw, 104px); }
.eyebrow, .meta { font: 600 12px/1.45 var(--mono); text-transform: uppercase; letter-spacing: .10em; color: var(--accent); }
.hero-title { font-size: clamp(70px, 8.15vw, 124px); line-height: .87; letter-spacing: -.085em; margin: 20px 0 24px -.072em; }
.hero-title span { display: block; }
.hero-lead { color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); max-width: 400px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; column-gap: 22px; row-gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 17px; min-height: 49px; padding: 9px 16px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: white; font-size: 14px; font-weight: 650; text-decoration: none; transition: background .18s, border-color .18s; }
.button:hover { background: #392368; border-color: #392368; color: white; }
.text-link { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 670; color: var(--accent); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.hero-art { position: relative; min-width: 0; background: var(--dark); aspect-ratio: 1.28; border-radius: 9px; overflow: hidden; isolation: isolate; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art::after { position: absolute; inset: 14px; border: 1px solid #d5bdff43; border-radius: 3px; pointer-events: none; content: ""; }
.art-corner { position: absolute; z-index: 1; width: 15px; height: 15px; border-color: #ddcbff; border-style: solid; border-width: 0; }
.art-corner:first-of-type { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.art-corner:last-of-type { right: 14px; bottom: 14px; border-right-width: 1px; border-bottom-width: 1px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.section-head h2, .bio h2 { font-size: clamp(36px, 4.1vw, 59px); line-height: 1.03; }
.posts-section { padding-top: 30px; padding-bottom: 78px; border-top: 1px solid var(--line); }
.feature { display: grid; grid-template-columns: 1.3fr minmax(190px, .7fr); min-height: 240px; border-radius: 8px; overflow: hidden; background: var(--dark); color: var(--white); text-decoration: none; }
.feature-body { padding: clamp(25px, 4vw, 51px); align-self: center; }
.feature .meta { color: #d7c3ff; }
.feature h2, .feature h3 { font-size: clamp(32px, 4vw, 55px); line-height: 1; margin: 13px 0 10px; text-wrap: pretty; }
.feature p { color: #e0d4ed; font-size: 16px; max-width: 540px; }
.feature:hover { color: var(--white); background: #2c1e43; }
.feature-end { display: flex; align-items: flex-end; justify-content: flex-end; position: relative; padding: 27px; overflow: hidden; isolation: isolate; }
.feature-end::before { content: ""; z-index: -1; position: absolute; inset: 0; background: radial-gradient(ellipse at 68% 50%, #7853bc72, transparent 70%), repeating-linear-gradient(90deg, transparent 0 35px, #bba8da20 35px 36px), repeating-linear-gradient(0deg, transparent 0 35px, #bba8da20 35px 36px); mask-image: linear-gradient(90deg, transparent, #000 32%); }
.feature-symbol { position: absolute; color: #e4d7fd; align-self: center; right: 20%; font: 400 clamp(50px, 9.5vw, 132px)/1 var(--mono); letter-spacing: -.20em; }
.arrow-circle { flex: 0 0 auto; display: grid; place-items: center; width: 39px; aspect-ratio: 1; border: 1px solid #a491c2; border-radius: 50%; font-size: 18px; line-height: 1; transition: background .18s, color .18s; }
.feature:hover .arrow-circle { background: var(--white); color: var(--dark); }
.post-grid { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
.post-card { position: relative; display: grid; align-content: start; gap: 11px; padding: 25px 48px 25px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 150px; }
.post-card h2, .post-card h3 { font-size: clamp(24px, 2.45vw, 34px); line-height: 1.08; text-wrap: pretty; }
.post-card p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.post-card .arrow-circle { position: absolute; top: 27px; right: 0; color: var(--accent); border-color: var(--line); width: 34px; }
.post-card:hover .arrow-circle, .contact-link:hover .arrow-circle { background: var(--soft); border-color: #b6a2d3; }
.bio { border-top: 1px solid var(--line); padding-block: 55px 69px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; }
.bio p { max-width: 600px; color: var(--muted); font-size: 17px; }
.bio-links { display: flex; flex-wrap: wrap; gap: 11px 22px; margin-top: 19px; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-block: 24px; }
.footer-inner > span { color: var(--muted); font-size: 13px; }
.page-head { padding-block: clamp(38px, 7vw, 100px) clamp(29px, 5vw, 62px); }
.page-head h1 { font-size: clamp(65px, 9vw, 128px); line-height: .9; letter-spacing: -.085em; margin-left: -.064em; }
.page-head p { color: var(--muted); font-size: clamp(17px, 2vw, 22px); max-width: 620px; margin-top: 21px; }
.blog-index { padding-bottom: clamp(54px, 8vw, 110px); }
.reading { width: min(736px, calc(100% - 80px)); margin-inline: auto; }
.article-header { padding-top: clamp(32px, 6vw, 77px); padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.article-header .breadcrumb { margin-bottom: 35px; }
.article-header h1 { margin-top: 13px; font-size: clamp(43px, 6.7vw, 84px); line-height: .97; letter-spacing: -.07em; text-wrap: pretty; }
.article-header .dek { font-size: clamp(18px, 2.2vw, 23px); color: var(--muted); margin-top: 20px; line-height: 1.5; }
.prose { font-size: 18px; line-height: 1.72; padding-block: 35px 48px; }
.prose h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; margin: 1.35em 0 .45em; text-wrap: pretty; letter-spacing: -.04em; }
.prose h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 1em; }
.prose p, .prose li { line-height: 1.72; }
.prose ul, .prose ol { margin: .85em 0; padding-left: 1.5em; }
.prose li { padding-left: .18em; margin-block: .45em; }
.prose li::marker { color: var(--accent); font-weight: 650; }
.prose strong { font-weight: 720; }
.prose a { color: var(--accent); }
.prose code { font-family: var(--mono); background: var(--soft); color: #442579; padding: .08em .25em; font-size: .85em; border-radius: 4px; overflow-wrap: anywhere; }
.prose pre { padding: 19px 22px; background: var(--dark); color: var(--white); overflow: auto; line-height: 1.55; border-radius: 7px; }
.prose pre code { background: none; color: inherit; padding: 0; overflow-wrap: normal; }
.prose .takeaway { background: var(--soft); border-left: 3px solid #7d5ab7; padding: 16px 21px; margin-block: 23px; }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 60px; }
.article-nav a { display: grid; align-content: start; gap: 9px; border: 1px solid var(--line); padding: 17px; border-radius: 7px; text-decoration: none; }
.article-nav a:hover { border-color: #ad97ce; }
.article-nav a:last-child { grid-column: 2; }
.contacts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-bottom: clamp(62px, 12vw, 150px); }
.contact-panel { background: var(--soft); border: 1px solid #e1d7f0; border-radius: 8px; display: flex; flex-direction: column; padding: clamp(20px, 3.5vw, 44px); justify-content: center; }
.contact-panel h2 { font-size: clamp(33px, 4.2vw, 56px); line-height: 1.02; margin: 13px 0 10px; }
.contact-panel p { color: var(--muted); font-size: 16px; }
.contact-links { border-top: 1px solid var(--line); }
.contact-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; border-bottom: 1px solid var(--line); text-decoration: none; }
.contact-link strong { display: block; font-size: clamp(18px, 2.1vw, 26px); letter-spacing: -.035em; }
.contact-link small { display: block; color: var(--muted); margin-top: 5px; line-height: 1.4; }
.contact-link .arrow-circle { border-color: var(--line); color: var(--accent); }
.error-page { min-height: 68vh; }
.error-page .button { margin-top: 21px; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 72px); }
}
@media (max-width: 735px) {
  .wrap, .reading { width: calc(100% - 40px); }
  .header-inner { min-height: 67px; }
  .brand { gap: 9px; font-size: 14px; }
  .mark { width: 29px; }
  .nav { gap: 18px; }
  .nav a { font-size: 13px; }
  .home-hero { grid-template-columns: 1fr; padding-block: 43px 45px; gap: 29px; }
  .hero-title { font-size: clamp(61px, 12.5vw, 96px); margin-block: 16px 17px; }
  .hero-art { aspect-ratio: 1.59; }
  .hero-actions { margin-top: 21px; }
  .posts-section { padding-top: 22px; padding-bottom: 48px; }
  .feature { min-height: 215px; grid-template-columns: 1fr minmax(42px, .24fr); }
  .feature-body { padding-inline: 20px 3px; }
  .feature h2, .feature h3 { font-size: clamp(29px, 6.5vw, 45px); }
  .feature p { font-size: 14px; }
  .feature-end { padding: 10px; }
  .feature-symbol { display: none; }
  .feature .arrow-circle { width: 30px; font-size: 15px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { min-height: auto; padding-block: 20px; }
  .post-card .arrow-circle { top: 19px; }
  .bio, .contacts { grid-template-columns: 1fr; }
  .bio { padding-block: 31px 44px; gap: 13px; }
  .article-header .breadcrumb { margin-bottom: 23px; }
  .prose { font-size: 17px; }
}
@media (max-width: 420px) {
  .wrap, .reading { width: calc(100% - 32px); }
  .header-inner { gap: 8px; }
  .brand { gap: 7px; }
  .header-inner .brand-name { display: none; }
  .section-head h2 { font-size: 34px; }
  .section-head .text-link { font-size: 13px; }
  .article-nav { gap: 8px; }
  .article-nav a { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
