/* Margin Doodles — nikitachandawale.com */
:root {
  --ink: #1F1F1F;
  --blue: #2F4FD8;
  --yellow: #FFE45C;
  --grey: #4A4A4A;
  --body: #333333;
  --rule: #E2E2DE;
  --paper: #FFFFFF;
  --wash: #FAFAF8;
  --bubble: #EFEFEC;
  --muted: #9A9A95;
  --gutter: clamp(20px, 6.6vw, 96px);
  --side: 300px;
  --sans: 'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hand: 'Kalam', 'Comic Neue', cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: var(--blue); }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

/* ---------- layout ---------- */
.wrap { display: flex; flex-direction: column; min-height: 100vh; max-width: 1440px; margin: 0 auto; }
main { flex: 1; }
.section { padding: 56px var(--gutter); }
.section.tight-top { padding-top: 24px; }
.section.tight-bottom { padding-bottom: 24px; }
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) var(--side); gap: 72px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.side-note { padding-top: var(--note-top, 80px); display: flex; flex-direction: column; gap: 10px; }

@media (max-width: 900px) {
  .with-side { grid-template-columns: 1fr; gap: 24px; }
  .side-note { padding-top: 0; }
  .side-note .arrow-left { display: none; }
}

/* ---------- type ---------- */
.h1 { font-size: clamp(44px, 6.2vw, 84px); line-height: 1.02; }
.h2 { font-size: clamp(30px, 3.2vw, 40px); }
.eyebrow { font-size: 18px; font-weight: 600; color: var(--grey); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.6; color: var(--body); }
.big { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; }
.hand { font-family: var(--hand); color: var(--blue); font-size: 22px; line-height: 1.3; }
.hand.sm { font-size: 19px; }
.muted { color: var(--grey); }
.hl { background: linear-gradient(transparent 55%, var(--yellow) 55%); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 32px var(--gutter);
}
.brand { font-size: 24px; font-weight: 800; text-decoration: none; }
.nav { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 18px; font-weight: 500; }
.nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.menu-toggle { display: none; }
@media (max-width: 760px) {
  .site-header { padding: 20px var(--gutter); flex-wrap: wrap; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
    font: inherit; font-weight: 600; background: none; border: 2px solid var(--ink); border-radius: 10px; padding: 6px 14px; cursor: pointer;
  }
  .nav { display: none; width: 100%; flex-direction: column; gap: 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 20px; border-top: 1px solid var(--rule); }
}

/* ---------- wavy underline links ---------- */
.wavy {
  display: inline-block; text-decoration: none; font-weight: 500; padding-bottom: 8px;
  background: no-repeat left bottom / 100% 10px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 30 2, 60 9, 90 5 C 120 1, 150 8, 198 4' stroke='%231F1F1F' stroke-width='2' fill='none' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
.wavy.blue, .nav a[aria-current="page"] {
  color: var(--blue);
  background: no-repeat left bottom / 100% 10px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6 C 30 2, 60 9, 90 5 C 120 1, 150 8, 198 4' stroke='%232F4FD8' stroke-width='2' fill='none' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  padding-bottom: 8px;
}
.links { display: flex; gap: 32px; flex-wrap: wrap; align-items: baseline; }

/* circled word */
.circled { position: relative; display: inline-block; white-space: nowrap; }
.circled svg { position: absolute; left: -6%; top: -18%; width: 112%; height: 136%; pointer-events: none; overflow: visible; }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  font: inherit; font-size: 18px; font-weight: 600; padding: 10px 18px;
  background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 10px;
  text-decoration: none; cursor: pointer;
}
.btn:hover { color: var(--ink); background: #ffd924; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 15px; color: var(--grey); }
.field input, .field textarea {
  font: inherit; font-size: 18px; padding: 8px 0; border: none; border-bottom: 2px solid var(--ink);
  background: transparent; border-radius: 0; resize: vertical; color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--blue); }
.form-status { font-family: var(--hand); color: var(--blue); font-size: 19px; min-height: 1.3em; }

