/* =========================================================
   Design tokens: the design language of hongbeepark.com
   ---------------------------------------------------------
   Change a value here and every page follows.
   Components in site.css read only these variables.
   See DESIGN.md for when to use each token.
   ========================================================= */
:root{
  /* ---------- Color ---------- */
  --ink:#14151b;            /* strongest text, dark buttons, active dots */
  --text:#3e3e43;           /* headings and primary text */
  --muted:#6c6e7c;          /* secondary text, descriptions, labels */
  --faint:#a8aab3;          /* tertiary text, placeholders, separators */
  --line:rgba(20,21,27,.08);        /* hairline dividers */
  --line-strong:rgba(20,21,27,.14); /* outlined buttons */
  --surface:#fff;           /* page and sheet */
  --surface-2:#f5f5f7;      /* media placeholders, soft buttons, stat tiles */
  --surface-3:#ececf0;      /* hover on surface-2 */
  --accent:#1500ff;         /* text selection, focus ring, category pill */
  --accent-soft:rgba(21,0,255,.07);
  --hero-bg:#eceef5;        /* hero color when no image is set */

  /* ---------- Type ---------- */
  --sans:'42dot Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;
  --mono:'Roboto Mono',ui-monospace,SFMono-Regular,monospace;

  /* size / line height / letter spacing, matched to trajectory.ai */
  --fs-display:52px; --lh-display:56px; --ls-display:-1.3px;  /* detail page title */
  --fs-h1:42px;      --lh-h1:56px;      --ls-h1:-1.05px;      /* hero title */
  --fs-h2:36px;      --lh-h2:40px;      --ls-h2:-.9px;        /* section title */
  --fs-h3:24px;      --lh-h3:30px;                            /* article heading */
  --fs-h4:20px;      --lh-h4:28px;                            /* article sub heading */
  --fs-title:18px;   --lh-title:24px;                         /* card title, pager */
  --fs-lead:17px;    --lh-lead:26px;                          /* hero text, intro text */
  --lh-prose:27px;                                            /* article paragraphs at 17px */
  --fs-body:16px;    --lh-body:24px;                          /* list titles, about, contact */
  --fs-small:15px;   --lh-small:22px;                         /* card descriptions */
  --fs-meta:14px;    --lh-meta:20px;                          /* meta, list descriptions, nav */
  --fs-caption:13px; --lh-caption:18px;                       /* labels, buttons, footer */
  --fs-micro:12px;   --lh-micro:16px;                         /* pills, fact labels, tooltips */

  /* mobile overrides for the large sizes */
  --fs-display-sm:34px; --lh-display-sm:40px;
  --fs-h1-sm:32px;      --lh-h1-sm:40px;
  --fs-h2-sm:28px;      --lh-h2-sm:32px;

  --fw-regular:400;
  --fw-medium:500;

  /* ---------- Space ---------- */
  --maxw:1280px;                       /* page width */
  --prose:46rem;                       /* article column */
  --gutter:clamp(20px,4vw,56px);       /* page side padding */
  --section-y:clamp(64px,8vw,112px);   /* space between home sections */
  --head-gap:40px;                     /* section title to content */
  --row-y:12px;                        /* compact list row padding */
  --sheet-overlap:clamp(64px,15svh,136px);

  /* ---------- Shape ---------- */
  --radius-sm:10px;    /* small controls */
  --radius-md:16px;    /* photos, stat tiles, code */
  --radius-lg:20px;    /* cards, pager */
  --radius-xl:24px;    /* sheet top, cover, figures */
  --radius-pill:999px; /* buttons, pills, nav pill */

  /* ---------- Elevation ---------- */
  --shadow-nav:0 0 0 1px rgba(20,21,27,.05),0 1px 2px 0 rgba(20,21,27,.06),0 12px 32px -8px rgba(20,21,27,.16);
  --shadow-nav-off:0 0 0 1px rgba(20,21,27,0),0 1px 2px 0 rgba(20,21,27,0),0 12px 32px -8px rgba(20,21,27,0);
  --shadow-sheet:0 -24px 60px -32px rgba(20,21,27,.22);

  /* ---------- Motion ---------- */
  --ease-expo:cubic-bezier(.19,1,.22,1);        /* nav, rail, reveals */
  --ease-soft:cubic-bezier(.333,.667,.667,1);   /* hover color */
  --ease-page-out:cubic-bezier(.58,0,.38,1);    /* page transition, leaving page */
  --ease-page-in:cubic-bezier(.76,0,.2,1);      /* page transition, arriving page */
  --dur-fast:.2s;
  --dur-base:.5s;
  --dur-page:1s;
  --ease-tone:cubic-bezier(.65,0,.35,1);       /* light to dark switch, same curve as the reference */
  --dur-tone-ground:.9s;        /* dark ground fades in under the content */
  --dur-tone-ink:.3s;           /* text and lines change after the ground has started */
  --delay-tone-ink:.3s;
  --dur-theme:var(--dur-tone-ground);
  --tone-paper:#ffffff;         /* sheet color, never animated */
  --tone-ground:#25262c;        /* dark layer that fades in over the sheet at About */

  /* ---------- Charts (assets/js/viz.js) ----------
     Soft pastel fills with a darker line and ink of the same hue. */
  --chart-blue:#7d9fd6;   --chart-blue-fill:#dde8fa;   --chart-blue-ink:#34588f;
  --chart-warm:#e59a72;   --chart-warm-fill:#f9dfcd;   --chart-warm-ink:#9a4f22;
  --chart-green:#7fbf97;  --chart-green-fill:#dcf0e2;  --chart-green-ink:#2e6a45;
  --chart-gray-fill:#ececee; --chart-gray-line:#cfd0d6;

  /* ---------- Bottom reveal ---------- */
  --reveal-h:clamp(240px,26vw,380px);  /* height of the background shown under the page */
}

/* ---------- Dark theme (About and Contact on the home page) ----------
   Applied by adding .is-dark to the sheet. The values below replace
   the light ones and animate because the variables are registered. */
.is-dark{
  --ink:#ffffff;
  --text:#ececef;
  --muted:#a3a5b0;
  --faint:#6f717c;
  --line:rgba(255,255,255,.10);
  --line-strong:rgba(255,255,255,.18);
  --surface:#25262c;
  --surface-2:rgba(255,255,255,.07);
  --surface-3:rgba(255,255,255,.12);
}
@property --ink{syntax:'<color>';inherits:true;initial-value:#14151b;}
@property --text{syntax:'<color>';inherits:true;initial-value:#3e3e43;}
@property --muted{syntax:'<color>';inherits:true;initial-value:#6c6e7c;}
@property --faint{syntax:'<color>';inherits:true;initial-value:#a8aab3;}
@property --line{syntax:'<color>';inherits:true;initial-value:rgba(20,21,27,.08);}
@property --line-strong{syntax:'<color>';inherits:true;initial-value:rgba(20,21,27,.14);}
@property --surface{syntax:'<color>';inherits:true;initial-value:#fff;}
@property --surface-2{syntax:'<color>';inherits:true;initial-value:#f5f5f7;}
@property --surface-3{syntax:'<color>';inherits:true;initial-value:#ececf0;}
