@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("fonts/geist-mono-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@property --edge-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

:root {
  --font-ui: "Geist", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "SF Mono", "JetBrains Mono", Menlo, Consolas, "Noto Sans Mono CJK SC", "Noto Sans CJK SC", monospace;

  --site-bg: #eeeff1;
  --site-panel: #ffffff;
  --site-panel-2: #f7f7f8;
  --site-well: #e9eaed;
  --site-hover: rgba(30, 32, 36, 0.06);
  --site-ink: #1e2024;
  --site-ink-2: #3c4047;
  --site-muted: #6b7079;
  --site-faint: #9a9ea6;
  --site-rule: rgba(30, 32, 36, 0.1);
  --site-rule-strong: rgba(30, 32, 36, 0.17);
  --site-blue: #3452ff;
  --site-blue-ink: #2a43e0;
  --site-blue-wash: rgba(52, 82, 255, 0.09);
  --site-red: #cf432b;
  --site-grid: rgba(52, 82, 255, 0.06);
  --site-lime: #c4ec5f;
  --rim-top: rgba(255, 255, 255, 0.95);
  --site-shadow: 0 30px 70px -40px rgba(20, 24, 40, 0.34), 0 2px 8px rgba(20, 24, 40, 0.05);
  --code-bg: #fafafb;
  --code-ink: #2a2e35;
  --hint-bg: rgba(30, 32, 36, 0.06);
  --rod: rgba(52, 82, 255, 0.1);
  --rod-hi: rgba(255, 255, 255, 1);
  --rod-lo: rgba(30, 40, 90, 0.12);
  --dot: rgba(30, 32, 36, 0.09);
  --floor: rgba(20, 24, 40, 0.2);

  --frame: #f7f7f8;
  --frame-edge: #cdd0d5;
  --window: #ffffff;
  --dots: #d6d9dd;
  --address: #eeeff1;
  --strap: #cdd0d5;
  --case-1: #ffffff;
  --case-2: #d5dae1;
  --case-3: #a7b0bb;
  --case-hi: rgba(255, 255, 255, 0.55);
  --metal: linear-gradient(#e4e8ed, #a9b0ba 50%, #7a828d);

  --logo-ink: #39424c;
  --logo-see: #cf432b;
  --logo-ui: #3452ff;

  --site-gutter: clamp(18px, 4vw, 56px);
  --site-max: 1400px;

  --syn-type: #155e9c;
}

:root[data-theme="dark"] {
  --site-bg: #0e0f11;
  --site-panel: #141518;
  --site-panel-2: #17181b;
  --site-well: #0b0c0e;
  --site-hover: rgba(236, 236, 238, 0.06);
  --site-ink: #ececee;
  --site-ink-2: #c6c8cd;
  --site-muted: #8e9198;
  --site-faint: #5f6268;
  --site-rule: rgba(236, 236, 238, 0.08);
  --site-rule-strong: rgba(236, 236, 238, 0.15);
  --site-blue: #6f82ff;
  --site-blue-ink: #8c9aff;
  --site-blue-wash: rgba(111, 130, 255, 0.13);
  --site-red: #e5533b;
  --site-grid: rgba(140, 154, 255, 0.07);
  --site-lime: #c8ee72;
  --rim-top: rgba(255, 255, 255, 0.045);
  --site-shadow: 0 40px 90px -46px rgba(0, 0, 0, 0.9), 0 2px 10px rgba(0, 0, 0, 0.3);
  --code-bg: #101114;
  --code-ink: #d9dbe0;
  --hint-bg: rgba(236, 236, 238, 0.07);
  --rod: rgba(111, 130, 255, 0.13);
  --rod-hi: rgba(255, 255, 255, 0.13);
  --rod-lo: rgba(0, 0, 0, 0.5);
  --dot: rgba(236, 236, 238, 0.06);
  --floor: rgba(0, 0, 0, 0.62);

  --frame: #151619;
  --frame-edge: #393b40;
  --window: #18191c;
  --dots: #3c3e43;
  --address: #0f1012;
  --strap: #1a1b1e;
  --case-1: #4a515c;
  --case-2: #1c2027;
  --case-3: #0a0b0e;
  --case-hi: rgba(154, 157, 163, 0.55);

  --logo-ink: #eef0f4;
  --logo-see: #e5533b;
  --logo-ui: #6f82ff;

  --syn-type: #8ec5ff;
}

/* Focus mode shares the brand accent instead of the old cyan. */
:root {
  --signal: #3452ff;
  --signal-bright: #2a43e0;
  --signal-deep: #2238b8;
  --signal-on: #ffffff;
  --signal-wash: rgba(52, 82, 255, 0.09);
  --signal-edge: rgba(52, 82, 255, 0.42);
  --signal-glow: rgba(52, 82, 255, 0.16);
  --live: #cf432b;
}

:root[data-theme="dark"] {
  --signal: #6f82ff;
  --signal-bright: #8c9aff;
  --signal-deep: #4b5fd6;
  --signal-on: #0b0d1a;
  --signal-wash: rgba(111, 130, 255, 0.12);
  --signal-edge: rgba(111, 130, 255, 0.45);
  --signal-glow: rgba(111, 130, 255, 0.2);
  --live: #e5533b;
}

.site-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--site-muted);
  font: 500 13px/1 var(--font-ui);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.site-action:hover,
.site-action:focus-visible {
  color: var(--site-ink);
  background: var(--site-hover);
  outline: none;
}

.site-action:focus-visible { box-shadow: 0 0 0 2px var(--site-blue-wash), 0 0 0 1px var(--site-blue); }
.site-action svg { display: block; }

.site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--site-rule-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--site-ink);
  font: 500 14px/1 var(--font-ui);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.site-cta:hover { background: var(--site-hover); }
.site-cta:active { transform: translateY(1px); }
.site-cta:focus-visible { outline: 2px solid var(--site-blue); outline-offset: 2px; }

.site-cta.primary {
  border-color: transparent;
  background: var(--site-ink);
  color: var(--site-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.site-cta.primary:hover { background: color-mix(in srgb, var(--site-ink) 84%, var(--site-blue)); }
