@font-face {
  font-family: "EB Garamond";
  src: url("fonts/eb-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F4EFE3;
  --green: #3E5C46;
}

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

html, body { height: 100%; margin: 0; }

body {
  background: var(--cream);
  color: var(--green);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  min-height: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1.25rem;
}

.logo {
  display: block;
  /* fit by width, but never taller than the screen allows (phone landscape) */
  width: min(70vw, 440px, calc((100vh - 9rem) * 1.49));
  width: min(70vw, 440px, calc((100svh - 9rem) * 1.49));
  height: auto;
  fill: none;
  stroke: var(--green);
  stroke-width: 1px;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* keeps the line hairline-thin at any screen size */
.logo path { vector-effect: non-scaling-stroke; }

h1 {
  margin: 0;
  font-family: "EB Garamond", Garamond, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}

main > * { animation: fade 1.4s ease-out both; }

@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  main > * { animation: none; }
}
