/* ---------- Theme tokens ---------- */
:root {
  --bg: #fafaf7;
  --ink: #111111;
  --ink2: #3f3f3b;
  --muted: #6b6b66;
  --card: #ffffff;
  --line: #e6e6e1;
  --line2: #b5b5b0;
  --fill: #efefea;
  --hover: #f3f3f0;
  --accent: #2346d6;
  --g0: #ebede8;
  --g1: #9be9a8;
  --g2: #40c463;
  --g3: #30a14e;
  --g4: #216e39;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --hand: "Caveat", cursive;
}
[data-theme="dark"] {
  /* X / Twitter "Lights out" */
  --bg: #000000;
  --ink: #e7e9ea;
  --ink2: #c4c8cc;
  --muted: #8b9095;
  --card: #16181c;
  --line: #2f3336;
  --line2: #536471;
  --fill: #202327;
  --hover: #16181c;
  --accent: #1d9bf0;
  /* GitHub dark graph */
  --g0: #22272e;
  --g1: #0e4429;
  --g2: #006d32;
  --g3: #26a641;
  --g4: #39d353;
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  /* same as body, so the overscroll "bounce" area isn't white in dark mode */
  background: var(--bg);
  transition: background 0.2s ease;
}
[data-theme="dark"] {
  /* dark scrollbars and browser UI in dark mode */
  color-scheme: dark;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--ink);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
a.u {
  border-bottom: 1px solid var(--line2);
}
a.u:hover {
  border-bottom-color: var(--ink);
  color: var(--ink);
}
a.ink-u {
  border-bottom-color: var(--ink);
}
button {
  font-family: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
img {
  max-width: 100%;
  display: block;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--card);
  padding: 8px 12px;
  z-index: 10;
}

.mono {
  font-family: var(--mono);
}
.serif {
  font-family: var(--serif);
}
.muted {
  color: var(--muted);
}
.ink {
  color: var(--ink);
}
.small {
  font-size: 13px;
}
.accent {
  color: var(--accent);
}
.pencil {
  font-family: var(--hand);
  color: var(--accent);
  font-size: 19px;
}
.pencil.big {
  font-size: 22px;
}
.bg {
  background: var(--bg);
}
.hatch {
  background-image: repeating-linear-gradient(
    135deg,
    var(--line) 0 1px,
    transparent 1px 9px
  );
}

/* ---------- Layout ---------- */
.shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 0 40px;
  align-items: flex-start;
  justify-content: center;
}
.col {
  zoom: 0.9;
  flex: 999 1 560px;
  /* ~80% of the old ~910px column; 810 × zoom 0.9 ≈ 730px on screen */
  max-width: 810px;
  min-width: 0;
  border-left: 1px dashed var(--line);
  border-right: 1px dashed var(--line);
}
.pad {
  padding-left: 32px;
  padding-right: 32px;
}
.sec {
  padding-top: 28px;
  padding-bottom: 48px;
}
@media (max-width: 640px) {
  .shell {
    padding: 0;
  }
  .col {
    border: 0;
  }
  .pad,
  .bar {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .side-note {
    display: none;
  }
}

/* ---------- Section bars ---------- */
.bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  scroll-margin-top: 0;
}
.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.2;
  background: var(--bg);
  padding-right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.h2.italic {
  font-style: italic;
}

