/* kazani personal site
   Dark-tech editorial. One theme (dark), one accent (teal), one radius scale (14px).
   No build step, system + mono type, zero external requests. */

:root {
  --bg: #0a0c0b;
  --bg-elev: #111514;
  --bg-card: #0f1413;
  --line: #1e2522;
  --line-soft: #171d1b;
  --text: #e9efec;
  --text-dim: #93a39d;
  --text-faint: #5f6e69;
  --accent: #5cc8a8;
  --accent-dim: #3f9c82;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 760px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(92, 200, 168, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #06231b;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.skip:focus { left: 16px; top: 16px; z-index: 10; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(56px, 12vw, 120px) 22px 80px;
}

/* ---------- Hero ---------- */
.hero { margin-bottom: clamp(56px, 9vw, 96px); }

.avatar {
  display: block;
  width: 88px;
  height: 88px;
  margin-bottom: 26px;
  border-radius: 20px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1;
  font-weight: 650;
}

.tagline {
  margin: 18px 0 0;
  max-width: 48ch;
  font-size: clamp(1.05rem, 2.6vw, 1.2rem);
  color: var(--text-dim);
  line-height: 1.55;
}

.cta-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #06231b; }
.btn-primary:hover { background: #6fd6b8; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent-dim); }

/* ---------- Sections ---------- */
.section { margin-top: clamp(48px, 8vw, 76px); }

.section-title {
  margin: 0 0 22px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.section-note {
  margin: -10px 0 20px;
  font-size: 0.9rem;
  color: var(--text-faint);
  max-width: 52ch;
}

/* ---------- Works cards ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 20px 18px;
  min-height: 132px;
  transition: border-color 0.25s var(--ease), transform 0.2s var(--ease), background 0.25s var(--ease);
}
.card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-3px);
  background: var(--bg-elev);
}
.card-name {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.card-desc {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}
.card-host {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

/* ---------- Links ---------- */
.links { list-style: none; margin: 0; padding: 0; }
.links li { border-top: 1px solid var(--line-soft); }
.links li:last-child { border-bottom: 1px solid var(--line-soft); }
.links a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  transition: padding 0.2s var(--ease), color 0.2s var(--ease);
}
.links a:hover { padding-left: 12px; color: var(--accent); }
.link-label { font-weight: 550; font-size: 1.02rem; }
.link-handle {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--text-faint);
  text-align: right;
}
.links a:hover .link-handle { color: var(--accent-dim); }

/* ---------- Newsletter ---------- */
.news {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(92, 200, 168, 0.10), rgba(92, 200, 168, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px;
}
.news-copy { max-width: 42ch; }
.news-title { margin: 0 0 6px; font-size: 1.2rem; font-weight: 650; letter-spacing: -0.02em; }
.news-copy p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.foot {
  margin-top: clamp(56px, 9vw, 96px);
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 0.86rem;
}
.foot-reach a { color: var(--text-dim); border-bottom: 1px solid var(--line); }
.foot-reach a:hover { color: var(--accent); border-color: var(--accent-dim); }

/* ---------- Motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.7s var(--ease) forwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .news { flex-direction: column; align-items: flex-start; }
  .news .btn { width: 100%; }
  .link-handle { max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .card:hover { transform: none; }
  * { transition: none !important; }
}
