/* Selected direction: soft glass. Self-contained assets for static hosting. */
:root {
  color-scheme: light;
  --bg: #eef3f2; --surface: #ffffffa8; --surface-hover: #ffffffe0;
  --ink: #233b40; --muted: #50666a; --line: #ffffffed;
  --accent: #266366; --accent-soft: #e0eeed;
  --shadow: 0 12px 40px #284e5010, inset 0 1px 0 #fff; --radius: 22px;
  --heading: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16272b; --surface: #213a40d9; --surface-hover: #2c4a51ed;
  --ink: #edf5f2; --muted: #b5cac8; --line: #ffffff29;
  --accent: #a4d9ce; --accent-soft: #304f52;
  --shadow: 0 12px 40px #00000012, inset 0 1px 0 #ffffff10;
}
* { box-sizing: border-box; }
body { margin: 0; position: relative; isolation: isolate; min-height: 100svh; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; }
[data-style="glass"] body::before { background: radial-gradient(ellipse at 4% 5%, #b2d5cc80, transparent 54%), radial-gradient(ellipse at 96% 44%, #d6c9b880, transparent 52%), radial-gradient(ellipse at 36% 100%, #c8d8ed90, transparent 55%); }
[data-style="glass"][data-theme="dark"] body::before { background: radial-gradient(ellipse at 4% 5%, #38716960, transparent 54%), radial-gradient(ellipse at 96% 44%, #7a685345, transparent 52%), radial-gradient(ellipse at 36% 100%, #34566d60, transparent 55%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), a { cursor: pointer; }
svg { width: 22px; height: 22px; flex-shrink: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent-soft); color: var(--ink); }
.skip-link { position: absolute; top: -100px; left: 24px; padding: 12px 16px; z-index: 10; background: var(--surface); }
.skip-link:focus { top: 12px; }
.shell { width: min(100% - 96px, 920px); margin-inline: auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding-block: 32px; gap: 16px; }
.wordmark { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; letter-spacing: .04em; }
.wordmark svg { width: 27px; height: 27px; color: var(--accent); }
.top-actions { display: flex; gap: 20px; align-items: center; }
.theme-toggle { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); display: grid; place-items: center; }
.theme-toggle:hover { background: var(--accent-soft); }
.theme-toggle:active { transform: scale(.94); }
.theme-toggle svg { width: 19px; height: 19px; }
[data-theme="light"] .sun, [data-theme="dark"] .moon { display: none; }
.intro { padding-block: 52px 48px; max-width: 760px; }
.identity { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.avatar-wrap { width: 58px; height: 58px; flex-shrink: 0; display: grid; place-items: center; position: relative; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--line); overflow: hidden; }
.avatar-fallback { font-size: 22px; color: var(--accent); }
.avatar { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eyebrow { margin: 0 0 3px; font-family: var(--mono); font-size: 11px; letter-spacing: .15em; color: var(--muted); }
.greeting { margin: 0; font-size: 14px; color: var(--muted); }
h1 { margin: 0; font-family: var(--heading); font-weight: 500; font-size: clamp(38px, 5vw, 52px); line-height: 1.3; letter-spacing: -.035em; overflow-wrap: anywhere; }
h1 .name { color: var(--accent); }
.tagline { max-width: 650px; margin: 22px 0 0; font-size: 16px; color: var(--muted); line-height: 1.9; text-wrap: pretty; overflow-wrap: anywhere; }
.section-heading { border-top: 1px solid var(--line); padding-top: 24px; margin-bottom: 20px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.section-heading h2 { margin: 0; font-size: 15px; font-weight: 600; }
.section-heading span { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.project { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; overflow: hidden; transition: box-shadow .2s; }
a.project:hover { background: var(--surface-hover); border-color: var(--accent); }
a.project:active { box-shadow: inset 0 0 0 1px var(--accent); }
.project-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.project-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.project-number { font: 11px var(--mono); color: var(--muted); }
.project h3 { font-size: 21px; font-weight: 600; margin: 0 0 8px; line-height: 1.45; overflow-wrap: anywhere; }
.project p { margin: 0 0 28px; font-size: 14px; color: var(--muted); line-height: 1.85; overflow-wrap: anywhere; text-wrap: pretty; }
.project-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; font: 12px var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.project-arrow { width: 18px; height: 18px; color: var(--accent); transition: transform .2s; }
a.project:hover .project-arrow { transform: translate(2px, -2px); }
.project-music { grid-column: 1 / -1; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding-block: 24px; box-shadow: none; background: transparent; }
.project-music h3 { font-size: 17px; margin-bottom: 2px; }
.project-music p { margin: 0; font-size: 14px; }
.pending-label { border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 4px 10px; font-size: 11px; white-space: nowrap; }
.elsewhere { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 28px 36px; }
.elsewhere-label { font-size: 13px; color: var(--muted); }
.socials { display: flex; gap: 24px; flex-wrap: wrap; }
.socials a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; }
.socials a:hover { color: var(--accent); }
.socials svg { width: 16px; height: 16px; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer p { margin: 0; }
.footer a { min-height: 44px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.footer a:hover { color: var(--accent); }
.footer .signoff { font: 11px var(--mono); letter-spacing: .05em; }
.load-message { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.retry { margin-left: 12px; min-height: 44px; padding-inline: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); }
.retry:disabled { cursor: wait; }
/* Glass: translucent layers against a static, muted color field. */
[data-style="glass"] .project, [data-style="glass"] .theme-toggle { backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
[data-style="glass"] .intro { text-align: center; margin-inline: auto; padding-top: 44px; }
[data-style="glass"] .identity { justify-content: center; }
[data-style="glass"] .identity-copy { text-align: left; }
[data-style="glass"] .tagline { margin-inline: auto; }
[data-style="glass"] h1 { font-size: clamp(36px, 4.8vw, 48px); font-weight: 500; }
[data-style="glass"] .project-icon { border-radius: 50%; border-color: transparent; }
[data-style="glass"] .avatar-wrap { box-shadow: 0 0 0 6px #ffffff25; }
[data-style="glass"] .section-heading, [data-style="glass"] .footer { border-color: color-mix(in srgb, var(--muted) 25%, transparent); }
[data-style="glass"] .project-music { background: var(--surface); }
@media (min-width: 1600px) { .intro { padding-top: 80px; } }
@media (max-width: 640px) {
  .shell { width: calc(100% - 40px); }
  .topbar { padding-block: 20px; }
  .top-actions { gap: 12px; }
  .intro, [data-style="glass"] .intro { padding-block: 36px; }
  .projects { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .project { padding: 24px; }
  .project-top { margin-bottom: 20px; }
  .project p { margin-bottom: 24px; }
  .project-music { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .project-music p { margin: 0; }
  .pending-label { grid-column: 2; justify-self: start; margin-top: -8px; }
  .elsewhere { align-items: flex-start; flex-direction: column; gap: 8px; padding-bottom: 24px; }
  .footer { align-items: flex-start; flex-direction: column; gap: 4px; padding-top: 20px; }
  .tagline { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.icp-link { gap: 6px; }
.icp-icon { width: 14px; height: 14px; flex-shrink: 0; }
.project-music.is-pending { border-style: dashed; }
@media (max-width: 640px) {
  .project-music:not(.is-pending) { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; }
}
