/* A few farm-game keepsakes inside an otherwise quiet, editorial archive. */
.site-header { position:relative; border-bottom:0; margin-bottom:18px; }
.site-header::after {
  content:""; position:absolute; left:0; right:0; bottom:-23px; height:44px;
  background:url("assets/identity/pixel-vine.png") center center / auto 180px repeat-x;
  image-rendering:pixelated; pointer-events:none;
}
.brand > span:last-child { line-height:1.6; }
.avatar-callout { width:148px; }
.cloud-joke { margin:8px 2px 1px; color:var(--muted); font:11px/1.8 var(--body); }
.cloud-joke > span { display:block; margin-top:3px; color:var(--ink); white-space:nowrap; }

/* An opaque little patchwork. Its text is also hidden from assistive tech until opened. */
.interests-list dd { display:flex; align-items:center; gap:9px; }
.interest-reveal {
  position:relative; flex:1; min-width:0; min-height:38px; padding:7px 9px;
  border:0; border-radius:0; background:transparent; color:var(--muted);
  font:inherit; line-height:1.9; text-align:left; cursor:pointer;
}
.secret-text { display:block; opacity:0; transition:opacity 1.2s ease .2s; }
.mosaic-cover {
  position:absolute; inset:0; pointer-events:none; opacity:1;
  background:conic-gradient(from 90deg,#97a48c 0 25%,#c9c3a3 0 50%,#748568 0 75%,#a6ad91 0) 0 0 / 18px 18px;
  box-shadow:inset 0 0 0 2px #64745438;
  transition:opacity 1.6s ease;
}
.interests-list > div:nth-child(2n) .mosaic-cover { background-position:9px 0; }
.interests-list > div:nth-child(3n) .mosaic-cover { background-size:22px 22px; }
.interest-reveal:hover .mosaic-cover { box-shadow:inset 0 0 0 2px #495a3c; }
.interest-reveal.is-revealed .mosaic-cover { opacity:0; }
.interest-reveal.is-revealed .secret-text { opacity:1; }
.interest-reveal.is-revealed { cursor:pointer; }
.reveal-hint { flex:0 0 auto; max-width:54px; color:var(--muted); font:10px/1.6 var(--body); }
html:not([lang="zh-CN"]) .reveal-hint { max-width:68px; }

/* A stepped, continuous journey; every arrow follows the next school. */
.education-list { padding-left:38px; }
.education-list li { position:relative; }
.education-trail { position:absolute; left:-37px; top:0; width:32px; height:calc(100% + 1px); overflow:visible; pointer-events:none; }
.education-trail > path { fill:none; stroke:#967143; stroke-width:3; stroke-linejoin:miter; stroke-linecap:square; }
.education-trail > .trail-arrow { fill:#718853; stroke:#435b38; stroke-width:1; }
body[data-theme="dark"] .education-trail > path { stroke:#c5a06d; }
body[data-theme="dark"] .education-trail > .trail-arrow { fill:#a7bd78; stroke:#7b965a; }
.education-list li:last-child { padding-bottom:14px; }

/* The entire row remains a single real link, including this red buzzer. */
.content-card { grid-template-columns:60px minmax(180px,.75fr) minmax(0,1fr) 88px; }
.content-card::after { content:none; }
.pixel-enter {
  grid-column:4; grid-row:1 / span 2; justify-self:end; align-self:center;
  display:flex; flex-direction:column; align-items:center; gap:9px; width:74px;
}
.pixel-buzzer { position:relative; display:block; width:64px; height:48px; }
.pixel-buzzer::before {
  content:""; position:absolute; width:64px; height:19px; left:0; bottom:0;
  background:#c4a06a; border:3px solid #4f3728;
  box-shadow:inset 0 3px #f0d49b, inset 0 -4px #927044, 0 3px #0b12154d;
  clip-path:polygon(4px 0,60px 0,60px 4px,64px 4px,64px 15px,60px 15px,60px 19px,4px 19px,4px 15px,0 15px,0 4px,4px 4px);
}
.pixel-buzzer::after {
  content:""; position:absolute; left:8px; top:1px; width:48px; height:32px;
  background:#c74739; box-shadow:inset 0 4px #f58d6c, inset 4px 0 #ec6a52, inset -4px -8px #8c2c2d;
  clip-path:polygon(8px 0,40px 0,40px 4px,44px 4px,44px 8px,48px 8px,48px 24px,44px 24px,44px 28px,40px 28px,40px 32px,8px 32px,8px 28px,4px 28px,4px 24px,0 24px,0 8px,4px 8px,4px 4px,8px 4px);
  transition:transform .12s steps(2,end);
}
.pixel-enter-label { font:12px/1.4 var(--mono),var(--body); letter-spacing:.12em; color:#f0d49b; }
.content-card:hover .pixel-buzzer::after, .content-card:focus-visible .pixel-buzzer::after { transform:translateY(3px); }
.content-card:active .pixel-buzzer::after { transform:translateY(6px); }
@media (max-width:1100px) {
 .content-card { grid-template-columns:40px minmax(130px,.9fr) minmax(0,1fr) 76px; gap:18px; }
 .avatar-callout { width:130px; }
}
@media (max-width:760px) {
 .site-header::after { bottom:-20px; height:38px; background-size:auto 155px; }
 .brand > span:last-child { max-width:130px; }
 .avatar-callout { width:116px; }
 .cloud-joke { font-size:10px; line-height:1.7; }
 .interests-list { gap:22px 18px; }
 .interests-list dd { flex-wrap:wrap; gap:4px; }
 .interest-reveal { flex-basis:100%; }
 .reveal-hint, html:not([lang="zh-CN"]) .reveal-hint { max-width:none; }
 .education-list li { grid-template-columns:76px minmax(0,1fr); gap:10px; }
 .content-card { grid-template-columns:28px minmax(0,1fr) 64px; gap:12px; }
 .pixel-enter { grid-column:3; grid-row:1 / span 3; width:64px; }
 .pixel-buzzer { transform:scale(.875); transform-origin:center bottom; }
 .pixel-enter-label { font-size:11px; }
}
@media (prefers-reduced-motion:reduce) {
 .mosaic-cover, .secret-text, .pixel-buzzer::after { transition:none; }
}
