@font-face {
  font-family: Archivo;
  src: url('/archivo-latin-variable.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 70% 125%;
  font-display: swap;
}
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #fafaf7;
  --ink: #121316;
  --muted: #626873;
  --line: #e7e7e2;
  --wash: #f0f0ec;
  --orange: #f25f0a;
  --orange-text: #b74304;
  --gain: #0b8a5c;
  --loss: #d63b2f;
  --warning: #96620a;
  --focus: #b74304;
  --font: Archivo, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0f1012;
  --ink: #f1f1ec;
  --muted: #a2a5ad;
  --line: #26282d;
  --wash: #1a1b1f;
  --orange: #f97316;
  --orange-text: #ffa667;
  --gain: #3ecf8e;
  --loss: #ff6b6b;
  --warning: #ffbc49;
  --focus: #f97316;
}
.site-header, .site-footer { background: var(--paper); color: var(--ink); font-family: var(--font); }
.site-shell { width: min(100% - 104px, 1696px); margin-inline: auto; }
.site-header { border-bottom: 2px solid var(--ink); }
.site-header-inner { display: flex; align-items: center; min-height: 56px; gap: 34px; }
.site-wordmark { flex: none; color: var(--ink); font-size: 17px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.site-wordmark span, .site-accent, .accent { color: var(--orange); }
.site-nav { display: flex; align-items: center; align-self: stretch; gap: 26px; }
.site-nav a { position: relative; display: flex; align-items: center; color: var(--muted); font-size: 13px; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a[aria-current="page"] { padding-left: 13px; font-weight: 700; }
.site-nav a[aria-current="page"]::before { content: ''; position: absolute; left: 0; top: calc(50% - 3.5px); width: 7px; height: 7px; background: var(--orange); }
.site-header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.site-header-note { color: var(--muted); font-size: 11px; white-space: nowrap; }
.theme-toggle { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 32px; min-width: 32px; padding: 0 8px; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); cursor: pointer; font: 700 12px/1 var(--font); transition: background 170ms var(--ease), color 170ms var(--ease), transform 170ms var(--ease); }
.theme-toggle:hover { background: var(--ink); color: var(--paper); }
.theme-toggle:active { transform: translateY(1px); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-sun { display: none; }
:root[data-theme="dark"] .theme-sun { display: block; }
:root[data-theme="dark"] .theme-moon { display: none; }
.theme-toggle:focus-visible, .site-header a:focus-visible, .site-footer a:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.site-footer { border-top: 1px solid var(--line); }
.site-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; min-height: 80px; color: var(--muted); font-size: 12px; }
.site-footer-brand { color: var(--ink); font-size: 13px; font-weight: 800; }
.site-footer a { color: var(--muted); text-underline-offset: 4px; }
.site-footer a:hover { color: var(--ink); }
.site-footer-detail { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 0 0 22px; color: var(--muted); font-size: 11px; }
@media (max-width: 720px) {
  .site-shell { width: calc(100% - 40px); }
  .site-header-inner { gap: 18px; }
  .site-header-note { display: none; }
}
@media (max-width: 420px) {
  .site-header-inner { gap: 13px; }
  .site-wordmark { font-size: 15px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12px; }
  .site-header-actions { gap: 0; }
  .theme-toggle { padding: 0; }
  .theme-toggle-label { display: none; }
  .site-footer-inner { padding: 23px 0; }
  .site-footer-inner > span:nth-child(2) { display: none; }
}
@media (max-width: 350px) {
  .site-wordmark { font-size: 13px; }
  .site-nav { gap: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .theme-toggle { transition: none; }
}
