@font-face { font-family: 'GenWanMinFeedback'; src: url('assets/genwanmin-feedback-extralight.woff2') format('woff2'); font-weight: 200; font-style: normal; font-display: swap; }
@font-face { font-family: 'GenWanMinFeedback'; src: url('assets/genwanmin-feedback.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face {
  font-family: 'GenWanMin'; src: url('assets/genwanmin-extralight.woff2?v=3') format('woff2');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GenWanMin'; src: url('assets/genwanmin-regular.woff2?v=5') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'GenWanMin'; src: url('assets/genwanmin-semibold.woff2?v=2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --phi: 1.618033989;
  --golden: .618033989;
}
* { box-sizing: border-box; }
html { background: var(--paper); transition: background-color 1s ease; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); transition: color 1s ease; font-family: 'GenWanMin', 'Songti SC', serif; font-weight: 400; }
button, a { color: inherit; -webkit-user-select: none; user-select: none; touch-action: manipulation; -webkit-touch-callout: none; }
a { text-decoration: none; }
button { font: inherit; text-align: left; cursor: pointer; background: none; border: 0; border-radius: 0; padding: 0; }
button:active, a:active { opacity: .5; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 7px; }
h1, h2, p { margin: 0; }
/* The golden guides belong to the viewport, not a scaled 1920 × 1080 canvas.
   The right column starts at 61.8%; the profile and footer share a bottom edge.
   Intrinsic row minima keep text from colliding in very short windows. */
