/* jaygupta17.github.io · terminal-native minimal · Catppuccin Mocha */

:root {
  --base: #1e1e2e;
  --mantle: #181825;
  --surface0: #313244;
  --surface1: #45475a;
  --text: #cdd6f4;
  --subtext1: #bac2de;
  --subtext0: #a6adc8;
  --overlay1: #7f849c;
  --overlay0: #6c7086;
  --mauve: #cba6f7;
  --blue: #89b4fa;
  --green: #a6e3a1;
  --peach: #fab387;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --w: 44rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--base);
  color: var(--subtext1);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--mauve); color: #11111b; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--base); }
::-webkit-scrollbar-thumb { background: var(--surface1); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--overlay0); }

/* ---- backdrop ---- */

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--surface0) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 75%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 30% at 50% -5%, rgba(203, 166, 247, 0.06), transparent 70%);
}

/* ---- layout ---- */

main {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}

section, footer {
  padding: 64px 0 0;
  border-top: 1px solid var(--surface0);
  margin-top: 64px;
}

section > h2 {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--overlay1);
  margin: 0 0 28px;
}

.slashes { color: var(--mauve); }

.mono { font-family: var(--mono); }
.muted { color: var(--overlay1); }
.sep { color: var(--overlay0); padding: 0 2px; }

a { color: var(--subtext1); text-decoration: none; }
a:hover { color: var(--mauve); }
a:focus-visible { outline: 2px solid var(--mauve); outline-offset: 3px; border-radius: 2px; }

/* ---- hero ---- */

.hero { padding: 112px 0 0; border-top: 0; margin-top: 0; }

.prompt {
  font-size: 13.5px;
  color: var(--overlay1);
  margin: 0 0 28px;
}

.prompt-sym { color: var(--green); margin-right: 6px; }

.prompt::after {
  content: "▍";
  color: var(--mauve);
  margin-left: 6px;
  animation: blink 1.1s steps(1, end) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

h1 {
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.1;
  margin: 0 0 20px;
}

.headline {
  font-size: 1.16rem;
  color: var(--subtext1);
  max-width: 34rem;
  margin: 0 0 22px;
  line-height: 1.65;
}

.status {
  font-size: 13px;
  color: var(--subtext0);
  margin: 0 0 26px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 9px;
  vertical-align: 1px;
  box-shadow: 0 0 0 0 rgba(166, 227, 161, 0.5);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(166, 227, 161, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(166, 227, 161, 0); }
  100% { box-shadow: 0 0 0 0 rgba(166, 227, 161, 0); }
}

.links {
  display: flex;
  gap: 22px;
  font-size: 13.5px;
}

.links a { color: var(--subtext0); padding-bottom: 2px; border-bottom: 1px solid transparent; transition: color .15s ease, border-color .15s ease; }
.links a:hover { color: var(--mauve); border-color: var(--mauve); }

/* ---- about ---- */

.prose p { margin: 0 0 16px; max-width: 40rem; }
.prose p:last-child { margin-bottom: 0; }

/* ---- now ---- */

.now-list { list-style: none; padding: 0; margin: 0; }
.now-list li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--subtext0);
}
.now-list .k { color: var(--overlay1); }

/* ---- experience ---- */

.job { margin-bottom: 44px; }
.job:last-child { margin-bottom: 0; }

.job header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.job h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.at { color: var(--mauve); font-weight: 500; }
.job h3 .muted { font-weight: 400; font-size: 13.5px; }
.period { font-size: 12.5px; color: var(--overlay1); white-space: nowrap; }

.job ul { list-style: none; padding: 0; margin: 0; }
.job li {
  position: relative;
  padding-left: 20px;
  margin: 9px 0;
  font-size: 14.5px;
  color: var(--subtext0);
}
.job li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--overlay0);
}
.job strong { color: var(--text); font-weight: 600; }

/* ---- work cards ---- */

.card {
  background: var(--mantle);
  border: 1px solid var(--surface0);
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 18px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--surface1); transform: translateY(-2px); }
.card:last-child { margin-bottom: 0; }

.card h3 { margin: 0 0 10px; font-size: 15.5px; font-weight: 600; color: var(--text); }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--mauve); }
.card h3 .muted { font-weight: 400; font-size: 13.5px; }

.card p { margin: 0 0 12px; font-size: 14.5px; color: var(--subtext0); }
.card p:last-child { margin-bottom: 0; }

.tags { font-size: 12.5px; color: var(--overlay1); }

/* ---- oss ---- */

.oss-list { list-style: none; padding: 0; margin: 0; }
.oss-list li { margin: 10px 0; font-size: 14.5px; color: var(--subtext0); }
.oss-list a { color: var(--text); border-bottom: 1px solid var(--surface1); }
.oss-list a:hover { color: var(--mauve); border-color: var(--mauve); }
.oss-list code {
  font-family: var(--mono);
  font-size: 12.5px;
  background: var(--mantle);
  border: 1px solid var(--surface0);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--peach);
}

/* ---- stack ---- */

.stack { margin: 0; }
.stack div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 18px;
  padding: 6px 0;
  font-size: 13.5px;
}
.stack dt { color: var(--overlay1); }
.stack dd { margin: 0; color: var(--subtext0); }

/* ---- education ---- */

#education p { margin: 0; font-size: 14.5px; }

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

footer {
  padding: 40px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer p { margin: 0; font-size: 12.5px; color: var(--overlay1); }
footer a { color: var(--overlay1); }
footer a:hover { color: var(--mauve); }

/* ---- reveals ---- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .65s cubic-bezier(.2, .7, .2, 1), transform .65s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---- mobile ---- */

@media (max-width: 640px) {
  .hero { padding-top: 84px; }
  section, footer { margin-top: 52px; padding-top: 48px; }
  .job header { flex-direction: column; gap: 4px; }
  .now-list li { grid-template-columns: 1fr; gap: 2px; }
  .stack div { grid-template-columns: 1fr; gap: 2px; }
  .links { flex-wrap: wrap; gap: 16px; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .prompt::after { animation: none; }
  .dot { animation: none; }
  .card { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
