// ── Site-wide configuration — the one file for names, links and standfirst text. ──
// Every page imports from here. Edit confidently: values are plain strings.
// Restart `npm run dev` after changes (or just `npm run build`).

export const SITE = {
  /** Person / brand name, used in <title>, meta and footer */
  name: 'Hangyeol Bae',
  /** Short brand mark in the nav */
  brand: 'HB.',
  /** Canonical home — keep in sync with astro.config.mjs `site` */
  domain: 'hanthebot.dev',
  url: 'https://hanthebot.dev',

  /** <title> and meta description for the home page */
  title: 'Hangyeol Bae — hanthebot.dev',
  description:
    'Hangyeol Bae. Computer Science and Mathematics undergraduate at HKUST. ' +
    'Cryptography, systems, and custom keyboards. On national service until August 2027, returning Fall 2027.',

  /** Hero copy (single sentence) */
  heroLine: 'Computer Science and Mathematics undergraduate, HKUST',
  heroNow:
    'Currently completing national service in South Korea (software engineer) until August 2027; returning to campus in Fall 2027.',

  /** External identity. Leave a value empty ('') to hide the link everywhere. */
  links: {
    email: 'hanthebot@gmail.com',
    github: 'https://github.com/Hanthebot',
    linkedin: 'https://www.linkedin.com/in/hangyeol-bae-1bab15239/',
    telegram: 'https://t.me/haninthai', // shown as text in About
    discord: 'hanb_01', // shown as text in About
    notes: 'https://books.hanthebot.dev',
    cv: 'https://hanthebot.dev/cv.pdf',
    company: 'http://bksnp.com/',
  },
};

/** Fixed vocabulary used across the site. Do not invent new values ad hoc;
 *  extend the enums in src/content.config.ts and add mappings here. */
export const STATUS_LABELS: Record<string, string> = {
  active: 'Active',
  hibernating: 'Hibernating',
  archived: 'Archived',
};

export const AUTHORSHIP_LABELS: Record<string, string> = {
  own: 'Own work',
  'ai-assisted': 'AI-assisted',
  'vibe-coded': 'AI-generated',
  'own-hw-vibe-fw': 'Own hardware · AI-generated firmware',
};

export const TYPE_DESCRIPTIONS: Record<string, string> = {
  research: 'Academic / algorithmic work',
  systems: 'Infrastructure and tooling',
  hardware: 'Physical builds',
  hobby: 'Off-hours projects',
};

/** Draft policy: drafts are hidden in production, visible in dev and in
 *  `npm run build:drafts`. Do not edit the function body. */
export function includeDrafts(): boolean {
  return import.meta.env.DEV || process.env.PREVIEW_DRAFTS === '1';
}
