/*
  theme.css -- your theme overrides. This is the file to edit to
  retheme the site.

  Every design token lives in src/styles/tokens.css (colors, gradients,
  type scale, spacing, layout, shadows) with its default value. Override
  any of them here: declarations in this file are unlayered, so they
  always beat the @layer base defaults in tokens.css.

  Colors are defined with light-dark(). Overriding with a plain color
  changes light and dark mode at once; use light-dark(<light>, <dark>)
  to set different values per mode.

  Rebranding usually only needs --color-brand-* and --color-accent-* --
  the gradient tokens follow automatically. For a flat, gradient-free
  brand, set the --gradient-* tokens to solid colors.

  Webfonts are loaded in astro.config.mjs (--font-body). Swap the loaded
  font there; use overrides here for system fonts or a separate heading
  face.

  Example:

  :root {
    --color-brand: light-dark(#0d9488, #2dd4bf);
    --color-accent: #f59e0b;
    --font-weight-display: 700;
  }
*/

:root {
}

/* News listing top bar (language switcher alignment) */
.news-topbar {
	display: flex;
	justify-content: flex-end;
	padding-top: 1.5rem;
}

:root {
	/* 系统字体栈：覆盖中日英三语字形，无外部字体请求 */
	--font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
		"PingFang SC", "Hiragino Sans", "Microsoft YaHei", "Yu Gothic",
		"Noto Sans CJK SC", sans-serif;
	--font-heading: var(--font-body);
}

/*
  日文页：正文 Meiryo（Apple 上对应 Hiragino Sans），标题游ゴシック（macOS 自带
  YuGothic，iOS 无则回落 Hiragino Sans）。避免落到 PingFang SC / 雅黑的中文字形。
*/
:root:lang(ja) {
	--font-body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo,
		sans-serif;
	--font-heading: "Yu Gothic", YuGothic, "Hiragino Sans", Meiryo, sans-serif;
	--font-weight-heading: 700;
}

:root {
	/* Zenmat 品牌色：参考图同款深蓝 */
	--color-brand: light-dark(#07182c, #7fa8e8);
	--color-brand-strong: light-dark(#061528, #a5c4f5);
	--color-brand-soft: light-dark(#234565, #b8d0f0);
	--color-accent: light-dark(#1c4b70, #8fb8ea);
	--color-accent-soft: light-dark(#dce8f7, #24406b);
}