/* ---------- photos with tape ---------- */
.photo { position: relative; }
.photo img { width: 100%; height: auto; object-fit: cover; border: 10px solid #fff; outline: 1px solid #D6D6D2; background: #fff; }
.photo .tape { position: absolute; height: 28px; background: var(--yellow); opacity: .85; }
.photo .tape.l { top: -14px; left: 36px; width: 110px; transform: rotate(-6deg); }
.photo .tape.r { top: -12px; right: 36px; width: 96px; transform: rotate(8deg); }
.photo .tape.c { top: -12px; left: 50%; margin-left: -50px; width: 100px; transform: rotate(-4deg); }
.tilt-l { transform: rotate(-1.5deg); }
.tilt-r { transform: rotate(2deg); }
.tilt-s { transform: rotate(1deg); }

/* ---------- lists with rules ---------- */
.rows { display: flex; flex-direction: column; border-bottom: 1px solid var(--rule); }
.row {
  display: grid; gap: 16px 24px; padding: 20px 0; border-top: 1px solid var(--rule);
  text-decoration: none; align-items: baseline;
}
a.row:hover .row-title { color: var(--blue); }
.row-title { font-size: clamp(19px, 1.8vw, 23px); font-weight: 600; }
.row-meta { font-size: 17px; color: var(--grey); text-align: right; }
.row.lately { grid-template-columns: 40px minmax(0, 1fr) 240px; align-items: center; }
.row.essay { grid-template-columns: minmax(0, 1fr) 260px; }
.row.chapter { grid-template-columns: 80px minmax(0, 1fr) 200px 30px; align-items: center; color: var(--ink); }
.row.chapter .num { font-family: var(--hand); font-size: 34px; color: var(--blue); }
.row.chapter .row-title { font-size: clamp(21px, 2.2vw, 28px); }
.row.chapter.next, .row.chapter.next .num { color: var(--muted); }
.row.talk { grid-template-columns: 110px minmax(0, 1fr) 340px 150px; font-size: 20px; padding: 18px 0; }
.row.talk .year { font-family: var(--hand); font-size: 22px; color: var(--blue); }
.row.path { grid-template-columns: 130px minmax(0, 1fr) 380px; font-size: 21px; padding: 18px 0; }
.row.path .year { font-family: var(--hand); font-size: 22px; color: var(--blue); }
.star { width: 26px; height: 26px; }

@media (max-width: 900px) {
  .row.lately { grid-template-columns: 30px minmax(0, 1fr); }
  .row.lately .row-meta { grid-column: 2; text-align: left; }
  .row.essay { grid-template-columns: 1fr; gap: 4px; }
  .row.essay .row-meta { text-align: left; }
  .row.chapter { grid-template-columns: 56px minmax(0, 1fr) 26px; gap: 4px 14px; }
  .row.chapter .row-meta { grid-column: 2; grid-row: 2; text-align: left; }
  .row.chapter .num { grid-row: 1 / span 2; }
  .row.talk, .row.path { grid-template-columns: 1fr; gap: 2px; font-size: 18px; }
  .row.talk .row-meta, .row.path .row-meta { text-align: left; }
}

/* ---------- cards ---------- */
.card { border: 2px solid var(--ink); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; }
.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 12px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; padding-top: 8px; }
.card h3 { font-size: 26px; }
.card p { font-size: 19px; line-height: 1.5; color: var(--body); }
.rot-a { transform: rotate(-1deg); } .rot-b { transform: rotate(.8deg); } .rot-c { transform: rotate(-.6deg); } .rot-d { transform: rotate(1.5deg); }
@media (max-width: 900px) {
  .cards-3, .cards-2 { grid-template-columns: 1fr; gap: 24px; }
}

/* study cards */
.study { padding: 32px 34px; gap: 14px; }
.study .art { height: 220px; margin-bottom: 6px; border-radius: 10px; background: var(--wash); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.study .art svg { max-width: 100%; height: auto; }
.study h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.2; }
.study p { font-size: 20px; line-height: 1.55; }
.study p.sub { color: var(--grey); }
@media (max-width: 600px) { .study { padding: 24px 20px; } .study .art { height: 180px; } }

