@font-face {
  font-family: "Crimson Pro";
  src: url("/assets/editorial-serif.woff2") format("woff2");
  font-display: swap;
  font-weight: 200 900;
}

:root {
  color-scheme: light;
  --canvas: #f7f5f0;
  --ink: #231b17;
  --olive: #404a31;
  --muted: #61584f;
  font-family: "Crimson Pro", Georgia, serif;
  background: var(--canvas);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0 auto; max-width: 1700px; padding: 0 clamp(20px, 2.6vw, 42px); }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--olive); outline-offset: 5px; }

.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.masthead { min-height: 61px; border-bottom: 1px solid var(--olive); }
.masthead a, .footer a { text-decoration: none; }
.masthead a:hover, .footer a:hover { text-decoration: underline; }
.wordmark { font-size: clamp(25px, 2.5vw, 34px); line-height: 1; }
.masthead nav { font-size: 23px; }

.intro { text-align: center; margin: clamp(28px, 2.7vw, 44px) auto clamp(30px, 3vw, 47px); }
.intro h1 { font-size: clamp(48px, 6.2vw, 99px); line-height: .97; font-weight: 430; letter-spacing: -.032em; margin: 0; text-wrap: balance; }
.intro p { font-size: clamp(21px, 2.15vw, 31px); margin: 13px 0 0; text-wrap: balance; }

.templates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px clamp(18px, 1.8vw, 30px); }
.template { min-width: 0; }
.preview { display: block; overflow: hidden; border-radius: 5px; aspect-ratio: 2.18; background: #e9e4d8; }
.preview img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.preview:hover img { transform: scale(1.035); }
.template-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 7px 4px 0; }
.template-heading h2 { margin: 0; font-size: clamp(22px, 2.1vw, 34px); letter-spacing: -.02em; font-weight: 500; line-height: 1.05; }
.template-heading a { white-space: nowrap; font-size: clamp(17px, 1.45vw, 23px); color: var(--olive); text-underline-offset: 3px; }
.template p { margin: 5px 4px 0; color: var(--muted); font-size: 18px; line-height: 1.2; }

.footer { margin-top: 48px; border-top: 1px solid var(--olive); font-size: 18px; padding: 17px 0 24px; }
.footer p { margin: 0; color: var(--muted); }

@media (max-width: 850px) {
  .templates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .templates { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .intro { margin-block: 36px 32px; }
  .template-heading h2 { font-size: 28px; }
  .footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .preview img { transition: none; }
}

@font-face {
  font-family: Oranienbaum;
  src: url("/assets/gallery-display.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
.intro h1 {
  font-family: Oranienbaum, Georgia, serif;
  font-size: clamp(45px, 5.55vw, 90px);
  font-weight: 400;
}
