:root {
  --bg: #0a0705;
  --bg2: #0f0a07;
  --text: #ead9c7;
  --muted: #9f8873;
  --dim: #6c5949;
  --line: #2b1e16;
  --line2: #3b291d;
  --coffee: #c58b57;
  --cream: #f0dcc5;
  --green: #8ca978;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  line-height: 1.6;
  font-size: 15px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.008) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}
::selection { background: var(--coffee); color: var(--bg); }
a { color: inherit; }
.shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.skip { position: absolute; top: -80px; left: 16px; z-index: 50; background: var(--cream); color: var(--bg); padding: 8px 10px; }
.skip:focus { top: 16px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(10,7,5,.94);
  backdrop-filter: blur(10px);
}
.topbar__inner { min-height: 58px; display: flex; align-items: center; gap: 24px; }
.wordmark { text-decoration: none; font-weight: 700; color: var(--cream); white-space: nowrap; }
.prompt { color: var(--green); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a::before { content: "~/"; color: var(--dim); }
.nav a:hover, .nav a.is-active { color: var(--cream); }
.lang { border: 0; background: none; color: var(--coffee); padding: 0; cursor: pointer; font: inherit; }

.intro {
  min-height: 56vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: center;
  gap: 56px;
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--line);
}
.cmd { margin: 0 0 24px; color: var(--coffee); }
.cmd::before { content: "> "; color: var(--green); }
h1 { margin: 0; font-family: var(--sans); font-size: clamp(3.8rem, 8vw, 6.4rem); line-height: .88; letter-spacing: -.075em; font-weight: 800; color: var(--cream); }
.lead { max-width: 720px; margin: 34px 0 0; font-family: var(--sans); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; color: var(--text); }
.sub { margin: 10px 0 0; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; }
.links a { text-decoration: none; color: var(--coffee); }
.links a:hover { color: var(--cream); }
.coffee { margin: 0; color: var(--coffee); font-size: clamp(1.45rem, 2.5vw, 2.15rem); line-height: 1.08; text-align: left; justify-self: center; filter: drop-shadow(0 0 22px rgba(197,139,87,.14)); transform: translateY(-6px); }

.block { padding: 78px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
.rule { height: 1px; background: linear-gradient(90deg, var(--line2), var(--line), transparent); margin-bottom: 34px; }
.about-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 72px; }
.prose { font-family: var(--sans); font-size: 1.06rem; color: var(--text); }
.prose p { margin: 0 0 18px; }
.facts { margin: 0; }
.facts div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.facts dt { color: var(--muted); }
.facts dt::before { content: "--"; color: var(--dim); margin-right: 8px; }
.facts dd { margin: 0; color: var(--cream); }

.tree { display: grid; }
.project { padding: 20px 0 22px; border-bottom: 1px dashed var(--line); }
.project:last-child { border-bottom: 0; }
.project__line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 1.02rem; }
.tree-mark { color: var(--dim); }
.project__line strong { color: var(--cream); font-size: 1.08rem; }
.state { margin-left: auto; color: var(--green); font-size: .86rem; }
.state::before { content: "["; color: var(--dim); }
.state::after { content: "]"; color: var(--dim); }
.project__body { padding-left: 50px; max-width: 820px; }
.project__body p { margin: 9px 0 6px; font-family: var(--sans); color: var(--text); }
.project__body span { color: var(--muted); font-size: .88rem; }

.github-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.github-head p { margin: 0; color: var(--muted); font-family: var(--sans); }
.github-head a { color: var(--coffee); text-decoration: none; white-space: nowrap; }
.repo-list { display: grid; }
.repo-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 16px 0; border-bottom: 1px dashed var(--line); text-decoration: none; }
.repo-row:last-child { border-bottom: 0; }
.repo-row:hover .repo-name { color: var(--coffee); }
.repo-name { color: var(--cream); transition: color .15s ease; }
.repo-desc { margin-top: 5px; color: var(--muted); font-family: var(--sans); font-size: .94rem; }
.repo-meta { color: var(--dim); white-space: nowrap; }
.repo-loading { color: var(--dim); padding: 8px 0; }

.contact p:not(.cmd) { margin: 0; max-width: 720px; font-family: var(--sans); font-size: 1.08rem; }
.footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px 0 44px; color: var(--dim); font-size: .88rem; }

@media (max-width: 820px) {
  .topbar__inner { min-height: auto; padding: 12px 0 10px; flex-wrap: wrap; }
  .wordmark { order: 1; }
  .lang { order: 2; margin-left: auto; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 16px; overflow-x: auto; padding: 5px 0 2px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .intro { grid-template-columns: 1fr; min-height: auto; gap: 42px; padding: 70px 0 58px; }
  .coffee { justify-self: start; }
  .about-layout { grid-template-columns: 1fr; gap: 34px; }
  .github-head { flex-direction: column; gap: 8px; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 26px, 1080px); }
  .intro { padding-top: 56px; }
  h1 { font-size: clamp(3.6rem, 22vw, 6rem); }
  .block { padding: 58px 0; }
  .project__body { padding-left: 30px; }
  .state { width: 100%; margin-left: 30px; }
  .repo-row { grid-template-columns: 1fr; gap: 6px; }
  .facts div { grid-template-columns: 95px 1fr; }
  .footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


:focus-visible {
  outline: 2px solid var(--coffee);
  outline-offset: 4px;
}

@supports not (backdrop-filter: blur(10px)) {
  .topbar { background: var(--bg); }
}