.home {
  --display-size: clamp(36px, min(3.90625vw, 6.944444svh), 112px);
  --layout-height: max(100svh, calc(var(--display-size) * 14.4));
  --inset-x: 5.208333vw;
  --inset-y: var(--inset-x);
  position: relative;
  display: grid;
  width: 100%;
  min-height: var(--layout-height);
  grid-template-columns:
    [edge] var(--inset-x)
    [main] minmax(0, calc(100% * var(--golden) - var(--inset-x)))
    [side] minmax(0, 1fr)
    [content-end] var(--inset-x);
  grid-template-rows:
    [edge] var(--inset-y)
    [intro] minmax(min-content, calc(var(--layout-height) * var(--golden) - var(--inset-y)))
    [lower] minmax(min-content, calc(var(--layout-height) * (1 - var(--golden)) - var(--inset-y)))
    [bottom] var(--inset-y);
  align-content: start;
}
.personal { display: contents; }
.works { grid-column: main / side; grid-row: intro; align-self: start; min-width: 0; }
.works h2 { font-size: calc(var(--display-size) * .55); line-height: 1.2; letter-spacing: -.09em; font-weight: 600; }
.work-list { display: flex; flex-direction: column; gap: clamp(4px, .4vw, 8px); list-style: none; margin: calc(var(--display-size) * .4) 0 0; padding: 0; }
.work-list > li { position: relative; margin: 0; padding: 0; }
.work-list > .anna-item { width: fit-content; height: auto; }
.work { display: block; white-space: nowrap; font-size: var(--display-size); line-height: 1.2; font-weight: 200; letter-spacing: -.115957em; transition: opacity 160ms ease; }
.work.has-arrow { display: flex; width: fit-content; align-items: center; gap: .18em; }
.work-arrow { flex: none; align-self: center; width: clamp(14px, .4em, 34px); height: clamp(14px, .4em, 34px); letter-spacing: 0; }
.she-nicest-at { display: inline-block; letter-spacing: 0; margin-right: .03em; transform: translateY(-.09em); }
.motto { grid-column: side / content-end; grid-row: intro; align-self: start; min-width: 0; min-height: 4.8em; font-size: calc(var(--display-size) * 73 / 75); line-height: 1.2; font-weight: 200; letter-spacing: -.115957em; }
.motto p { white-space: pre-line; }
.cursor { display: inline-block; width: 1px; height: .8em; margin-left: .12em; background: currentColor; transition: background-color 1s ease; vertical-align: -.03em; opacity: .6; animation: blink 1.1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 0; } 50% { opacity: .6; } }
.about { grid-column: side / content-end; grid-row: lower; align-self: end; min-width: 0; }
.about h1 { display: flex; align-items: flex-start; height: calc(var(--display-size) * 76 / 75); font-weight: 400; font-size: calc(var(--display-size) * .55); line-height: 1.2; letter-spacing: -.09em; }
.name-en { margin-left: calc(var(--display-size) * 4 / 75); padding-top: calc(var(--display-size) * 11 / 75); }
.bio { margin-top: calc(var(--display-size) / 15); font-size: calc(var(--display-size) * .4); letter-spacing: -.115957em; line-height: 1.533333; white-space: nowrap; }
.dates { margin-top: calc(var(--display-size) * 2 / 15); font-weight: 400; font-size: calc(var(--display-size) / 3); line-height: 1.36; letter-spacing: -.071957em; }
.socials { --icon-size: calc(var(--display-size) * .48); display: flex; align-items: center; gap: var(--icon-size); margin-top: calc(var(--display-size) * .28); }
.socials a { display: flex; align-items: center; justify-content: center; width: calc(var(--display-size) * .6); height: calc(var(--display-size) * .6); margin: calc(var(--display-size) * -.06); transition: opacity 160ms ease; }
.socials a:first-child { margin-left: 0; }
@media (prefers-color-scheme: dark) { .socials img { filter: invert(1); } }
.socials img { transition: filter 1s ease; display: block; width: var(--icon-size); height: var(--icon-size); }
.socials img[alt="小红书"] { width: calc(var(--icon-size) * 1.25); height: calc(var(--icon-size) * 1.25); }
.socials img[alt="微博"] { width: calc(var(--icon-size) * .88); height: calc(var(--icon-size) * .88); }
.socials img[alt="少数派"] { width: calc(var(--icon-size) * .78); height: calc(var(--icon-size) * .78); }
footer { grid-column: main / side; grid-row: lower; align-self: end; font-size: clamp(11px, calc(var(--display-size) * 16 / 75), 22px); line-height: 1.2; letter-spacing: -.115957em; }
.font-credit { margin-top: .55em; line-height: 1.5; }
.font-credit a { text-decoration: underline; text-underline-offset: .15em; }
.anna { font-family: 'GenWanMin', 'Songti SC', serif; min-height: 1.2em; }
.qr { position: absolute; z-index: 2; top: 100%; left: 0; width: fit-content; border-top: 10px solid var(--paper); padding: 6px; background: #fff; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 180ms var(--ease-out), visibility 0s linear 180ms, border-color 1s ease; }
.qr.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 180ms var(--ease-out), visibility 0s linear, border-color 1s ease; }
.qr img { display: block; width: clamp(112px, min(10vw, 18svh), 144px); height: auto; }
.copy-feedback { position: fixed; z-index: 10; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); width: max-content; max-width: calc(100vw - 32px); padding: 12px 20px; background: var(--ink); color: var(--paper); font-family: 'GenWanMinFeedback', 'GenWanMin', 'Songti SC', serif; font-size: 14px; line-height: 1.5; text-align: center; border-radius: 3px; opacity: 0; transform: translate(-50%, 6px); pointer-events: none; transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), background-color 1s ease, color 1s ease; }
.copy-feedback.is-visible { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (hover: hover) and (pointer: fine) {
  a.work:hover, .socials a:hover { opacity: .55; }
}
@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .home { --section-gap: clamp(72px, 10.94vw, 104px); display: flex; flex-direction: column; min-height: 100svh; padding: calc(48px + env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) calc(32px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px)); }
  .works, .motto, .about, footer { position: relative; inset: auto; }
  .works { flex-shrink: 0; }
  .personal { display: flex; flex-direction: column; flex-shrink: 0; margin-top: auto; padding-top: var(--section-gap); }
  .personal > * { flex-shrink: 0; align-self: stretch; }
  .works h2 { font-size: 21px; line-height: 1.2; letter-spacing: -.09em; }
  .work-list { margin-top: 25px; }
  .work { font-size: clamp(26px, 8.2vw, 56px); line-height: 1.2; letter-spacing: -.115957em; }
  .motto { width: 100%; min-height: 4.8em; font-size: clamp(36px, 7vw, 54px); line-height: 1.2; letter-spacing: -.115957em; }
  .about { margin-top: calc(var(--section-gap) * var(--golden)); }
  .about h1 { height: 54px; font-size: 36px; line-height: 1.2; letter-spacing: -4.17447px; }
  .name-en { margin-left: 3px; padding-top: 8px; }
  .bio { margin-top: 4px; font-size: clamp(20px, 3.8vw, 26px); letter-spacing: -.115957em; line-height: 1.55; }
  .dates { margin-top: 12px; font-size: 18px; line-height: 1.4; letter-spacing: -1.29523px; }
  .socials { --icon-size: 27px; gap: 24px; margin-top: 18px; }
  .socials a { width: 44px; height: 44px; margin: -6px; }
  .socials a:first-child { margin-left: calc((var(--icon-size) * 1.25 - 44px) / 2); }
  footer { margin-top: 24px; font-size: 12px; line-height: 1.5; letter-spacing: -.8px; }
}
@media (min-width: 601px) and (max-width: 1024px), (min-width: 601px) and (hover: none) and (pointer: coarse) {
  .home { padding: 64px 8vw 40px; }
  .work { font-size: clamp(36px, 6.2vw, 64px); }
}
@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; opacity: 0; }
  .qr { transition-duration: 160ms, 0s; transition-delay: 0s, 160ms; }
  .qr.is-open { transition-delay: 0s, 0s; }
  .copy-feedback { transform: none; transition: opacity 160ms ease, visibility 160ms; }
  .copy-feedback, .copy-feedback.is-visible { transform: translateX(-50%); }
}

/* Preserve manual copying when the browser blocks clipboard access. */
.anna.copy-unavailable { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }

@media (prefers-reduced-motion: reduce) {
  html, body, .socials img, .font-loading, .cursor { transition: none; }
}
