@font-face { font-family: "Fixel Display"; src: url("fonts/FixelDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fixel Display"; src: url("fonts/FixelDisplay-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fixel Display"; src: url("fonts/FixelDisplay-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fixel Display"; src: url("fonts/FixelDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fixel Display"; src: url("fonts/FixelDisplay-Black.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Fixel Text"; src: url("fonts/FixelText-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fixel Text"; src: url("fonts/FixelText-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #000;
  --text: #ededed;
  --dim: #6b6b6b;
  --line: #1c1c1c;
  --accent: #4afa8a;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --display: "Fixel Display", system-ui, sans-serif;
  --text-font: "Fixel Text", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--text-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--text); color: #000; }
a { color: inherit; text-decoration: none; }
.dim { color: var(--dim); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px max(24px, calc((100% - 760px) / 2));
  background: rgba(0, 0, 0, .8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.logo { font-family: var(--mono); font-weight: 500; }
.nav-links { font-size: 14px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--dim); transition: color .15s; }
.nav-links a:hover { color: var(--text); }

.cursor { color: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* hero */
.hero { padding: 96px 0 88px; }
.prompt, .role, .fetch, .n, .go, footer { font-family: var(--mono); }
.prompt { color: var(--text); margin-bottom: 20px; font-size: 14px; }

h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 13vw, 120px);
  line-height: .9;
  letter-spacing: -0.04em;
}
h1 span { display: block; }
.outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }

.role { margin-top: 20px; font-size: 15px; min-height: 1.7em; }

.fetch {
  display: grid; grid-template-columns: max-content 1fr; gap: 6px 28px;
  margin: 44px 0; padding: 20px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.fetch dt { color: var(--dim); }
.fetch dt::after { content: ":"; }
.live {
  display: inline-block; width: 7px; height: 7px; margin-right: 10px;
  border-radius: 50%; background: var(--accent); vertical-align: middle;
}

.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  font-family: var(--display); font-weight: 500;
  padding: 11px 22px; border-radius: 99px; border: 1px solid #333;
  font-size: 15px; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { border-color: var(--text); }
.btn-fill { background: var(--text); color: #000; border-color: var(--text); font-weight: 500; }
.btn-fill:hover { background: transparent; color: var(--text); }

/* sections */
section:not(.hero) { padding: 64px 0; border-top: 1px solid var(--line); }
h2 { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 32px; }
h2 .dim { font-family: var(--mono); font-size: 13px; font-weight: 400; letter-spacing: 0; vertical-align: middle; }
h2 .dim { margin-right: 12px; }

.about-head { display: grid; grid-template-columns: 168px 1fr; gap: 32px; align-items: center; }
.avatar {
  aspect-ratio: 1; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); position: relative;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.avatar:hover img { transform: scale(1.04); }
.about-lead {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(24px, 3.6vw, 34px); line-height: 1.25; letter-spacing: -0.02em;
}
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin: 44px 0; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.about-item { background: var(--bg); padding: 24px; }
.about-item p { color: #a8a8a8; font-size: 15px; line-height: 1.65; }
.about-item a { color: var(--text); border-bottom: 1px solid var(--accent); }
.about-key { display: block; font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 12px; }
.about-quote {
  font-family: var(--display); font-weight: 400; font-style: normal;
  font-size: clamp(18px, 2.4vw, 22px); line-height: 1.45;
  padding-left: 20px; border-left: 2px solid var(--accent); max-width: 640px;
}
.about-foot { margin-top: 24px; color: var(--dim); font-size: 15px; max-width: 640px; }
@media (max-width: 640px) {
  .about-grid, .about-head { grid-template-columns: 1fr; }
  .about-head { gap: 24px; }
  .avatar { width: 120px; }
}

/* projects list */
.list { list-style: none; }
.row {
  display: grid; grid-template-columns: 36px 160px 1fr auto; gap: 16px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  transition: padding .2s, color .2s;
}
.list li:first-child .row { border-top: 1px solid var(--line); }
a.row:hover { padding-left: 10px; }
a.row:hover .go { color: var(--accent); }
.n { color: var(--dim); font-size: 12px; }
.name { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.desc { color: var(--dim); font-size: 15px; }
.go { color: var(--dim); font-size: 12px; }
.featured .name { color: var(--accent); }

/* stack */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; font-size: 15px; transition: border-color .15s; }
.tags span:hover { border-color: var(--text); }

/* contact */
.mail { font-family: var(--display); font-size: clamp(24px, 5vw, 40px); font-weight: 600; letter-spacing: -0.02em; border-bottom: 1px solid #333; transition: border-color .15s; }
.mail:hover { border-color: var(--accent); }
.socials { display: flex; gap: 24px; margin-top: 28px; font-size: 15px; }
.socials a { color: var(--dim); transition: color .15s; }
.socials a:hover { color: var(--text); }
.socials a::after { content: " ↗"; }

footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 64px 0 56px; }
  .row { grid-template-columns: 28px 1fr auto; }
  .desc { grid-column: 2 / -1; grid-row: 2; margin-top: -10px; }
}

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