@font-face {
  font-family: Golos;
  src: url("golos-text.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #242019;
  --muted: #615646;
  --paper: #fffdf5;
  --white: #fffefb;
  --yellow: #ffdb37;
  --soft: #fff2ab;
  --line: #e6ddca;
  --red: #a22e24;
  --dark: #26231c;
  --width: 1184px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 7rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.62 Golos, "Segoe UI", system-ui, sans-serif;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.035em; }
h1, h2 { font-weight: 800; }
h3 { font-weight: 760; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #a13d29; outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(var(--width), calc(100% - 72px)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 12px; z-index: 4; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { min-height: 71px; display: flex; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; min-width: 0; text-decoration: none; }
.brand-mark {
  width: 42px;
  height: 35px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--yellow);
  color: #492721;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.1em;
  padding-right: .09em;
}
.brand-name { max-width: 185px; color: var(--ink); font-size: 15px; font-weight: 820; line-height: 1.17; letter-spacing: -.035em; }
.site-nav { display: flex; align-items: center; gap: 5px; margin-inline: auto; }
.site-nav a { padding: 7px 11px; color: #504737; border-radius: 7px; font-weight: 650; font-size: 14px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover { background: #f7efda; }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--soft); }
.search-open {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--white);
  font-size: 13px;
}
.search-open:hover { border-color: #9b865c; }
kbd { font: 11px/1.3 Golos, sans-serif; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; padding: 2px 4px; white-space: nowrap; }
.search-icon { width: 12px; height: 12px; border: 1.7px solid currentColor; border-radius: 50%; position: relative; margin-right: 2px; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1.6px; background: currentColor; right: -5px; bottom: -2px; transform: rotate(45deg); }
.hero {
  position: relative;
  overflow: clip;
  isolation: isolate;
  background: var(--yellow);
  border-bottom: 1px solid #e7c21d;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(#96681719 1px, transparent 1px), linear-gradient(90deg, #96681719 1px, transparent 1px);
  background-size: 30px 30px;
  mask-image: linear-gradient(90deg, transparent 32%, #000 81%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(72vw, 650px);
  aspect-ratio: 1;
  right: -120px;
  top: -50%;
  border: 1px solid #9f6e2340;
  border-radius: 50%;
  box-shadow: 0 0 0 55px #c9952318, 0 0 0 110px #c9952311;
}
.hero-layout { display: grid; grid-template-columns: 1.11fr 1fr; align-items: center; gap: clamp(24px, 5vw, 75px); padding-block: clamp(58px, 7vw, 98px); }
.hero-kicker {
  width: fit-content;
  color: var(--ink);
  background: #fff4ad;
  border: 1px solid #332a1d34;
  border-radius: 40px;
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .025em;
}
.hero h1 { font-size: clamp(44px, 5.6vw, 82px); line-height: .99; letter-spacing: -.068em; margin: 18px 0 20px; }
.hero-name { display: block; }
.hero-continuation { display: block; margin-top: .13em; color: #514019; font-size: .69em; line-height: 1.08; letter-spacing: -.047em; }
.hero p { max-width: 53ch; color: #433710; font-size: clamp(16px, 1.53vw, 19px); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 29px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 46px;
  padding: 9px 16px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--ink);
  color: #fffdf4;
  text-decoration: none;
  font-weight: 710;
  font-size: 14px;
}
.button:hover { background: #42392a; }
.button.outline { background: transparent; color: var(--ink); border-color: #54401472; }
.button.outline:hover { background: #fff5b259; }
.button.light { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.button.light:hover { background: #fff0a2; }
.hero-visual { position: relative; min-width: 0; max-width: 540px; transform: rotate(-2deg); }
.hero-visual::before { content: ""; position: absolute; inset: 12px -10px -12px 10px; background: #9f620d2a; border-radius: 19px; z-index: -1; }
.editor {
  color: #fff2d8;
  background: var(--dark);
  border: 1px solid #342818;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 17px 40px #68440825;
}
.editor-top, .code-top {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
  background: #322e25;
  padding: 10px 15px;
  border-bottom: 1px solid #555043;
  color: #f9e9bd;
  font-size: 12px;
  font-weight: 680;
}
.editor-lights { display: flex; gap: 5px; flex: none; }
.editor-lights i { width: 8px; aspect-ratio: 1; border-radius: 50%; background: #b6a378; }
.editor-lights i:first-child { background: #f17d61; }
.editor-lights i:nth-child(2) { background: #ffd453; }
.editor-lights i:last-child { background: #b2c783; }
.editor-title { letter-spacing: .015em; }
.editor-chip { color: #d5bc78; font: 11px/1.4 Consolas, monospace; }
pre { margin: 0; overflow: auto; font: 14px/1.62 Consolas, "Courier New", monospace; tab-size: 4; }
pre code { font: inherit; }
.editor pre { padding: 20px 18px; font-size: clamp(10px, 1.12vw, 15px); }
.editor-bottom { padding: 11px 15px; border-top: 1px solid #524b3d; font-size: 11px; color: #ebd8a1; }
.editor-bottom a { text-decoration-color: #cbb270; }
.kw { color: #ffda74; font-weight: 650; }
.param { color: #f7a88f; }
.string { color: #b9d996; }
.comment { color: #bcb29e; }
.band { padding-block: clamp(47px, 6.6vw, 87px); }
.band + .band { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.section-head h2 { font-size: clamp(32px, 4vw, 51px); }
.section-head p { margin-top: 8px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 7px; width: fit-content; color: #714422; font-size: 14px; font-weight: 700; }
.text-link:hover { color: var(--red); }
.topics, .video-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; }
.topic {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 24px;
  min-height: 218px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  text-decoration: none;
}
.topic:hover, .video-card:hover { border-color: #9e7725; box-shadow: 0 7px 20px #69511a10; }
.topic-icon, .page-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 45px;
  padding-bottom: 1px;
  border-radius: 11px;
  background: #ffe876;
  color: #302619;
  font: 780 27px/.9 Golos,sans-serif;
}
.warm .topic-icon, .warm .page-icon { background: #ffd2a1; }
.cream .topic-icon, .cream .page-icon { background: #eae1cd; }
.topic h3 { font-size: clamp(21px, 2.3vw, 27px); }
.topic p, .featured-list p { color: var(--muted); font-size: 14px; line-height: 1.53; }
.topic-action { color: #6d421b; margin-top: auto; font-size: 13px; font-weight: 730; }
.reading { padding-block: clamp(44px, 5.8vw, 75px); background: #fbf6e7; }
.featured-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 30px; }
.featured-list li { border-top: 1px solid #ddd0ae; }
.featured-list a { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 17px 0 18px; text-decoration: none; }
.featured-list a:hover h3 { color: var(--red); }
.featured-list h3 { margin: 3px 0 7px; font-size: 22px; }
.featured-list .arrow { color: #7d501b; font-size: 23px; }
.category { color: #80532a; font-size: 11px; font-weight: 790; letter-spacing: .055em; text-transform: uppercase; }
.video-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--white); }
.video-card > a { display: flex; flex-direction: column; min-height: 100%; text-decoration: none; }
.video-cover { position: relative; display: grid; place-items: center; aspect-ratio: 16/9; overflow: hidden; background: #efca41; }
.video-cover > img { width: 100%; height: 100%; object-fit: cover; }
.video-cover .fallback-cover { font-size: 38px; font-weight: 850; color: #442914; }
.video-cover b { position: absolute; left: 11px; bottom: 10px; padding: 4px 8px; border-radius: 5px; background: #211b16; color: white; font-size: 11px; font-weight: 700; }

.video-cover.cover-practice { background: #f7cf47; color: #765218; }
.video-cover.cover-forms { background: #f3e7c3; color: #8a652c; }
.video-cover.cover-extensions { background: #f2b96d; color: #8b5127; }
.video-cover.cover-platform { background: #342b20; color: #fdd476; }
.video-cover:has(.fallback-cover)::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1px);
  opacity: .23;
  background-size: 13px 13px;
  mask-image: linear-gradient(115deg, #000, transparent);
}
.video-cover:has(.fallback-cover)::after {
  content: "";
  position: absolute;
  width: 72%;
  aspect-ratio: 1;
  top: -65%;
  right: -10%;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 26px #33281511, 0 0 0 52px #33281509;
  opacity: .45;
  pointer-events: none;
}
.video-cover .fallback-cover {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 75px;
  height: 65px;
  border: 1px solid #5c442f44;
  border-radius: 11px;
  background: #fff6d4;
  box-shadow: 5px 5px 0 #32231423;
  transform: rotate(-8deg);
}
.video-cover b { z-index: 1; }
.video-content { display: flex; flex-direction: column; padding: 16px 17px 18px; gap: 8px; }
.video-content h3 { font-size: 20px; }
.video-content p { color: var(--muted); font-size: 14px; line-height: 1.52; }
.video-card a:hover h3 { color: var(--red); }
.watch-link { color: #763b24; font-size: 13px; font-weight: 760; margin-top: 3px; }
.page-head { padding-block: 28px 42px; background: #fff1ad; border-bottom: 1px solid #edd782; }
.page-head.warm { background: #fff0d2; border-color: #ecd6ae; }
.page-head.cream { background: #f8efd4; border-color: #eadcb7; }
.crumb { margin-bottom: 19px; color: #614e23; font-size: 13px; }
.crumb a { text-decoration-color: #907343; }
.page-title { display: flex; align-items: flex-start; gap: 17px; }
.page-title h1 { font-size: clamp(38px, 6.05vw, 72px); line-height: 1; }
.page-title p { color: #5d4823; max-width: 65ch; margin-top: 12px; font-size: clamp(16px,1.7vw,19px); }
.page-icon { width: 54px; height: 54px; flex: none; border: 1px solid #a78b4340; margin-top: 4px; }
.doc-layout { display: grid; grid-template-columns: minmax(195px, 245px) minmax(0, 810px); gap: clamp(27px, 5vw, 66px); align-items: start; padding-block: 46px 75px; }
.toc { position: sticky; top: 98px; padding: 17px; border: 1px solid var(--line); background: #faf5e6; border-radius: 13px; }
.toc h2 { font-size: 15px; letter-spacing: 0; margin: 2px 0 9px; }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 6px 4px; line-height: 1.37; color: var(--muted); font-size: 14px; text-decoration: none; }
.toc a:hover { color: var(--red); text-decoration: underline; }
.note + .note { margin-top: 42px; border-top: 1px solid var(--line); padding-top: 35px; }
.note h2 { font-size: clamp(27px, 4vw, 37px); margin-bottom: 12px; }
.note p + p { margin-top: 11px; }
.note p code { background: #f4ecda; border-radius: 4px; font-size: .88em; padding: 1px 4px; overflow-wrap: anywhere; }
.note-steps { margin: 12px 0 0; padding-left: 23px; }
.note-steps li { padding-block: 3px; }
.code-block { margin: 17px 0 0; background: var(--dark); color: #fff1d7; border-radius: 12px; overflow: hidden; }
.code-block pre { padding: 17px 15px 19px; }
.code-top { padding-block: 7px; }
.copy-code { border: 1px solid #7c7057; border-radius: 6px; background: #3e382c; color: #ffedc5; font-size: 12px; padding: 3px 8px; }
.copy-code:hover { background: #574b34; }
.note-tip { margin-top: 16px; padding: 11px 14px; background: #fff2b6; color: #453715; border-left: 3px solid #deb32e; border-radius: 0 8px 8px 0; font-size: 14px; }
.doc-links { margin-top: 39px; padding-top: 21px; border-top: 1px solid var(--line); }
.doc-links h2 { font-size: 22px; }
.doc-links ul { padding-left: 20px; }
.doc-links a { color: #754220; }
.video-page { padding-block: 36px 75px; }
.video-toolbar { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 19px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.filters button { border: 1px solid var(--line); border-radius: 30px; padding: 5px 11px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 660; }
.filters button:hover { border-color: #8a6e31; }
.filters button[aria-pressed="true"] { border-color: #59460e; background: var(--soft); }
.video-channel { margin-top: 36px; padding: 21px 22px; background: #f7eed8; border-radius: 14px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.video-channel h2 { font-size: 24px; }
.video-channel p { margin-top: 5px; color: var(--muted); }
.site-footer { background: #29251b; color: #f6e8c8; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 32px; padding-block: 25px; }
.site-footer .brand-name { color: inherit; }
.footer-nav { display: flex; gap: 9px 19px; flex-wrap: wrap; font-size: 13px; }
.footer-nav a { color: #f5e7c2; text-decoration-color: #99875a; }
.footer-note { font-size: 12px; color: #d9c89d; }
.search-dialog { width: min(570px, calc(100vw - 28px)); max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid #c8ae6b; border-radius: 15px; background: var(--paper); color: var(--ink); }
.search-dialog::backdrop { background: #21180ba3; }
.search-dialog header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.search-dialog h2 { font-size: 22px; }
.search-close { border: 0; border-radius: 5px; background: #f0e5cc; font-size: 20px; line-height: 1; padding: 4px 8px; }
.search-input { width: 100%; padding: 8px 10px; border: 1px solid #bda675; border-radius: 7px; background: var(--white); }
.search-results { list-style: none; margin: 10px 0 0; padding: 0; max-height: 50vh; overflow: auto; }
.search-results a, .search-results .empty { display: block; padding: 8px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.search-results a:hover { color: var(--red); }
.search-results span { display: block; font-size: 13px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 905px) {
  .container { width: min(var(--width), calc(100% - 44px)); }
  .header-inner { gap: 13px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding-inline: 8px; }
  .search-open kbd { display: none; }
  .brand-name { font-size: 13px; max-width: 145px; }
  .hero-layout { gap: 29px; }
  .topic { padding: 18px; }
}
@media (max-width: 755px) {
  html { scroll-padding-top: 8rem; }
  .container { width: calc(100% - 32px); }
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding-top: 10px; padding-bottom: 6px; }
  .brand-name { max-width: 210px; }
  .site-nav { grid-row: 2; grid-column: 1/-1; margin: 0 -4px; flex-wrap: wrap; gap: 2px; }
  .site-nav a { padding: 4px 7px; font-size: 12px; }
  .search-open { grid-row: 1; grid-column: 2; }
  .hero-layout { grid-template-columns: 1fr; gap: 31px; padding-block: 42px 48px; }
  .hero-visual { width: min(96%, 520px); margin-inline: auto; }
  .editor pre { font-size: clamp(11px, 2.8vw, 14px); }
  .section-head { align-items: flex-start; flex-direction: column; gap: 9px; }
  .topics { grid-template-columns: 1fr; gap: 11px; }
  .topic { min-height: 0; }
  .video-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .featured-list, .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .doc-layout { padding-block: 24px 52px; }
  .page-title { gap: 10px; }
  .page-icon { width: 40px; height: 40px; font-size: 21px; }
  .page-head { padding-block: 22px 28px; }
  .video-channel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 425px) {
  .hero h1 { font-size: clamp(36px, 10.5vw, 48px); }
  .video-grid { grid-template-columns: 1fr; }
  .page-title h1 { font-size: 35px; }
  .code-block pre { font-size: 12px; }
  .site-nav a { padding-inline: 5px; }
}
