/* Original stylesheet code: MIT. Copyright (c) 2026 Pierson Bian.
   Full license: /licenses/MIT.txt. Scope and excluded assets: /license/. */
:root {
  color-scheme: light;
  --text: #435064;
  --heading: #283a50;
  --muted: #697588;
  --link: #2867ac;
  --line: #e8ecf0;
  --content-width: 800px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--link); outline-offset: 5px; border-radius: 2px; }
::selection { background: #e1edfb; color: #213c5d; }

.skip-link { position: absolute; top: -100px; left: 16px; z-index: 10; background: #fff; padding: 8px 12px; }
.skip-link:focus { top: 12px; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  max-width: 1120px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-name { display: inline-flex; align-items: center; gap: 8px; color: var(--heading); font-size: 16px; font-weight: 650; letter-spacing: -.2px; white-space: nowrap; }
.site-name:hover { text-decoration: none; color: var(--link); }
.site-logo { display: block; width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { position: relative; padding: 26px 0 23px; color: var(--muted); font-size: 14px; }
.site-nav a:hover { color: var(--link); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--heading); }
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  height: 2px;
  background: var(--link);
  left: 0;
  right: 0;
  bottom: 17px;
}
.site-main { width: min(var(--content-width), calc(100% - 48px)); margin: 0 auto; padding-top: 58px; }
.profile { display: flex; align-items: center; gap: 30px; margin-bottom: 36px; }
.profile-portrait { display: block; width: 112px; height: auto; flex-shrink: 0; }
.profile-details { min-width: 0; }
h1, h2, h3 { color: var(--heading); line-height: 1.35; }
.profile-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.profile h1 { font-size: 30px; letter-spacing: -.7px; font-weight: 650; margin: 0; white-space: nowrap; }
.profile p { margin: 2px 0; font-size: 15px; }
.profile-role { color: var(--text); }
.profile-alias, .profile-location { color: var(--muted); }
.profile-alias { font-size: 14px; font-weight: 400; letter-spacing: normal; white-space: nowrap; }
.profile .profile-email { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.profile-links { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; margin: 9px 0 0; padding: 0; font-size: 14px; }
.profile-links li { margin: 0; }
.prose { line-height: 1.65; }
.prose h2 { font-size: 21px; font-weight: 650; letter-spacing: -.25px; margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.home-content > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 26px 0 10px; }
.prose p { margin: 0 0 12px; }
.prose strong { font-weight: 650; color: #35455a; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 12px; }
.prose li { padding-left: 3px; margin: 5px 0; }
.prose li > p { margin: 0; }
.prose .placeholder { color: var(--muted); }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { margin: 0; font-size: 30px; font-weight: 650; letter-spacing: -.6px; }
.page-subtitle { color: var(--muted); margin: 10px 0 0 !important; }
.empty-state { margin-top: 36px; padding: 44px 28px; border: 1px solid var(--line); border-radius: 6px; text-align: center; }
.empty-state-icon { color: #8190a1; display: block; margin: 0 auto 16px; }
.empty-state h2 { font-size: 18px; border: 0; padding: 0; margin: 0 0 8px; }
.empty-state p { color: var(--muted); margin: 0; font-size: 15px; }
.site-footer { width: min(var(--content-width), calc(100% - 48px)); margin: 52px auto 0; padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer p { margin: 0; }
.footer-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.footer-copyright { font-weight: 650; white-space: nowrap; }
.footer-license { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.footer-separator { margin-right: 7px; }
.site-footer a { color: var(--muted); font-weight: 500; }
.site-footer a:hover { color: var(--link); }

@media (max-width: 600px) {
  .header-inner { min-height: 66px; padding: 0 24px; gap: 12px; }
  .site-name { gap: 6px; font-size: 15px; }
  .site-logo { width: 20px; height: 20px; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 13px; padding: 22px 0 19px; }
  .site-nav a[aria-current="page"]::after { bottom: 13px; }
  .site-main { padding-top: 36px; }
  .profile { gap: 20px; align-items: flex-start; margin-bottom: 30px; }
  .profile-portrait { width: 84px; margin-top: 3px; }
  .profile-heading { margin-bottom: 8px; }
  .profile h1 { font-size: 24px; letter-spacing: -.5px; }
  .profile p { font-size: 14px; line-height: 1.6; }
  .prose h2 { font-size: 20px; margin-top: 26px; }
  .page-heading h1 { font-size: 27px; }
  .empty-state { padding: 36px 20px; }
  .site-footer { margin-top: 40px; }
  .footer-separator { display: none; }
}

@media (max-width: 380px) {
  .header-inner { padding: 0 20px; }
  .site-nav { gap: 14px; }
  .site-main, .site-footer { width: calc(100% - 40px); }
  .profile { gap: 16px; }
  .profile-portrait { width: 64px; }
  .profile h1 { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
