/* Commit — a repository: README bar, heatmap, git log, pull requests, commits. */
:root { --t-font-display: "Inter", system-ui, sans-serif; --t-font-body: "Inter", system-ui, sans-serif; --t-font-mono: "JetBrains Mono", ui-monospace, monospace; --t-max: 1040px; --t-radius: 8px; --t-radius-sm: 6px; --t-radius-pill: 6px; --t-shadow: none; }

/* README bar + head */
.t-hero--repo .t-hero__inner { grid-template-columns: 1fr; gap: 20px; padding-block: 16px clamp(24px, 4vw, 40px); }
.t-repo__bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-family: var(--t-font-mono); font-size: var(--t-size-0); color: var(--t-muted); padding: 10px 14px; border: 1px solid var(--t-line); border-radius: var(--t-radius); background: var(--t-surface); }
.t-repo__path { display: inline-flex; align-items: center; gap: 6px; }
.t-repo__path .t-icon { width: 16px; height: 16px; } .t-repo__path strong { color: var(--t-text); }
.t-repo__branch { padding: 2px 8px; border-radius: 4px; background: var(--t-surface2); color: var(--t-text); }
.t-repo__loc { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; } .t-repo__loc .t-icon { width: 16px; height: 16px; }
.t-repo__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 24px; align-items: start; }
.t-hero--repo .t-photo { width: clamp(88px, 12vw, 128px); border-radius: 50%; box-shadow: 0 0 0 1px var(--t-line); }
.t-hero--repo .t-eyebrow { font-family: var(--t-font-mono); text-transform: none; letter-spacing: 0; color: var(--t-muted); }
.t-hero--repo .t-eyebrow::before { content: "# "; }
.t-hero--repo .t-name { font-weight: 700; letter-spacing: -0.02em; font-size: clamp(2rem, 4.6vw, 3rem); }
.t-hero--repo .t-headline { font-weight: 500; }
.btn { --bs-btn-border-radius: 6px; --bs-btn-font-weight: 600; }
.t-link { border-radius: 6px; font-family: var(--t-font-mono); font-size: var(--t-size-0); }

/* the heatmap (the Commit signature) */
.t-heat { padding: 14px 16px; border: 1px solid var(--t-line); border-radius: var(--t-radius); background: var(--t-surface); display: grid; gap: 10px; }
.t-heat__title { margin: 0; font-size: var(--t-size-1); } .t-heat__title strong { font-weight: 700; }
.t-heat__note { color: var(--t-muted); font-size: var(--t-size-0); }
.t-heat__grid { width: 100%; height: auto; display: block; }
.t-heat__c { fill: var(--t-surface2); }
.t-heat__c--1 { fill: color-mix(in srgb, var(--t-accent) 30%, var(--t-surface2)); } .t-heat__c--2 { fill: color-mix(in srgb, var(--t-accent) 55%, var(--t-surface2)); } .t-heat__c--3 { fill: color-mix(in srgb, var(--t-accent) 80%, var(--t-surface2)); } .t-heat__c--4 { fill: var(--t-accent); }
.t-heat__legend { margin: 0; display: flex; align-items: center; gap: 4px; justify-content: end; font-size: var(--t-size-0); color: var(--t-muted); }
.t-heat__k { width: 10px; height: 10px; border-radius: 2px; background: var(--t-surface2); display: inline-block; }
.t-heat__k--1 { background: color-mix(in srgb, var(--t-accent) 30%, var(--t-surface2)); } .t-heat__k--2 { background: color-mix(in srgb, var(--t-accent) 55%, var(--t-surface2)); } .t-heat__k--3 { background: color-mix(in srgb, var(--t-accent) 80%, var(--t-surface2)); } .t-heat__k--4 { background: var(--t-accent); }

/* git log */
.t-log { font-family: var(--t-font-mono); font-size: var(--t-size-0); }
.t-log__cmd { margin: 0 0 8px; color: var(--t-muted); }
.t-log__list { list-style: none; margin: 0; padding: 0 0 0 18px; position: relative; display: grid; gap: 10px; }
.t-log__list::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 5px; border-inline-start: 2px solid var(--t-line); }
.t-log__row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; }
.t-log__dot { position: absolute; inset-inline-start: -18px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--t-bg); border: 2px solid var(--t-accent); }
.t-log__row--head .t-log__dot { background: var(--t-accent); }
.t-log__hash { color: var(--t-accent-text); }
.t-log__msg { color: var(--t-text); overflow-wrap: anywhere; }
.t-log__ref { color: var(--t-on-accent); background: var(--t-accent); border-radius: 4px; padding: 1px 6px; font-size: 11px; }
.t-log__meta { grid-column: 2; color: var(--t-muted); }
.t-hero--repo .t-hero__inner > .t-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.t-hero--repo .t-stats li { background: var(--t-surface); border: 1px solid var(--t-line); border-radius: var(--t-radius-sm); padding: 12px 14px; }
.t-hero--repo .t-stats strong { font-family: var(--t-font-mono); font-weight: 700; }

/* sections */
.t-section__title { font-family: var(--t-font-mono); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.4rem); border-block-end: 1px solid var(--t-line); padding-block-end: 8px; }
.t-section__title::before { content: "## "; color: var(--t-muted); }
.t-section--summary .t-section__title { display: none; }
.t-summary { font-size: clamp(1.15rem, 2.2vw, 1.45rem); max-width: 66ch; border-inline-start: 4px solid var(--t-line); padding-inline-start: 16px; color: var(--t-text); }
/* pull requests */
.t-prs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.t-pr { border: 1px solid var(--t-line); border-radius: var(--t-radius); background: var(--t-surface); padding: 14px 16px; display: grid; gap: 6px; }
.t-pr__head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.t-pr__state { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--t-accent); color: var(--t-on-accent); }
.t-pr__state .t-icon { width: 14px; height: 14px; stroke-width: 3; }
.t-pr__head .t-item__title { margin: 0; font-weight: 600; }
.t-pr__num { color: var(--t-muted); font-family: var(--t-font-mono); font-weight: 400; }
.t-pr__meta { margin: 0; color: var(--t-muted); font-size: var(--t-size-0); font-family: var(--t-font-mono); }
.t-pr__desc { margin: 0; }
.t-pr__foot { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
/* commits */
.t-commits { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.t-commit { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--t-line); border-radius: var(--t-radius-sm); background: var(--t-surface); font-size: var(--t-size-1); }
.t-commit__hash { font-family: var(--t-font-mono); color: var(--t-accent-text); font-size: var(--t-size-0); }
.t-commit__type { font-family: var(--t-font-mono); font-weight: 700; }
.t-commit__type--fix { color: var(--t-accent-text); } .t-commit__type--perf, .t-commit__type--docs, .t-commit__type--feat { color: var(--t-accent-text); }
.t-commit__meta { grid-column: 2; color: var(--t-muted); font-size: var(--t-size-0); }
.t-commit__body { grid-column: 2; margin: 2px 0 0; color: var(--t-muted); }
.t-chip { font-family: var(--t-font-mono); font-size: var(--t-size-0); border-radius: 6px; }
.t-chip::before { content: "`"; color: var(--t-muted); } .t-chip:not([data-level])::after { content: "`"; color: var(--t-muted); }
.t-list li strong a { font-family: var(--t-font-mono); }
.t-timeline__when { font-family: var(--t-font-mono); }
.t-quote { border: 1px solid var(--t-line); background: var(--t-surface); }
.t-quote blockquote::before { content: "> "; color: var(--t-muted); font-family: var(--t-font-mono); }
.t-footer { font-family: var(--t-font-mono); }
