@font-face {
  font-family: "Manufacturing Consent";
  src: url("/fonts/ManufacturingConsent-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --burgundy: hsl(0 75% 45%);
  --burgundy-dark: hsl(0 80% 35%);
  --gold: hsl(30 60% 40%);
  --gold-light: hsl(30 50% 55%);
  --snow: hsl(0 0% 98%);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--burgundy-dark);
  background: var(--snow);
  font-family: "Manufacturing Consent", Georgia, serif;
}

main {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 28px 84px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 5% 5%, hsl(0 75% 45% / .035), transparent 45%),
    radial-gradient(ellipse at 95% 95%, hsl(30 60% 40% / .045), transparent 45%),
    linear-gradient(180deg, hsl(0 0% 95%), var(--snow));
}

.frame {
  position: absolute;
  z-index: -1;
  inset: 22px;
  border: 1px solid hsl(30 50% 55% / .5);
}

.frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid hsl(30 50% 55% / .2);
}

.ornament {
  position: absolute;
  top: 29px;
  width: 180px;
  height: 128px;
  color: var(--gold);
}

h1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(28px, 4vw, 42px);
  margin: 65px 0 0;
  text-align: center;
  font-weight: 400;
}

h1 span {
  display: block;
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

.name {
  font-size: clamp(68px, 12vw, 156px);
  line-height: 1.1;
  color: var(--burgundy-dark);
}

.return {
  /* Balance the blackletter capitals that extend below the font's baseline. */
  transform: translateY(clamp(2px, .4vw, 5px));
  color: var(--gold);
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.4;
}

.date {
  font-size: clamp(39px, 6vw, 68px);
  line-height: 1.3;
}

.flourish {
  width: 230px;
  height: 48px;
  margin-top: 29px;
  color: var(--gold-light);
}

@media (max-width: 480px) {
  main { padding: 135px 24px 65px; }
  .frame { inset: 13px; }
  .ornament { top: 20px; width: 150px; height: 106px; }
  h1 { margin-top: 0; }
  .flourish { width: 185px; margin-top: 22px; }
}

@media (max-height: 520px) and (min-width: 481px) {
  main { padding-top: 130px; padding-bottom: 40px; }
  h1 { margin-top: 0; }
  .ornament { width: 130px; height: 92px; }
  .name { font-size: 76px; }
  h1 { gap: 22px; }
  .date { font-size: 42px; }
  .flourish { margin-top: 10px; }
}
