/* kabirsikand.com — one stylesheet, no build step.
   Colors live in :root. Components: .grid .block .block--wide .tag .pill .row .rows .photos
   See README.md for copy-paste snippets. */

@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/space-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("/assets/fonts/space-mono-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #111014;      /* page */
  --fg: #f2f0ea;      /* text, borders */
  --muted: #a9a5b0;   /* secondary text */
  --faint: #8b8794;   /* footer, placeholders */
  --line: #3a3742;    /* dashed dividers */
  --hover: #1d1b22;   /* row hover */
  --hi: #e6ff3d;      /* highlighter + tags */
  --pop: #ff7ad9;     /* shadows, sticker, cursor — swap this one line to recolor */

  --font: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 16px;
  --shadow: 6px 6px 0 var(--pop);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--fg); }
a:focus-visible, .pill:focus-visible, .row:focus-visible {
  outline: 2px solid var(--hi);
  outline-offset: 3px;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.muted { color: var(--muted); }
.pop { color: var(--pop); }
.small { font-size: 13px; }

mark {
  background: var(--hi);
  color: var(--bg);
  padding: 0 4px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- page shell ---------- */

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 88px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.back {
  align-self: flex-start;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 0;
}
.back:hover { color: var(--hi); }

/* ---------- header ---------- */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 28px;
}

.name {
  margin: 0;
  font-weight: 700;
  font-size: clamp(3rem, 12vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.name--sm { font-size: clamp(2.5rem, 10vw, 4rem); }

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

.sticker {
  display: inline-block;
  transform: rotate(-6deg);
  margin-top: 14px;
  background: var(--pop);
  color: var(--bg);
  border: 2px solid var(--fg);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 3px 3px 0 var(--fg);
  white-space: nowrap;
}

/* ---------- blocks ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}

.block {
  border: 2px solid var(--fg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.block--wide { grid-column: 1 / -1; }
.block--narrow { max-width: 560px; }

.block__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.block__head a { font-size: 13px; color: var(--muted); }
.block__head a:hover { color: var(--fg); }

.tag {
  align-self: flex-start;
  margin: 0;
  background: var(--hi);
  color: var(--bg);
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
}

.lede { font-size: 20px; line-height: 1.5; }

/* work list: linked company names — current highlighted, past greyed */
.timeline { display: flex; flex-direction: column; gap: 8px; }
.timeline .role {
  font-weight: 700;
  text-decoration: none;
}
.timeline .role--current {
  color: var(--pop);
  transition: color .12s ease;
}
.timeline .role--current:hover { color: var(--hi); }
.timeline .role--past {
  color: var(--faint);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color .12s ease, text-decoration-color .12s ease;
}
.timeline .role--past:hover {
  color: var(--muted);
  text-decoration-color: var(--line);
}

/* ---------- buttons ---------- */

.pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 2px solid var(--fg);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 4px 4px 0 var(--fg);
  transition: transform .12s ease, box-shadow .12s ease;
}
.pill--solid {
  background: var(--fg);
  color: var(--bg);
  box-shadow: 4px 4px 0 var(--pop);
}
.pill:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--hi);
}
.block > .pill:last-child { margin-top: auto; }

/* ---------- link rows (elsewhere, writing) ---------- */

.rows { display: flex; flex-direction: column; }

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 8px;
  margin: 0 -8px;
  border-radius: 8px;
  text-decoration: none;
  border-bottom: 1px dashed var(--line);
}
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--hover); }
.row > :last-child {
  color: var(--muted);
  text-align: right;
  overflow-wrap: anywhere;
}

/* ---------- photos ---------- */

.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.photos img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--fg);
  border-radius: 10px;
  background: var(--hover);
}

/* ---------- footer ---------- */

.foot { font-size: 12px; color: var(--faint); }

/* ---------- phones ---------- */

@media (max-width: 520px) {
  .page { padding: 56px 16px 48px; gap: 32px; }
  .block { padding: 22px; }
  .lede { font-size: 18px; }
  .row { flex-direction: column; align-items: flex-start; gap: 0; }
  .row > :last-child { text-align: left; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .pill { transition: none; }
  .pill:hover { transform: none; }
}
