:root {
  color-scheme: light;
  --surface: #fff;
  --page: #f3f2ef;
  --text: #191919;
  --muted: #575757;
  --line: #dfded9;
  --blue: #0a66c2;
  --blue-dark: #004182;
  --green: #01754f;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--page); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, summary { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h2 { font-size: 20px; line-height: 1.3; font-weight: 650; }
h3 { font-size: 15px; }
img { display: block; max-width: 100%; }
section[id], article[id], details[id] { scroll-margin-top: 76px; }
.muted { color: var(--muted); }
.skip-link { position: fixed; left: 12px; top: 8px; z-index: 5; padding: 8px 14px; background: var(--surface); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 2; top: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { width: min(1128px, calc(100% - 48px)); margin: auto; display: flex; align-items: center; gap: 30px; min-height: 55px; }
.home { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 14px; font-weight: 650; white-space: nowrap; }
.monogram { display: grid; place-items: center; width: 32px; height: 32px; background: var(--blue); border-radius: 4px; color: #fff; font-weight: 700; font-size: 13px; }
.top-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.top-nav a { color: var(--muted); font-size: 14px; }
.top-link { padding-left: 24px; border-left: 1px solid var(--line); font-weight: 650; font-size: 14px; white-space: nowrap; }

.layout { width: min(1128px, calc(100% - 48px)); margin: 24px auto 0; display: grid; grid-template-columns: minmax(0, 2.54fr) minmax(220px, 1fr); align-items: start; gap: 22px; }
main { display: grid; min-width: 0; gap: 8px; }
.panel { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.profile { overflow: hidden; }
.cover { width: 100%; aspect-ratio: 4 / 1; object-fit: cover; background: #f4e9f1; }
.intro { padding: 0 24px 24px; }
.portrait { position: relative; width: 152px; height: 152px; margin-top: -92px; margin-bottom: 27px; border: 4px solid var(--surface); border-radius: 50%; object-fit: cover; background: #e9e1f3; }
.identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; }
.identity h1 { font-size: 25px; font-weight: 650; line-height: 1.2; }
.pronouns, .location, .connections { font-size: 14px; }
.headline { margin-top: 3px; font-size: 16px; }
.connections { margin-top: 6px; color: var(--blue); font-weight: 600; }
.button { display: inline-flex; align-items: center; gap: 7px; border-radius: 24px; padding: 6px 15px; font-weight: 650; font-size: 14px; }
.primary { margin-top: 13px; background: var(--blue); color: #fff; }
.primary:hover { background: var(--blue-dark); text-decoration: none; }
.sidebar-profile { padding: 20px 23px; }
.sidebar-profile > div + div { margin-top: 13px; padding-top: 16px; border-top: 1px solid #ecebe7; }
.sidebar-profile p { margin-top: 8px; font-size: 14px; line-height: 1.4; }
.profile-url { overflow-wrap: anywhere; }
.sidebar-links { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 14px; }

.section { padding: 20px 24px; min-width: 0; }
.section > h2 { margin-bottom: 10px; }
.about-copy, .post-copy { white-space: pre-wrap; overflow-wrap: anywhere; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
.more-label, .less-label { color: var(--muted); font-weight: 650; font-size: 14px; }
.more-label:hover, .less-label:hover { color: var(--blue); text-decoration: underline; }
.less-label, details[open] > summary .more-label, details[open] > summary .post-preview { display: none; }
details[open] > summary .less-label { display: inline; }
.about-more[open] summary { margin: 5px 0; }
.skills { display: flex; gap: 11px; align-items: start; margin-top: 15px; padding: 13px 15px; border: 1px solid #e4e3df; border-radius: 8px; }
.skills svg { flex: 0 0 23px; }
.skills p { font-size: 14px; }
.detail-list, .role-list { list-style: none; padding: 0; margin: 0; }
.detail-list > li + li { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.experience-list > li + li { margin-top: 14px; padding-top: 14px; }
.role-list { margin-top: 7px; }
.role-list li + li { margin-top: 9px; }
.role-list p, .detail-meta { font-size: 14px; }
.detail-copy { margin-top: 5px; }
.recommendation { margin: 0; }
.recommendation figcaption { font-weight: 650; }
.recommendation blockquote { margin: 9px 0 0; padding-left: 14px; border-left: 2px solid #dcd3e6; }

#activity > h2 { margin-bottom: 0; }
.activity-followers { margin-top: 2px; color: var(--blue); font-size: 14px; font-weight: 600; }
.activity-filters { display: flex; gap: 8px; margin-top: 10px; }
.activity-filters button { padding: 4px 14px; color: var(--muted); border: 1px solid #8c8c8c; border-radius: 22px; background: var(--surface); font-weight: 650; font-size: 14px; }
.activity-filters button[aria-pressed="true"] { color: #fff; background: var(--green); border-color: var(--green); }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px; margin-top: 18px; }
.post-card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.post-card:target { border-color: var(--blue); }
.post-author { display: flex; align-items: center; gap: 9px; padding: 12px 12px 8px; line-height: 1.4; }
.post-avatar { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
.post-author strong, .post-author span, .post-source span { display: block; }
.post-author span, .post-source span { font-size: 12px; }
.post-card > .post-copy, .post-more { margin: 0 12px 12px; font-size: 14px; }
.post-preview { display: block; white-space: pre-wrap; }
.post-more[open] .post-copy { margin-top: 5px; }
.post-image-link { display: block; background: #f7f6f4; }
.post-image { width: 100%; max-height: 290px; object-fit: contain; }
.post-source { display: block; margin: 0 12px 12px; border: 1px solid var(--line); border-radius: 6px; padding: 8px; color: var(--text); font-size: 13px; }
.repost-label { margin: 0 12px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.post-comments { padding: 9px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.post-comments summary { color: var(--blue); font-weight: 650; }
.post-comments summary:hover { text-decoration: underline; }
.post-comments .detail-list { margin-top: 9px; }
.comment-activity { margin-top: 17px; }
.comment-activity h3 { margin-bottom: 10px; }
.comment-context { font-size: 13px; font-weight: 650; }
.comment-copy { margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-footer { border-top: 1px solid var(--line); padding: 9px 12px; font-size: 13px; font-weight: 600; }
.activity-footer { padding-top: 17px; text-align: center; font-weight: 650; font-size: 14px; }
.site-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin: 18px 14px 25px; font-size: 13px; }

@media (max-width: 880px) {
  .layout { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
  .sidebar-profile { display: grid; grid-template-columns: 1fr 2fr; gap: 14px; }
  .sidebar-profile > div + div { margin-top: 0; padding: 0 0 0 14px; border-top: none; border-left: 1px solid #ecebe7; }
  .sidebar-profile > .sidebar-links { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #ecebe7; padding: 12px 0 0; }
}
@media (max-width: 700px) {
  .header-inner { width: calc(100% - 28px); flex-wrap: wrap; justify-content: space-between; gap: 0 10px; padding-top: 7px; }
  .top-nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; gap: 8px; overflow-x: auto; }
  .top-nav a { padding: 7px 0; font-size: 13px; }
  .top-link { padding-left: 0; border-left: 0; }
  section[id], article[id], details[id] { scroll-margin-top: 92px; }
}
@media (max-width: 560px) {
  .layout { width: 100%; margin-top: 8px; gap: 8px; }
  .panel { border-left: 0; border-right: 0; border-radius: 0; }
  .section, .sidebar-profile { padding: 17px 16px; }
  .intro { padding: 0 16px 17px; }
  .portrait { width: 104px; height: 104px; margin-top: -51px; margin-bottom: 11px; }
  .identity h1 { font-size: 23px; }

  .posts { grid-template-columns: minmax(0, 1fr); }
  .sidebar-profile h2 { font-size: 16px; }
}
