/* parukh.com: drafting-sheet identity.
   Light = vellum and navy drafting ink. Dark = blueprint. One accent: redline. */
:root {
  --paper: #EDF0EA;
  --sheet: #F6F7F3;
  --ink: #18233F;
  --graphite: #566070;
  --rule: #C5CDC8;
  --grid: rgba(24, 35, 63, .055);
  --red: #C8372D;
  --measure: 66ch;
  --wide: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0E1A30;
    --sheet: #12223F;
    --ink: #E4EAF4;
    --graphite: #9AA8C0;
    --rule: #2E426A;
    --grid: rgba(228, 234, 244, .05);
    --red: #FF6E61;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Archivo", system-ui, sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.x { font-variation-settings: "wdth" 125; }   /* expanded display voice */
.c { font-variation-settings: "wdth" 75; }    /* condensed numerals */

/* Navigation */
.nav { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 28px 28px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.brand { font-variation-settings: "wdth" 125; font-weight: 800; font-size: 17px; letter-spacing: -.01em; text-decoration: none; }
.nav ul { list-style: none; display: flex; gap: 28px; }
.nav ul a { text-decoration: none; color: var(--graphite); font-size: 15px; padding-bottom: 4px; }
.nav ul a:hover { color: var(--ink); }
.nav ul a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--red); }

main { flex: 1; width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 28px; }
footer { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 32px 28px 40px; font-size: 13px; color: var(--graphite); }

/* ---------- Home ---------- */
.home { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; min-height: calc(100vh - 170px); padding: 6vh 28px; }
.name {
  font-variation-settings: "wdth" 125; font-weight: 800;
  font-size: clamp(60px, 10vw, 136px); line-height: .88; letter-spacing: -.035em;
}
.name span { display: block; }
.status { margin-top: 32px; font-variation-settings: "wdth" 112; font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; }
.status-note { margin-top: 12px; max-width: 42ch; color: var(--graphite); }
.status-note a { color: var(--ink); }
.fixture { width: 100%; max-width: 620px; justify-self: center; }
.fixture svg { display: block; width: 100%; height: auto; }
@media (min-width: 1000px) { .home { grid-template-columns: 1fr 1.05fr; } }

/* ---------- Career ---------- */
.intro { padding: 9vh 0 40px; }
h1.big { font-variation-settings: "wdth" 125; font-weight: 800; font-size: clamp(44px, 7vw, 88px); line-height: .92; letter-spacing: -.03em; }
.lede { margin-top: 24px; max-width: 46ch; font-size: 21px; line-height: 1.45; color: var(--graphite); }

/* Drawing sheet holding the to-scale timeline */
.sheet {
  position: relative; border: 1.5px solid var(--ink); background-color: var(--sheet);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px; overflow-x: auto; overscroll-behavior-x: contain;
}
.sheet-head { display: flex; justify-content: space-between; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--rule); font-size: 13px; color: var(--graphite); background: var(--sheet); min-width: 1040px; }
.chart { --from: 2016; --span: 11; position: relative; height: 330px; min-width: 960px; margin: 0 40px; }
.lane-tag { position: absolute; left: -24px; font-size: 13px; color: var(--graphite); }
.lane-tag.top { top: 14px; }
.lane-tag.bottom { bottom: 6px; }

/* Ruler */
.ruler { position: absolute; left: 0; right: 0; top: 150px; height: 34px; border-top: 1.5px solid var(--ink);
  background: linear-gradient(to right, var(--graphite) 1px, transparent 1px) 0 0 / calc(100% / 44) 6px repeat-x; }
.ruler i { position: absolute; top: -1px; width: 1.5px; height: 12px; background: var(--ink); transform: translateX(-50%); left: calc((var(--y) - var(--from)) / var(--span) * 100%); }
.ruler i::after { content: attr(data-y); position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 12px; color: var(--graphite); font-variation-settings: "wdth" 75; font-style: normal; }

/* A stint drawn as a dimension line */
.stint { position: absolute; left: calc((var(--s) - var(--from)) / var(--span) * 100%); width: calc((var(--e) - var(--s)) / var(--span) * 100%); }
.stint.edu { top: 22px; height: 128px; }
.stint.work { top: 150px; height: 150px; }
.stint::before, .stint::after { content: ""; position: absolute; width: 1px; background: var(--graphite); opacity: .7; }
.stint::before { left: 0; } .stint::after { right: 0; }
.stint.edu::before, .stint.edu::after { top: 62px; bottom: 0; }
.stint.work::before, .stint.work::after { top: 0; height: 58px; }

