/* Fonts, reset, typography and layout primitives. */

/* Anything marked hidden stays hidden, whatever display a component sets. */
[hidden] { display: none !important; }

/* Manrope: self-hosted variable font (weights 200 to 800), subset to Latin and
   Latin Extended-A, which covers Polish. Licence: assets/fonts/Manrope-OFL.txt.
   WOFF for now; re-export as WOFF2 once the build step exists. */
/* Reckless Standard S Regular, Displaay Type Foundry. Commercial font: the
   files are served as delivered (not subset, converted or renamed) and must
   not be published anywhere except through this site. */
@font-face {
  font-family: "Reckless";
  src: url("/assets/fonts/RecklessStandardS-Regular.woff2") format("woff2"),
       url("/assets/fonts/RecklessStandardS-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-variable.woff") format("woff");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-text);
  font-size: var(--text-body);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: var(--leading-tight); }
h2 { font-size: var(--text-h2); line-height: var(--leading-heading); }
h3 { font-size: var(--text-h3); line-height: var(--leading-heading); }

p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -4rem;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--color-ink);
  color: var(--color-cream);
  border-radius: var(--radius);
}
.skip-link:focus { top: var(--space-4); }
/* Parked above the page, the link used to peek out when the page was pulled
   down past its top (elastic scrolling on a Mac or a phone). Until it has
   keyboard focus it is now invisible as well as out of the way. */
.skip-link:not(:focus) { opacity: 0; pointer-events: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Layout */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); }
.section--blush { background: var(--color-blush); }
.section--tight { padding-block: calc(var(--section-pad) * 0.6); }

.section__head { max-width: var(--measure); margin-bottom: var(--space-6); }
.section__head p { margin-top: var(--space-3); color: var(--color-ink-soft); }
.section__foot { margin-top: var(--space-6); }

.lead { font-size: var(--text-lead); max-width: var(--measure); }
.muted { color: var(--color-ink-soft); }
.stack > * + * { margin-top: var(--space-4); }
