/* Plain-text pages. All editable content stays in about.html and share.html. */
.content-page { --content-gutter:clamp(20px,5vw,112px); --header-height:64px; }
.content-page .header-slot { height:64px; }
.content-page .header, .content-page .header.is-scrolled {
  position:fixed;
  inset:0 0 auto;
  height:64px;
  padding-inline:var(--content-gutter);
  border-bottom:1px solid var(--line);
  background:var(--bg);
  box-shadow:none;
  z-index:20;
}
.content-page .header .brand { font-size:13px; gap:11px; }
.content-page .header .brand-mark { font-size:34px; width:41px; letter-spacing:-5px; }
.content-page .header .brand-mark span { font-size:19px; right:0; top:-3px; }
.content-page .header .brand small { font-size:10px; letter-spacing:1.5px; }
.content-wrap {
  width:min(1160px,calc(100% - 80px));
  max-width:none;
  margin-inline:auto;
  min-width:0;
  overflow-wrap:anywhere;
}
main.content-wrap { padding-block:clamp(40px,5vw,88px) 80px; font-size:14px; }
.content-page h1 {
  margin:0 0 28px;
  font-size:20px;
  font-weight:600;
  line-height:1.3;
  letter-spacing:-.035em;
  white-space:normal;
}
.profile-intro h1 { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 16px; }
.profile-intro h1 span { font-weight:500; }
.profile-facts, .profile-tools { display:flex; flex-wrap:wrap; gap:10px 0; list-style:none; margin:0; padding:0; font-size:14px; line-height:1.5; }
.profile-facts li, .profile-tools li { display:flex; align-items:baseline; }
.profile-facts li + li::before, .profile-tools li + li::before { content:"|"; margin-inline:8px; color:var(--muted); opacity:.5; }
.text-divider { display:inline-block; margin-inline:8px; opacity:.5; font-weight:400; }
.profile-facts a:hover, .profile-facts a:focus-visible { color:var(--accent); }
.profile-tools { margin-top:20px; color:var(--muted); font-size:12px; }
.profile-summary { margin-top:48px; font-size:14px; line-height:1.95; }
.profile-summary p { margin:0 0 24px; }
.profile-achievements { margin-top:34px; color:var(--muted); font-size:12px; line-height:1.9; }
.profile-achievements ul { margin:0; padding-left:1.35em; }
.profile-achievements li { padding-left:4px; margin:0 0 12px; }
.resume-section { margin-top:clamp(56px,6vw,88px); }
.resume-section h2 { margin:0; padding-bottom:20px; border-bottom:1px solid var(--line); font-size:20px; font-weight:600; line-height:1.4; }
.resume-entry { display:grid; grid-template-columns:max-content minmax(0,1fr); gap:48px; padding-top:32px; margin-bottom:12px; }
.resume-entry > div { min-width:0; }
.resume-period p { margin:0; font-size:12px; line-height:1.9; font-variant-numeric:tabular-nums; }
.resume-period > p:first-child { white-space:nowrap; }
/* Let the date set the column width; secondary text wraps within that width. */
.resume-period .resume-meta { position:relative; width:0; min-width:100%; margin-top:8px; font-size:12px; color:var(--muted); }
.resume-meta > .meta-part { display:block; width:max-content; max-width:100%; }
.resume-meta > .text-divider { position:absolute; visibility:hidden; }
.resume-meta.is-inline { display:flex; align-items:baseline; }
.resume-meta.is-inline > .meta-part { flex:0 0 auto; }
.resume-meta.is-inline > .text-divider { position:static; visibility:visible; flex:0 0 auto; }
.resume-detail h3 { margin:0; font-size:14px; line-height:1.9; font-weight:400; }
.resume-detail strong { font-weight:600; }
.resume-projects { margin:8px 0 0; font-size:12px; color:var(--muted); line-height:1.9; }
/* Share desktop rows so wrapped company names cannot offset the metadata. */
@media (min-width:761px) {
  .resume-entry { grid-template-columns:136px minmax(0,1fr); gap:8px 24px; align-items:baseline; }
  .resume-entry > .resume-period, .resume-entry > .resume-detail { display:contents; }
  .resume-period > p:first-child { grid-column:1; grid-row:1; font-size:14px; line-height:28px; }
  .resume-detail h3 { grid-column:2; grid-row:1; line-height:28px; }
  .resume-period .resume-meta { grid-column:1; grid-row:2; display:flex; align-items:baseline; width:auto; min-width:0; margin:0; line-height:24px; white-space:nowrap; }
  .resume-meta > .meta-part { flex:0 0 auto; max-width:none; }
  .resume-meta > .text-divider { position:static; visibility:visible; flex:0 0 auto; }
  .resume-projects { grid-column:2; margin:0; line-height:24px; }
}
.content-footer { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px; padding-block:24px 32px; border-top:1px solid var(--line); font-size:12px; line-height:1.5; color:var(--muted); }
.content-footer p { margin:0; }
.content-footer a:hover { color:var(--ink); }
.share-list { margin:40px 0 0; padding:0; list-style:none; }
.share-list li { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 16px; margin:0 0 28px; line-height:1.7; }
.share-list a { font-size:14px; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:5px; }
.share-list span { font-size:12px; color:var(--muted); }
.share-list a:hover, .share-list a:focus-visible { color:var(--accent); }
.share-more { margin:48px 0 0; font-size:14px; line-height:1.7; color:var(--accent); }
.share-more a:hover { text-decoration:underline; text-underline-offset:5px; }
/* Match the image-project content width at every breakpoint. */
@media (max-width:900px) {
  .content-wrap { width:calc(100% - 48px); }
}
@media (max-width:760px) {
  /* Compact two-column layout; the single-line date determines the left width. */
  .content-page { --content-gutter:10px; }
  main.content-wrap { padding-bottom:56px; }
  .content-page h1 { margin-bottom:16px; line-height:28px; }
  .profile-facts { line-height:20px; }
  .profile-tools { margin-top:10px; line-height:18px; }
  .profile-summary { margin-top:30px; line-height:21px; }
  .profile-summary p { margin-bottom:20px; }
  .profile-summary p:last-child { margin-bottom:0; }
  .profile-achievements { margin-top:20px; line-height:18px; }
  .profile-achievements li { margin-bottom:8px; }
  .resume-section { margin-top:30px; }
  .resume-section h2 { padding-bottom:0; margin-bottom:16px; line-height:28px; }
  .resume-entry { align-items:start; gap:24px; padding-top:0; margin-bottom:0; }
  .resume-entry + .resume-entry { margin-top:16px; }
  .resume-period p { line-height:21px; }
  .resume-period .resume-meta { margin-top:4px; font-size:10px; line-height:14px; }
  .resume-detail h3 { line-height:21px; }
  .resume-projects { margin-top:10px; line-height:18px; }
  .resume-section[aria-labelledby="education-title"] .resume-projects { margin-top:5px; line-height:17px; }
  .share-list { margin-top:16px; }
  .share-list li { display:block; margin-bottom:16px; line-height:21px; }
  .share-list span { display:block; margin-top:5px; line-height:18px; }
  .share-more { margin-top:30px; line-height:21px; }
}
@media (max-width:600px) {
  .content-wrap { width:calc(100% - 32px); }
}
