@font-face {
  font-family: Onest;
  src: url("./fonts/Onest-ExtraBold-Cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: Onest;
  src: url("./fonts/Onest-ExtraBold-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 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;
}

@font-face {
  font-family: "Golos Text";
  src: url("./fonts/GolosText-Cyrillic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Golos Text";
  src: url("./fonts/GolosText-Latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  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+2191, U+2193;
}

:root {
  color-scheme: light;
  --paper: #f8faf9;
  --white: #fff;
  --ink: #171d20;
  --text: #303b3e;
  --muted: #4f6265;
  --line: #d8e1df;
  --teal: #014a56;
  --teal-light: #006676;
  --on-teal: #f2f8f7;
  --brand-gradient: linear-gradient(155deg, var(--teal), var(--teal-light));
  --heading-font: Onest, "Golos Text", system-ui, sans-serif;
  font: 100%/1.65 "Golos Text", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--text); }
a { color: var(--teal); text-underline-offset: 0.2em; }
a:hover { color: var(--teal-light); }
a:focus-visible { outline: 2px solid var(--teal-light); outline-offset: 4px; }
h1, h2, h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--heading-font);
  font-weight: 800;
  line-height: 1.12;
}
h1 { font-size: clamp(2.55rem, 8vw, 5rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); letter-spacing: -0.026em; }
h3 { font-size: 1.04rem; letter-spacing: -0.012em; }
p, dl, ul, ol { margin: 0.8rem 0 0; }
ul, ol { padding-inline-start: 1.32rem; }
li + li { margin-top: 0.65rem; }
strong, dt { font-weight: 650; }
code { font-size: 0.96em; }

.shell { width: min(calc(100% - 2.25rem), 70rem); margin-inline: auto; }
.skip {
  position: absolute;
  z-index: 1;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.625rem 1rem;
  background: var(--white);
  transform: translateY(-150%);
}
.skip:focus { transform: none; }
.site-header { border-block-end: 1px solid var(--line); }
.site-footer { border-block-start: 1px solid var(--line); }
.site-header .shell, .site-footer .shell, .site-footer nav {
  display: flex;
  gap: 0.5rem 1.35rem;
  align-items: center;
  flex-wrap: wrap;
}
.site-header .shell, .site-footer .shell { justify-content: space-between; padding-block: 0.8rem; }
.site-header a, .site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.wordmark {
  color: var(--ink);
  font: 800 clamp(1.05rem, 2.1vw, 1.25rem)/1.1 var(--heading-font);
  letter-spacing: -0.018em;
  text-decoration: none;
}

.landing { padding-block: clamp(2.6rem, 6.3vw, 5.6rem) clamp(3.2rem, 7vw, 5.8rem); }
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.09fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.9rem);
}
.lead {
  max-width: 34rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: clamp(1.075rem, 1.7vw, 1.28rem);
  line-height: 1.6;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 3.15rem;
  margin-top: 1.65rem;
  padding: 0.65rem 1.2rem;
  border-radius: 0.65rem;
  background: var(--brand-gradient);
  color: var(--on-teal);
  font-weight: 650;
  text-decoration: none;
}
.button:hover { background: var(--teal); color: var(--white); }
.example {
  padding: clamp(1.25rem, 3.2vw, 2.05rem);
  border-radius: 1.15rem;
  background: var(--brand-gradient);
  color: var(--on-teal);
}
.example h2 { color: inherit; }
.example-label { margin-top: 1.05rem; font-size: 0.875rem; font-weight: 650; }
.example blockquote {
  margin: 0.3rem 0 0;
  padding: 0.62rem 0.88rem;
  border: 1px solid rgb(242 248 247 / 30%);
  border-radius: 0.65rem;
  background: rgb(242 248 247 / 10%);
  line-height: 1.45;
}
.example-instruction { margin-top: 0.72rem; font-size: 0.925rem; }
.example-sheet {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 0.65rem;
  background: var(--white);
  color: var(--text);
}
.example-row {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.47rem 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  font-size: 0.925rem;
  line-height: 1.5;
}
.example-row dt { color: var(--muted); }
.example-row dd, .details dd { margin: 0; }
.explanation {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 0.85rem 2.5rem;
  margin-top: clamp(2.75rem, 7vw, 5.4rem);
  padding-top: clamp(1.55rem, 4vw, 2.8rem);
  border-block-start: 1px solid var(--line);
}
.explanation p:first-child { margin-top: 0; }

.document {
  max-width: 50rem;
  padding-block: clamp(2.7rem, 7vw, 5.4rem);
}
.document h1 {
  max-width: 47rem;
  font-size: clamp(1.5rem, 7.6vw, 3.75rem);
  overflow-wrap: anywhere;
}
.document-intro {
  border-inline-start: 0.27rem solid var(--teal);
  padding-inline-start: clamp(0.85rem, 3vw, 1.55rem);
}
.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}
.section-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.section-links a:hover { border-color: var(--teal-light); }
.document section {
  margin-top: 2.05rem;
  padding-top: 1.5rem;
  border-block-start: 1px solid var(--line);
  scroll-margin-top: 1.25rem;
}
.document p, .document li, .document dd { overflow-wrap: anywhere; }
.details dt { color: var(--teal); }
.details dd + dt { margin-top: 0.85rem; }

@media (max-width: 52rem) {
  .intro, .explanation { grid-template-columns: 1fr; }
}

@media (max-width: 31rem) {
  .site-footer nav { align-items: flex-start; flex-direction: column; gap: 0; }
  .example-row { grid-template-columns: 1fr; gap: 0.15rem; }
  .example-row dd + dt { margin-top: 0.45rem; }
}