/* ---------- Header ---------- */
.header {
  padding-top: 48px;
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}
.me {
  display: flex;
  align-items: center;
  gap: 16px;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 72px;
  background: var(--fill);
  border: 1px dashed var(--line2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  /* set from photoCrop in data.js */
  transform: scale(var(--zoom, 1));
  transform-origin: var(--x, 50%) var(--y, 50%);
}
.avatar.has-img {
  border: 0;
}
.name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 34px;
  line-height: 1.15;
}
.loc {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.dot-green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22a35a;
  display: inline-block;
}
.theme-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.switch {
  position: relative;
  width: 38px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: var(--line2);
  transition: background 0.15s ease;
}
.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  transition: left 0.15s ease;
}
.switch[aria-checked="true"] {
  background: var(--accent);
}
.switch[aria-checked="true"] span {
  left: 19px;
}
.intro {
  margin: 28px 0 0;
  font-size: 17px;
}
.intro em {
  font-size: 24px;
  color: var(--ink);
}
.intro2 {
  margin: 12px 0 0;
}
.hl {
  color: var(--ink);
  /* hand-drawn underline, same stroke as the GSoC one in Experience */
  padding-bottom: 7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7C26 10 52 4 80 6.5S132 10 160 6.5 190 3 198 5.5' fill='none' stroke='%232346d6' stroke-width='2.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") left bottom / 100% 9px no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
[data-theme="dark"] .hl {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 7C26 10 52 4 80 6.5S132 10 160 6.5 190 3 198 5.5' fill='none' stroke='%231d9bf0' stroke-width='2.2' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}

/* ---------- Graph ---------- */
.graph-sec {
  padding-top: 40px;
  padding-bottom: 44px;
}
.graph-note-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 6px;
}
.graph-note {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: var(--accent);
}
.graph-note .pencil {
  text-align: right;
  max-width: 300px;
  line-height: 1.05;
  transform: rotate(-2deg);
}
.graph-note svg {
  margin-right: 60px;
}
.graph-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  color: var(--ink);
}
.graph-card:hover {
  color: var(--ink);
  border-color: var(--line2);
}
.graph-inner {
  display: flex;
  gap: 8px;
}
.days {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  font-size: 10px;
  color: var(--muted);
  padding-top: 16px;
}
.graph-main {
  flex: 1;
  min-width: 0;
}
.months {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.cells {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, auto);
  grid-auto-columns: minmax(0, 1fr);
  gap: 3px;
}
.cells i {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  background: var(--g0);
}
.cells .l1,
.legend .l1 {
  background: var(--g1);
}
.cells .l2,
.legend .l2 {
  background: var(--g2);
}
.cells .l3,
.legend .l3 {
  background: var(--g3);
}
.cells .l4,
.legend .l4 {
  background: var(--g4);
}
.cells .empty {
  visibility: hidden;
}
.graph-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}
.legend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--g0);
  display: inline-block;
}
@media (max-width: 560px) {
  .cells {
    gap: 2px;
  }
  .days {
    display: none;
  }
}

.reach {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  text-align: center;
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 16px;
}
.copy svg {
  color: var(--muted);
}
.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* square icon buttons */
.socials a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line2);
  border-radius: 8px;
  background: var(--fill);
  color: var(--ink2);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.socials a:hover {
  color: var(--ink);
  border-color: var(--ink2);
  background: var(--card);
  transform: translateY(-2px);
}

