@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/fonts/playfair-display-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
  src: url('/static/fonts/source-sans-3.woff2') format('woff2');
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  overflow-x: clip;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  margin: 0 0 0.6em;
  hyphens: auto;
  overflow-wrap: break-word;
}

h1 { font-size: 2.6rem; line-height: 1.12; }
h2 { font-size: 2rem; line-height: 1.2; }
h3 { font-size: 1.3rem; line-height: 1.3; }

p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 0.8rem;
}

a {
  color: var(--color-leaf);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--color-leaf-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

strong { font-weight: 700; }

s { color: var(--color-muted); }

:focus-visible {
  outline: 3px solid var(--color-amber);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 2%;
  top: -10rem;
  background: var(--color-ink);
  color: var(--color-bg);
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  z-index: 2000;
}

.skip-link:focus {
  top: 0.5rem;
  color: var(--color-bg);
}
