:root {
  --ink: #0b0b0c;
  --paper: #fbfaf6;
  --paper-dim: rgba(251, 250, 246, 0.08);
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", serif;
  --kai: "Kaiti SC", "STKaiti", "KaiTi", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  background-image: radial-gradient(circle at 30% 20%, rgba(11, 11, 12, 0.025), transparent 42%),
    radial-gradient(circle at 70% 80%, rgba(11, 11, 12, 0.02), transparent 46%),
    repeating-linear-gradient(45deg, rgba(11, 11, 12, 0.018) 0 2px, transparent 2px 6px);
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  mix-blend-mode: multiply;
  filter: url(#paper-grain);
}

#brush-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: auto;
}

.stage {
  position: relative;
  z-index: 2;
  height: 100dvh;
  display: grid;
  place-items: center;
  pointer-events: none;
}


.stage {
  height: 100dvh;
  display: grid;
  place-items: center;
}

.ink-title {
  margin: 0;
  font-family: var(--kai);
  font-weight: 500;
  font-size: clamp(44px, 10vh, 110px);
  letter-spacing: 0.18em;
  line-height: 1;
  writing-mode: vertical-rl;
  text-orientation: upright;
  user-select: none;
  filter: url(#ink-bleed);
}

.ink-title span {
  display: block;
}

@media (max-height: 520px) {
  .ink-title {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    letter-spacing: 0.14em;
    font-size: clamp(34px, 10vw, 72px);
  }

  .ink-title span {
    display: inline;
  }
}
