@font-face {
  font-family: 'Dela Gothic One';
  src: url('/assets/fonts/DelaGothicOne-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Rubik;
  src: url('/assets/fonts/Rubik.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: Gotham;
  src: url('/assets/fonts/GothamPro-Black.woff') format('woff');
  font-weight: 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f3;
  --ink: #090909;
  --lime: #e8ff65;
  --lavender: #c5adf4;
  --pink: #ffbfe7;
  --violet: #6942a5;
  --muted: #4a4652;
  --gutter: clamp(16px, 3.4vw, 48px);
  --slant: clamp(20px, 3.5vw, 56px);
  --ease-out: cubic-bezier(0.2, 0, 0, 1);
  font-family: Rubik, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 24px;
}
@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}
* {
  box-sizing: border-box;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
  visibility: visible;
}
main {
  flex: 1;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
}
h1,
h2,
p,
ol,
ul,
dl,
dd {
  margin: 0;
}
h1,
h2 {
  font-family: 'Dela Gothic One', Rubik, sans-serif;
  font-weight: 400;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
p,
li,
dd {
  text-wrap: pretty;
}
.page-width {
  width: min(100% - 2 * var(--gutter), 1440px);
  margin-inline: auto;
}
.doc-width {
  width: min(100% - 2 * var(--gutter), 760px);
  margin-inline: auto;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 30;
  padding: 14px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
}
.skip-link:focus {
  top: 16px;
}

/* Header */

.site-header {
  background: var(--lime);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: clamp(76px, 6.4vw, 104px);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 0.9vw, 14px);
  min-height: 44px;
}
.wordmark img {
  width: clamp(40px, 3.4vw, 54px);
}
.wordmark > span {
  font-family: Gotham, Rubik, sans-serif;
  font-size: clamp(26px, 2.2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.wordmark small {
  display: block;
  margin-top: 0.12em;
  font-family: Gotham, Rubik, sans-serif;
  font-size: 0.71em;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: clamp(18px, 1.6vw, 26px);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 600;
  white-space: nowrap;
  transition-property: scale, background-color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}
.pill:hover {
  background: #26222c;
}
.pill:active {
  scale: 0.96;
}
.pill .label-short {
  display: none;
}

/* Title band */

.doc-head {
  position: relative;
  padding-block: clamp(20px, 3vw, 48px) calc(clamp(40px, 4.4vw, 72px) + var(--slant));
  background: var(--lime);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.doc-head::before {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: min(56%, 640px);
  background-image: radial-gradient(rgb(9 9 9 / 0.14) 1.3px, transparent 1.7px);
  background-size: 10px 10px;
  mask-image: radial-gradient(ellipse at 100% 20%, #000 10%, transparent 72%);
  pointer-events: none;
}
.doc-head::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: calc(var(--slant) + 4px);
  background: var(--ink);
  clip-path: polygon(0 var(--slant), 100% 0, 100% 4px, 0 100%);
}
.doc-head > div {
  position: relative;
}
.doc-head h1 {
  font-size: clamp(34px, 3.4vw + 20px, 64px);
  line-height: 0.9;
  overflow-wrap: break-word;
}
/* «конфиденциальности» is ~12.6em wide in Dela Gothic: scale it to the column instead of breaking the word */
.doc-head h1.has-long-word {
  font-size: clamp(22px, (100vw - 2 * var(--gutter)) / 13, 58px);
}
.doc-head .meta {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin-top: clamp(16px, 1.8vw, 24px);
  padding: 4px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

/* Document */

.doc {
  padding-block: clamp(28px, 3.6vw, 48px) clamp(64px, 7vw, 112px);
}
.doc p,
.doc li,
.doc dd {
  font-size: 17px;
  line-height: 1.65;
}
.doc > * + * {
  margin-top: 16px;
}
.doc > h2 {
  margin-top: clamp(40px, 4.6vw, 56px);
  font-size: clamp(24px, 1.2vw + 14px, 30px);
  line-height: 1;
}
.doc > h2 + * {
  margin-top: 16px;
}
.doc a {
  color: var(--violet);
  text-decoration: underline 1.5px rgb(105 66 165 / 0.4);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: text-decoration-color 160ms var(--ease-out);
}
.doc a:hover {
  text-decoration-color: currentColor;
}
.doc a.action {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding-inline: 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition-property: scale, background-color;
  transition-duration: 160ms;
  transition-timing-function: var(--ease-out);
}
.doc a.action:hover {
  background: #f1ff9e;
}
.doc a.action:active {
  scale: 0.96;
}
.doc ul {
  padding-left: 24px;
}
.doc ul li::marker {
  color: var(--violet);
}
.doc li + li {
  margin-top: 10px;
}
.doc ol {
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.doc ol > li {
  position: relative;
  min-height: 40px;
  padding: 6px 0 0 56px;
  counter-increment: step;
}
.doc ol > li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  font-family: 'Dela Gothic One', Rubik, sans-serif;
  font-size: 16px;
  line-height: 1;
}
.doc ol > li + li {
  margin-top: 14px;
}
.doc dl {
  display: grid;
  gap: 12px;
}
.doc dl > div {
  --chip: var(--lavender);
  padding: 18px clamp(18px, 2vw, 24px) 20px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: #fff;
}
.doc dl > div:nth-child(3n + 2) {
  --chip: var(--pink);
}
.doc dl > div:nth-child(3n) {
  --chip: var(--lime);
}
.doc dt {
  display: inline-block;
  padding: 5px 10px 4px;
  border-radius: 8px;
  background: var(--chip);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}
.doc dd {
  margin-top: 10px;
}
.doc > .meta {
  margin-top: clamp(40px, 4.6vw, 56px);
  padding-top: 20px;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  font-size: 15px;
}

/* Footer */

.site-footer {
  padding-block: 36px;
  background: var(--ink);
  color: var(--paper);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-family: Gotham, Rubik, sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
}
.footer-brand small {
  display: block;
  margin-top: 0.12em;
  font-size: 0.71em;
  letter-spacing: -0.04em;
}
.footer-brand i {
  width: 38px;
  height: 41px;
  background: var(--lime);
  mask: url('/assets/logo.svg') center / contain no-repeat;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}
.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: rgb(248 247 243 / 0.72);
  transition: color 160ms var(--ease-out);
}
.site-footer nav a:hover {
  color: var(--paper);
}
.site-footer nav a[aria-current='page'] {
  color: var(--lime);
}
.credit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  transition: opacity 160ms var(--ease-out);
}
.credit:hover {
  opacity: 0.8;
}
.credit small {
  display: block;
  font-size: 12px;
  color: rgb(248 247 243 / 0.6);
}
.credit b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-footer nav {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .pill .label-full {
    display: none;
  }
  .pill .label-short {
    display: inline;
  }
}
