:root {
  color-scheme: dark;
  --bg: #050505;
  --text: #ededed;
  --body: #b5b5b5;
  --muted: #777;
  --line: #242424;
  --soft: #d2d2d2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: #fff; }
.page { width: min(690px, calc(100% - 44px)); margin: 0 auto; }
.intro {
  display: flex;
  align-items: center;
  gap: 27px;
  padding: 82px 0 54px;
  border-bottom: 1px solid var(--line);
}
.portrait {
  display: block;
  width: 116px;
  height: 116px;
  flex: 0 0 116px;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 50%;
  filter: grayscale(100%);
}
h1 {
  margin: 0;
  font-family: Constantia, Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 5.5vw, 45px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.15;
}
.headline { margin: 9px 0 13px; color: var(--soft); font-size: 15px; letter-spacing: -.015em; }
.links { display: flex; flex-wrap: wrap; gap: 17px; color: var(--muted); font-size: 12px; }
.section { padding: 37px 0 39px; border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -.025em; }
.body-copy { margin-top: 14px; color: var(--body); font-size: 13.5px; line-height: 1.9; }
.body-copy p { margin: 0 0 13px; }
.body-copy p:last-child { margin-bottom: 0; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 19px; }
.section-subtitle { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.section-link { flex: 0 0 auto; color: var(--soft); font-size: 11px; }
.github-profile { display: flex; gap: 15px; padding: 0 0 15px; margin-bottom: 2px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.github-profile strong { color: var(--soft); font-weight: 500; }
.repo-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; }
.repo {
  min-width: 0;
  padding: 16px 0 17px;
  border-bottom: 1px solid var(--line);
}
.repo-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.repo-name { color: var(--soft); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.repo-desc { min-height: 39px; margin: 7px 0 12px; color: var(--muted); font-size: 11.5px; line-height: 1.65; }
.repo-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.repo-tag { color: #999; border: 1px solid #292929; padding: 1px 6px; border-radius: 3px; font-size: 9px; }
.repo-meta { display: flex; gap: 13px; color: #777; font-size: 10px; }
.repo-meta span { white-space: nowrap; }
.loading, .empty { margin: 0; padding: 14px 0; color: var(--muted); font-size: 12px; }
.currently p { margin: 10px 0 0; color: var(--body); font-size: 12px; line-height: 2; }
.currently span { color: #777; padding: 0 3px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 24px 0 42px; color: var(--muted); font-size: 11px; }
.footer-links { display: flex; gap: 15px; }
@media (max-width: 560px) {
  .page { width: calc(100% - 36px); }
  .intro { gap: 17px; padding: 56px 0 37px; }
  .portrait { width: 82px; height: 82px; flex-basis: 82px; }
  h1 { font-size: 29px; }
  .headline { font-size: 12px; line-height: 1.5; }
  .links { gap: 9px 13px; font-size: 11px; }
  .section { padding: 29px 0 31px; }
  .repo-grid { grid-template-columns: 1fr; }
  .repo-desc { min-height: 0; }
  .footer { align-items: flex-start; flex-direction: column; gap: 8px; }
}


/* ---------------------------------------------------------------- writing
   Generated by website-crm. Styles here are shared by the homepage list,
   /writing/index.html and each generated article page. */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #6f6f6f;
  outline-offset: 3px;
  border-radius: 2px;
}

.home-writing { display: flex; flex-direction: column; }
.home-post {
  display: flex;
  align-items: baseline;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.home-post:last-child { border-bottom: 0; padding-bottom: 0; }
.home-post-date {
  flex: 0 0 86px;
  color: var(--muted);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}
.home-post-title {
  color: var(--soft);
  font-size: 13.5px;
  letter-spacing: -.01em;
  transition: color .18s ease;
}
.home-post:hover .home-post-title { color: #fff; }
.writing-empty { margin: 0; padding: 15px 0; color: var(--muted); font-size: 12px; }

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 0 21px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.writing-header { padding: 44px 0 27px; border-bottom: 1px solid var(--line); }
.writing-title {
  margin: 0;
  font-family: Constantia, Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4.6vw, 40px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: 1.12;
}
.writing-sub { margin: 11px 0 0; color: var(--muted); font-size: 12px; }
.writing-sub a { color: var(--soft); }
.writing-section { padding: 0 0 10px; }
.writing-list { list-style: none; margin: 0; padding: 0; }
.writing-item { padding: 20px 0 21px; border-bottom: 1px solid var(--line); }
.writing-item-title {
  display: inline-block;
  color: var(--soft);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.022em;
  line-height: 1.4;
}
.writing-item-title:hover { color: #fff; }
.writing-item-summary {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}
.writing-item-meta {
  margin: 9px 0 0;
  color: #6f6f6f;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.article-header { padding: 36px 0 25px; border-bottom: 1px solid var(--line); }
.article-meta {
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.article-title {
  margin: 0;
  font-family: Constantia, Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 4.4vw, 37px);
  font-weight: 400;
  letter-spacing: -.05em;
  line-height: 1.18;
}
.article-summary {
  margin: 15px 0 0;
  color: #c8c8c8;
  font-size: 13.5px;
  line-height: 1.75;
}
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.article-tag {
  color: #999;
  border: 1px solid #292929;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.article-body { padding: 28px 0 6px; color: #c4c4c4; font-size: 14.5px; line-height: 1.88; }
.article-body > :first-child { margin-top: 0; }
.article-body > :last-child { margin-bottom: 0; }
.article-body p { margin: 0 0 1.15em; }
.article-body h2 {
  margin: 2.1em 0 .55em;
  font-family: Constantia, Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -.03em;
  color: var(--text);
}
.article-body h3 {
  margin: 1.7em 0 .5em;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--text);
}
.article-body ul, .article-body ol { margin: 0 0 1.15em; padding-left: 20px; }
.article-body li { margin: .3em 0; }
.article-body a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: #3a3a3a;
}
.article-body a:hover { text-decoration-color: #fff; }
.article-body blockquote {
  margin: 1.5em 0;
  padding-left: 15px;
  border-left: 2px solid #2e2e2e;
  color: var(--muted);
}
.article-body strong { color: #e8e8e8; font-weight: 600; }
.article-body code {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: .87em;
  background: #111;
  border: 1px solid #242424;
  border-radius: 3px;
  padding: 1px 5px;
}
.article-body pre {
  margin: 0 0 1.35em;
  padding: 14px 16px;
  background: #0a0a0a;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow-x: auto;
}
.article-body pre code { background: none; border: 0; padding: 0; font-size: 12px; line-height: 1.7; }
.article-body img { max-width: 100%; height: auto; border-radius: 4px; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }

.article-pager {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 22px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.5;
}
.article-pager a { max-width: 46%; }
.article-pager a:last-child { text-align: right; margin-left: auto; }

@media (max-width: 560px) {
  .home-post { flex-direction: column; gap: 3px; }
  .home-post-date { flex: none; }
  .article-body { font-size: 14px; }
  .article-pager { flex-direction: column; gap: 14px; }
  .article-pager a:last-child { margin-left: 0; text-align: left; }
  .article-pager a { max-width: 100%; }
}

/* ---------------------------------------------------------------- résumé
   resume.html is generated by website-crm from content/resume.json. */

.resume-page { width: min(820px, calc(100% - 44px)); margin: 0 auto; }
.resume-nav { display: flex; justify-content: space-between; align-items: center; padding: 32px 0 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.resume-nav a:hover { color: #fff; }
.resume-actions { display: flex; gap: 16px; align-items: center; }
.resume-header { padding: 48px 0 30px; border-bottom: 1px solid var(--line); }
.resume-header h1 { font-family: Constantia, Georgia, "Times New Roman", serif; font-size: clamp(38px, 6vw, 52px); font-weight: 400; letter-spacing: -.055em; line-height: 1.1; margin: 0; }
.resume-tagline { color: var(--body); font-size: 13px; margin: 9px 0 14px; }
.resume-contact { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 12px; }
.resume-contact a { color: var(--soft); }
.resume-section { padding: 27px 0 25px; border-bottom: 1px solid var(--line); }
.resume-section h2 { margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .13em; color: #e3e3e3; text-transform: uppercase; }
.resume-entry { margin: 0 0 21px; }
.resume-entry:last-child { margin-bottom: 0; }
.resume-entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.resume-entry-title { color: #ededed; font-size: 14px; font-weight: 600; }
.resume-role { color: #999; font-weight: 400; }
.resume-entry-date { color: var(--muted); font-size: 11px; white-space: nowrap; }
.resume-entry-sub { color: #999; font-size: 12px; margin: 3px 0 8px; }
.resume-entry ul { margin: 8px 0 0; padding-left: 18px; color: var(--body); font-size: 12.5px; line-height: 1.75; }
.resume-entry li { padding-left: 3px; margin: 0 0 5px; }
.resume-entry p { margin: 7px 0 0; color: var(--body); font-size: 12.5px; line-height: 1.75; }
.resume-skills { display: grid; grid-template-columns: 1fr; gap: 12px; }
.resume-skill { color: var(--body); font-size: 12.5px; line-height: 1.8; }
.resume-skill strong { display: block; color: #e0e0e0; font-size: 11px; letter-spacing: .04em; margin-bottom: 2px; }
.resume-footer { padding: 22px 0 42px; display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.print-button { background: none; color: var(--soft); border: 1px solid #333; border-radius: 4px; padding: 7px 11px; font: inherit; cursor: pointer; }
.print-button:hover { border-color: #777; color: #fff; }

@media (max-width: 560px) {
  .resume-page { width: calc(100% - 36px); }
  .resume-header { padding: 35px 0 25px; }
  .resume-section { padding: 23px 0; }
  .resume-entry-head { gap: 4px; }
  .resume-footer { flex-direction: column; }
}

@media print {
  :root { color-scheme: light; --bg: #fff; --text: #111; --body: #333; --muted: #555; --line: #ddd; --soft: #222; }
  body { background: #fff !important; color: #111 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .resume-page { width: 100%; max-width: none; }
  .resume-nav, .print-button { display: none !important; }
  .resume-header { padding-top: 12px; }
  .resume-section { break-inside: avoid; }
  a { text-decoration: none; }
}


