/* ----------------------------------------------------------------------------
   Hanish portfolio
   Near-monochrome, prose-first, 640px column,
   dark/bold inline links. Multi-page, light only.
---------------------------------------------------------------------------- */

:root {
  --bg: #fcfcfc;
  --text: #4b5563;     /* gray-600 body */
  --strong: #18181b;   /* near-black headings / links */
  --muted: #9ca3af;
  --faint: #e7e7ea;

  --col: 720px;
  --font-sans: 'Google Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ----------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-transform: lowercase;   /* nime.sh-style all-lowercase */
}

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

.page {
  width: 100%;
  max-width: var(--col);
  margin-inline: auto;
  padding: 0 1.5rem 4rem;
}

/* ---------------------------------------------------------------- topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; row-gap: 0.6rem;
  padding: 1.75rem 0; margin-bottom: clamp(1.5rem, 5vh, 2.75rem);
}
.topbar__brand { font-weight: 500; color: var(--strong); letter-spacing: -0.01em; }
.topbar__role { color: var(--muted); font-weight: 400; }
.topbar__right { display: flex; align-items: center; gap: 1.1rem; }
.topbar__nav { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: 0.88rem; }
.topbar__nav a { color: var(--muted); transition: color 0.2s var(--ease); }
.topbar__nav a:hover { color: var(--strong); }
.topbar__nav a.is-active { color: var(--strong); font-weight: 500; }
@media (max-width: 560px) { .topbar__role { display: none; } }
@media (max-width: 420px) { .topbar__nav { gap: 0.85rem; font-size: 0.8rem; } }

/* ----------------------------------------------------------------- intro */
.page-title {
  font-size: 1.5rem; font-weight: 700; color: var(--strong);
  letter-spacing: -0.02em; margin-bottom: 2rem;
}
.coming { color: var(--muted); font-size: 1.05rem; }
.home p { font-size: 1.06rem; margin-bottom: 1rem; }
.home p:last-child { margin-bottom: 0; }
.home strong { font-weight: 500; color: var(--strong); }
.home em { font-style: italic; }
.home a {
  color: var(--strong); font-weight: 500;
  border-bottom: 1px solid var(--muted);
  transition: border-color 0.2s var(--ease);
}
.home a:hover { border-bottom-color: var(--strong); }

/* links row (nime.sh-style handles with favicons) */
.links { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.links__label {
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: lowercase;
  letter-spacing: 0.12em; color: var(--muted); margin-right: 0.3rem;
}
.links a {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--strong); font-weight: 500; border-bottom: none;
  transition: opacity 0.2s var(--ease);
}
.links a:hover { opacity: 0.55; }
.links__sep { color: var(--faint); }
.fav { width: 16px; height: 16px; border-radius: 4px; flex-shrink: 0; }

/* ----------------------------------------------------------------- block */
.block__sub { font-size: 0.92rem; margin: -1.1rem 0 1.4rem; }

/* ------------------------------------------------------------- experience */
.entry { margin-bottom: 1.9rem; }
.entry:last-child { margin-bottom: 0; }
.entry__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-bottom: 0.25rem;
}
.entry__org { font-weight: 500; color: var(--strong); }
.entry__date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.entry__role { font-size: 0.95rem; margin-bottom: 0.6rem; }
.entry__points { display: flex; flex-direction: column; gap: 0.35rem; }
.entry__points li { padding-left: 1.1rem; position: relative; font-size: 0.97rem; }
.entry__points li::before { content: '–'; position: absolute; left: 0; color: var(--muted); }

/* ---------------------------------------------------------------- skills */
.skills { display: flex; flex-direction: column; gap: 0.85rem; }
.skills__row { display: flex; align-items: baseline; gap: 1rem; font-size: 0.97rem; }
.skills__key {
  flex: 0 0 6rem; font-family: var(--font-mono);
  font-size: 0.72rem; text-transform: lowercase; letter-spacing: 0.1em; color: var(--muted);
}
@media (max-width: 480px) {
  .skills__row { flex-direction: column; gap: 0.15rem; }
  .skills__key { flex: none; }
}

/* ----------------------------------------------------------- certifications */
.certs { display: flex; flex-direction: column; gap: 0.5rem; }
.certs a {
  display: inline-flex; align-items: center; gap: 0.5rem; width: fit-content;
  color: var(--strong); transition: opacity 0.2s var(--ease);
}
.certs a::after { content: '↗'; color: var(--muted); font-size: 0.8em; }
.certs a:hover { opacity: 0.6; }

/* ----------------------------------------------------- scroll reveal anim */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
