:root {
  color-scheme: light;
  color: #2b3440;
  background: #f4f5f3;
  font-family: "EB Garamond", Georgia, serif;
  --display: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  text-align: center;
}
header, footer { background: #ecf0f2; color: #485e72; }
header, nav a {
  font: 500 .81rem/1.25 var(--display);
  text-transform: uppercase;
  letter-spacing: .22em;
}
header { border-bottom: 1px solid #cdd3d8; padding: 12px 16px; }
footer { border-top: 1px solid #cdd3d8; padding: 14px 16px; font-size: .94rem; }
main {
  flex: 1;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  padding: clamp(46px, 7vh, 80px) 24px;
  background: #f4f5f3 url("assets/paper.svg") repeat center top / 720px 720px;
}
.corners { position: absolute; inset: 16px max(14px, calc((100% - 1130px) / 2)); z-index: -1; }
.corners i { position: absolute; width: clamp(48px, 8vw, 110px); aspect-ratio: 1; background: url("assets/corner.svg") center/contain no-repeat; }
.corners i:nth-child(1) { left: 0; top: 0; }
.corners i:nth-child(2) { right: 0; top: 0; transform: scaleX(-1); }
.corners i:nth-child(3) { left: 0; bottom: 0; transform: scaleY(-1); }
.corners i:nth-child(4) { right: 0; bottom: 0; transform: scale(-1); }
article { max-width: 620px; display: flex; flex-direction: column; align-items: center; }
.emblem { width: clamp(46px, 6vw, 65px); height: auto; }
.wordmark, .byline { font-family: "Pinyon Script", "Snell Roundhand", cursive; color: #5f7a95; }
.wordmark { margin: 12px 0 0; font-size: clamp(50px, 8vw, 76px); line-height: 1.14; }
.byline { margin: 0; font-size: clamp(21px, 3vw, 27px); }
.flourish { margin: clamp(16px, 3.6vh, 35px) 0 14px; width: clamp(135px, 20vw, 220px); height: auto; }
h1 { font: 300 clamp(50px, 8vw, 78px)/1.07 var(--display); margin: 0; }
h1 em { color: #586f87; font-weight: 300; }
.intro { font-size: clamp(18px, 2vw, 21px); line-height: 1.48; color: #4e5967; max-width: 36ch; margin: 15px auto 26px; }
nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 16px; width: 100%; }
nav a {
  display: grid;
  place-items: center;
  width: 164px;
  min-height: 46px;
  padding: 10px;
  color: #435a70;
  text-decoration: none;
  background: url("assets/cartouche.svg") center / 100% 100% no-repeat;
}
nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
nav a:focus-visible { outline: 2px solid #435a70; outline-offset: 3px; }
@media (max-width: 430px) {
  nav { gap: 8px; }
  nav a { width: min(145px, 100%); }
  .intro { max-width: 29ch; }
}
