:root {
  color-scheme: dark;
  --bg: #101010;
  --ink: #d5d3d7;
  --muted: #868189;
  --purple: #9a7cbb;
  --link: #7f9fc8;
  --mono: 'Space Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; background: var(--bg); }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--mono); font-size: 14px; font-weight: 700; line-height: 1.8; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.page-frame { width: min(690px, calc(100% - 40px)); margin: 32px auto 0; }

.site-header { min-height: 125px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 23px 16px; border-bottom: 2px solid #dedce0; border-radius: 6px 6px 0 0; background: linear-gradient(110deg, rgba(47,29,64,.94), rgba(23,17,30,.96)); }
.identity { min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 17px; }
.avatar-link { display: block; flex: 0 0 auto; line-height: 0; }
.avatar { position: relative; width: 76px; height: 76px; flex: 0 0 76px; display: grid; place-items: center; overflow: hidden; border: 1px solid #e0dce4; background: radial-gradient(circle at 55% 40%, #4d4263 0, #29273b 52%, #171c29 100%); }
.avatar::before, .avatar::after { position: absolute; content: ''; width: 27px; height: 27px; background: #77798e; opacity: .68; image-rendering: pixelated; }
.avatar::before { left: 12px; bottom: 13px; box-shadow: 8px -8px 0 #a299ab, 15px -5px 0 #343343, 20px 4px 0 #b1a8b7, 5px 11px 0 #37344b; }
.avatar::after { top: 13px; right: 12px; width: 13px; height: 13px; background: #d1bfdc; box-shadow: -39px 41px 0 #c4b4cf, 2px 2px 0 #aaa0b9; }
.avatar-sun { position: absolute; right: 11px; top: 12px; width: 10px; height: 10px; background: #d0addf; box-shadow: 0 0 16px #ad84c2; }
.avatar-initials { z-index: 1; padding: 2px 4px; background: rgba(16,16,16,.62); color: #f1e9f5; font-size: 14px; letter-spacing: -.12em; text-shadow: 1px 1px 0 #6b597a; }
.avatar-stars { position: absolute; z-index: 2; right: 4px; bottom: 1px; color: #cab1d5; font-size: 8px; letter-spacing: 1px; }
.identity-copy { min-width: 0; align-self: stretch; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; }
.site-title { display: block; color: #e2dfe4; font-size: clamp(20px, 4vw, 28px); letter-spacing: -.07em; line-height: 1.45; text-decoration: none; white-space: nowrap; }
.social-links { display: flex; flex-wrap: wrap; gap: 3px 14px; color: #a09ba5; font-size: 12px; line-height: 1.65; }
.social-links a { text-decoration: none !important; }
.social-links a:hover, .primary-nav a:hover { color: #ece1f4; }
.primary-nav { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; font-size: 12px; line-height: 1.55; white-space: nowrap; }
.primary-nav a { color: #a9a4ad; text-decoration: none; }
.primary-nav .active { color: #d9d1df; }

.about-copy { padding-top: 39px; }
.about-copy > p { margin: 0 0 26px; color: #d2cfd5; font-size: 13.5px; line-height: 1.85; letter-spacing: -.025em; text-align: justify; }
.sign-off { margin-top: 38px; text-align: center; }
.sign-off p { margin: 0 0 6px; color: #aaa5ae; font-size: 12px; }
.sign-off span { color: var(--purple); font-size: 15px; }
.home-links { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin-top: 37px; padding-bottom: 18px; font-size: 11px; }
.home-links a { color: #8e8992; text-decoration: none; }
.home-links a:hover { color: var(--link); }

.projects-list { padding-top: 6px; }
.project-row { display: grid; grid-template-columns: minmax(0, 1fr) 155px; align-items: center; gap: 24px; padding: 29px 0 27px; border-bottom: 1px solid #353338; }
.project-copy { min-width: 0; grid-column: 1; grid-row: 1; }
.project-heading { display: flex; align-items: baseline; gap: 13px; margin-bottom: 12px; }
.project-title { color: var(--link); font-size: 18px; line-height: 1.5; text-decoration: none; }
.project-title:hover { color: #a4bee0; }
.experience-company { padding: 0; border: 0; background: transparent; font-family: inherit; font-weight: inherit; text-align: left; cursor: pointer; }
.experience-company:focus-visible, .experience-dialog-close:focus-visible { outline: 1px solid #b69acb; outline-offset: 4px; }
.project-date { color: #77737b; font-size: 10px; font-weight: 400; white-space: nowrap; }
.project-row p { margin: 0; color: #c7c3ca; font-size: 13px; font-weight: 400; line-height: 1.85; }
.project-face { position: relative; width: 155px; height: 100px; grid-column: 2; grid-row: 1; overflow: hidden; margin: 0; border: 1px solid #38343d; background: #151419; }
.project-face img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.project-face--diya img { object-position: center 72%; }
.project-face--scribe img { object-position: center 66%; }
.project-face > a { position: absolute; inset: 0; z-index: 1; }

.experience-list { padding-top: 25px; }
.experience-group { margin-bottom: 36px; }
.experience-section-title { margin: 0; padding: 0 0 10px; border-bottom: 1px solid #353338; color: #a9a4ad; font-size: 11px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; }
.experience-preview { position: relative; width: 155px; height: 100px; display: grid; grid-column: 2; grid-row: 1; place-items: center; overflow: hidden; box-sizing: border-box; border: 1px dashed #38343d; background: #151419; color: #77737b; font-size: 9px; font-weight: 400; line-height: 1.5; letter-spacing: .1em; text-align: center; }
.experience-preview img { position: absolute; inset: 0; display: block; width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: auto; padding: 8px; box-sizing: border-box; object-fit: contain; }
.experience-preview--dotcom { border-style: solid; background: #fff; }
.experience-preview--hyle { border-style: solid; border-color: #242229; background: #050505; }
.experience-preview--cypherdote { border-style: solid; background: #f7f7f7; }
.experience-preview--echo { border-style: solid; border-color: #3158c9; background: #214ed4; }
.experience-preview--echo img { padding: 12px; }
.experience-dialog { width: min(540px, calc(100% - 32px)); max-height: min(78vh, 720px); padding: 0; border: 1px solid #51445c; border-radius: 3px; background: #151319; color: var(--ink); box-shadow: 0 18px 70px rgba(0,0,0,.55); font-family: var(--mono); }
.experience-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.experience-dialog-inner { position: relative; max-height: inherit; overflow-y: auto; padding: 28px 32px 32px; }
.experience-dialog-close { position: absolute; top: 12px; right: 15px; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; color: #aaa3b0; font: 400 23px/1 var(--mono); cursor: pointer; }
.experience-dialog-close:hover { color: #ece1f4; }
.experience-dialog-kicker { margin: 0 36px 6px 0; color: #8f8794; font-size: 9px; font-weight: 400; letter-spacing: .12em; }
.experience-dialog h2 { margin: 0 36px 20px 0; color: var(--link); font-size: 19px; line-height: 1.5; }
.experience-dialog section { margin-top: 17px; padding-top: 14px; border-top: 1px solid #353338; }
.experience-dialog h3 { margin: 0 0 7px; color: #a9a4ad; font-size: 9px; font-weight: 400; letter-spacing: .1em; }
.experience-dialog section p { margin: 0; color: #c7c3ca; font-size: 11px; font-weight: 400; line-height: 1.85; }

.articles-list { min-height: 390px; }
.resume-page { padding-top: 24px; }
.resume-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.resume-heading h1 { margin: 0; color: #d2cfd5; font-size: 15px; font-weight: 400; }
.hackathons-page { padding-top: 24px; }
.portfolio-page-title { margin: 0 0 18px; color: #d2cfd5; font-size: 15px; font-weight: 400; }
.resume-download { padding: 5px 9px; border: 1px solid #51445c; color: var(--link); font-size: 10px; font-weight: 400; text-decoration: none; }
.resume-download:hover { border-color: #9a7cbb; color: #c4aad9; }
.resume-page-image { display: block; width: 100%; height: auto; border: 1px solid #38343d; background: #fff; }
.portfolio-section { margin-top: 37px; }
.portfolio-section-title { margin: 0 0 10px; padding: 0 0 10px; border-bottom: 1px solid #353338; color: #a9a4ad; font-size: 11px; font-weight: 400; letter-spacing: .12em; }
.portfolio-entry { padding: 16px 0 17px; border-bottom: 1px solid #302e33; }
.portfolio-entry .project-title { margin: 0; font-weight: 700; }
.portfolio-entry .project-title a { color: inherit; text-decoration: none; }
.portfolio-entry .project-title a:hover { color: #a4bee0; }
.portfolio-entry .project-date { white-space: normal; }
.portfolio-copy { max-width: 520px; margin: 0; color: #c7c3ca; font-size: 13px; font-weight: 400; line-height: 1.85; }
.hackathon-entry { display: grid; grid-template-columns: minmax(0, 1fr) 155px; align-items: center; gap: 24px; }
.hackathon-entry-copy { min-width: 0; }
.hackathon-preview { position: relative; display: block; width: 155px; height: 100px; overflow: hidden; border: 1px solid #38343d; background: #151419; }
.hackathon-preview img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: rotate(90deg) scale(.78); }
.github-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.github-heading .portfolio-section-title { margin-bottom: 8px; }
.github-summary { margin: 0 0 14px; color: #d2cfd5; font-size: 11px; font-weight: 400; }
.github-profile-link { flex: 0 0 auto; margin-top: 1px; color: #8e8992; font-size: 9px; font-weight: 400; text-decoration: none; }
.github-profile-link:hover { color: var(--link); }
.github-chart { display: flex; gap: 8px; overflow: hidden; }
.github-weekdays { flex: 0 0 25px; display: grid; grid-template-rows: repeat(7, 10px); gap: 3px; padding-top: 20px; color: #77737b; font-size: 8px; font-weight: 400; line-height: 10px; }
.github-calendar-scroll { min-width: 0; flex: 1 1 auto; overflow-x: auto; scrollbar-color: #51445c #17161a; scrollbar-width: thin; }
.github-months, .github-calendar { display: grid; grid-auto-flow: column; grid-auto-columns: 10px; gap: 3px; width: max-content; }
.github-months { grid-template-rows: 15px; margin-bottom: 5px; color: #77737b; font-size: 8px; font-weight: 400; line-height: 15px; }
.github-months span { overflow: visible; white-space: nowrap; }
.github-calendar { grid-template-rows: repeat(7, 10px); }
.github-day, .github-legend i { width: 10px; height: 10px; display: block; border: 0; border-radius: 2px; background: #252129; }
.github-day { padding: 0; cursor: default; }
.github-day[data-level="1"], .github-legend i[data-level="1"] { background: #463653; }
.github-day[data-level="2"], .github-legend i[data-level="2"] { background: #695078; }
.github-day[data-level="3"], .github-legend i[data-level="3"] { background: #9870ad; }
.github-day[data-level="4"], .github-legend i[data-level="4"] { background: #c294d5; }
.github-day:focus-visible { outline: 1px solid #e8d4f0; outline-offset: 1px; }
.github-legend { display: flex; align-items: center; gap: 5px; margin-top: 12px; color: #77737b; font-size: 8px; font-weight: 400; }
.github-legend span:first-child { margin-right: 2px; }
.github-legend span:nth-last-child(2) { margin-left: 2px; }
.github-refresh-note { margin-left: auto; }
.skill-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; padding-top: 5px; }
.skill-group { min-width: 0; }
.skill-group h3 { margin: 0 0 7px; color: #8f8794; font-size: 9px; font-weight: 400; letter-spacing: .1em; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.skill-tags li { padding: 2px 6px; border: 1px solid #39343f; color: #c2bdc7; font-size: 9px; font-weight: 400; line-height: 1.65; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; margin: 31px 0 46px; padding-top: 13px; border-top: 1px solid #343238; color: #76717b; font-size: 10px; font-weight: 400; }

.fullscreen-control { position: fixed; top: 18px; right: 20px; z-index: 5; width: 21px; height: 21px; display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: #76727b; cursor: pointer; opacity: .75; }
.fullscreen-control:hover { color: #ddd3e4; opacity: 1; }
.fullscreen-control svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.music-control { position: fixed; left: max(20px, calc((100vw - 690px)/2 - 36px)); bottom: 24px; z-index: 5; padding: 3px 6px; border: 1px solid transparent; background: transparent; color: #77727c; font: 400 10px var(--mono); cursor: pointer; }
.music-control:hover, .music-control[aria-pressed="true"] { border-color: #46384e; color: #bd9dd5; }
.ambience { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; color: #9880b1; }
.ambience span { position: absolute; opacity: .24; animation: twinkle 5s ease-in-out infinite alternate; }
.ambience span:nth-child(1) { top: 26%; left: 13%; font-size: 10px; }
.ambience span:nth-child(2) { top: 62%; left: 27%; font-size: 17px; animation-delay: -2s; }
.ambience span:nth-child(3) { top: 78%; right: 18%; font-size: 12px; animation-delay: -3.5s; }
.ambience span:nth-child(4) { top: 38%; right: 12%; font-size: 16px; animation-delay: -1s; }
.ambience span:nth-child(5) { top: 89%; left: 8%; font-size: 11px; animation-delay: -4s; }
@keyframes twinkle { from { opacity: .08; transform: scale(.82); } to { opacity: .3; transform: scale(1.12); } }
body.ambient-active .ambience span { opacity: .6; }

@media (max-width: 640px) {
  .page-frame { width: calc(100% - 28px); margin-top: 18px; }
  .site-header { min-height: 108px; gap: 10px; padding: 14px 12px; }
  .identity { gap: 9px; }
  .avatar { width: 56px; height: 62px; flex-basis: 56px; }
  .site-title { font-size: clamp(17px, 4.3vw, 23px); }
  .social-links { gap: 1px 9px; font-size: 9px; }
  .primary-nav { font-size: 9px; line-height: 1.75; }
  .about-copy { padding-top: 29px; }
  .about-copy > p { font-size: 12px; line-height: 1.9; text-align: left; }
  .project-row { grid-template-columns: minmax(0, 1fr) 105px; gap: 14px; padding: 24px 0 22px; }
  .project-title { font-size: 15px; }
  .project-row p { font-size: 11.5px; }
  .project-face { width: 105px; height: 72px; }
  .project-face img { object-position: center 30%; }
  .project-face--diya img { object-position: center 72%; }
  .project-face--scribe img { object-position: center 66%; }
  .experience-preview { width: 105px; height: 72px; font-size: 8px; }
  .experience-preview img { padding: 5px; }
  .experience-dialog-inner { padding: 25px 20px 23px; }
  .experience-dialog h2 { font-size: 16px; }
  .experience-dialog section p { font-size: 10px; }
  .resume-heading h1 { font-size: 13px; }
  .resume-download { font-size: 9px; }
  .portfolio-entry .project-title { font-size: 15px; }
  .portfolio-entry .project-date { font-size: 8px; }
  .hackathon-entry { grid-template-columns: minmax(0, 1fr) 105px; gap: 14px; }
  .hackathon-preview { width: 105px; height: 72px; }
  .hackathon-preview img { transform: rotate(90deg) scale(.68); }
  .portfolio-copy { font-size: 11.5px; }
  .skill-groups { grid-template-columns: 1fr; gap: 13px; }
  .github-refresh-note { max-width: 110px; text-align: right; }
  .music-control { left: 8px; bottom: 8px; }
  .fullscreen-control { top: 6px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
