@font-face {
  font-family: "DM Serif Display";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/dm-serif-display-latin.woff2") format("woff2");
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("./fonts/dm-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --paper: #fffefa;
  --ink: #323328;
  --muted: #596248;
  font-family: "DM Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }

body { margin: 0; }

.page {
  max-width: 60rem;
  min-height: 100svh;
  margin-inline: auto;
  padding: 2.625rem 3.4375rem 5rem;
}

.mast {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.letter {
  max-width: 28.125rem;
  margin: 4.0625rem auto 0;
}

h1 {
  margin: 0 0 1.875rem;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.625rem, 7vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

p {
  margin: 1.5rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

em {
  border-bottom: 1px solid currentColor;
  font-style: normal;
}

.whatsapp {
  display: inline-block;
  max-width: 100%;
  margin-top: 1.75rem;
  padding: 0.625rem 0 0.4375rem;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.75;
  text-decoration: none;
}

.whatsapp:hover { color: var(--muted); }

.whatsapp:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 6px;
}

@media (max-width: 32.5rem) {
  .page { padding: 1.625rem 1.625rem 3.5rem; }
  .letter { margin-top: 2.8125rem; }
  p { font-size: 1.1875rem; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #252421;
    --ink: #eee9d8;
    --muted: #bec7ac;
  }
}
