/* SciPen Studio design tokens. Values were measured from cursor.com on 2026-10-16 and adapted as recorded
   in DESIGN_BRIEF.md ("参考网站：Cursor"): warm paper and ink neutrals, brand blue as the only accent, and
   regular-weight type throughout. Sizes are in rem so the whole scale steps down with the root on phones,
   the way the reference does (16px to 15px). */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-4.1-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2010-2015, U+2020-2022, U+2030, U+2039-203A, U+20AC, U+2122, U+2190-2199, U+2212;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono-2.304-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00FF, U+2190-2199, U+2212;
}

:root {
  color-scheme: light;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;

  /* Neutrals. Secondary text is the ink mixed into the paper at 68%: 5.2:1 on paper, 5.0:1 on cards. */
  --paper: #f7f7f4;
  --card: #f2f1ed;
  --card-hover: #ebeae5;
  --chip: #e6e5e0;
  --ink: #26251e;
  --muted: #696862;
  --line: rgb(38 37 30 / 0.1);
  --line-strong: rgb(38 37 30 / 0.2);
  --scrim: rgb(38 37 30 / 0.62);

  /* The only accent. */
  --brand: #1e40af;
  --brand-hover: #1e3a8a;
  --brand-rgb: 30 64 175;
  --brand-tint: rgb(30 64 175 / 0.08);
  --on-brand: #ffffff;
  --focus: var(--brand);

  /* Soft brand backdrop behind product windows, where the reference uses a painting. */
  --backdrop:
    radial-gradient(120% 90% at 12% 0%, #e4eaf6 0%, rgb(228 234 246 / 0) 62%),
    radial-gradient(90% 110% at 100% 100%, #cdd8ee 0%, rgb(205 216 238 / 0) 58%),
    linear-gradient(160deg, #eceff6 0%, #dfe5f1 55%, #d6deee 100%);

  /* Type scale (measured px at a 16px root). */
  --text-xs: 0.75rem;      /* 12 */
  --text-sm: 0.875rem;     /* 14 */
  --text-base: 1rem;       /* 16 */
  --text-lg: 1.125rem;     /* 18 */
  --text-title: 1.5rem;    /* 24: feature titles, guide sections */
  --text-hero: 2.25rem;    /* 36: hero title */
  --text-section: 2.25rem; /* 36: centred section titles, page titles */
  --text-display: 4.5rem;  /* 72: closing title */

  /* Layout. */
  --page: 1340px;          /* 1300 of content plus the 20px gutters */
  --gutter: 20px;
  --header-h: 52px;
  --section-y: 4.2rem;     /* 67.2px; 63px on phones */
  --radius: 4px;
  --radius-window: 10px;
  --radius-pill: 9999px;
  --shadow-window: 0 28px 70px rgb(0 0 0 / 0.14), 0 14px 32px rgb(0 0 0 / 0.1), 0 0 0 1px var(--line);
  --shadow-float: 0 1px 2px rgb(0 0 0 / 0.08), 0 0 0 1px var(--line);
  --transition: 160ms ease;
}
