/* B · Interference. Instrument Serif, narrow and tall, centred like an inscription; two sets of concentric hairlines
   overlap behind it into a moiré. Form on the left, brand on the right. */
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Zhuque Fangsong Sub"; src: url(/fonts/zhuque-fangsong-sub.woff2) format("woff2"); font-weight: 400; font-display: swap; }

.side { grid-column: 1; grid-row: 1; }
.brand { grid-column: 2; grid-row: 1; }
/* the mark stays where a logo is expected, top left of the page */
.brand { position: static; grid-template-rows: 1fr; }
.mark { position: absolute; top: var(--s-6); left: var(--s-7); z-index: 2; }
.hero { align-self: center; justify-self: center; display: grid; justify-items: center; gap: var(--s-6); text-align: center; }

.hl { font-family: "Instrument Serif", "Zhuque Fangsong Sub", Georgia, serif; font-weight: 400; font-size: clamp(60px, 7.6vw, 124px); line-height: .94; letter-spacing: -.012em; }
:root[lang="zh-Hans"] .hl { font-size: clamp(50px, 5.8vw, 94px); line-height: 1.24; letter-spacing: .04em; }
.sub { text-wrap: balance; font: italic 400 22px/30px "Instrument Serif", Georgia, serif; max-width: 25em; color: var(--fg-2); }
.sub p + p { margin-top: .2em; }
:root[lang="zh-Hans"] .sub { font: 400 19px/30px "Zhuque Fangsong Sub", "Songti SC", serif; letter-spacing: .04em; max-width: 24em; }

/* the pointer's lens: a disc that inverts whatever is under it, type and rings alike (ui/login-x.js moves it each frame) */
.lens { position: fixed; left: 0; top: 0; width: 132px; height: 132px; margin: -66px 0 0 -66px; border-radius: 50%; background: #fff; mix-blend-mode: difference; pointer-events: none; z-index: 3; transform: scale(0); will-change: transform; }

/* entrance: word by word, each line after the one above, from a blur into focus */
.pre .hl .w { opacity: 0; filter: blur(14px); transform: translateY(.16em); }
.pre .sub p { opacity: 0; filter: blur(8px); }
.in .hl .w { transition: opacity 900ms var(--lx-e-std), filter 1200ms var(--lx-e-out), transform 1200ms var(--lx-e-out); transition-delay: calc(var(--i) * 200ms + var(--k) * 80ms + 150ms); }
.in .sub p { transition: opacity 900ms var(--lx-e-std), filter 1100ms var(--lx-e-out); transition-delay: calc(var(--i) * 200ms + 200ms); }

@media (prefers-reduced-motion: reduce) { .lens { display: none; } }
@media (max-width: 860px) {
  .brand { position: relative; grid-template-rows: auto auto; }
  .mark { position: static; justify-self: center; }
  .hero { justify-self: center; }
  .hl { font-size: clamp(44px, 13vw, 68px); }
  :root[lang="zh-Hans"] .hl { font-size: clamp(36px, 10vw, 56px); }
  .lens { display: none; }
}
