@charset "UTF-8";

:root {
  color-scheme: light;
  --paper: #B8F5E1;
  --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);
}

.page > * { min-width: 0; }

.landing {
  --page-block-space: clamp(12px, 3.73svh, 32px);
  --page-inline-space: clamp(20px, 5vw, 80px);
}
.landing .page {
  padding: max(var(--page-block-space), env(safe-area-inset-top))
    max(var(--page-inline-space), env(safe-area-inset-right))
    max(var(--page-block-space), env(safe-area-inset-bottom))
    max(var(--page-inline-space), env(safe-area-inset-left));
}

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

.approved-identity { padding: 0; min-height: 0; }
.approved-wordmark {
  /* Reserve the footer's 44px touch target and 32px of breathing room. */
  width: min(100%, calc((100svh - max(var(--page-block-space), env(safe-area-inset-top))
    - max(var(--page-block-space), env(safe-area-inset-bottom)) - 76px) * 1361 / 486));
  max-width: 1360.8125px;
}
.approved-wordmark img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.curation {
  margin-top: clamp(8px, 2vh, 24px);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .08em;
  text-align: center;
}

.landing-footer {
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.landing-footer .curation {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .015em;
  text-transform: lowercase;
  text-align: left;
}

.curation.is-waiting { opacity: 0; }

.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: max(24px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right))
      max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
  .identity { padding-top: 30px; }
  .approved-identity { padding-top: 0; }
  .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 (max-height: 500px) and (orientation: landscape) {
  .page { padding-top: 16px; padding-bottom: 12px; }
}

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