:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #171612;
  --muted-ink: #555149;
  font-family: "EB Garamond", Garamond, "Times New Roman", serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 20rem;
  background: var(--paper);
  color: var(--ink);
}

.page {
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding:
    max(2rem, env(safe-area-inset-top))
    max(1.5rem, env(safe-area-inset-right))
    max(2rem, env(safe-area-inset-bottom))
    max(1.5rem, env(safe-area-inset-left));
}

.identity {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
}

h1 {
  margin: 0 0 0.08em;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: default;
  font-family: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  font-size: clamp(4.25rem, 12vmin, 9rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.78;
}

address {
  position: absolute;
  top: calc(100% + clamp(0.625rem, 1.2vmin, 1rem));
  left: 50%;
  width: min(100% - 3rem, 36rem);
  margin: 0;
  transform: translateX(-50%);
  color: var(--muted-ink);
  font-size: clamp(0.8rem, 1.4vmin, 0.95rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.55;
  text-align: center;
}

@media (max-height: 30rem) {
  h1 {
    font-size: clamp(4.5rem, 21vh, 8rem);
  }

  address {
    top: calc(100% + 0.625rem);
  }
}

@media print {
  :root {
    --paper: white;
    --ink: black;
    --muted-ink: #333;
  }
}