/* ---------- chat bubbles ---------- */
.chat { display: flex; flex-direction: column; gap: 14px; }
.chat.boxed { background: var(--wash); border: 1px solid var(--rule); border-radius: 22px; padding: clamp(24px, 3vw, 44px); gap: 18px; }
.bubble-ai { align-self: flex-start; display: flex; flex-direction: column; gap: 6px; max-width: 420px; }
.bubble-ai .who { font-family: var(--hand); font-size: 17px; color: var(--blue); }
.bubble-ai .b { background: var(--bubble); padding: 14px 18px; border-radius: 22px 22px 22px 6px; font-size: 20px; line-height: 1.4; }
.bubble-me { align-self: flex-end; max-width: 520px; background: var(--ink); color: #fff; padding: 16px 22px; border-radius: 22px 22px 6px 22px; font-size: 21px; line-height: 1.4; }
.bubble-link {
  align-self: flex-end; width: min(520px, 100%); text-decoration: none; color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: 22px 22px 6px 22px; padding: 22px 24px; display: flex; flex-direction: column; gap: 6px;
}
.bubble-link .t { font-size: 30px; font-weight: 700; line-height: 1.15; }
.bubble-link .s { font-size: 17px; font-weight: 600; color: var(--blue); }

/* ---------- footer ---------- */
.site-footer { padding: 40px var(--gutter) 44px; display: flex; flex-direction: column; gap: 28px; }
.footer-line { width: 100%; height: 12px; display: block; }
.footer-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 26px; font-size: 17px; flex-wrap: wrap; }
.footer-small { font-size: 15px; color: var(--grey); }
@media (min-width: 761px) { .footer-row.top { justify-content: flex-end; } }

/* ---------- page specific ---------- */
/* home */
.hero { display: grid; grid-template-columns: 7fr 5fr; gap: 88px; align-items: center; padding-bottom: 72px; }
.hero-note { display: flex; align-items: flex-start; gap: 8px; margin-top: -16px; padding-left: 250px; }
.hero-photo { width: 320px; justify-self: end; display: flex; flex-direction: column; gap: 14px; padding-top: 20px; }
.hero-photo img { height: 300px; object-position: 50% 40%; }
.talk-card { border: 2px solid var(--ink); border-radius: 18px; padding: 36px 40px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: center; max-width: 1060px; }
.grow-roll { display: flex; justify-content: flex-end; gap: 64px; align-items: flex-end; padding-bottom: 24px; }
.grow-roll .chat { width: 560px; margin-right: auto; }
.doodle-fig { display: flex; flex-direction: column; align-items: center; gap: 6px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 32px; }
  .hero-note { padding-left: 24px; }
  .hero-note svg { width: 70px; }
  .hero-note .hand { width: auto !important; padding-top: 18px !important; }
  .hero-photo { justify-self: start; width: min(300px, 80%); }
  .talk-card { grid-template-columns: 1fr; gap: 24px; padding: 26px 22px; }
  .grow-roll { flex-wrap: wrap; justify-content: flex-start; gap: 32px; }
  .grow-roll .chat { width: 100%; }
}