/* ---------- Tabs & chips ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
}
.tabs button {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  color: var(--ink2);
}
.tabs button:hover {
  background: var(--fill);
}
.tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
}
.big-tabs {
  padding: 4px;
  border-radius: 10px;
  gap: 4px;
}
.big-tabs button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 7px;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
/* Skill pills (style from karthikponna.me): stretch to fill each row, gray icon turns brand color on hover */
.skill-pill {
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: default;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  animation: pop 0.2s ease;
}
.skill-pill.last-row {
  flex-grow: 0;
}
.skill-pill:hover {
  background: var(--hover);
  border-color: var(--line2);
}
.skill-icon {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--muted);
  opacity: 0.8;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.skill-pill:hover .skill-icon {
  color: var(--brand);
  opacity: 1;
}
.skill-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
.skill-name {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--ink2);
  transition: color 0.2s ease;
}
.skill-pill:hover .skill-name {
  color: var(--ink);
}
@media (max-width: 420px) {
  .skill-pill {
    padding: 5px 10px;
  }
  .skill-name {
    font-size: 12px;
  }
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-family: var(--mono);
  font-size: 13px;
  animation: pop 0.2s ease;
}
.chip i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  display: inline-block;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Experience ---------- */
.exp {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.exp-item {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0 18px;
  padding: 16px;
  margin: 0 -16px;
  border-radius: 12px;
  transition: background 0.2s ease;
}
.exp-item:hover,
.exp-item.open {
  background: var(--hover);
}
.exp-logo {
  width: 48px;
  height: 48px;
  padding: 5px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  object-fit: contain;
}
.exp-text {
  min-width: 0;
}
.exp-head {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.exp-co {
  color: var(--ink);
}
.exp-head .dot-green {
  width: 8px;
  height: 8px;
}
.exp-role {
  margin-top: 4px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}
.exp-desc {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.exp-dates,
.exp-toggle {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
}
.exp-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.exp-toggle .chev {
  color: var(--muted);
  transition: transform 0.25s ease, color 0.2s ease;
}
.exp-toggle:hover .chev {
  color: var(--ink);
}
.exp-toggle[aria-expanded="true"] .chev {
  transform: rotate(180deg);
}
.exp-more {
  grid-column: 1 / -1;
  animation: pop 0.2s ease;
}
.exp-points {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: pop 0.2s ease;
}
.exp-points li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink2);
}
.exp-points li::before {
  content: "\2022";
  position: absolute;
  left: 3px;
  color: var(--muted);
}
.exp-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.exp-stack span {
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.exp-note-inline {
  margin-top: 4px;
  transform: rotate(-1.5deg);
  transform-origin: left;
}
/* Margin note with arrow: only where the left gutter is wide enough */
.exp-note {
  display: none;
}
@media (min-width: 1560px) {
  .exp-note {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 30px;
    right: calc(100% - 16px + 32px + 16px); /* past the card offset, padding and border */
    white-space: nowrap;
    transform: rotate(-3deg);
  }
  .exp-note svg {
    flex: 0 0 auto;
  }
  .exp-note-inline {
    display: none;
  }
}
@media (max-width: 640px) {
  .exp-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 0 14px;
  }
  .exp-logo {
    width: 40px;
    height: 40px;
  }
}

/* Hand-drawn underline + tiny note (e.g. "+1000 aura") */
.scribble {
  position: relative;
  display: inline-block;
}
.scribble .uline {
  position: absolute;
  left: -3px;
  bottom: -6px;
  width: calc(100% + 6px);
  height: 9px;
  overflow: visible;
  pointer-events: none;
}
.scribble .uline path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2px;
  stroke-linecap: round;
}
.scribble-note {
  position: absolute;
  bottom: calc(100% - 2px);
  right: -18px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  transform: rotate(-4deg);
  pointer-events: none;
}

/* ---------- Hackathons ---------- */
.hack {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hack-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px dashed var(--line2);
}
.hack-item:first-child {
  padding-top: 8px;
}
.hack-item:last-child {
  border-bottom: 0;
}
.hack-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}
.hack-title a {
  color: inherit;
}
.hack-title a:hover {
  color: var(--accent);
}
.hack-award {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #a15c07;
  background: #fef3c7;
}
[data-theme="dark"] .hack-award {
  color: #fbbf24;
  background: #2a1f0a;
}
.hack-desc {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink2);
}
.hack-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
}
.hack-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--ink2);
}
.hack-sep {
  width: 1px;
  height: 18px;
  margin: 0 6px;
  background: var(--line2);
}
.hack-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--muted);
}
.hack-icon svg {
  width: 100%;
  height: 100%;
}
.hack-tag {
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink2);
  border: 1px solid var(--line2);
  border-radius: 6px;
}
.hack-shot {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--fill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
}
.hack-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 640px) {
  .hack-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hack-shot {
    order: -1;
  }
}

