@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/fonts/inter-latin-var.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f5f4f1;
  --ink: #24201d;
  --body: #514943;
  --muted: #766b62;
  --accent: #59463b;
  --line: #24201d1f;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body { margin: 0; }

::selection {
  color: var(--ink);
  background: #dfd6ca;
}

.page {
  width: min(100% - 3rem, 40rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 7rem) 4rem;
}

.masthead { margin-bottom: 2.75rem; }

h1 {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.2;
}

.heading-with-logo {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.heading-logo {
  display: block;
  width: auto;
  height: 1em;
  flex: none;
  object-fit: contain;
}

.letter {
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.85;
  letter-spacing: -0.014em;
  overflow-wrap: break-word;
}

.letter p { margin: 0 0 1.65em; }
.letter p:first-child { color: var(--ink); }
.letter em { color: var(--accent); }

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-color: #59463b66;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 1px;
}

.letter .signoff { margin: 2.2rem 0 0; }

.signature {
  display: block;
  width: fit-content;
  margin-top: 0.2rem;
  color: var(--ink);
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-style: italic;
  font-size: 2.125rem;
  letter-spacing: -0.06em;
  line-height: 1.5;
}

.closing-image {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 2.5rem;
}

.footer {
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  line-height: 2;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.8rem;
  row-gap: 0.3rem;
}

.footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }
.separator, .pending-link { color: var(--muted); }
.pending-link { cursor: default; }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 0.75rem;
}

.footer-meta > a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding-block: 0.5rem;
  color: var(--muted);
  text-decoration: none;
}

.copyright {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.75;
}

.footer-meta .copyright { margin: 0; }

.imprint-navigation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: -1rem 0 2.5rem;
  font-size: 0.875rem;
}

.imprint-navigation a { padding-block: 0.75rem; }

.imprint-content {
  color: var(--body);
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.imprint-language { scroll-margin-top: 2rem; }

.imprint-language + .imprint-language {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.imprint-content h2 {
  margin: 0 0 1.75rem;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 500;
}

.imprint-content h3 {
  margin: 2rem 0 0.75rem;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
}

.imprint-content h2 + h3 { margin-top: 0; }
.imprint-content h4 { margin: 0.75rem 0; font-size: 1rem; font-weight: 500; }
.imprint-content address { font-style: normal; }
.imprint-content p { margin: 0 0 1rem; }
.imprint-content address + p { margin-top: 1rem; }
.imprint-content dl { margin: 0; }
.imprint-content dt { color: var(--muted); font-size: 0.875rem; }
.imprint-content dd { margin: 0 0 0.75rem; }

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

@media (max-width: 480px) {
  .masthead { margin-bottom: 2.25rem; }
  .letter { font-size: 1rem; line-height: 1.8; }
  .footer nav { column-gap: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  a { transition: none; }
}

@media print {
  :root { background: white; color: black; }
  .page { width: 100%; padding: 0; }
  .letter { color: black; font-size: 11pt; line-height: 1.6; }
  .masthead { margin-bottom: 1.5rem; }
  .footer nav, .footer-meta > a, .imprint-navigation { display: none; }
  a { color: inherit; text-decoration: none; }
  p { orphans: 3; widows: 3; }
}
