/* v50: personal introduction, readable content, one graphic motif. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body, h1, h2, h3, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
img { display: block; max-width: 100%; }
.wrap { width: min(1200px, calc(100% - 112px)); margin-inline: auto; }
.home-page { font-family: var(--font); font-size: 16px; line-height: 1.8; }
.mono, .intro-alias { font-family: var(--font-mono); }
.skip-link { position: fixed; top: 8px; left: 16px; transform: translateY(-180%); z-index: 200; padding: 12px 20px; background: var(--accent); color: var(--accent-fg); }
.skip-link:focus { transform: none; }
.home-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.masthead__inner { min-height: 96px; display: flex; gap: 28px; align-items: center; }
.home-brand { display: flex; align-items: center; gap: 13px; font-family: var(--font-mono); line-height: 1.25; font-size: 18px; min-height: 44px; }
.home-brand > svg { width: 31px; height: 31px; color: var(--accent); stroke: currentColor; stroke-width: 1.4; fill: none; }
.brand-caption { display: block; font-family: var(--font); font-size: 11px; letter-spacing: .14em; margin-top: 6px; color: var(--text-secondary); }
.navigation { display: flex; gap: 30px; margin-left: auto; }
.navigation a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.navigation a:hover, .navigation a[aria-current] { color: var(--accent); }
.theme-toggle { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon, html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-moon { display: block; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.intro { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding-top: 78px; gap: 30px 32px; }
.intro-copy { position: relative; z-index: 1; padding-bottom: 44px; }
.hello { font-size: 16px; color: var(--text-secondary); margin-bottom: 12px; letter-spacing: .1em; }
.intro h1 { font-weight: 700; font-size: clamp(80px, 9vw, 144px); line-height: 1.1; letter-spacing: -.07em; }
.intro h1 span { color: var(--accent); }
.intro-alias { font-size: 18px; letter-spacing: .04em; margin-top: 18px; color: var(--accent); }
.intro-line { font-weight: 500; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.5; letter-spacing: -.025em; margin-top: 34px; }
.intro-description { margin-top: 20px; color: var(--text-secondary); font-size: 15px; }
.primary-link { display: inline-flex; align-items: center; gap: 32px; padding: 13px 20px; min-height: 50px; margin-top: 30px; color: var(--accent-fg); background: var(--accent); border-radius: var(--radius); font-size: 14px; font-weight: 600; }
.primary-link span { font-size: 22px; line-height: 1; transition: transform var(--duration-fast) var(--ease); }
.primary-link:hover span { transform: translate(3px,-3px); }
.primary-link:active { transform: translateY(1px); }
.intro-art { position: relative; display: flex; flex-direction: column; justify-content: center; align-self: stretch; min-width: 0; color: var(--accent); }
.art-caption, .art-bottom { color: var(--text-secondary); font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; }
.art-caption { align-self: flex-end; }
.light-study { width: 100%; margin-block: 24px 0; }
.light-rays { opacity: .62; }
.light-disc { fill: var(--bg); }
.light-orbit { opacity: .42; }
.light-cross { opacity: .17; }
.light-center { opacity: .9; }
.art-bottom { display: flex; justify-content: space-between; padding-block: 20px; border-top: 1px solid var(--line); }
.intro-bottom { grid-column: 1 / -1; padding-block: 22px; border-block: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-secondary); }
.intro-bottom a { display: inline-flex; gap: 20px; align-items: center; min-height: 32px; }
.intro-bottom a:hover { color: var(--text); }
.section-grid { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 64px; padding-block: 100px; border-bottom: 1px solid var(--line); }
.tiny-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em; color: var(--text-secondary); }
.section-label h2 { font-size: 25px; font-weight: 500; letter-spacing: -.025em; margin-top: 9px; }
.section-label > p { margin-top: 18px; color: var(--text-secondary); font-size: 14px; }
.section-label .text-link { display: inline-flex; align-items: center; gap: 24px; min-height: 44px; margin-top: 22px; font-size: 13px; color: var(--accent); }
.about-lead { font-size: clamp(26px, 3vw, 38px); font-weight: 500; line-height: 1.5; letter-spacing: -.03em; }
.about-detail { display: grid; grid-template-columns: 1fr 120px; gap: 48px; margin-top: 30px; align-items: start; }
.about-detail p { color: var(--text-secondary); font-size: 15px; max-width: 36em; }
.about-detail p + p { margin-top: 20px; }
.profile-stamp img { width: 104px; height: 104px; object-fit: cover; border-radius: var(--radius-lg); }
.profile-stamp figcaption { font-size: 12px; margin-top: 12px; }
.profile-stamp figcaption span { display: block; color: var(--text-secondary); font-family: var(--font-mono); font-size: 11px; }
.interests { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 30px; font-size: 12px; color: var(--text-secondary); }
.interests li::before { content: "+"; margin-right: 8px; color: var(--accent); }
.featured-entry { display: block; }
.site-preview { position: relative; background: var(--surface-alt); overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 30px 30px; }
.preview-bar { position: relative; z-index: 1; display: flex; justify-content: space-between; color: var(--text-secondary); font-family: var(--font-mono); font-size: 10px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.preview-bar i { font-size: 14px; font-style: normal; }
.preview-body { padding-top: 38px; position: relative; z-index: 1; }
.preview-body > span, .preview-body small { font-family: var(--font-mono); font-size: 9px; letter-spacing: .15em; color: var(--text-secondary); }
.preview-body strong { display: block; font-size: 64px; font-weight: 600; line-height: 1.3; letter-spacing: -.06em; margin-top: 8px; }
.preview-body strong span { color: var(--accent); }
.preview-body p { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.preview-rule { height: 1px; background: var(--line); width: 100%; margin-top: 32px; margin-bottom: 12px; }
.preview-sun { position: absolute; right: 8%; top: 18%; font-size: 200px; color: var(--accent); opacity: .85; font-weight: 200; line-height: 1.4; }
.featured-caption { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-block: 26px; }
.featured-caption h3 { font-size: 22px; font-weight: 500; margin-top: 7px; }
.featured-caption p, .tool-entry p { color: var(--text-secondary); font-size: 14px; margin-top: 8px; }
.entry-arrow { font-size: 26px; color: var(--accent); flex-shrink: 0; transition: transform var(--duration-fast) var(--ease); }
a:hover .entry-arrow { transform: translate(3px, -3px); }
.featured-entry:hover h3, .tool-entry:hover h3, .writing-list a:hover h3 { color: var(--accent); }
.tool-entry { display: grid; grid-template-columns: 80px minmax(0,1fr) 26px; gap: 24px; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; }
.tool-entry h3 { font-size: 18px; font-weight: 500; }
.tool-drawing { color: var(--accent); }
.tool-drawing svg { width: 80px; }
.writing-context { color: var(--text-secondary); font-size: 14px; max-width: 38em; margin-bottom: 26px; }
.writing-list { border-top: 1px solid var(--line); }
.writing-list a { display: grid; grid-template-columns: 96px minmax(0,1fr) 20px; align-items: baseline; gap: 24px; padding-block: 25px; border-bottom: 1px solid var(--line); }
.writing-list time { color: var(--text-secondary); font-family: var(--font-mono); font-size: 11px; }
.writing-list h3 { font-size: 18px; font-weight: 500; line-height: 1.65; }
.writing-list p { color: var(--text-secondary); font-size: 13px; margin-top: 7px; }
.writing-list a > span { color: var(--accent); }
.short-notes { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 24px; margin-top: 32px; }
.short-notes > h3 { font-size: 13px; color: var(--text-secondary); font-weight: 400; padding-top: 9px; }
.notes-latest { display: grid; gap: 0; font-size: 13px; }
.notes-latest a { min-height: 44px; display: flex; align-items: center; gap: 12px; padding-block: 6px; }
.notes-latest a:hover { color: var(--accent); }
.notes-latest__label, .notes-latest__sep { display: none; }
.notes-latest__all { color: var(--accent); margin-top: 8px; }
.contact-section { background: var(--surface-alt); margin-top: 80px; }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; padding-block: 76px; }
.contact-inner h2 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.5; font-weight: 500; letter-spacing: -.035em; margin-top: 12px; }
.contact-inner h2 > span { color: var(--accent); }
.contact-inner p { margin-top: 20px; color: var(--text-secondary); font-size: 14px; }
.email-link { display: grid; grid-template-columns: 1fr 25px; gap: 13px; border-bottom: 1px solid var(--line-strong); padding-bottom: 25px; }
.email-link > span { grid-column: 1 / -1; color: var(--text-secondary); font-size: 12px; }
.email-link strong { font-family: var(--font-mono); font-size: clamp(14px,1.5vw,21px); font-weight: 400; overflow-wrap: anywhere; }
.email-link i { font-size: 24px; font-style: normal; color: var(--accent); line-height: 1.2; }
.email-link:hover strong { color: var(--accent); }
.contact-actions { display: flex; justify-content: space-between; gap: 24px; margin-top: 16px; }
.contact-actions a, .copy-btn { display: inline-flex; min-height: 44px; gap: 24px; align-items: center; background: none; border: 0; padding: 0; font-size: 13px; }
.contact-actions a:hover, .copy-btn:hover { color: var(--accent); }
.home-footer { display: flex; justify-content: space-between; gap: 30px; align-items: center; padding-block: 35px; font-size: 11px; color: var(--text-secondary); }
.footer-made { display: block; margin-top: 4px; }
.home-footer nav { display: flex; gap: 26px; align-items: center; }
.home-footer a { display: inline-flex; align-items: center; justify-content:center; min-width:24px; min-height:44px; }
.home-footer a:hover { color: var(--text); }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 72px); }
  .masthead__inner { gap: 18px; }
  .navigation { gap: 20px; }
  .section-grid { grid-template-columns: 190px minmax(0,1fr); gap: 40px; }
  .about-detail { gap: 28px; }
  .contact-inner { gap: 48px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 120px; }
  .wrap { width: calc(100% - 40px); }
  .masthead__inner { min-height: 76px; flex-wrap: wrap; gap: 0 12px; padding-top: 12px; }
  .home-brand { margin-right: auto; font-size: 16px; }
  .home-brand > svg { width: 26px; height: 26px; }
  .brand-caption { font-size: 10px; }
  .navigation { width: 100%; margin: 8px 0 0; order: 3; justify-content: space-between; gap: 12px; }
  .navigation a { font-size: 13px; }
  .intro { padding-top: 48px; grid-template-columns: minmax(0,1fr); gap: 26px; }
  .intro-copy { padding-bottom: 0; }
  .intro h1 { font-size: clamp(80px,23vw,120px); }
  .intro-line { font-size: 28px; margin-top: 24px; }
  .intro-description { font-size: 14px; }
  .intro-alias { font-size: 17px; margin-top: 12px; }
  .intro-art { max-width: 400px; width: 100%; margin-inline: auto; }
  .art-caption { display: none; }
  .light-study { margin: 0; max-height: 290px; }
  .art-bottom { font-size: 9px; padding-block: 12px; }
  .intro-bottom { gap: 16px; font-size: 10px; padding-block: 12px; }
  .intro-bottom a { gap: 8px; white-space: nowrap; }
  .section-grid { grid-template-columns: minmax(0,1fr); gap: 32px; padding-block: 64px; }
  .section-label h2 { font-size: 24px; }
  .section-label > p { margin-top: 10px; }
  .section-label > p br { display: none; }
  .section-label .text-link { margin-top: 8px; }
  .about-lead { font-size: 25px; }
  .about-detail { grid-template-columns: minmax(0,1fr); gap: 24px; margin-top: 22px; }
  .profile-stamp { display: flex; align-items: center; gap: 16px; }
  .profile-stamp img { width: 64px; height: 64px; }
  .profile-stamp figcaption { margin-top: 0; }
  .site-preview { padding: 18px 20px 22px; }
  .preview-body { padding-top: 26px; }
  .preview-body strong { font-size: 48px; }
  .preview-sun { font-size: 140px; right: 6%; top: 23%; }
  .featured-caption h3 { font-size: 18px; }
  .featured-caption p, .tool-entry p { font-size: 13px; }
  .tool-entry { grid-template-columns: 56px minmax(0,1fr) 20px; gap: 16px; }
  .tool-drawing svg { width: 56px; }
  .tool-entry h3 { font-size: 17px; }
  .writing-list a { grid-template-columns: 1fr 20px; gap: 8px 20px; }
  .writing-list time { grid-column: 1 / -1; }
  .writing-list h3 { font-size: 17px; }
  .short-notes { grid-template-columns: 1fr; gap: 10px; }
  .contact-section { margin-top: 48px; }
  .contact-inner { grid-template-columns: minmax(0,1fr); gap: 36px; padding-block: 48px; }
  .contact-inner h2 { font-size: 32px; }
  .email-link strong { font-size: clamp(14px,4.5vw,20px); }
  .home-footer { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 24px; }
  .home-footer nav { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .primary-link span, .entry-arrow { transition: none; } }
@media print { .home-header, .intro-art, .home-footer, .cmdk, .cmdk-open { display: none; } .wrap { width: 100%; } .intro, .section-grid, .contact-inner { display: block; padding-block: 24px; } }

/* The original pony palette is an identity, not an interchangeable accent. */
.home-brand > svg { color: var(--pink); }
.intro h1 > span, .contact-inner h2 > span { color: var(--pink); }
.intro-art { isolation: isolate; }
.light-rays { stroke: var(--violet); opacity: .55; }
.light-cross { stroke: var(--pink); }
.light-study { margin-top: 24px; }
.magic-star { fill: var(--pink); transform: translate(195px,-190px) scale(.25); transform-origin: 300px 300px; }
.hero-avatar { position:absolute; width:46%; aspect-ratio:1; top:50%; left:50%; transform:translate(-50%,-53%); border-radius:50%; overflow:hidden; }
.hero-avatar img { width:100%; height:100%; object-fit:cover; }
.preview-sun { width:32%; height:62%; right:8%; top:20%; color:var(--pink); }
.profile-stamp figcaption span { overflow-wrap:anywhere; }
.writing-list time { overflow-wrap:anywhere; }
.home-brand { flex-shrink:0; }
.masthead__inner { flex-wrap:wrap; }
.intro-copy, .section-grid > *, .contact-inner > * { min-width:0; }
.intro h1 { overflow-wrap:anywhere; }
.intro-bottom { flex-wrap:wrap; }
.intro-bottom a { white-space:normal; }
.home-footer nav, .navigation { flex-wrap:wrap; }
.tool-entry { grid-template-columns:80px minmax(0,1fr) max-content; }
.writing-list a { grid-template-columns:96px minmax(0,1fr) max-content; }
.email-link { grid-template-columns:minmax(0,1fr) max-content; }
@media (max-width:760px) {
  .tool-entry { grid-template-columns:56px minmax(0,1fr) max-content; }
  .writing-list a { grid-template-columns:minmax(0,1fr) max-content; }
}
@media (min-width:761px) { .intro { padding-top:56px; } .intro-art { max-width:520px; justify-self:end; width:100%; } }
@media (max-width:760px) { .hero-avatar { width:138px; transform:translate(-50%,-63%); } .intro-art { margin-top:12px; } }
