/* pelera — Reset & Grundtypografie */

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

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

body {
  margin: 0;
  background: var(--c-red);
  color: var(--c-cream);
  font-family: var(--font-ui);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

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

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

img {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Überschriften laufen in der Markenschrift — das Schriftbild ist Teil der
   Gestaltung, nicht nur Träger des Textes. */
h1,
h2 {
  font-family: var(--font-mark);
  font-weight: 400;
  font-size: var(--fs-title);
  line-height: var(--lh-title);
  letter-spacing: 0.005em;
  text-wrap: balance;
}

h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: var(--ls-tight);
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 700;
}

::selection {
  background: var(--c-gold);
  color: var(--c-void);
}

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

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--c-cream);
  color: var(--c-void);
  font-weight: 500;
  transform: translateY(-120%);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

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

/* Hilfsklassen */

.meta {
  font-size: var(--fs-meta);
  color: var(--fg-dim);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 46ch;
}

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

.prose p + p {
  margin-top: 1.1em;
}

.prose h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.prose h3 {
  margin-bottom: 0.6rem;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dim {
  color: var(--fg-dim);
}
