:root {
  --paper: #FBFAF7;
  --card: #FFFFFF;
  --ink: #292E34;
  --heading: #203447;
  --muted: #60676B;
  --gray: var(--muted);
  --accent: #233C50;
  --hover: #182D3E;
  --olive: var(--accent);
  --gold: #A68B58;
  --cream: #F1F0EA;
  --line: #DEDCD4;
  --hair: var(--line);
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Segoe UI", sans-serif;
  --serif: "AppleMyungjo", "Batang", "Noto Serif CJK KR", Georgia, serif;
  --radius: 8px;
  color-scheme: light;
}
html:lang(en) { --serif: Georgia, "Times New Roman", serif; }
* { box-sizing: border-box; }
@media screen {
  html { background: var(--paper); scroll-behavior: smooth; }
  body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
  p { margin: 0; font-size: 18px; line-height: 1.9; overflow-wrap: anywhere; }
  :lang(ko) { word-break: keep-all; }
  h1, h2, h3 { color: var(--heading); margin: 0; font-family: var(--serif); font-weight: 700; text-wrap: balance; overflow-wrap: anywhere; }
  h1 { line-height: 1.25; }
  h2, h3 { line-height: 1.4; }
  a { color: inherit; text-underline-offset: .22em; text-decoration-thickness: 1px; }
  a:hover { color: var(--accent); }
  :where(a, button, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
  :where(a, button) { touch-action: manipulation; }
  picture { display: block; min-width: 0; }
  img { max-width: 100%; }
  .label { font-family: var(--sans); color: var(--muted); font-size: 14px; font-weight: 700; line-height: 1.5; letter-spacing: .14em; text-transform: uppercase; }
  .profile-primary strong { font-weight: 600; color: var(--heading); }
  .small { color: var(--muted); font-family: var(--sans); font-size: 15px; line-height: 1.8; }
  .btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 48px; padding: 12px 20px; border: 1px solid var(--accent); border-radius: 5px; background: var(--accent); color: #fff; font: 600 16px/1.45 var(--sans); text-decoration: none; text-align: center; }
  .btn:hover { background: var(--hover); border-color: var(--hover); color: #fff; }
  .btn.ghost { background: transparent; color: var(--accent); border-color: var(--line); }
  .btn.ghost:hover { background: var(--cream); border-color: var(--accent); }
  .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
  nav.top { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: var(--paper); }
  nav.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; }
  nav.top .brand { color: var(--heading); display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; font: 700 24px/1.3 var(--serif); text-decoration: none; }
  nav.top .home { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px 12px; font-size: 15px; line-height: 1.5; color: var(--muted); text-decoration: none; border-radius: 4px; }
  nav.top .home:hover { color: var(--accent); background: var(--cream); }
  footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font: 15px/1.8 var(--sans); }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
}

/* Profile roles: flow as one line of roles separated by middle dots, and wrap only between roles (Korean) */
html .roles > span.profile-primary, html .roles > span.profile-secondary,
html .intro span.profile-primary, html .intro span.profile-secondary,
html .roles span.role, html .intro span.role { display: inline; }
html:lang(ko) .roles span.role, html:lang(ko) .intro span.role { white-space: nowrap; }
html .roles > span.profile-identity { display: block; margin-bottom: 12px; }
