/* CJK-only faces use heavier optical weights; Latin glyphs and CSS weights stay unchanged. */
:root {
  --page-gutter:clamp(20px,4vw,64px);
  font-family:'Furgazy Han Sans',-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
}
/* A shared outer safe area keeps the navigation and section surfaces off the edges. */
body {
  padding-left:max(var(--page-gutter),env(safe-area-inset-left,0px));
  padding-right:max(var(--page-gutter),env(safe-area-inset-right,0px));
}
.shell,
.site-header>.nav,
.wall-section.is-expanded .wall-viewport {
  width:min(1320px,calc(100% - 40px));
}
.site-header { margin:16px auto 0; top:12px; max-width:1360px; }
.public-header-dark {
  font-family:'Furgazy Han Serif',-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC','Microsoft YaHei',sans-serif;
}
/* Public-site typography. The workbench keeps its own application typography. */
h1,h2,h3,.mega-title {
  font-family: 'Furgazy Han Serif','Furgazy Serif','Noto Serif SC','Songti SC','STSong','SimSun',serif;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.22;
}
.hero h1 { letter-spacing: -.035em; line-height: 1.18; }
.project-copy h3,.note-card h3,.journal-row h2 { letter-spacing: -.015em; }

/* The same glass surface in a dark tint, scoped to the public navigation. */
.site-header.liquid-glass-status.public-header-dark {
  --liquid-card-border: rgba(218,232,244,.19);
  --liquid-card-surface: radial-gradient(ellipse at 8% 0%, rgba(240,248,255,.075), transparent 48%),
    linear-gradient(115deg,rgba(12,16,21,.96),rgba(21,27,34,.94));
  --liquid-card-shadow: 0 8px 25px rgba(10,18,28,.16),inset 0 1px rgba(245,250,255,.12);
  --status-ink: #f5f7fb;
  --status-muted: #c7d1dc;
  --status-control: rgba(223,236,248,.045);
  --status-hover: rgba(223,236,248,.1);
  --status-control-border: rgba(223,236,248,.18);
  --status-rim: rgba(245,250,255,.11);
  color: var(--status-ink);
}
.public-header-dark .brand-dot { color: #bad4e6; }
.public-header-dark .mobile-menu > span { background: var(--status-ink); }
.public-header-dark .nav-menu[data-current] summary { color: #c1e3fa; }
.public-header-dark :is(a,button,summary):focus-visible { outline-color: #bde5ff; }
.public-header-dark .mega {
  background: #161c23;
  color: #f5f7fb;
  border: 1px solid rgba(218,232,244,.17);
  box-shadow: 0 20px 40px rgba(5,12,20,.2);
}
.public-header-dark .mega .eyebrow,
.public-header-dark .mega-inner p:not(.eyebrow):not(.mega-title) { color: #b7c5d3; }
.public-header-dark .mega-links a:hover { color: #bfe4fd; }

/* White transparent water, shared by the hero and the horizontal brand mark. */
.brand img { width:40px; height:24px; }
.hero-drop::before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:radial-gradient(ellipse at 57% 49%,rgba(192,200,207,.32),rgba(215,220,225,.18) 43%,rgba(245,245,247,0) 72%);
}
.hero-drop::after {
  left:25%; right:9%; bottom:18%;
  background:#818b94;
  opacity:calc(.1 * var(--shadow-opacity));
}
.drop-entrance { animation-name:white-water-arrival; }
.ribbon-icon img { width:27px; height:27px; object-fit:contain; }
.about-content>img,
.site-footer .brand img {
  background:radial-gradient(ellipse,rgba(173,181,190,.72),rgba(195,201,207,.4) 45%,transparent 72%);
}
@keyframes white-water-arrival {
  from { opacity:0; transform:translateY(10px); filter:blur(3px); }
  to { opacity:1; transform:translateY(0); filter:blur(0); }
}
@media (prefers-reduced-motion:reduce) {
  .drop-entrance { animation:none; }
}
@media (max-width:540px) {
  .brand img { width:36px; height:22px; }
  .ribbon-icon img { width:23px; height:23px; }
}
@media (max-width:800px) {
  :root { --page-gutter:24px; }
  .shell,.site-header>.nav,.wall-section.is-expanded .wall-viewport { width:calc(100% - 24px); }
  .site-header { margin-top:12px; top:8px; }
  .public-header-dark .primary-nav {
    left:max(var(--page-gutter),env(safe-area-inset-left,0px));
    right:max(var(--page-gutter),env(safe-area-inset-right,0px));
  }
  .public-header-dark .primary-nav { background: #141a21; color: #f5f7fb; }
  .public-header-dark .nav-menu { border-bottom-color: rgba(218,232,244,.15); }
  .public-header-dark .mega { background: transparent; border: 0; box-shadow: none; }
  .public-header-dark .mega-links.secondary { border-top-color: rgba(218,232,244,.15); }
}
@media (max-width:540px) {
  :root { --page-gutter:16px; }
  .shell,.wall-section.is-expanded .wall-viewport { width:calc(100% - 16px); }
}
