@font-face {
  font-family: Pinyon;
  src: url("/fonts/pinyon.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/ebgaramond.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f6ef;
  --wine: #561e30;
  --ink: #302b28;
  --text: "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--text);
  background-color: var(--paper);
  background-image: url("/paper-stock.webp"),
    radial-gradient(ellipse at 22% 12%, #fffdf7, #f8f3e9);
  background-repeat: repeat, no-repeat;
  background-size: 400px 400px, cover;
  background-blend-mode: multiply, normal;
}
::selection { background: #e7cbd1; color: #421728; }

.sheet {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  text-align: center;
  padding: max(24px, env(safe-area-inset-top)) max(22px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(22px, env(safe-area-inset-left));
}

.spread {
  display: grid;
  grid-template-rows: minmax(48px, 1fr) auto minmax(min-content, 1fr);
  justify-items: center;
}

.letter { grid-row: 2; }

h1 {
  margin: 0;
  color: var(--wine);
  font: 400 clamp(4rem, 8.1vw, 6.8rem)/1.07 Pinyon, "Snell Roundhand", cursive;
  letter-spacing: -.024em;
}

.intro {
  margin: clamp(12px, 1.9vh, 18px) auto 0;
  color: var(--ink);
  font: 400 clamp(1.8rem, 3.2vw, 2.85rem)/1.07 var(--text);
  letter-spacing: -.028em;
  text-wrap: balance;
}

.note {
  max-width: 45ch;
  margin: 17px auto 0;
  color: #5b504a;
  font-size: clamp(1.06rem, 1.38vw, 1.18rem);
  line-height: 1.42;
  text-wrap: balance;
}

.studio-object {
  grid-row: 3;
  align-self: start;
  display: block;
  width: clamp(160px, 16vw, 205px);
  height: auto;
  margin: clamp(24px, 3.8vh, 40px) auto 28px;
  mix-blend-mode: multiply;
}

.colophon a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--wine);
  font-size: 1rem;
  text-decoration-color: #ba9b9e;
  text-underline-offset: 4px;
}
.colophon a:hover { text-decoration-color: var(--wine); }
.colophon a:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }

@media (max-width: 600px) {
  .note { max-width: 33ch; }
  .intro { max-width: 21ch; }
}
@media (max-width: 345px) {
  h1 { font-size: 3.6rem; }
}
