:root {
  --bg: #000;
  --fg: #e8e8e8;
  --muted: #8a8a8a;
  --accent: #9ecbff;
  --gutter: clamp(16px, 10vw, 160px); /* shared left edge for all content */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
}
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
#bg canvas { display: block; }
main { position: relative; z-index: 1; }

.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  text-align: left; padding: 0 16px 0 var(--gutter);
}
/* Noto Sans TC for both scripts: its Latin glyphs are Noto Sans, so EN and ZH share one design. */
.hero h1 { font-family: 'Noto Sans TC', sans-serif; font-size: clamp(2rem, 6vw, 3.75rem); font-weight: 500; letter-spacing: -0.01em; }
.tagline { color: var(--muted); margin-top: .5rem; font-size: 1.1rem; }
.links { margin-top: 2rem; display: flex; gap: 1.5rem; flex-wrap: wrap; }
.links a {
  color: var(--fg); text-decoration: none;
  border-bottom: 1px solid transparent; transition: border-color .2s, color .2s;
}
.links a:hover { color: var(--accent); border-color: var(--accent); }
.scroll-hint { position: absolute; bottom: 2rem; left: var(--gutter); color: var(--muted); font-size: .85rem; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.block {
  min-height: 80vh;
  max-width: calc(680px + var(--gutter));
  padding: 20vh 16px 20vh var(--gutter);
}
.block h2 { font-size: 2rem; font-weight: 600; margin-bottom: 1rem; }
.block p { font-size: 1.15rem; color: #cfcfcf; }
code { background: #111; padding: 0 .3em; border-radius: 3px; }
footer { color: var(--muted); padding: 4rem 16px 4rem var(--gutter); font-size: .85rem; }
.name-zh {
  letter-spacing: 0.05em;
  margin-left: 0.3em;
  white-space: nowrap;
}
.block p + p { margin-top: 1rem; }
.block a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(158, 203, 255, .35); }
.block a:hover { border-color: var(--accent); }
.entry + .entry { margin-top: 1.5rem; }
.block .role { color: var(--fg); font-weight: 400; }
.block .detail { margin-top: .25rem; padding-left: 1.5rem; }
/* Keep a phrase on one line on wide screens; let it wrap on phones. */
@media (min-width: 900px) { .keep-line { white-space: nowrap; } }
