:root {
  color-scheme: light;
  /* light IDE palette */
  --bg: #f4f8fa;
  --surface: #ffffff;
  --chrome: #eef4f7;
  --ink: #0f1f29;
  --muted: #5b6c78;
  --faint: #8a9aa4;
  --go: #00add8;
  --go-dark: #007d9c;
  --line: #dbe7ed;
  --line-strong: #c6d8e0;
  --soft: #eaf8fd;
  /* syntax accents */
  --syn-comment: #7a8c97;
  --syn-key: #c2185b;
  --syn-string: #1a8c5a;
  --syn-fn: #6f42c1;
  --shadow: 0 18px 50px rgba(0, 91, 116, 0.12);
  --shadow-sm: 0 8px 22px rgba(0, 91, 116, 0.08);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
    Consolas, "Liberation Mono", 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;
  min-height: 100vh;
  padding-bottom: 40px;
  background:
    radial-gradient(900px 420px at 50% -120px, rgba(0, 173, 216, 0.16), transparent 70%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 248, 250, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.prompt {
  color: var(--go-dark);
}

.cursor {
  color: var(--go);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.topnav {
  display: flex;
  gap: 22px;
  font-family: var(--mono);
  font-size: 0.86rem;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
  position: relative;
}

.topnav a::before {
  content: "/";
  color: var(--faint);
  margin-right: 2px;
}

.topnav a:hover {
  color: var(--go-dark);
}

/* ---------- layout ---------- */
main {
  position: relative;
  z-index: 1;
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 24px;
}

/* ---------- window (terminal / editor) ---------- */
.window {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}

.window-title {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--faint);
}

.traffic {
  display: inline-flex;
  gap: 7px;
}

.traffic i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.traffic.sm i {
  width: 10px;
  height: 10px;
}

.traffic .r {
  background: #ff5f56;
}
.traffic .y {
  background: #ffbd2e;
}
.traffic .g {
  background: #27c93f;
}

.window-body {
  padding: clamp(26px, 5vw, 52px);
}

.intro {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.profile-picture {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow-sm);
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--syn-comment);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--go);
  box-shadow: 0 0 0 4px rgba(0, 173, 216, 0.16);
}

h1 {
  margin: 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lead {
  margin: 22px 0 0;
  font-family: var(--mono);
  font-size: clamp(0.92rem, 1.6vw, 1.02rem);
  line-height: 1.7;
}

.comment {
  color: var(--syn-comment);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--go);
  box-shadow: var(--shadow-sm);
}

.button.primary {
  background: var(--go);
  border-color: var(--go-dark);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(0, 173, 216, 0.28);
}

.button.primary:hover {
  background: var(--go-dark);
}

.button .sigil {
  opacity: 0.85;
  font-weight: 800;
}

.button.primary .sigil {
  color: #d6f7ff;
}

/* stack chips */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.stack li {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--go-dark);
  background: var(--soft);
  border: 1px solid rgba(0, 173, 216, 0.28);
  border-radius: 6px;
  padding: 4px 9px;
}

.stack li::before {
  content: "#";
  color: var(--faint);
  margin-right: 1px;
}

/* ---------- section title ---------- */
.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 44px 0 16px;
  font-family: var(--mono);
}

.section-title .hash {
  color: var(--syn-key);
  font-weight: 700;
}

.section-title h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.section-title .count {
  color: var(--faint);
  font-size: 0.86rem;
}

/* ---------- projects ---------- */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.card-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: var(--chrome);
  border-bottom: 1px solid var(--line);
}

.card-bar .file {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.card-bar .tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--go-dark);
  background: var(--soft);
  border: 1px solid rgba(0, 173, 216, 0.3);
  border-radius: 999px;
  padding: 3px 9px;
}

.card-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.card-body h3 {
  margin: 2px 0;
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 800;
}

.desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.mono {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--syn-string);
}

.key {
  color: var(--syn-key);
}

.card-body .actions {
  margin-top: 6px;
}

/* ---------- status bar ---------- */
.statusbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0;
  height: 26px;
  padding: 0 14px;
  background: var(--go-dark);
  color: #eaf8fd;
  font-family: var(--mono);
  font-size: 0.74rem;
}

.statusbar .seg {
  padding: 0 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  opacity: 0.92;
}

.statusbar .seg.branch {
  background: rgba(0, 0, 0, 0.14);
  font-weight: 700;
}

.statusbar .git {
  margin-right: 4px;
}

.statusbar .seg.right {
  margin-left: auto;
  border-right: none;
}

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  main {
    width: min(100% - 22px, 680px);
    padding-top: 28px;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .profile-picture {
    width: min(160px, 100%);
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .topnav {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .topnav a:not(:last-child) {
    display: none;
  }
}