/* ============================================
   Mukund Kunapareddy — wireframe editorial
   System grotesque · uniform scale · hairline grid
   Independent per-column scroll
   ============================================ */

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

:root {
  --fg: #000;
  --muted: rgba(0, 0, 0, 0.42);
  --line: rgba(0, 0, 0, 0.15);
  --bg: #fff;
  --sans: -apple-system, system-ui, 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --fs: 14.5px;
  --lh: 1.62;
  --pad: clamp(18px, 2vw, 34px);
}

html { font-size: var(--fs); -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--fs);
  line-height: var(--lh);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
b, strong { font-weight: 600; }
i, em { font-style: italic; }
::selection { background: #000; color: #fff; }

/* hide scrollbars — columns still scroll */
.col::-webkit-scrollbar { width: 0; height: 0; }
.col { scrollbar-width: none; }

/* ============================================
   Grid — three columns, full-height hairline rules
   ============================================ */

.grid {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(190px, 0.85fr) minmax(0, 1.55fr) minmax(200px, 1fr);
  align-items: stretch;
  width: 100%;
  overflow: hidden;
}

.col {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 18px var(--pad) 96px;
}
.col + .col { border-left: 1px solid var(--line); }

.col-head {
  font-size: var(--fs);
  font-weight: 400;
  text-transform: uppercase;
  color: var(--fg);
  padding-bottom: 74px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
a.col-head { display: block; }
a.col-head .arw { color: var(--muted); transition: transform 0.2s ease; }
a.col-head:hover .arw { transform: translateX(4px); color: var(--fg); }

/* ============================================
   About column
   ============================================ */

.about-name { margin-bottom: 1.5em; }
.about-bio { margin-bottom: 1.6em; max-width: 32ch; }
.about-bio p + p { margin-top: 1em; }
.about-bio em { font-style: italic; }

.about-sub { text-decoration: underline; text-underline-offset: 2px; margin-bottom: 1em; }

.linklist a {
  display: block;
  text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: rgba(0,0,0,0.3);
  width: fit-content;
  transition: text-decoration-color 0.15s ease;
}
.linklist a:hover { text-decoration-color: #000; }

/* ============================================
   Select Work — sections (Orgs · Writing · Projects)
   ============================================ */

.cat { border-top: 1px solid var(--line); padding-top: 26px; margin-top: 34px; }
.cat:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }

.cat-head {
  margin-bottom: 30px;
  font-weight: 600; font-size: 1.0625rem; letter-spacing: -0.01em;
}

.cat-items { display: flex; flex-direction: column; gap: 40px; }

.item-org { display: flex; gap: 15px; align-items: flex-start; }
.logo-sm {
  flex: 0 0 auto; width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
}
.logo-sm img { max-width: 100%; max-height: 100%; object-fit: contain; display: block;
  transition: transform 0.3s ease; }
.logo-sm:hover img { transform: scale(1.06); }
.item-org .it-body { flex: 1 1 auto; min-width: 0; }

.it-title { font-weight: 500; margin-bottom: 3px; }
.it-title a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(0,0,0,0.3); transition: text-decoration-color 0.15s ease; }
.it-title a:hover { text-decoration-color: #000; }
.it-meta { color: var(--muted); margin-bottom: 8px; }
.it-desc { max-width: 52ch; margin-bottom: 10px; }

.more {
  display: inline-block; text-decoration: underline; text-underline-offset: 2px;
  text-decoration-color: rgba(0,0,0,0.3); transition: text-decoration-color 0.15s ease;
}
.more:hover { text-decoration-color: #000; }
.more .arw { display: inline-block; transition: transform 0.2s ease; }
.more:hover .arw { transform: translateX(3px); }
.more.static { text-decoration: none; color: var(--muted); cursor: default; }

/* install command (Memi) */
.cmd {
  display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8125rem; color: var(--fg); background: none;
  border: 1px solid var(--line); border-radius: 3px; padding: 4px 9px; cursor: pointer;
  transition: border-color 0.15s ease;
}
.cmd:hover { border-color: var(--fg); }
.cmd.copied { border-color: var(--fg); }
.cmd.copied::after { content: '  ✓'; color: var(--muted); }

/* ============================================
   Résumé column
   ============================================ */

.res { display: grid; grid-template-columns: 88px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.res:first-of-type { padding-top: 0; }
.res:last-child { border-bottom: none; }
.res-label { color: var(--fg); }
.entry + .entry { margin-top: 1.4em; }
.entry .org { font-weight: 600; }
.entry .role { font-style: italic; }
.entry .date { color: var(--muted); }
.entry .note { margin-top: 0.35em; }
.entry a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(0,0,0,0.3); }
.entry a:hover { text-decoration-color: #000; }

/* ============================================
   Responsive — stack + normal page scroll on mobile
   ============================================ */

@media (max-width: 900px) {
  body { height: auto; overflow: visible; display: block; }
  .grid { display: block; overflow: visible; }
  .col { height: auto; overflow: visible; padding: 18px var(--pad) 40px; }
  .col + .col { border-left: none; border-top: 1px solid var(--line); }
  .col-head { padding-bottom: 40px; margin-bottom: 24px; }
}
