/* About Me — sits on top of ../style.css (fonts, colours, topbar, buttons,
   the project desk), so it matches the deck and the project pages. Editing
   happens in the main editor (partials/edit-about.php). */

/* The placeholder page, shown until the migration has made the tables. */
.about-page .topbar { max-width: 1100px; margin: 0 auto; }
.about { max-width: 1100px; margin: 0 auto; padding: 8px 32px 64px; }
.about-window {
  background: var(--case-light); color: var(--ink-dark);
  border: 3px solid var(--ink-dark); box-shadow: 6px 6px 0 var(--drop);
}
.about-body { padding: 22px 26px; }
.about-name { margin: 2px 0 6px; font-family: var(--display); font-size: clamp(52px, 8vw, 88px); line-height: .9; letter-spacing: 1px; }

/* --- the desk view (desk-view.php) ------------------------------------------
   The page is a project page (body.project-page + ../desk.js), so windows,
   taskbar and the photos window come from ../style.css. What's here is the
   hero photo and journey.exe: a list of entries on the left (like the
   readme's contents), one entry at a time on paper, sliding in. */
/* The banner: who on the left, a big ABOUT ME title centred in the bar
   (the outer columns share the spare width equally, so it sits in the
   middle whenever the name and headline leave room). */
.about-hero-bar { display: grid; grid-template-columns: 1fr auto 1fr; }
.about-hero-who { display: flex; align-items: center; gap: inherit; min-width: 0; }
.about-hero-title {
  margin: 0; font-family: var(--display); font-size: clamp(44px, 6vw, 72px); line-height: .9;
  letter-spacing: 6px; color: var(--accent); white-space: nowrap; text-shadow: 4px 4px 0 var(--ink-dark);
}
html.book-on .about-hero-title { font-size: 56px; }
@media (max-width: 860px) {
  .about-hero-bar { display: flex; }
  .about-hero-title { order: -1; font-size: 40px; }
}
.about-hero-img { object-fit: cover; border-radius: 50%; border: 4px solid var(--ink-dark); box-shadow: 4px 4px 0 var(--drop); }
/* Pictures inside the intro text (about-me.md). */
.about-desk .project-md img { display: block; max-width: min(100%, 640px); height: auto; margin: 6px 0 16px; box-shadow: 6px 6px 0 var(--ink-dark); }
.about-hero-img.is-avatar { image-rendering: pixelated; }
.about-cv { font-size: 22px; background: var(--accent); color: var(--ink-dark); }
.about-cv:hover { background: #ffe08a; }
.about-links a { color: var(--text); text-underline-offset: 3px; }
.about-links a:hover { color: var(--accent); }

.jr-list { display: none; }
.jr-entry { padding: 22px 26px; background: var(--paper, #fbf9ef); color: var(--ink-dark); }
.jr-entry + .jr-entry { border-top: 3px dashed var(--case); }
.jr-period {
  display: inline-block; margin: 0 0 8px; padding: 1px 10px;
  font-family: var(--mono); font-size: 18px; letter-spacing: 1px;
  background: var(--title-bar); color: #fff;
}
.jr-title { margin: 0; font-family: var(--display); font-size: 40px; line-height: 1; letter-spacing: 1px; }
.jr-place { margin: 4px 0 0; font-family: var(--mono); font-size: 20px; color: var(--ink-soft); }
.jr-content { display: grid; gap: 22px; margin-top: 16px; }
.jr-content.has-photo { grid-template-columns: minmax(0, 1fr) minmax(200px, 38%); align-items: start; }
.jr-md.project-md { margin: 0; padding: 0; background: none; }
.jr-photo { display: block; border: 3px solid var(--ink-dark); box-shadow: 5px 5px 0 var(--ink-dark); cursor: zoom-in; }
.jr-photo img { display: block; width: 100%; height: auto; image-rendering: auto; }

html.book-on .jr-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
html.book-on .jr-list { display: block; overflow: auto; padding: 10px 8px 10px 10px; background: var(--case); }
.jr-list ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.jr-list a {
  display: block; padding: 5px 8px; text-decoration: none; color: var(--ink-dark);
  font-family: var(--body); font-size: 15px; line-height: 1.25; border: 2px solid transparent;
  border-left: 4px solid var(--ink-soft);
  transition: transform .15s cubic-bezier(.2, .8, .2, 1), background .15s;
}
.jr-list small { display: block; font-family: var(--mono); font-size: 15px; letter-spacing: 1px; color: var(--ink-soft); }
.jr-list a:hover { transform: translateX(3px); background: var(--case-light); }
.jr-list a[aria-current="page"] { background: var(--ink-dark); color: var(--case-light); border-color: var(--ink-dark); border-left-color: var(--accent); }
.jr-list a[aria-current="page"] small { color: var(--accent); }
html.book-on .jr-stage { position: relative; min-height: 0; margin: 4px 4px 0 0; overflow: hidden; background: var(--paper, #fbf9ef); }
html.book-on .jr-entry { position: absolute; inset: 0; overflow: auto; display: none; border-top: 0; padding: 26px 30px; }
html.book-on .jr-entry.is-current { display: block; }
html.book-on .jr-entry.is-in-right { animation: shot-in-right .3s steps(6) both; }
html.book-on .jr-entry.is-in-left { animation: shot-in-left .3s steps(6) both; }

/* --- SKILLS: every project's skills as bubbles (about_skill_bubbles()).
   Size (--d, --f) comes from the <style nonce> block in desk-view.php;
   fill strength steps up with the count (sk-l1 .. sk-l4). */
.sk-cloud { list-style: none; margin: 0; padding: 4px 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 4px; }
.sk-bubble {
  position: relative; flex: none; width: var(--d, 48px); height: var(--d, 48px); padding: 4px;
  display: grid; place-items: center; box-sizing: border-box; border-radius: 50%;
  border: 3px solid var(--ink-dark); box-shadow: 3px 3px 0 var(--drop);
  font-family: var(--body); font-weight: 700; font-size: var(--f, 12px); line-height: 1.05; text-align: center; overflow-wrap: anywhere;
  color: var(--text); cursor: default; transition: transform .15s steps(3);
}
.sk-l1 { background: color-mix(in srgb, var(--accent) 14%, var(--ink)); }
.sk-l2 { background: color-mix(in srgb, var(--accent) 30%, var(--ink)); }
.sk-l3 { background: color-mix(in srgb, var(--accent) 48%, var(--ink)); }
.sk-l4 { background: var(--accent); color: var(--ink-dark); }
.sk-bubble:hover, .sk-bubble:focus-visible { z-index: 1; transform: scale(1.08); outline: none; border-color: var(--accent); }
.sk-l4:hover, .sk-l4:focus-visible { border-color: var(--text); }
.sk-list { margin-top: 10px; font-family: var(--mono); font-size: 17px; }
.sk-list summary { cursor: pointer; color: var(--muted); }
.sk-list summary:hover { color: var(--text); }
.sk-list ol { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.sk-list li { display: flex; justify-content: space-between; gap: 10px; padding: 1px 6px; border-bottom: 2px dotted rgba(255, 255, 255, .12); }
.sk-list small { color: var(--accent); font-size: 17px; }
@media (prefers-reduced-motion: reduce) { .sk-bubble { transition: none; } }