/* ---------- Projects ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
  animation: pop 0.2s ease;
}
.card:hover {
  border-color: var(--line2);
  transform: translateY(-2px);
}
.shot {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badge {
  position: absolute;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  border-radius: 4px;
  padding: 2px 7px;
  border: 1px solid;
}
.badge.left {
  left: 10px;
}
.badge.right {
  right: 10px;
}
.badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.st-live {
  color: #0b6b3a;
  background: #e3f6ea;
  border-color: #a6ddba;
}
.st-live i {
  background: #22a35a;
}
.st-progress {
  color: #8a5a00;
  background: #fff4d6;
  border-color: #f1d48a;
}
.st-progress i {
  background: #d99a0b;
}
.st-beta {
  color: #3a3fb0;
  background: #e9eafd;
  border-color: #bcc0f3;
}
.st-beta i {
  background: #5458d6;
}
.st-featured {
  color: #8a5a00;
  background: #fff4d6;
  border-color: #f1d48a;
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}
.card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink2);
}
.details-btn {
  align-self: flex-start;
  min-height: 32px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.details-btn:hover {
  color: var(--ink);
}
.card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  color: var(--ink2);
}
.card-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 7px;
}
.icons {
  display: flex;
  gap: 2px;
  flex: 0 0 auto;
}
.icons a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  border-radius: 6px;
}
.icons a:hover {
  color: var(--ink);
  background: var(--fill);
}

/* ---------- Open source ---------- */
.os-summary {
  margin: 0;
  font-size: 14px;
}
.timeline {
  position: relative;
  margin-top: 32px;
  padding-left: 44px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.featured-label {
  font-size: 12px;
  letter-spacing: 0.22em;
  margin-bottom: 22px;
}
.timeline ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.timeline li {
  position: relative;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -43px;
  top: 7px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid var(--bg);
}
.timeline li::after {
  content: "";
  position: absolute;
  left: -24px;
  top: 15px;
  width: 14px;
  height: 1px;
  background: var(--line);
}
.pr-title {
  display: block;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
}
.pr-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.pr-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Kind words ---------- */
.quotes {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-top: 32px;
}
.quotes figure {
  margin: 0;
}
.quotes blockquote {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}
/* Testimonial person: links to their profile, hover card */
.qperson {
  position: relative;
  display: inline-block;
}
.qlink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.qlink .qa {
  display: inline-block;
}
.qlink .qn {
  border-bottom: 1px solid var(--line2);
}
.qlink:hover .qn {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.pcard {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 20;
  width: 270px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.28);
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
}
.qperson:hover .pcard,
.qperson:focus-within .pcard {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.pcard-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pcard-photo {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--fill);
}
.pcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pcard strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.pcard-role {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
}
.pcard-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--ink2);
}
.pcard-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  color: #0a66c2;
}
[data-theme="dark"] .pcard-cta {
  color: #70b5f9;
}
@media (hover: none) {
  .pcard {
    display: none;
  }
}
.quotes figcaption {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  line-height: 1.4;
}
.qa {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--fill);
  border: 1px dashed var(--line2);
}
.qa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qn {
  font-size: 14px;
  font-weight: 500;
}
.qr {
  font-size: 14px;
  color: var(--muted);
}
.qx {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
.qx a {
  color: var(--muted);
}

/* ---------- Scrapbook ---------- */
.scrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  padding-top: 12px;
}
.polaroid {
  position: relative;
  margin: 0;
  background: #ffffff;
  padding: 8px 8px 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s ease;
}
.polaroid:hover {
  transform: rotate(0deg) translateY(-4px) !important;
}
.polaroid .tape {
  position: absolute;
  top: -9px;
  left: 50%;
  margin-left: -26px;
  width: 52px;
  height: 16px;
  background: #f7e08a;
}
.polaroid .ph {
  aspect-ratio: 1 / 1;
  background: #ecece6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  color: #6b6b66;
  overflow: hidden;
}
.polaroid .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.polaroid figcaption {
  margin-top: 6px;
  text-align: center;
  font-family: var(--hand);
  font-size: 19px;
  line-height: 1.1;
  color: #111111;
}

/* ---------- Contact / footer ---------- */
#contact + .sec p.pencil {
  margin: 14px 0 0;
}
.foot {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Right index + doodle ---------- */
.idx {
  display: none;
}
@media (min-width: 1000px) {
  .idx {
    display: block;
    flex: 0 0 auto;
    position: sticky;
    top: 120px;
    padding-top: 0;
    margin-top: 120px;
  }
}
.idx-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 14px;
}
.idx ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.idx a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
  padding-left: 10px;
  transition:
    color 0.15s ease,
    padding 0.15s ease;
}
.idx a::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--ink);
  transition: width 0.15s ease;
}
.idx a:hover {
  color: var(--ink);
}
.idx a.active {
  color: var(--ink);
  font-weight: 500;
  padding-left: 0;
}
.idx a.active::before {
  width: 16px;
}
.buddy {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 110px;
  position: relative;
  color: var(--accent);
}
.buddy button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  color: var(--accent);
}
.buddy svg {
  display: block;
  transition: transform 0.25s ease;
}
.buddy-bubble {
  position: absolute;
  top: -30px;
  left: 62px;
  white-space: nowrap;
  transform: rotate(-6deg);
  font-size: 20px;
}
#buddy-label {
  font-size: 18px;
  margin-top: 2px;
}
