@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #dceee3;
  --ink: #6e242c;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body, h1, p { margin: 0; }
::selection { color: var(--paper); background: var(--ink); }

.page {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 32px clamp(24px, 5vw, 80px);
}

.identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 0 45px;
}

.wordmark {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  column-gap: .19em;
  align-items: center;
  font-weight: 400;
  font-size: clamp(96px, 18vw, 280px);
  animation: appear 1s cubic-bezier(.2,.7,.25,1) both;
}

.character {
  font-family: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", serif;
  font-weight: 400;
  line-height: 1.15;
}

.ending {
  font-family: "Bodoni 72", Didot, "Times New Roman", serif;
  font-size: 1.1em;
  font-style: italic;
  line-height: 1;
  letter-spacing: -.06em;
  padding-right: .06em;
}

.pronunciation {
  grid-column: 1;
  justify-self: center;
  margin-top: 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: .04em;
}

.description {
  margin-top: clamp(48px, 7vh, 80px);
  font-size: 10px;
  line-height: 1.6;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .2em;
  text-align: center;
  animation: appear 1s .15s ease both;
}

footer { display: flex; justify-content: center; }
footer a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .015em;
  color: inherit;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s ease;
}
footer a:hover { text-decoration-color: currentColor; }
footer a:focus-visible { outline: 1px solid currentColor; outline-offset: 6px; }

@keyframes appear {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .page { padding: 24px; }
  .identity { padding-top: 30px; }
  .wordmark { font-size: clamp(75px, 18vw, 108px); column-gap: .16em; }
  .pronunciation { font-size: 13px; }
  .description { font-size: 9px; letter-spacing: .17em; margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
