@font-face {
  font-family: "Wu Family Serif";
  src: url("/fonts/cover-serif.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  font-family: "Wu Family Serif", "Songti TC", "Songti SC", "Noto Serif CJK TC", "PMingLiU", serif;
  color: #292c26;
  background: #f4f1e9;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
::selection { background: #8e3d2f; color: #f4f1e9; }
.cover {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  padding: 0 clamp(24px, 4.5vw, 80px);
  background: radial-gradient(ellipse at 50% 40%, #fffdf740, transparent 70%);
}
.cover::before { content: ""; position: absolute; inset: 14px; border: 1px solid #54554214; pointer-events: none; z-index: -1; }
.masthead, .colophon { display: flex; align-items: center; justify-content: space-between; }
.masthead { padding: 38px 0 26px; border-bottom: 1px solid #5e604b30; }
.wordmark { font-size: 17px; letter-spacing: .26em; }
.masthead-note { font-size: 12px; letter-spacing: .2em; color: #747568; }
.cover-main { flex: 1; display: grid; place-items: center; position: relative; min-height: 600px; }
.title-composition { position: relative; text-align: center; padding: 44px 60px 66px; z-index: 1; }
.eyebrow { font-size: 12px; letter-spacing: .36em; color: #7a7969; margin: 0; padding-left: .36em; }
.title-rule { height: 58px; display: grid; place-items: center; }
.title-rule span { width: 1px; height: 24px; background: #9c7257; }
h1 { margin: 0; font-weight: 400; }
h1 span { white-space: nowrap; }
.place-name { display: block; font-size: clamp(36px, 4vw, 58px); letter-spacing: .38em; padding-left: .38em; line-height: 1.5; }
.family-name { display: block; font-size: clamp(138px, 16vw, 216px); letter-spacing: .14em; padding-left: .14em; line-height: 1.34; }
.family-motto { margin: 26px 0 0; font-size: 14px; letter-spacing: .32em; padding-left: .32em; color: #6e705f; }
.family-motto span { display: inline-block; margin: 0 12px; color: #987258; }
.memorial-notice { margin: 32px auto 0; padding-top: 23px; max-width: 340px; border-top: 1px solid #5e604b40; }
.memorial-notice h2 { margin: 0 0 14px; font-size: 17px; font-weight: 400; letter-spacing: .15em; }
.memorial-notice a { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: #45473e; font-size: 13px; letter-spacing: .12em; text-decoration: none; }
.memorial-address { font-family: Georgia, serif; font-size: 12px; letter-spacing: .04em; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #77796380; }
.memorial-notice a:hover { color: #292c26; }
.memorial-notice a:hover .memorial-address { text-decoration-color: currentColor; }
.memorial-notice a:focus-visible { outline: 2px solid #45473e; outline-offset: 7px; }
.memorial-notice p { margin: 14px 0 0; font-size: 11px; line-height: 1.6; letter-spacing: .08em; color: #747568; }
.side-note { position: absolute; top: 46%; writing-mode: vertical-rl; font-size: 12px; letter-spacing: .5em; color: #8a8a79; }
.side-note-left { left: 4px; }
.side-note-right { right: 4px; }
.side-note::before { content: ""; display: inline-block; height: 32px; width: 1px; background: #77796340; margin-bottom: 21px; }
.landscape { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: calc(100% + 40px); height: 220px; stroke: #868a6b; stroke-width: .65px; opacity: .28; pointer-events: none; }
.landscape .distant-hill { opacity: .5; }
.colophon { border-top: 1px solid #5e604b30; padding: 24px 0 32px; color: #7b7c6e; font-size: 11px; letter-spacing: .18em; gap: 16px; }
.footer-divider { margin: 0 10px; color: #a5a493; }
.site-address { font-family: Georgia, serif; font-size: 10px; letter-spacing: .22em; }

@media (min-height: 950px) { .title-composition { padding-bottom: 130px; } }
@media (max-width: 600px) {
  .cover::before { inset: 9px; }
  .masthead { padding: 30px 0 22px; }
  .wordmark { font-size: 14px; }
  .masthead-note { font-size: 10px; letter-spacing: .1em; }
  .cover-main { min-height: 560px; }
  .title-composition { padding: 50px 12px 90px; }
  .eyebrow { font-size: 10px; letter-spacing: .25em; }
  .title-rule { height: 48px; }
  .place-name { font-size: clamp(28px, 7.5vw, 40px); letter-spacing: .3em; padding-left: .3em; }
  .family-name { font-size: clamp(96px, 29vw, 170px); letter-spacing: .08em; padding-left: .08em; line-height: 1.5; }
  .family-motto { font-size: 12px; letter-spacing: .18em; margin-top: 22px; }
  .family-motto span { margin: 0 7px; }
  .memorial-notice { margin-top: 26px; padding-top: 20px; max-width: 260px; }
  .memorial-notice h2 { font-size: 15px; letter-spacing: .1em; }
  .side-note { font-size: 10px; letter-spacing: .4em; top: 42%; }
  .side-note-left { left: -3px; }
  .side-note-right { right: -3px; }
  .landscape { height: 150px; }
  .colophon { flex-direction: column; align-items: center; gap: 12px; padding: 22px 0 26px; font-size: 10px; }
}
@media (max-width: 350px) {
  .masthead-note { display: none; }
  .side-note { display: none; }
}
@media (max-height: 740px) and (max-width: 600px) {
  .cover-main { min-height: 440px; }
  .title-composition { padding-top: 24px; padding-bottom: 40px; }
  .family-name { font-size: clamp(96px, 29vw, 108px); line-height: 1.4; }
  .title-rule { height: 38px; }
  .landscape { height: 110px; }
}
