@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');

:root { color-scheme: light; --paper: #e8e8e8; --ink: #333; --muted: #646464; --line: #d8d8d8; --gold: #e7ac36; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14px/1.6 'Rubik', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
a:focus-visible, [tabindex]:focus-visible { outline: 3px solid #a36500; outline-offset: 5px; border-radius: 3px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.2; }
::selection { background: #ffe5a7; color: #333; }
.skip-link { position: absolute; top: -80px; left: 20px; padding: 10px 20px; background: #fff; z-index: 10; }
.skip-link:focus { top: 12px; }
.portfolio { display: grid; grid-template-columns: 350px minmax(0, 1fr); max-width: 1600px; margin-inline: auto; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; padding: 56px 28px 30px 40px; }
.profile-logo { display: inline-block; border-radius: 50%; margin-bottom: 22px; }
.profile-logo img { border-radius: 50%; object-fit: cover; width: 144px; height: 144px; box-shadow: 0 0 0 1px #0000000d; }
h1 { font-size: 36px; font-weight: 700; letter-spacing: -1.2px; margin-bottom: 10px; }
.location { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 13px; }
.location svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.developer-label { border-left: 1px solid #c7c7c7; padding-left: 9px; margin-left: 3px; }
.bio { margin: 25px 0 32px; line-height: 1.8; }
.profile-links { display: flex; gap: 22px; margin-top: 14px; font-weight: 500; font-size: 13px; }
.github-section { border-top: 1px solid #ccc; padding-top: 24px; }
.panel-heading, .repo-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel-heading h2 { font-size: 16px; font-weight: 600; }
.panel-heading h3, .repo-heading h3 { font-size: 12px; font-weight: 500; }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; background: #329f58; box-shadow: 0 0 0 4px #329f5815; }
.muted { color: var(--muted); font-size: 11px; }
#activity-status { margin-top: 12px; }
.heatmap-scroll { overflow-x: auto; scrollbar-width: thin; padding-bottom: 7px; margin-top: 16px; }
.contribution-calendar { min-width: 420px; }
.heatmap-months { display: grid; gap: 2px; margin: 0 0 7px 24px; font-size: 8px; line-height: 1; color: var(--muted); }
.heatmap-body { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.heatmap-weekdays { display: grid; grid-template-rows: repeat(7, 1fr); gap: 2px; font-size: 7px; line-height: 1; color: var(--muted); }
.heatmap { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; }
.heatmap-cell { border-radius: 1px; aspect-ratio: 1; }
.level-0 { background: #d5d8d5; }
.level-1 { background: #9be9a8; }
.level-2 { background: #40c463; }
.level-3 { background: #30a14e; }
.level-4 { background: #216e39; }
.heatmap-key { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 8px; color: var(--muted); margin-top: 4px; }
.heatmap-key > span:last-child { display: flex; align-items: center; gap: 3px; }
.heatmap-key i { width: 7px; height: 7px; border-radius: 1px; }
.data-note { font-size: 10px; line-height: 1.7; color: var(--muted); margin-top: 12px; }
.repo-heading { margin: 22px 0 8px; }
.repo-heading > span { color: var(--muted); font-size: 9px; }
.repo-list { display: grid; }
.repo-link { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 0; font-size: 11px; }
.repo-link > span:first-child { overflow-wrap: anywhere; }
.repo-meta { color: var(--muted); font-size: 8px; white-space: nowrap; }
.commit-panel { border-top: 1px solid #ccc; padding-top: 20px; margin-top: 22px; }
.code-symbol { color: #697a66; font: 14px ui-monospace, monospace; }
.commit-list { list-style: none; padding: 0; margin: 18px 0; }
.commit-list li { position: relative; border-left: 1px solid #c8cfc6; padding: 0 0 18px 14px; margin-left: 3px; }
.commit-list li:last-child { padding-bottom: 0; border-left-color: transparent; }
.commit-list li::before { content: ''; position: absolute; left: -3px; top: 5px; width: 5px; height: 5px; border-radius: 50%; background: #79966d; box-shadow: 0 0 0 3px var(--paper); }
.commit-link { display: block; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.commit-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; color: var(--muted); font: 8px/1.6 ui-monospace, monospace; overflow-wrap: anywhere; }
.commit-meta time { margin-left: auto; }
.all-activity { display: flex; justify-content: space-between; font-size: 10px; }
.update-note { color: var(--muted); font-size: 9px; margin-top: 16px; }
.sidebar-footer { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 9px; margin-top: 30px; }
.apps-section { min-width: 0; padding: 56px 40px 48px 32px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 25px; }
.eyebrow { font-size: 9px; font-weight: 500; letter-spacing: .14em; color: var(--muted); margin-bottom: 7px; }
.section-heading h2 { font-size: 30px; letter-spacing: -.9px; }
.app-count { font-size: 11px; color: var(--muted); padding-bottom: 4px; }
.rc-mark { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 15px; height: 15px; background: #e7584b; color: #fff; font: 600 10px/1 system-ui, sans-serif; border-radius: 4px; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.app-card { background: #fff; border-radius: 16px; padding: 24px 24px 16px; min-width: 0; transition: transform .2s; }
.app-card:hover { transform: translateY(-2px); }
.app-heading { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.app-heading > img { width: 26px; height: 26px; border-radius: 7px; }
.app-heading h3 { font-size: 16px; font-weight: 600; margin-right: auto; }
.revenue-badge { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; background: #eee; color: #555; font-size: 9px; line-height: 15px; border-radius: 5px; padding-right: 5px; }
.app-description { font-size: 12px; color: #5d5d5d; margin-top: 8px; min-height: 39px; }
.revenue-chart { position: relative; min-width: 0; height: 114px; margin-top: 16px; }
.revenue-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-empty { height: 100%; display: flex; align-items: center; justify-content: center; padding: 18px; text-align: center; font-size: 10px; color: var(--muted); border-radius: 6px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 29px, #f0f0f0 30px, transparent 31px); }
.chart-grid { stroke: #ededed; stroke-width: 1; stroke-dasharray: 2 4; }
.chart-line { fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.chart-label { fill: #737373; font: 9px system-ui, sans-serif; }
.store-link { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f1f1f1; padding-top: 10px; margin-top: 12px; font-size: 10px; color: var(--muted); }
.apps-note { margin-top: 26px; font-size: 10px; color: var(--muted); text-align: center; }
@media (min-width: 1400px) { .portfolio { grid-template-columns: 420px minmax(0, 1fr); } .sidebar { padding: 64px 38px 30px 64px; } .apps-section { padding: 64px 64px 48px 32px; } .profile-logo img { width: 176px; height: 176px; } }
@media (max-width: 1100px) { .portfolio { grid-template-columns: 310px minmax(0, 1fr); } .sidebar { padding: 36px 24px; } .apps-section { padding: 36px 24px; } .app-grid { gap: 20px; } .app-card { padding: 20px 18px 14px; } .app-heading h3 { font-size: 14px; } }
@media (max-width: 900px) and (min-width: 761px) { .app-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .portfolio { display: flex; flex-direction: column; }
  .sidebar { position: static; height: auto; overflow: visible; padding: 28px 24px 0; }
  .profile { display: flex; align-items: center; gap: 20px; }
  .profile-logo { margin: 0; flex-shrink: 0; }
  .profile-logo img { width: 88px; height: 88px; }
  h1 { font-size: 29px; margin-bottom: 7px; }
  .bio { margin: 22px 0; }
  .github-section { padding-top: 18px; }
  .contribution-calendar { min-width: 420px; }
  .commit-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .commit-list li { padding-bottom: 0; }
  .commit-meta time { margin-left: 0; }
  .sidebar-footer { margin-top: 18px; }
  .apps-section { padding: 32px 24px; }
  .section-heading h2 { font-size: 27px; }
}
@media (max-width: 540px) {
  .app-grid { grid-template-columns: 1fr; gap: 20px; }
  .app-card { padding: 22px 22px 16px; }
  .app-heading h3 { font-size: 16px; }
  .app-description { min-height: auto; }
  .revenue-chart { height: 125px; }
  .commit-list { grid-template-columns: 1fr; gap: 16px; }
  .app-count { max-width: 95px; text-align: right; }
  .location { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
