.portfolio-page .profile-monogram.has-avatar { width: 220px; height: 220px; border-radius: 50%; overflow: hidden; letter-spacing: normal; }
.portfolio-page .avatar-placeholder.has-avatar { padding: 0; overflow: hidden; }
.homepage-avatar { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
/* Bright homepage palette; dark mode remains available as an explicit choice. */
[data-theme="light"] .portfolio-page {
  --bg: #fffdf9;
  --bg-alt: #f5f4ff;
  --surface: #ffffff;
  --surface-strong: #ffffff;
  --text: #26233d;
  --text-muted: #5e5b73;
  --text-dim: #716c83;
  --header-bg: rgba(255, 253, 249, .94);
  --border: rgba(92, 76, 137, .14);
  --shadow: 0 18px 55px rgba(102, 82, 155, .1);
}
[data-theme="light"] .portfolio-page .hero {
  background: radial-gradient(ellipse at 85% 22%, #e3f7f0 0, transparent 47%), radial-gradient(ellipse at 12% 80%, #f0e7ff 0, transparent 50%), #fffdf9;
}
[data-theme="light"] .portfolio-page .gradient-orb { opacity: .12; }
[data-theme="light"] .portfolio-page .profile-card { background: linear-gradient(145deg, #fff 65%, #f1edff); border-color: #dfd9ee; }
[data-theme="light"] .portfolio-page .profile-art { background: radial-gradient(ellipse at center, #ece7ff 0, #e7faf255 48%, transparent 70%); border-radius: 20px; }
[data-theme="light"] .portfolio-page .hero-badge { background: #fff; border-color: #dfd9ee; }
[data-theme="light"] .portfolio-page .section-dark { background: #f3f7fb; }
[data-theme="light"] .portfolio-page .home-store { background: linear-gradient(110deg, #f4efff, #eef9f5); }
[data-theme="light"] .portfolio-page .home-store-product { background: #fff; box-shadow: 0 6px 20px #51427b08; }
[data-theme="light"] .portfolio-page .skill-category,
[data-theme="light"] .portfolio-page .contact-form { background: #fff; }
/* A small personal code notebook inside the existing profile, not a second hero. */
.portfolio-page {
  --play-violet: var(--accent-text);
  --play-teal: #62d9c4;
  --play-rose: #f2a5c0;
  --play-display: 'Inter', system-ui, sans-serif;
  --play-utility: 'JetBrains Mono', monospace;
}
[data-theme="light"] .portfolio-page { --play-teal: #087869; --play-rose: #ae315e; }
.portfolio-page .hero { min-height: auto; padding-block: 150px 80px; }
.portfolio-page .scroll-indicator { display: none; }
.portfolio-page h1, .portfolio-page h2 { text-wrap: balance; }
.hero-paths { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-bottom: 22px; color: var(--text-muted); font-size: 12px; }
.hero-paths a { padding-block: 5px; }
.hero-paths a:hover { color: var(--accent-text); }
.hero-paths a > span { color: var(--accent-text); margin-right: 5px; }
.code-playground { margin-top: 20px; border-top: 1px solid var(--border); }
.code-playground summary { display: flex; align-items: center; gap: 10px; padding-top: 16px; cursor: pointer; font-size: 12px; font-weight: 600; list-style: none; }
.code-playground summary::-webkit-details-marker { display: none; }
.code-playground summary > span:first-child { color: var(--accent-text); font-family: var(--play-utility); }
.playground-plus { margin-left: auto; font-size: 19px; font-weight: 400; color: var(--accent-text); }
.code-playground[open] .playground-plus { transform: rotate(45deg); }
.portfolio-page .hero-visual .code-note { position: static; margin-top: 12px; }
.portfolio-page .hero-visual { padding-bottom: 0; }
.playground-content { display: grid; gap: 13px; padding-top: 16px; }
.playground-content > p { font-size: 12px; color: var(--text-muted); }
.playground-content > label { font-size: 11px; color: var(--text-muted); }
.playground-editor { display: flex; align-items: center; gap: 6px; padding: 10px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; min-width: 0; }
.playground-editor > span { font: 10px var(--play-utility); color: var(--accent-text); }
.playground-editor input { width: 100%; min-width: 0; padding: 6px 0; border: 0; background: transparent; color: var(--text); font-size: 12px; }
.playground-colors { display: flex; flex-wrap: wrap; gap: 7px; border: 0; min-width: 0; }
.playground-colors legend { font-size: 11px; color: var(--text-muted); margin-bottom: 8px; }
.playground-colors button { border: 1px solid var(--border); border-radius: 7px; padding: 8px 12px; font-size: 11px; }
.playground-colors button[aria-pressed="true"] { border-color: var(--accent-text); background: var(--accent-soft); }
.playground-result { padding: 16px; border-radius: 10px; background: var(--bg-alt); border: 1px dashed var(--border-hover); }
.playground-result > span { font: 9px var(--play-utility); letter-spacing: .08em; color: var(--text-dim); }
.playground-result p { margin-top: 10px; font-family: var(--play-display); font-size: 23px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; color: var(--play-violet); }
.playground-result[data-color="teal"] p { color: var(--play-teal); }
.playground-result[data-color="rose"] p { color: var(--play-rose); }
.playground-content > .playground-note { font-size: 10px; }
@media (max-width: 768px) { .portfolio-page .hero { padding-block: 115px 45px; } .playground-editor input { font-size: 16px; } }
/* Compact store preview, scoped to preserve the portfolio layout. */
.nav-shopping { color: var(--accent-text); }
.home-shop-cta { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 400px) { .portfolio-page .logo-caption { display: none; } }
.home-store.section { padding-block: 40px; border-block: 1px solid var(--border); background: var(--bg-alt); }
.home-store-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.home-store-heading .section-tag { font-size: 10px; letter-spacing: 2px; }
.home-store-heading h2 { font-size: clamp(25px, 3vw, 32px); line-height: 1.2; letter-spacing: -1px; margin-top: 6px; }
.home-store-heading h2 em { font-family: 'Playfair Display', Georgia, serif; font-weight: 500; color: var(--accent-text); }
.home-store-heading p { color: var(--text-muted); font-size: 12px; margin-top: 8px; }
.home-store-link { display: inline-flex; align-items: center; gap: 18px; flex-shrink: 0; padding: 10px 16px; border: 1px solid var(--border-hover); border-radius: 10px; color: var(--accent-text); font-size: 12px; font-weight: 600; background: var(--accent-soft); }
.home-store-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.home-store-product { min-width: 0; display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg); transition: border-color .2s, transform .2s; }
.home-store-product:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.home-store-product-art { display: block; aspect-ratio: 4 / 3; border-radius: 9px; background: var(--surface-strong); overflow: hidden; }
.home-store-product-art img { width: 100%; height: 100%; object-fit: contain; }
.home-store-product-body { min-width: 0; }
.home-store-product h3 { font-size: 12px; line-height: 1.5; margin-bottom: 6px; overflow-wrap: anywhere; }
.home-store-product-price { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.4px; }
.home-store-product-body > a { display: inline-flex; gap: 8px; align-items: center; color: var(--accent-text); font-size: 11px; font-weight: 600; padding-block: 7px; }
.home-store-status { color: var(--text-muted); font-size: 12px; margin-bottom: 16px; }
.home-store-status[hidden] { display: none; }
.home-store-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 16px; font-size: 10px; color: var(--text-muted); }
.home-store-footer a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) { .home-store-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .home-store.section { padding-block: 28px; }
  .home-store-heading { gap: 12px; flex-wrap: wrap; }
  .home-store-link { padding: 8px 12px; font-size: 11px; }
  .home-store-products { gap: 10px; }
  .home-store-product { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
  .home-store-product-art { aspect-ratio: 4 / 3; }
  .home-store-product-art img { object-fit: contain; }
  .home-store-product h3 { font-size: 12px; }
  .home-store-product-price { font-size: 16px; }
  .header-actions .home-shop-cta { display: inline-flex; font-size: 12px; padding: 9px 12px; }
}
@media (max-width: 380px) { .header-actions .home-shop-cta { font-size: 11px; padding: 8px; } }
@media (prefers-reduced-motion: reduce) { .home-store-product { transition: none; } .home-store-product:hover { transform: none; } }
