#import "../../brand/colors.typ": *

#let color-icon = color-brand-deep
#let color-accent-bright = color-brand
#let color-accent = color-brand
#let color-skill-bar = color-brand
#let color-divider = color-muted.lighten(68%)
#let color-text-light = color-muted.lighten(32%)

#let heading-font = ("Microsoft YaHei", "Segoe UI")
#let body-font = ("Microsoft YaHei UI", "Microsoft YaHei", "Segoe UI")

// =====================================================================
// GreLin Resume · Design Tokens（唯一规范源）
// 字号四档：20 · 12 · 10.5 · 9
// 间距三档：6 · 12 · 18（+ 4 micro · 10.5 body 级）
// =====================================================================

// --- 字号 ---
#let size-name = 20pt
#let size-heading = 12pt
#let size-body = 10.5pt
#let size-secondary = 9pt
#let size-summary = size-body

// --- 行距 ---
#let leading-body = 13pt
#let leading-summary = leading-body
#let leading-entry = leading-body
#let leading-pill-wrap = 1.35em

// --- 间距 ---
#let space-none = 0pt
#let space-micro = 4pt
#let space-inline = 6pt
#let space-body = size-body
#let space-title-gap = 12pt
#let space-edu-notes-before = space-title-gap
#let space-edu-meta-gap = 10pt
#let leading-edu-notes = size-secondary
#let space-between-entries = 20pt
#let space-entry-title-above = 6pt
#let space-entry-title-below = 14pt
#let space-block = 18pt
#let space-main-section = 26pt
#let space-main-title-below = 14pt
#let space-hero-to-photo = space-block
#let space-column-gap = space-title-gap

#let space-subtitle-gap = space-body
#let space-subsection-gap = space-body
#let space-skill-gap = space-body
#let space-hero-name-gap = space-body
#let space-hero-title-gap = space-block

// --- 列表（行内换行与条目间距统一为正文级 10.5pt） ---
#let list-item-leading = space-body

// --- 描边 ---
#let stroke-divider = color-divider + 0.55pt
#let stroke-divider-sidebar = color-divider + 0.85pt
#let stroke-divider-column = 0.55pt
#let stroke-photo = color-divider + 0.6pt
#let stroke-pill = color-divider + 0.65pt
#let stroke-placeholder = color-divider + 0.5pt

// --- 组件尺寸 ---
#let photo-width = 33mm
#let photo-height = 40mm
#let skill-bar-height = 4pt
#let skill-bar-radius = 1pt
#let pill-radius = 3pt
#let pill-inset-x = 5pt
#let pill-inset-y = 2pt
#let pill-gap = space-inline
#let icon-size = 11pt
#let icon-column-width = icon-size
#let icon-box-size = icon-size
#let list-indent = 0.8em
#let list-body-indent = 0.4em

// --- 布局 ---
#let page-paper-width = 210mm
#let page-paper-height = 297mm
#let sidebar-column = 0.85fr
#let main-column = 2.15fr
#let corner-bar-width = 5mm
#let corner-bar-height = 21.6mm
#let corner-bar-inset-x = 0pt
#let corner-bar-inset-y = 11mm

#let page-margin = (
  top: 2cm,
  bottom: 2cm,
  left: 1.5cm,
  right: 1.5cm,
)
