@font-face {
  font-family: "JetBrains Mono";
  src: url("./fonts/jetbrains-mono-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("./fonts/jetbrains-mono-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Name Serif";
  src: url("./fonts/noto-serif-sc-name-0.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+6768;
}
@font-face {
  font-family: "Name Serif";
  src: url("./fonts/noto-serif-sc-name-1.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+4E91;
}
@font-face {
  font-family: "Name Serif";
  src: url("./fonts/noto-serif-sc-name-2.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  unicode-range: U+535A;
}
:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --ink: #242c28;
  --muted: #69716a;
  --accent: #54735b;
  --pointer-x: 50vw;
  --pointer-y: 50vh;
  font-family: "JetBrains Mono", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", monospace;
  font-synthesis: none;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; isolation: isolate; min-height: 100svh; }
.page-backdrop {
  position: fixed;
  inset: -16px;
  z-index: -2;
  pointer-events: none;
  background: url("./images/weathering-with-you.jpg") center 60% / cover no-repeat;
  opacity: .42;
  filter: blur(5px) saturate(.76);
}
.cursor-halo { display: none; }
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(#536455 0.65px, transparent 0.65px);
  background-size: 22px 22px;
  opacity: .12;
  mask-image: radial-gradient(ellipse 380px 300px at var(--pointer-x) var(--pointer-y), #000, transparent);
}
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 11px;
}
.site-label { color: var(--muted); letter-spacing: .04em; }
.site-label::before { content: "/ "; color: var(--accent); font-weight: 700; }
nav { display: flex; align-items: center; gap: 12px; }
nav > span { color: #b5bbb2; }
button {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: var(--muted);
  padding: 10px 2px;
  cursor: pointer;
  transition: color .2s ease;
}
button::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
button[aria-pressed="true"] { color: var(--ink); font-weight: 700; }
button[aria-pressed="true"]::after { transform: scaleX(1); }
button:hover { color: var(--accent); }
main {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 96px 40px;
}
.identity {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 420px;
  padding: 48px 40px;
  text-align: left;
  border: 1px solid rgba(84, 115, 91, .1);
  border-radius: 24px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 40px rgba(36, 44, 40, .055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.identity-content {
  width: min(100%, 440px);
}
.identity-heading {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.identity-name { min-width: 0; }
.portrait {
  display: block;
  flex: 0 0 auto;
  width: 96px;
  height: auto;
  border-radius: 14px;
  border: 1px solid rgba(84, 115, 91, .12);
  box-shadow: 0 4px 16px rgba(36, 44, 40, .06);
}
h1 {
  position: relative;
  display: inline-block;
  font-size: clamp(38px, 4.2vw, 48px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .015em;
  margin: 0;
}
html[lang="zh-CN"] h1 {
  font-family: "Name Serif", "Songti SC", "STSong", "SimSun", serif;
  font-size: clamp(38px, 4.2vw, 46px);
  font-weight: 500;
  letter-spacing: -.015em;
}
h1::after {
  content: "";
  position: absolute;
  top: .28em;
  left: 100%;
  width: .12em;
  height: .74em;
  margin-left: .32em;
  background: var(--accent);
  animation: cursor-blink 1.15s step-end 3;
}
html[lang="en"] h1 { font-size: clamp(30px, 3.6vw, 40px); letter-spacing: -.055em; }
.alternate-name {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .025em;
}
.intro {
  margin: 38px 0 0;
  font-size: 13px;
  line-height: 2;
  color: var(--muted);
  letter-spacing: .015em;
}
.intro span { display: block; }
.intro span:first-child { color: var(--ink); font-size: 14px; font-weight: 700; }
address {
  width: 100%;
  margin: 30px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  font-style: normal;
  font-size: 13px;
  line-height: 1.8;
}
.contact-row {
  display: grid;
  grid-template-columns: 6ch minmax(0, 1fr);
  column-gap: 12px;
  align-items: baseline;
  width: 100%;
}
.contact-label { color: var(--muted); }
.contact-row a { justify-self: start; max-width: 100%; min-width: 0; }
a {
  position: relative;
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease, transform .2s ease;
}
a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
a:hover { color: var(--accent); transform: translateX(3px); }
a:hover::after { transform: scaleX(1); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.identity-content > * { animation: arrive .65s ease both; }
.identity-content > :nth-child(2) { animation-delay: .07s; }
.identity-content > :nth-child(3) { animation-delay: .14s; }
@keyframes arrive {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@media (hover: hover) and (pointer: fine) {
  .cursor-halo {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    z-index: 1000;
    pointer-events: none;
    border: 1px solid rgba(84, 115, 91, .42);
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    box-shadow: 0 0 20px rgba(84, 115, 91, .1);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity .18s ease, width .2s ease, height .2s ease, border-color .2s ease;
  }
  .cursor-halo.is-visible { opacity: 1; }
  .cursor-halo.is-hovering {
    width: 46px;
    height: 46px;
    border-color: rgba(84, 115, 91, .65);
  }
  .cursor-ripple {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(84, 115, 91, .6);
    border-radius: 50%;
    z-index: 999;
    pointer-events: none;
    transform: translate(-50%, -50%);
  }
}
@media (max-width: 600px) {
  header { padding: 20px 26px; }
  main { padding: 90px 20px; }
  .identity { min-height: 0; padding: 34px 24px; border-radius: 22px; }
  .identity-heading { flex-direction: column-reverse; align-items: flex-start; gap: 24px; }
  .portrait { width: 78px; border-radius: 12px; }
  h1 { font-size: 38px; }
  html[lang="en"] h1 { font-size: clamp(27px, 7.6vw, 36px); }
  .intro { font-size: 12px; margin-top: 32px; }
  .intro span:first-child { font-size: 13px; }
  address { margin-top: 28px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  body::before { display: none; }
  .cursor-halo, .cursor-ripple { display: none; }
}
