/* Hallmark · genre: editorial · macrostructure: Catalogue (index list)
 * design-system: DESIGN.md · designed-as-app
 * theme: custom OKLCH anchored on the ik-neet brand cyan (#159BD3)
 * axes: paper-band light · display-style system-sans · accent-hue cool
 *
 * ik-neet.com shared design tokens.
 * 公開トップ（index.html）と管理ツール（/admin）の唯一の色・寸法ソース。
 * ここ以外に生の色値や font-family を書かないこと。
 *
 * ライト一本。ダークテーマは採用しない（サムネイルが明るい画面のスクショ主体で、
 * 暗い地では一覧のまとまりが崩れるため）。
 */

:root {
  color-scheme: light;

  /* --- surface & ink --- */
  --color-paper: oklch(98.5% 0.004 240);
  --color-paper-2: oklch(100% 0 0);
  --color-paper-3: oklch(96% 0.006 240);
  --color-ink: oklch(29% 0.028 254);
  --color-ink-2: oklch(52% 0.025 250);
  --color-rule: oklch(90% 0.012 240);
  --color-rule-strong: oklch(82% 0.016 240);

  /* --- accent --- */
  --color-accent: oklch(50% 0.1 233);
  --color-accent-bright: oklch(64% 0.125 233);
  --color-accent-ink: oklch(100% 0 0);
  --color-accent-wash: oklch(96% 0.022 233);
  --color-focus: oklch(58% 0.15 235);
  --color-danger: oklch(52% 0.16 27);
  --color-danger-wash: oklch(96% 0.02 27);

  /* --- translucent chrome (material) --- */
  --material-chrome: oklch(98.5% 0.004 240 / 0.72);
  --material-float: oklch(100% 0 0 / 0.86);
  --material-blur: 20px;
  --scrim: oklch(22% 0.02 250 / 0.42);
  --shadow-float: 0 1px 2px oklch(29% 0.028 254 / 0.06), 0 12px 32px oklch(29% 0.028 254 / 0.14);
  --shadow-lift: 0 1px 2px oklch(29% 0.028 254 / 0.05), 0 4px 12px oklch(29% 0.028 254 / 0.08);

  /* --- type --- */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;

  --text-2xs: 0.75rem;
  --text-xs: 0.8125rem;
  --text-sm: 0.875rem;
  --text-md: 0.9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.75rem;

  /* tracking はサイズ別。大きい字ほど詰める。 */
  --track-display: -0.02em;
  --track-heading: -0.012em;
  --track-body: 0em;
  --track-small: 0.01em;

  --leading-display: 1.2;
  --leading-heading: 1.35;
  --leading-body: 1.65;
  --leading-tight: 1.45;

  /* --- 4pt spacing scale --- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --rule-hair: 1px;
  --measure: 34rem;
  --page-width: 60rem;
  --chrome-height: 3.5rem;

  /* --- motion: 3 named easings のみ。bounce は使わない --- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-instant: 90ms;
  --dur-short: 180ms;
  --dur-medium: 280ms;
}

/* 半透明を減らす設定では材質を不透明に寄せる */
@media (prefers-reduced-transparency: reduce) {
  :root {
    --material-chrome: var(--color-paper);
    --material-float: var(--color-paper-2);
    --material-blur: 0px;
  }
}

/* コントラスト強調では罫線を実線寄りに */
@media (prefers-contrast: more) {
  :root {
    --color-ink-2: oklch(38% 0.03 250);
    --color-rule: oklch(70% 0.02 240);
    --color-rule-strong: oklch(52% 0.03 240);
    --material-chrome: var(--color-paper);
    --material-float: var(--color-paper-2);
    --material-blur: 0px;
  }
}
