/* Gruvbox dark */
:root {
  --bg0: #282828; --bg0h: #1d2021; --bg1: #3c3836; --bg2: #504945; --bg3: #665c54;
  --fg: #ebdbb2; --fg2: #d5c4a1; --gray: #928374;
  --red: #fb4934; --green: #b8bb26; --yellow: #fabd2f; --blue: #83a598;
  --purple: #d3869b; --aqua: #8ec07c; --orange: #fe8019;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 48px; }
body { margin: 0; background: var(--bg0h); color: var(--fg); font: 15px/1.7 var(--mono); overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--yellow); color: var(--bg0); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-size: inherit; margin: 0; }
p { margin: 0 0 1em; }

/* tmux status bar */
.tmux { position: sticky; top: 0; z-index: 10; background: var(--bg1); font-size: 13px; }
.tmux .wrap { display: flex; align-items: stretch; height: 34px; gap: 0; padding: 0; }
.tmux__session { background: var(--green); color: var(--bg0); font-weight: 700; padding: 0 12px; display: flex; align-items: center; }
.tmux__wins { display: flex; overflow-x: auto; scrollbar-width: none; }
.tmux__wins a { color: var(--fg2); padding: 0 12px; display: flex; align-items: center; white-space: nowrap; }
.tmux__wins a:hover { background: var(--bg2); text-decoration: none; }
.tmux__wins a.active { background: var(--yellow); color: var(--bg0); font-weight: 600; }
.tmux__right { margin-left: auto; display: flex; align-items: center; gap: 0; }
.tmux__right span { padding: 0 12px; color: var(--fg2); height: 100%; display: flex; align-items: center; }
.tmux__right { flex-shrink: 0; }
.tmux__wins { min-width: 0; }
.tmux__right .hire { background: var(--orange); color: var(--bg0); font-weight: 700; white-space: nowrap; display: flex; align-items: center; }
.tmux__right .hire:hover { text-decoration: none; background: var(--yellow); }

/* prompt lines */
.ps1 { color: var(--fg); margin: 0 0 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps1 .u { color: var(--green); font-weight: 700; }
.ps1 .p { color: var(--blue); font-weight: 700; }
.ps1 .cmd { color: var(--fg); }
.comment { color: var(--gray); font-style: italic; }
.cursor { display: inline-block; width: .6em; height: 1.15em; background: var(--fg); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

section { padding: 64px 0; border-bottom: 1px dashed var(--bg2); }

/* neofetch hero */
.neofetch { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; margin-top: 8px; }
.neofetch__logo { position: relative; }
.neofetch__logo img { width: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(.15) contrast(1.05); border: 2px solid var(--yellow); display: block; }
.neofetch__logo::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 3px); pointer-events: none; }
.nf-title { font-size: 1.05rem; }
.nf-title .u, .nf-title .h { color: var(--yellow); font-weight: 700; }
.nf-rule { color: var(--fg2); margin-bottom: 6px; }
.nf dl { display: grid; grid-template-columns: max-content 1fr; gap: 0 12px; margin: 0; }
.nf dt { color: var(--yellow); font-weight: 700; }
.nf dt::after { content: ":"; color: var(--fg); font-weight: 400; }
.nf dd { margin: 0; color: var(--fg); }
.nf-colors { display: flex; margin-top: 14px; }
.nf-colors i { width: 28px; height: 16px; display: block; }
h1.pitch { font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.25; font-weight: 700; margin: 40px 0 14px; color: var(--fg); }
h1.pitch em { font-style: normal; color: var(--yellow); }
.lead { color: var(--fg2); max-width: 720px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-block; padding: 8px 16px; border: 1px solid var(--fg2); color: var(--fg); font-weight: 600; }
.btn:hover { text-decoration: none; background: var(--fg); color: var(--bg0); }
.btn--hot { background: var(--yellow); color: var(--bg0); border-color: var(--yellow); }
.btn--hot:hover { background: var(--orange); border-color: var(--orange); }

/* man-page style services */
.man-head { display: flex; justify-content: space-between; color: var(--fg2); border-bottom: 1px solid var(--bg2); padding-bottom: 6px; margin-bottom: 22px; font-weight: 600; }
.man-sec { color: var(--fg); font-weight: 700; margin: 0 0 10px; }
.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--bg2); border: 1px solid var(--bg2); }
.svc article { background: var(--bg0); padding: 20px 22px; }
.svc h3 { color: var(--aqua); font-weight: 700; margin-bottom: 8px; }
.svc h3::before { content: "./"; color: var(--gray); font-weight: 400; }
.svc p { color: var(--fg2); font-size: 14px; margin: 0; }

/* git log experience */
.gitlog { list-style: none; margin: 0; padding: 0; }
.gitlog li { display: grid; grid-template-columns: 24px 1fr; gap: 0 10px; }
.gitlog .graph { color: var(--red); text-align: center; position: relative; }
.gitlog .graph::after { content: ""; position: absolute; top: 1.7em; bottom: 0; left: 50%; border-left: 1px solid var(--bg3); }
.gitlog li:last-child .graph::after { display: none; }
.commit { padding-bottom: 26px; }
.commit__line .hash { color: var(--yellow); }
.commit__line .refs { color: var(--aqua); }
.commit__line .refs b { color: var(--green); }
.commit__line .title { color: var(--fg); font-weight: 700; }
.commit__meta { color: var(--gray); }
.commit__body { color: var(--fg2); margin: 6px 0 8px; max-width: 760px; }
.sub { list-style: none; padding: 0; margin: 6px 0 0; }
.sub li { display: block; color: var(--fg2); }
.sub li::before { content: "├── "; color: var(--bg3); }
.sub li:last-child::before { content: "└── "; }
.sub .d { color: var(--gray); }
.tags { color: var(--purple); font-size: 13px; }

/* apt list stack */
.apt { column-count: 2; column-gap: 40px; }
.apt div { break-inside: avoid; margin-bottom: 18px; }
.apt h3 { color: var(--orange); font-weight: 700; }
.apt h3::before { content: "# "; color: var(--gray); font-weight: 400; }
.apt ul { list-style: none; margin: 0; padding: 0; }
.apt li { color: var(--fg); }
.apt li span { color: var(--gray); }
.apt li span.ok { color: var(--green); }

/* ai */
.ai { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ai h3 { color: var(--purple); font-weight: 700; margin-bottom: 6px; }
.ai h3::before { content: "» "; color: var(--gray); }
.ai p { color: var(--fg2); font-size: 14px; }

/* creds */
.cat { color: var(--fg2); }
.cat b { color: var(--yellow); }

/* contact */
.contact-box { border: 1px solid var(--yellow); padding: 28px; max-width: 720px; }
.contact-box .big { font-size: 1.3rem; font-weight: 700; color: var(--yellow); }
.contact-links a { margin-right: 20px; }

footer { padding: 22px 0 40px; color: var(--gray); font-size: 13px; }

@media (max-width: 860px) {
  .neofetch { grid-template-columns: 1fr; gap: 24px; }
  .neofetch__logo { width: 160px; }
  .svc, .ai { grid-template-columns: 1fr; }
  .apt { column-count: 1; }
  .tmux__right .clock { display: none; }
  body { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } html { scroll-behavior: auto; } }
  
.skip-link { position: absolute; left: -999px; top: 6px; background: var(--yellow); color: var(--bg0); padding: 4px 10px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
