/* ============================================================
   novikau.com · theDots Engineering · minimalist personal site
   ============================================================ */

:root {
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', 'JetBrains Mono', 'Courier New', monospace;

  --slate-50:  #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;

  --brand:       #E81B00;
  --brand-hover: #C61700;

  --bg:    var(--slate-50);
  --ui:    var(--slate-200);
  --ui-2:  var(--slate-300);
  --tx:    var(--slate-900);
  --tx-2:  var(--slate-600);
  --tx-3:  var(--slate-400);

  --shadow-rgb: 15, 23, 42;
}

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

html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tx);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 120ms ease;
}

a:hover { color: var(--brand); }

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
}

header {
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--ui);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark svg { display: block; }

.brand-mark .name {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--tx);
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--tx-2);
  letter-spacing: 0.02em;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---------- Hero (index.html only) ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 20px;
  min-height: 300px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mask-image: radial-gradient(380px circle at center, #000 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(380px circle at center, #000 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
}

.hero-canvas {
  position: relative;
  z-index: 1;
  width: 240px;
  height: 240px;
  cursor: crosshair;
}

@media (max-width: 600px) {
  .hero-canvas { width: 176px; height: 176px; }
  .hero { min-height: 220px; padding: 20px 0 8px; }
  .hero-bg {
    mask-image: radial-gradient(240px circle at center, #000 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
    -webkit-mask-image: radial-gradient(240px circle at center, #000 0%, rgba(0,0,0,0.5) 60%, transparent 100%);
  }
}

/* ---------- Body sections ---------- */

.section {
  padding-top: 32px;
  padding-bottom: 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tx-3);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.identity {
  font-size: 17px;
  line-height: 1.6;
  color: var(--tx);
  max-width: 640px;
  font-weight: 400;
  letter-spacing: -0.003em;
}

.identity + .identity {
  margin-top: 16px;
}

.identity-dim {
  color: var(--tx-2);
}

.identity em {
  font-style: normal;
  color: var(--brand);
}

.now-block {
  max-width: 640px;
}

.now-block p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--tx);
  margin-bottom: 18px;
}

.now-block p:last-child { margin-bottom: 0; }

.now-block a {
  border-bottom: 1px solid var(--ui-2);
  padding-bottom: 1px;
}

.now-block a:hover {
  border-bottom-color: var(--brand);
}

.now-heading {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--tx);
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--ui);
  padding: 24px 0 32px;
  margin-top: 48px;
}

@media (max-width: 600px) {
  footer { margin-top: 32px; padding: 20px 0 24px; }
  .foot { flex-direction: column; align-items: flex-start; gap: 12px; }
  .identity { font-size: 16px; }
  header { padding: 20px 0 16px; }
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--tx-2);
}

.foot-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.foot a { color: var(--tx-2); }
.foot a:hover { color: var(--brand); }

.socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--tx-2);
}

.socials svg { display: block; }

/* ---------- Logo glyph (3×3 dots) ---------- */

.grip-dot       { fill: var(--tx); }
.grip-dot.brand { fill: var(--brand); }
