/* Personal about page, within the original pool's horizontal room. */
@font-face {
  font-family: "Youze About Sans";
  src: url("assets/youze/fonts/about/youze-about-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
.yz-about *, .yz-article-dialog * { box-sizing: border-box; }
.yz-about section { flex: 0 0 auto; }
.side.yz-about { --about-font: "Youze About Sans", "PingFang SC", "Microsoft YaHei", sans-serif; --sans: var(--about-font); gap: clamp(36px, 3vw, 56px); height: calc(100% - var(--cut, 0px)); margin-top: var(--cut, 0px); font-family: var(--about-font); }
.yz-about .yz-about-photo { width: clamp(300px, 25vw, 380px); height: 100%; padding: 0; display: flex; align-items: center; }
.yz-about-photo img { display: block; width: 100%; height: min(560px, 72vh); max-height: 100%; object-fit: cover; border-radius: 26px; }
.yz-photo-flip { display: block; flex: 0 0 auto; width: 100%; height: min(560px, 72vh); max-height: 100%; padding: 0; border: 0; border-radius: 26px; appearance: none; background: transparent; cursor: pointer; perspective: 1200px; -webkit-tap-highlight-color: transparent; }
.yz-photo-rotor { display: block; position: relative; width: 100%; height: 100%; border-radius: inherit; transform-style: preserve-3d; transform: rotateY(0deg); transition: transform .68s cubic-bezier(.22,.8,.25,1); }
.yz-photo-flip[aria-pressed="true"] .yz-photo-rotor { transform: rotateY(180deg); }
.yz-photo-flip .yz-photo-face { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; border-radius: inherit; -webkit-backface-visibility: hidden; backface-visibility: hidden; user-select: none; -webkit-user-drag: none; }
.yz-photo-back { transform: rotateY(180deg); }
.yz-about .yz-about-intro { --about-copy-size: clamp(32px, 2.38vw, 36px); width: clamp(320px, 25vw, 380px); display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.room .yz-eyebrow { margin: 0 0 16px; color: var(--ink-muted); font: 600 12px/1.5 var(--sans); letter-spacing: .08em; }
.yz-strip-title { margin: 0 0 22px; font: 500 var(--about-copy-size)/1.55 var(--sans); letter-spacing: 0; }
.yz-about .yz-about-copy p { margin: 0; }
.yz-about-copy .yz-about-lead { font: 500 var(--about-copy-size)/1.55 var(--sans); letter-spacing: 0; }
html[lang="en"] .yz-about .yz-about-copy .yz-about-lead { font-size: clamp(24px, 1.6vw, 28px); }
.yz-about .yz-essays-link { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 16px; min-height: 44px; margin-top: 28px; padding: 8px 4px; appearance: none; border: 0; border-radius: 0; box-shadow: none; color: #343431; background: transparent; font: 500 21px/1.3 var(--sans); cursor: pointer; transition: color .18s ease; }
.yz-essays-link svg { width: 21px; height: 21px; flex: 0 0 auto; transition: transform .18s ease; }
.yz-about .yz-essays-link:hover { color: #111110; }
.yz-about .yz-essays-link:hover svg { transform: translateX(3px); }
.yz-about .yz-essays-link:active { color: #686861; }
[data-theme="night"] .yz-about .yz-essays-link { color: #deded6; }
[data-theme="night"] .yz-about .yz-essays-link:hover { color: #fff; }
[data-theme="night"] .yz-about .yz-essays-link:active { color: #b7b7af; }
.yz-about .yz-contacts { width: clamp(528px, 35vw, 600px); }
.yz-about .yz-contact-heading { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; font: 500 18px/1.4 var(--sans); }
.yz-contact-heading img { display: block; width: 24px; height: 24px; }
[data-theme="night"] .yz-contact-heading img { filter: invert(1); }
.yz-resume, .yz-contact-card { color: var(--bg); background: var(--deck); box-shadow: 13px 17px 31px rgba(0,0,0,.09), -10px -10px 24px rgba(255,255,255,.6); text-decoration: none; border: none; border-radius: 24px; }
.yz-resume { padding: 25px 28px; display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.yz-resume > span { display: flex; gap: 15px; align-items: center; font: 500 32px/1.4 var(--sans); }
.yz-resume svg { width: 32px; height: 32px; }
.yz-resume b { color: #007aff; font-size: 20px; }
.yz-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.yz-contact-card { min-width: 0; min-height: 232px; padding: 24px 22px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; font-family: var(--sans); cursor: pointer; }
.yz-contact-card i { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: #007aff; box-shadow: inset 4px 4px 10px rgba(0,0,0,.1), inset -4px -4px 10px rgba(255,255,255,.7); margin-bottom: 24px; }
.yz-contact-card svg { width: 28px; height: 28px; }
.yz-contact-card b { font-size: 24px; line-height: 1.35; margin-bottom: 6px; }
.yz-contact-card > span { color: var(--ink-muted); font-size: 20px; line-height: 1.45; overflow-wrap: anywhere; }
.yz-contact-card small { font-size: 16px; line-height: 1.4; margin-top: 10px; color: #007aff; }
.yz-about button:focus-visible, .yz-about a:focus-visible, .yz-article-dialog button:focus-visible { outline: 3px solid #007aff; outline-offset: 5px; }
.yz-about .yz-essays-link:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.yz-article-dialog { --article-ink: #202426; width: min(900px, calc(100vw - 64px)); height: min(960px, calc(100dvh - 64px)); max-width: none; max-height: none; padding: 0; border: 1px solid rgba(0,0,0,.1); border-radius: 22px; color: var(--article-ink); background: #faf9f6; overflow: hidden; box-shadow: 0 30px 100px rgba(0,0,0,.25); }
.yz-article-dialog[open] { display: grid; grid-template-rows: 64px minmax(0, 1fr); }
.yz-article-dialog::backdrop { background: rgba(20,35,43,.48); backdrop-filter: blur(10px); }
.yz-article-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 9px 22px 9px 28px; border-bottom: 1px solid rgba(0,0,0,.1); font: 500 14px/1.5 var(--sans); }
.yz-article-toolbar button { width: 44px; height: 44px; padding: 0; font: 300 28px/1 var(--sans); color: inherit; background: transparent; border: 0; cursor: pointer; border-radius: 50%; }
.yz-article-toolbar button:hover { background: rgba(0,0,0,.05); }
.yz-article-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-gutter: stable; }
.yz-article-dialog[data-locked="true"] .yz-article-scroll { display: grid; align-items: center; }
.yz-article-gate { width: min(100%, 420px); padding: 40px 28px; margin: auto; color: var(--article-ink); font: 400 16px/1.6 var(--sans); }
.yz-article-gate h1 { margin: 0 0 12px; font: 500 26px/1.4 var(--sans); }
.yz-article-gate-note { margin: 0 0 28px; opacity: .65; }
.yz-article-gate label { display: block; margin-bottom: 8px; font-size: 14px; }
.yz-article-gate input { display: block; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--article-ink) 24%, transparent); border-radius: 10px; color: inherit; background: transparent; font: 400 18px/1.5 var(--sans); }
.yz-article-gate input:focus-visible { outline: 2px solid #007aff; outline-offset: 2px; }
.yz-article-gate input[aria-invalid="true"] { border-color: #d94444; }
.yz-article-password-error { min-height: 1.6em; margin: 8px 0 16px; color: #ce3838; font-size: 14px; }
.yz-article-gate button { width: 100%; min-height: 48px; padding: 10px 18px; border: 0; border-radius: 10px; color: #fff; background: #0074dc; font: 500 16px/1.5 var(--sans); cursor: pointer; }
.yz-article-gate button:hover { background: #0066c2; }
.yz-article-gate button:disabled { opacity: .6; cursor: wait; }
[data-theme="night"] .yz-article-password-error { color: #ff8d8d; }
.yz-article-body { width: 100%; max-width: 720px; padding: clamp(36px, 5vh, 64px) 56px 80px; margin: 0 auto; font: 400 17px/1.7 var(--sans); }
.yz-article-body h1 { margin: 0 0 38px; font: 500 44px/1.35 var(--sans); letter-spacing: .03em; }
.yz-article-body p { white-space: pre-wrap; margin: 0 0 .7em; text-align: justify; overflow-wrap: break-word; line-break: strict; }
.yz-article-body figure { margin: 28px 0; }
.yz-article-body img { display: block; max-width: 100%; height: auto; border-radius: 8px; }
[data-theme="night"] .yz-resume, [data-theme="night"] .yz-contact-card { box-shadow: 12px 15px 30px rgba(0,0,0,.23), -8px -8px 22px rgba(255,255,255,.03); }
[data-theme="night"] .yz-article-dialog { --article-ink: #eeede8; background: #292c30; border-color: rgba(255,255,255,.12); }
@media(max-width:650px) {
  .yz-about .yz-about-photo { width: min(78vw, 340px); }
  .yz-about-photo img { height: 58vh; }
  .yz-about .yz-photo-flip { height: 58vh; }
  .side.yz-about { gap: 36px; }
  .yz-about .yz-about-intro { --about-copy-size: 28px; width: calc(100vw - 48px); max-width: 350px; }
  .yz-about .yz-essays-link { margin-top: 24px; font-size: 20px; }
  .yz-about .yz-contacts { width: min(84vw, 420px); }
  .yz-about .yz-contact-heading { font-size: 18px; margin-bottom: 20px; }
  .yz-resume { padding: 20px; border-radius: 20px; }
  .yz-resume > span { font-size: 28px; }
  .yz-contact-grid { grid-template-columns: 1fr; gap: 18px; margin-top: 22px; }
  .yz-contact-card { min-height: 132px; padding: 18px 22px; position: relative; padding-left: 96px; justify-content: center; }
  .yz-contact-card i { position: absolute; top: 25px; left: 20px; width: 55px; height: 55px; margin: 0; }
  .yz-contact-card b { font-size: 22px; }
  .yz-contact-card > span { font-size: 18px; }
  .yz-contact-card small { font-size: 14px; }
  .yz-article-dialog { width: calc(100vw - 24px); height: calc(100dvh - 24px); border-radius: 16px; }
  .yz-article-dialog[open] { grid-template-rows: 56px minmax(0, 1fr); }
  .yz-article-toolbar { padding: 5px 10px 5px 22px; font-size: 13px; }
  .yz-article-body { padding: 30px 24px 56px; font-size: 16px; line-height: 1.75; }
  .yz-article-body h1 { font-size: 32px; margin-bottom: 28px; }
}
@media (max-height: 540px) {
  .yz-about .yz-about-intro { --about-copy-size: 26px; }
  .yz-about .yz-strip-title { margin-bottom: 12px; line-height: 1.5; }
  .yz-about .yz-about-copy .yz-about-lead { line-height: 1.5; }
  .yz-about .yz-essays-link { margin-top: 14px; font-size: 18px; }
  .yz-about .yz-contact-heading { font-size: 17px; margin-bottom: 6px; }
  .yz-about .yz-resume { padding: 8px 18px; border-radius: 16px; }
  .yz-about .yz-resume > span { font-size: 24px; }
  .yz-about .yz-resume svg { width: 26px; height: 26px; }
  .yz-about .yz-contact-grid { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
  .yz-about .yz-contact-card { min-height: 110px; padding: 12px 12px 12px 62px; position: relative; justify-content: center; border-radius: 16px; }
  .yz-about .yz-contact-card i { position: absolute; top: 20px; left: 15px; width: 34px; height: 34px; margin: 0; }
  .yz-about .yz-contact-card svg { width: 20px; height: 20px; }
  .yz-about .yz-contact-card b { font-size: 20px; margin-bottom: 4px; }
  .yz-about .yz-contact-card > span { font-size: 17px; }
  .yz-about .yz-contact-card small { font-size: 12px; margin-top: 4px; }
  .yz-article-body { padding-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .yz-photo-rotor { transition: none; }
  .yz-about .yz-essays-link, .yz-essays-link svg { transition: none; }
  .yz-about .yz-essays-link:hover svg { transform: none; }
}
/* Leave the next chapter visible, using the selected open, arrow-free composition. */
@media (min-width: 1100px) {
  .side.yz-about { gap: clamp(36px, 3.2vw, 64px); }
  .yz-about .yz-about-photo { width: clamp(260px, 23vw, 420px); }
  .yz-about .yz-about-intro { width: clamp(320px, 20.3vw, 360px); }
  .yz-about .yz-contacts { width: clamp(480px, 27.6vw, 520px); }
}
@media (min-width: 1100px) and (min-height: 650px) {
  .yz-about .yz-contact-card { min-height: 220px; }
  .yz-about .yz-contact-card > span { font-size: 18px; overflow-wrap: normal; }
}
@media (min-width: 1100px) and (min-height: 760px) {
  .yz-about .yz-strip-title { margin-bottom: 44px; }
  .yz-about .yz-essays-link { margin-top: 44px; }
  .yz-about .yz-about-photo { position: relative; top: 20px; }
  .yz-about .yz-about-intro { position: relative; top: 68px; }
  .yz-about .yz-contacts { position: relative; top: 36px; }
}
@media (min-width: 1100px) and (max-width: 1599px) {
  .side.yz-about { gap: clamp(28px, 2.5vw, 40px); }
  .yz-about .yz-about-photo { width: clamp(240px, 22vw, 352px); }
  .yz-about .yz-about-intro { --about-copy-size: clamp(28px, 2vw, 32px); width: clamp(280px, 20vw, 320px); }
}
