/* One homepage identity, isolated from each experience's typography. */
html body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
html body a.yinian-brand {
  box-sizing:border-box; display:inline-flex; align-items:center; justify-content:flex-start;
  flex:0 0 auto; gap:14px; width:auto; height:auto; min-height:70px;
  margin:0; padding:6px 8px; border:0; border-radius:0; background:var(--paper,var(--display-bg,#f2f1eb));
  color:var(--ink,var(--display-ink,#263940)); text-decoration:none; text-align:left; text-transform:none;
  font-family:var(--font-ui); font-weight:var(--weight-label);
  letter-spacing:normal; white-space:nowrap; line-height:1.25;
  box-shadow:none; writing-mode:horizontal-tb; pointer-events:auto;
}
html body .yinian-brand .yinian-brand-seal {
  box-sizing:content-box; display:block; position:static; flex:none; width:auto; height:auto;
  margin:0; padding:8px 7px; border:3px double #fcf9f2; outline:1px solid #9b2922;
  background:#9b2922; color:#fcf9f2; font:var(--weight-heading) var(--text-lg)/1.08 var(--font-ui);
  transform:rotate(-3deg); writing-mode:horizontal-tb; text-align:center;
}
html body .yinian-brand .yinian-brand-word {
  display:block; position:static; width:auto; height:auto; margin:0; padding:0; border:0;
  color:var(--ink,var(--display-ink,#263940)); font:var(--weight-heading) var(--text-3xl)/1.25 var(--font-ui);
  writing-mode:horizontal-tb; text-wrap:balance;
}
html body .yinian-brand .yinian-brand-word small {
  display:block; margin:0; padding:0; color:var(--muted,var(--display-muted,#596b68)); font:var(--weight-body) var(--text-xs)/1.8 var(--font-ui);
  letter-spacing:normal; text-transform:none;
}
html body a.yinian-brand:focus-visible {outline:2px solid var(--display-focus,#9b2922); outline-offset:5px}
.yinian-brand-header {display:flex;align-items:center;gap:16px;padding:16px 24px}
html body header:has(> .yinian-brand) { flex-wrap:wrap; gap:16px; }
html body .hud:has(> .yinian-brand) { align-items:center; }
html body .hud:has(> .yinian-brand) .mark-seal { display:none; }
html body .topbar:has(> .language-switcher) {grid-template-columns:auto auto 1fr auto}
@media(max-width:600px) {
  html body a.yinian-brand {gap:10px;min-height:62px;padding:4px 6px}
  html body .yinian-brand .yinian-brand-seal {font-size:var(--text-base);padding:6px}
  html body .yinian-brand .yinian-brand-word {font-size:var(--text-2xl)}
  html body header:has(> .yinian-brand) {column-gap:12px;row-gap:8px}
  html body .hud:has(> .yinian-brand) .mark {order:3;flex-basis:100%}
  html body .hud:has(> .yinian-brand) .toggles {flex-wrap:wrap;gap:8px}
  html body .topbar:has(> .language-switcher) {grid-template-columns:1fr auto auto}
  html body .topbar:has(> .language-switcher) .current-module {grid-row:2;grid-column:1/-1;justify-self:center}
}
