/* Generated from web/assets/css/base.css by web/build.py. Edit the web copy. */
/* Applyready base: reset, typography, layout primitives. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The header is sticky and 69px tall, so a jump to an anchor - the skip link included - put
     the target underneath it. */
  scroll-padding-top: 88px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-900);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  /* A short page left the footer floating with bare white below it. The page fills the window
     and the footer sits at the bottom of it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

:focus-visible {
  outline: 2px solid var(--accent-600);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

hr {
  border: 0;
  border-top: 1px solid var(--line-200);
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

/* Headings */

.h-display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.022em;
  font-weight: var(--fw-bold);
}

.h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-heading);
  letter-spacing: -0.018em;
  font-weight: var(--fw-bold);
}

.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-heading);
  letter-spacing: -0.014em;
  font-weight: var(--fw-strong);
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  letter-spacing: -0.008em;
  font-weight: var(--fw-semibold);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-700);
}

.small {
  font-size: var(--fs-small);
}

.micro {
  font-size: var(--fs-micro);
}

.muted {
  color: var(--ink-500);
}

.measure {
  max-width: var(--measure);
}

.mono {
  font-family: var(--font-mono);
}

/* Layout */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

/* A document page holds its text in a column of its own, centred, while the bar and the footer
   run the width of the page. Measured on the two sites the owner named as etalons at 1280:
   xt-job.ru/privacy sets its text at x=288 in 705px, xt-job.ru at x=260 in 760px, and
   putevoy.space at x=356 in 613px with the wordmark out at x=104. Ours reads the same way. */
.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.section {
  padding-block: var(--sp-24);
}

.section-tight {
  padding-block: var(--sp-16);
}

/* The page heading and the lead under it are one block with whatever follows, and full section
   spacing on both sides of the seam left 128 px of nothing between a title and its own content -
   an eighth of a phone screen, reading as a hole. */
main > .section-tight:first-child {
  padding-bottom: var(--sp-6);
}

main > .section-tight:first-child + section {
  padding-top: var(--sp-6);
}

.stack > * + * {
  margin-top: var(--sp-4);
}

.stack-lg > * + * {
  margin-top: var(--sp-8);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.wrap {
  flex-wrap: wrap;
}

.grid {
  display: grid;
  gap: var(--sp-6);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.center {
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink-900);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: 0 0 var(--r-md) 0;
}

.skip-link:focus {
  left: 0;
}

[hidden] {
  display: none !important;
}

/* Every screen of the panel moves focus to its heading so a screen reader says where it is.
   The heading is a block, so the ring was drawn right across the panel and read as a text box.
   Focus lands here by script and never by Tab. */
h1[tabindex="-1"]:focus,
h1[tabindex="-1"]:focus-visible,
h2[tabindex="-1"]:focus,
h2[tabindex="-1"]:focus-visible {
  outline: none;
}

/* Scroll reveal */

/* Reveal changes opacity and nothing else: a heading that slides into place reads as a jerk. */
.js .reveal {
  opacity: 0;
  transition: opacity var(--dur-4) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
}

.reveal-d1 {
  transition-delay: 70ms;
}

.reveal-d2 {
  transition-delay: 140ms;
}

.reveal-d3 {
  transition-delay: 210ms;
}

.reveal-d4 {
  transition-delay: 280ms;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  :root {
    --fs-display: 2.25rem;
    --fs-h1: 1.875rem;
    --fs-h2: 1.5rem;
  }

  .section {
    padding-block: var(--sp-16);
  }


}

@media (max-width: 640px) {
  .container,
  .container-narrow {
    padding-inline: var(--sp-4);
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding-block: var(--sp-12);
  }
}

/* Print. The pages people print are the ones they keep: the privacy notice, the terms, the page
   that says how their data is deleted. On paper the sticky bar, the menu and the install button
   are ink spent on things a sheet of paper cannot do. */
@media print {
  .site-header,
  .site-footer nav,
  .nav-toggle,
  .skip-link,
  .header-actions,
  .cta-band,
  [data-print="off"] {
    display: none !important;
  }

  html,
  body {
    background: #fff;
    color: #000;
  }

  /* A section only fades in once the reader scrolls past it, and paper does not scroll: printing
     from the top of the landing put three blank sheets between the hero and the questions. */
  .reveal,
  .step {
    opacity: 1 !important;
    transition: none !important;
  }

  .container,
  .container-narrow {
    max-width: none;
    padding-inline: 0;
  }

  .section {
    padding-block: var(--sp-6);
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: var(--fs-micro);
    word-break: break-all;
  }

  .card,
  .panel-frame,
  table {
    break-inside: avoid;
  }
}