/* research */
.timeline-box { border: 2px dashed #C9C9C4; border-radius: 18px; padding: 52px 48px; display: flex; flex-direction: column; gap: 28px; }
.steps { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.steps span { font-size: 30px; font-weight: 500; color: var(--grey); padding: 0 8px; }
.steps .first { font-weight: 700; color: var(--ink); }
.steps-notes { display: flex; justify-content: space-between; gap: 16px; padding: 0 20px; }
.dims .dim { display: flex; gap: 20px; align-items: flex-start; padding: 26px 0; border-top: 1px solid var(--rule); }
.dim-num { position: relative; width: 56px; height: 56px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--hand); font-size: 30px; color: var(--blue); }
.dim-num svg { position: absolute; inset: 0; }
.dim h3 { font-size: 28px; }
.dim p { font-size: 21px; line-height: 1.5; color: var(--body); margin-top: 6px; }
.sticky { background: var(--yellow); padding: 28px 26px; transform: rotate(2.5deg); display: flex; flex-direction: column; gap: 8px; font-family: var(--hand); }
.finding { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--rule); }
.finding .stat { font-family: var(--hand); font-size: 40px; line-height: 1.1; color: var(--blue); }
.finding h3 { font-size: 26px; line-height: 1.2; }
.finding p { font-size: 20px; line-height: 1.55; color: var(--body); margin-top: 6px; }
.pub { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--rule); padding-top: 22px; }
.pub .kind { font-size: 17px; font-weight: 600; color: var(--blue); }
.pub .title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.25; }
.pub .cite { font-size: 19px; color: var(--grey); }
.copy-btn { font: inherit; font-size: 19px; font-weight: 500; background: none; border: none; padding: 0; text-decoration: underline; cursor: pointer; color: var(--ink); min-height: 44px; }
@media (max-width: 900px) {
  .timeline-box { padding: 28px 18px; }
  .steps span { font-size: 22px; }
  .steps svg { width: 44px; }
  .steps-notes { flex-direction: column; padding: 0; }
  .finding { grid-template-columns: 1fr; gap: 6px; }
  .sticky { max-width: 320px; }
}

/* talks */
.talks-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; align-items: center; padding-bottom: 40px; }
.topic { display: flex; gap: 18px; align-items: flex-start; padding: 24px 0; border-top: 1px solid var(--rule); }
.topic h3 { font-size: 28px; }
.topic p { font-size: 21px; line-height: 1.5; color: var(--body); margin-top: 6px; }
.video-card { margin-top: 70px; align-self: start; transform: rotate(1.5deg); }
.slides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; padding-top: 12px; }
.slides-2 { display: grid; grid-template-columns: 3fr 2fr; gap: 40px; padding-top: 32px; align-items: start; }
.uxindia { display: flex; gap: 36px; align-items: flex-end; padding-top: 40px; }
.uxindia .photo { width: 600px; max-width: 100%; flex-shrink: 0; }
.uxindia .photo img { height: 420px; object-position: 50% 40%; }
@media (max-width: 900px) {
  .talks-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .video-card { margin-top: 0; }
  .slides, .slides-2 { grid-template-columns: 1fr; gap: 28px; }
  .uxindia { flex-direction: column; align-items: flex-start; }
  .uxindia .photo img { height: auto; aspect-ratio: 4 / 3; }
}

/* about */
.about-hero { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.arc { display: flex; flex-direction: column; gap: 26px; }
.arc .line { display: flex; align-items: center; gap: 10px; margin-top: -24px; font-size: clamp(36px, 4.2vw, 60px); font-weight: 700; line-height: 1.08; }
.arc .l1 { padding-left: 60px; } .arc .l2 { padding-left: 120px; } .arc .l3 { padding-left: 180px; }
.arc .aside { margin-top: -22px; padding-left: 240px; display: flex; align-items: center; gap: 8px; }
.arc .aside span { font-family: var(--hand); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; color: var(--blue); }
.podcast { display: flex; flex-direction: row; gap: 32px; align-items: center; max-width: 900px; padding: 32px 36px; }
@media (min-width: 901px) { .arc .line span { white-space: nowrap; } .about-hero { grid-template-columns: 4fr 8fr; } }
@media (max-width: 900px) {
  .about-hero { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .arc .l1 { padding-left: 20px; } .arc .l2 { padding-left: 40px; } .arc .l3 { padding-left: 60px; } .arc .aside { padding-left: 60px; }
  .arc .line svg { width: 44px; }
  .podcast { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px 22px; }
}

/* now */
.now-row { display: grid; grid-template-columns: 52px 220px minmax(0, 1fr); gap: 20px; align-items: start; padding: 30px 0; border-top: 1px solid var(--rule); }
.now-row h3 { font-size: 30px; }
.now-row p { font-size: 23px; line-height: 1.55; }
@media (max-width: 700px) {
  .now-row { grid-template-columns: 40px 1fr; gap: 6px 14px; }
  .now-row p { grid-column: 2; font-size: 20px; }
  .now-row h3 { font-size: 24px; }
}
