/* ────────────────────────────────────────────
   Feruz Karimov · v.05 — minimal · engineer
   white · geist · single column · the work
   ──────────────────────────────────────────── */

:root {
  --bg:    #fafaf9;
  --paper: #ffffff;
  --ink:   #0a0a0a;
  --mute:  #6b7280;
  --soft:  #9ca3af;
  --rule:  #e5e7eb;
  --rule-soft: #f1f0ec;
  --accent: #15803d;

  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
  --mono: 'Geist Mono', 'JetBrains Mono', 'SF Mono', Consolas, monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: -0.005em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--ink); color: var(--bg); }

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

main {
  max-width: 44rem;       /* 704px */
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 720px) {
  main { padding: 0 2rem; }
}

/* ─── header ─── */
.head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: clamp(3rem, 8vh, 5rem);
  position: sticky;
  top: 0;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  z-index: 10;
}
.head-id {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  color: var(--ink);
}
.dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent) 25%, transparent);
}
.head-status {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mute);
  font-weight: 400;
}
.head-nav {
  display: flex;
  gap: 1.5rem;
}
.head-nav a {
  color: var(--mute);
  transition: color 0.15s ease;
}
.head-nav a:hover { color: var(--ink); }

@media (max-width: 520px) {
  .head-status { display: none; }
  .head-nav { gap: 1.1rem; }
}

/* ─── intro ─── */
.intro {
  padding-bottom: clamp(3rem, 6vh, 4.5rem);
  margin-bottom: clamp(3rem, 6vh, 4.5rem);
  border-bottom: 1px solid var(--rule);
}
.intro-name {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1;
  font-weight: 500;
  letter-spacing: -0.035em;
  margin-bottom: 1.25rem;
}
.intro-line {
  font-size: clamp(1.05rem, 1.6vw, 1.18rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 38rem;
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
}
.intro-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--ink);
}
.intro-meta li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
}
.intro-meta .k {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mute);
  letter-spacing: 0;
}

/* ─── section ─── */
.section {
  padding-bottom: clamp(3rem, 6vh, 4.5rem);
  margin-bottom: clamp(3rem, 6vh, 4.5rem);
  border-bottom: 1px solid var(--rule);
}
.section:last-of-type {
  border-bottom: 0;
  margin-bottom: 2rem;
}
.section-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mute);
  margin-bottom: 2rem;
}

/* ─── work list ─── */
.proj {
  display: grid;
  gap: 0;
}
.proj-row {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule-soft);
  display: grid;
  gap: 0.7rem;
}
.proj-row:first-child { border-top: 0; padding-top: 0; }
.proj-row:last-child { padding-bottom: 0; }

.proj-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.proj-name {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.proj-year {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mute);
}

.proj-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 42rem;
}
.proj-desc code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--rule-soft);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  letter-spacing: 0;
}

.proj-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 0.15rem;
}
.proj-stack {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mute);
  letter-spacing: 0;
}
.proj-links {
  display: inline-flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.proj-links a {
  font-size: 0.92rem;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.proj-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

@media (max-width: 520px) {
  .proj-foot { flex-direction: column; gap: 0.4rem; }
}

/* ─── about ─── */
.about p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  max-width: 38rem;
  margin-bottom: 1rem;
}
.about p:last-child { margin-bottom: 0; }

/* ─── contact ─── */
.contact {
  display: grid;
  gap: 0.55rem;
}
.contact li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  font-size: 1rem;
}
.contact .k {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mute);
}
.contact a {
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.contact a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ─── footer ─── */
.foot {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0 3rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--mute);
  border-top: 1px solid var(--rule);
}
.foot a {
  color: var(--mute);
  transition: color 0.15s ease;
}
.foot a:hover { color: var(--ink); }

/* ─── reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
