@font-face {
  font-family: "Minimal Zhi Mang Xing";
  src: url("fonts/subsets/ZhiMangXing-Evaluation.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Minimal Satisfy";
  src: url("fonts/subsets/Satisfy-Evaluation.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Minimal LXGW WenKai";
  src: url("fonts/subsets/LXGWWenKai-Evaluation.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Minimal Alegreya";
  src: url("fonts/subsets/Alegreya-Evaluation.woff2") format("woff2");
  font-display: swap;
}

:root {
  --paper: #f3f3ed;
  --ink: #191a17;
  --muted: #696b64;
  --rule: rgba(25, 26, 23, 0.2);
  --display-zh: "Minimal Zhi Mang Xing", "STKaiti", cursive;
  --display-en: "Minimal Satisfy", "Apple Chancery", cursive;
  --body-zh: "Minimal LXGW WenKai", "Kaiti SC", serif;
  --body-en: "Minimal Alegreya", Georgia, serif;
  --site-width: 1080px;
  --reading-width: 700px;
  --page-pad: clamp(1.25rem, 5vw, 4.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background-color: var(--paper); }
body {
  margin: 0;
  min-height: 100svh;
  background-color: var(--paper);
  color: var(--ink);
  font-family: var(--body-zh);
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--body-en); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
::selection { background-color: var(--ink); color: var(--paper); }

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 20;
  padding: 0.55rem 0.75rem;
  transform: translateY(-180%);
  background-color: var(--ink);
  color: var(--paper);
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 2 * var(--page-pad)), var(--site-width));
  margin-inline: auto;
}
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-block: 2rem 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.site-name {
  font-family: var(--display-en);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}
.language-switch {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  padding: 0;
  border: 0;
  background-color: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.language-switch span:first-child { color: var(--ink); }

.font-status {
  width: min(calc(100% - 2 * var(--page-pad)), var(--site-width));
  margin: 0 auto;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}
.font-status[hidden] { display: none; }

.view { display: none; min-height: calc(100svh - 10rem); }
.view-home { display: block; }
.view:target { display: block; }
body:has(.view:target:not(#home)) .view-home { display: none; }

.home-intro { padding: clamp(2.8rem, 6vw, 4.8rem) 0 clamp(3rem, 6vw, 4.6rem); }
.kicker {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
}
.home-intro h1 {
  max-width: 44rem;
  margin: 0;
  font-family: var(--body-zh);
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  font-weight: 400;
  line-height: 1.55;
}
.home-intro h1 .intro-clause { white-space: nowrap; }
html[lang="en"] .home-intro h1 { font-family: var(--body-en); line-height: 1.25; }

.identity-gallery {
  position: relative;
  left: 50%;
  width: min(116%, 1240px);
  aspect-ratio: 16 / 7;
  overflow: hidden;
  margin: 0;
  padding: 0;
  list-style: none;
  transform: translateX(-50%);
}
.identity-figure {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: var(--z, 1);
  width: var(--w);
  margin: 0;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
  transform-origin: center;
}
.identity-figure img { display: block; width: 100%; height: auto; }
.identity-ai { --x: 12%; --y: 63%; --w: 26%; --r: -4deg; --z: 4; }
.identity-football { --x: 30%; --y: 29%; --w: 13%; --r: 5deg; --z: 6; }
.identity-kop { --x: 43%; --y: 67%; --w: 18%; --r: -2deg; --z: 3; }
.identity-student { --x: 62%; --y: 34%; --w: 25%; --r: 3deg; --z: 4; }
.identity-tennis { --x: 80%; --y: 70%; --w: 13%; --r: -5deg; --z: 6; }
.identity-rapper { --x: 92%; --y: 35%; --w: 24%; --r: 4deg; --z: 3; }

.directory { border-top: 1px solid var(--rule); }
.directory-row {
  display: grid;
  grid-template-columns: minmax(12rem, 0.65fr) 1fr auto;
  gap: 2rem;
  align-items: center;
  min-height: clamp(7.5rem, 13vw, 10rem);
  border-bottom: 1px solid var(--rule);
  transition: border-color 140ms ease;
}
.directory-row strong {
  font-family: var(--display-zh);
  font-size: clamp(4rem, 8vw, 7.5rem);
  font-weight: 400;
  line-height: 0.8;
  transition: transform 140ms ease;
}
html[lang="en"] .directory-row strong {
  font-family: var(--display-en);
  font-size: clamp(3.4rem, 7vw, 6.4rem);
  line-height: 1;
}
.directory-row span { color: var(--muted); font-size: clamp(0.95rem, 1.4vw, 1.1rem); }
.directory-row i { font-style: normal; font-size: 1.2rem; transition: transform 140ms ease; }
.directory-row:hover strong,
.directory-row:focus-visible strong { transform: translateX(0.4rem); }
.directory-row:hover i,
.directory-row:focus-visible i { transform: translateX(0.3rem); }
.directory-row:hover,
.directory-row:focus-visible { border-color: var(--ink); }

.view-magazine { padding-block: clamp(4rem, 9vw, 8rem); }
.back-link { display: inline-block; margin-bottom: clamp(4rem, 9vw, 7rem); color: var(--muted); }
.view-heading { width: min(100%, var(--reading-width)); margin-inline: auto; padding-bottom: 3rem; border-bottom: 1px solid var(--rule); }
.view-heading h1 {
  margin: 0;
  font-family: var(--display-zh);
  font-size: clamp(5.5rem, 12vw, 10rem);
  font-weight: 400;
  line-height: 0.85;
}
html[lang="en"] .view-heading h1 { font-family: var(--display-en); font-size: clamp(4.8rem, 10vw, 8rem); line-height: 1; }
.view-heading > p:last-child { max-width: 32rem; margin: 2rem 0 0; color: var(--muted); font-size: 1.1rem; line-height: 1.65; }
.reading-column { width: min(100%, var(--reading-width)); margin-inline: auto; }
.prose { padding-block: 3.5rem; font-size: clamp(1.08rem, 1.7vw, 1.28rem); line-height: 1.9; }
.prose > p { margin: 0 0 1.5rem; }
.facts { margin: 4rem 0 0; border-top: 1px solid var(--rule); }
.facts div { display: grid; grid-template-columns: 7rem 1fr; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.entry { position: relative; padding: 2.5rem 0; border-bottom: 1px solid var(--rule); }
.entry time, .sample, .entry-meta { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; }
.entry-meta { display: flex; justify-content: space-between; gap: 1rem; }
.entry h2 { margin: 0.8rem 0 0.65rem; font: 400 clamp(1.6rem, 3vw, 2.35rem)/1.15 var(--body-zh); }
html[lang="en"] .entry h2 { font-family: var(--body-en); }
.entry p { max-width: 36rem; margin: 0 0 1rem; color: var(--muted); line-height: 1.65; }
.photo-list figure { margin: 0; padding: 3.5rem 0; border-bottom: 1px solid var(--rule); }
.photo-placeholder { width: 100%; background-color: #e5e4dd; }
.photo-placeholder--landscape { aspect-ratio: 3 / 2; }
.photo-placeholder--portrait { width: min(72%, 30rem); aspect-ratio: 4 / 5; margin-left: auto; }
.photo-list figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.75rem; color: var(--muted); font-size: 0.8rem; }
.photo-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.4rem; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.04em; }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.2rem 2.2rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.72rem;
}
.site-footer p { margin: 0; }

@media (max-width: 720px) {
  .identity-gallery {
    left: auto;
    width: 100%;
    height: clamp(360px, 50svh, 440px);
    aspect-ratio: auto;
    transform: none;
  }
  .identity-ai { --x: 50%; --y: 47%; --w: 37%; --r: -3deg; --z: 5; }
  .identity-football { --x: 78%; --y: 18%; --w: 18%; --r: 6deg; --z: 6; }
  .identity-kop { --x: 80%; --y: 53%; --w: 24%; --r: -2deg; --z: 3; }
  .identity-student { --x: 22%; --y: 23%; --w: 27%; --r: 3deg; --z: 4; }
  .identity-tennis { --x: 22%; --y: 75%; --w: 18%; --r: -6deg; --z: 6; }
  .identity-rapper { --x: 67%; --y: 79%; --w: 29%; --r: 4deg; --z: 3; }
}

@media (max-width: 640px) {
  .site-header { padding-block: 1.4rem 1rem; }
  .home-intro { padding-block: 2.4rem 3.2rem; }
  .home-intro h1 .intro-clause { display: block; }
  .directory-row { grid-template-columns: 1fr auto; gap: 0.8rem 1rem; padding: 1.6rem 0; }
  .directory-row strong { grid-column: 1; font-size: clamp(4.2rem, 23vw, 6.3rem); }
  html[lang="en"] .directory-row strong { font-size: clamp(2.5rem, 12.75vw, 4rem); }
  .directory-row span { grid-column: 1; grid-row: 2; }
  .directory-row i { grid-column: 2; grid-row: 1 / 3; }
  .view-magazine { padding-block: 3.5rem; }
  .back-link { margin-bottom: 4rem; }
  .view-heading h1 { font-size: clamp(5rem, 28vw, 7.4rem); }
  html[lang="en"] .view-heading h1 { font-size: clamp(3rem, 15.5vw, 4.8rem); }
  .facts div { grid-template-columns: 5rem 1fr; }
  .photo-placeholder--portrait { width: 84%; }
  .site-footer { align-items: flex-end; font-size: 0.64rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
