/* jatinmomaya.com
   Business clarity in the structure, technical precision in the details.
   Sans for voice, mono for metadata. */

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

:root {
  --ink: #161616;
  --dim: #6f6f6f;
  --faint: #e5e5e1;
  --bg: #fbfbfa;
  --accent: #2348ff;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  padding: 3rem 1.5rem 5rem;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.dim {
  color: var(--dim);
}

.page {
  max-width: 660px;
  margin: 0 auto;
}

/* header */

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--faint);
  margin-bottom: 4rem;
}

/* hero */

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.lede {
  font-size: 1.35rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  max-width: 34ch;
  margin-bottom: 1.25rem;
}

/* sections */

section {
  margin-top: 4rem;
}

.section-label {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  border-top: 1px solid var(--faint);
  padding-top: 1rem;
  margin-bottom: 1.75rem;
}

.section-label span {
  color: var(--accent);
}

section p {
  margin-bottom: 1rem;
  max-width: 60ch;
}

section p:last-child {
  margin-bottom: 0;
}

/* experience */

.jobs {
  list-style: none;
}

.jobs > li {
  margin-bottom: 2.25rem;
}

.jobs > li:last-child {
  margin-bottom: 0;
}

.job-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.15rem;
}

.job-head h3 {
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.job-head .mono {
  white-space: nowrap;
}

.job-role {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.job-role .mono {
  font-weight: 400;
}

.job-desc {
  color: var(--dim);
  font-size: 0.95rem;
  max-width: 58ch;
}

.sub-roles {
  list-style: none;
  margin-top: 0.9rem;
}

.sub-roles li {
  margin-bottom: 1.1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--faint);
}

.sub-roles li:last-child {
  margin-bottom: 0;
}

/* links */

.links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

a:hover {
  border-bottom-color: var(--accent);
}

.links a {
  font-weight: 600;
  color: var(--ink);
}

.links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* footer */

footer {
  margin-top: 5rem;
  border-top: 1px solid var(--faint);
  padding-top: 1.5rem;
}

/* small screens */

@media (max-width: 520px) {
  .job-head {
    flex-direction: column;
    gap: 0;
  }

  .lede {
    font-size: 1.2rem;
  }
}