.dim { position: absolute; left: 0; right: 0; height: 14px; }
.edu .dim { top: 62px; }
.work .dim { top: 44px; }
.dim .line { position: absolute; left: 0; right: 0; top: 6px; height: 1.5px; background: var(--ink); transform-origin: center; }
.dim .line::before, .dim .line::after { content: ""; position: absolute; top: -3.5px; width: 9px; height: 8.5px; background: inherit; }
.dim .line::before { left: 0; clip-path: polygon(0 50%, 100% 0, 100% 100%); }
.dim .line::after { right: 0; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.dim .len { position: absolute; left: 50%; top: -1px; transform: translateX(-50%); padding: 0 6px; background: var(--sheet); font-size: 12px; line-height: 16px; white-space: nowrap; font-variation-settings: "wdth" 75; color: var(--graphite); }

.lbl { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; white-space: nowrap; line-height: 1.3; }
.edu .lbl { top: 6px; }
.work .lbl { top: 70px; }
.lbl b { display: block; font-size: 15px; font-weight: 700; font-variation-settings: "wdth" 112; }
.lbl span { font-size: 13px; color: var(--graphite); }
.lbl.end { left: auto; right: 10px; transform: none; text-align: right; }

/* Current role: redline, open at today */
.current .dim .line { background: var(--red); }
.current .dim .line::after { display: none; }
.current .dim .len { color: var(--red); }
.current::after { display: none; }
.current .lbl b { color: var(--red); }
.today { position: absolute; top: 4px; bottom: 112px; width: 0; border-left: 1.5px dashed var(--red); left: calc((var(--now) - var(--from)) / var(--span) * 100%); }
.today span { position: absolute; top: -2px; left: 6px; font-size: 12px; color: var(--red); white-space: nowrap; }

/* Revision history */
.revs { margin: 88px 0 0; }
.revs h2 { font-variation-settings: "wdth" 125; font-weight: 800; font-size: 34px; letter-spacing: -.02em; }
.revs > p { margin-top: 8px; color: var(--graphite); max-width: var(--measure); }
.revtable { list-style: none; margin-top: 32px; border-top: 1.5px solid var(--ink); }
.revtable li { display: grid; grid-template-columns: 84px 170px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); }
.rev { font-variation-settings: "wdth" 125; font-weight: 800; font-size: 40px; line-height: 1; }
.when { padding-top: 4px; font-size: 15px; color: var(--graphite); font-variation-settings: "wdth" 88; }
.revtable h3 { font-size: 19px; font-weight: 700; line-height: 1.3; }
.where { font-size: 15px; color: var(--graphite); margin: 2px 0 10px; }
.revtable p:last-child { max-width: var(--measure); }
.revtable li.now .rev, .revtable li.now .when { color: var(--red); }
.flag { display: inline-block; margin-left: 10px; padding: 1px 8px; border: 1.5px solid var(--red); color: var(--red); font-size: 12px; font-weight: 600; vertical-align: 3px; border-radius: 3px; }
.closing { margin: 56px 0 24px; max-width: 34ch; font-variation-settings: "wdth" 112; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.35; }

/* The one orchestrated moment: dimension lines draw in on load */
@media (prefers-reduced-motion: no-preference) {
  .dim .line { animation: draw .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 110ms + 200ms); }
  .dim .len, .lbl { animation: appear .5s ease-out both; animation-delay: calc(var(--i, 0) * 110ms + 650ms); }
  .today { animation: appear .6s ease-out 1.3s both; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes appear { from { opacity: 0; } to { opacity: 1; } }
}

@media (max-width: 760px) {
  .nav, main, footer { padding-left: 20px; padding-right: 20px; }
  .revtable li { grid-template-columns: 56px 1fr; gap: 4px 16px; }
  .revtable li > div { grid-column: 2; }
  .rev { grid-row: span 2; font-size: 32px; }
  .when { padding-top: 0; }
  .sheet::after { content: "Scroll sideways to see the full timeline"; position: sticky; left: 0; display: block; padding: 8px 16px; font-size: 13px; color: var(--graphite); border-top: 1px solid var(--rule); background: var(--sheet); }
}
