/* ===========================================================================
   Shruti Saxena - profile site
   Design tokens first, then layout, then responsive, then print.
   =========================================================================== */

:root {
  --bg:            #0a0b0d;
  --surface:       #0e1013;
  --line:          #1c1f24;
  --line-strong:   #33373d;

  --heading:       #f7f7f8;
  --text:          #f4f4f5;
  --body:          #a5aab0;
  --muted:         #8b9096;
  --dim:           #6f757b;

  --accent:        #d8c39a;
  --accent-bright: #f0e3c6;

  --shell:         1080px;
  --gutter:        40px;
  --header-h:      76px;
}

/* --- base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: dark; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: #e8e9ea;
  font-family: 'Manrope', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-bright); }

img { display: block; max-width: 100%; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--bg);
  font-size: 14px;
  font-weight: 500;
  border-radius: 0 0 6px 0;
  transform: translateY(-130%);
}
.skip-link:focus { transform: none; color: var(--bg); }

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { scroll-margin-top: var(--header-h); }

/* --- shared type --------------------------------------------------------- */

.eyebrow {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--dim);
}

.section-title {
  margin: 0 0 12px;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 300;
  letter-spacing: -1.4px;
  color: var(--heading);
}

.section-lede {
  margin: 0;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
}

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.btn--ghost {
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--outline {
  height: 48px;
  padding: 0 26px;
  border: 1px solid var(--line-strong);
  font-size: 15px;
  color: var(--text);
}
.btn--outline:hover { border-color: var(--dim); color: var(--text); }

.btn--solid {
  height: 52px;
  padding: 0 30px;
  background: var(--text);
  color: var(--bg);
  font-size: 16px;
}
.btn--solid:hover { background: var(--accent); color: var(--bg); }

/* --- header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 11, 13, .86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -.1px;
}
.wordmark:hover { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 32px; }

.nav-link { font-size: 14px; font-weight: 400; color: var(--muted); }
.nav-link:hover { color: var(--text); }

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

.hero { padding: 132px 0 108px; }
.hero .eyebrow { margin-bottom: 32px; }

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: 50px;
  line-height: 1.04;
  font-weight: 300;
  letter-spacing: -2.4px;
  color: var(--heading);
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }

/* --- metrics ------------------------------------------------------------- */

.metrics {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); }

.metric {
  padding: 44px 40px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric:first-child { padding-left: 0; }
.metric:last-child { padding-right: 0; border-right: 0; }

.metric-value {
  margin: 0;
  font-size: 44px;
  line-height: 1;
  font-weight: 300;
  letter-spacing: -1.4px;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.metric-label { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }

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

.work { padding: 108px 0 24px; }

.timeline { display: flex; flex-direction: column; margin-top: 56px; }

.role {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.role:last-child { border-bottom: 1px solid var(--line); }

.role-meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}

.role-body { display: flex; flex-direction: column; gap: 16px; }

.role-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -.5px;
  color: var(--text);
}

.role-body ul {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.role-body li,
.role-body > p { font-size: 17px; line-height: 1.65; color: var(--body); }
.role-body > p { margin: 0; }

/* --- what I bring -------------------------------------------------------- */

.approach { padding-top: 96px; }
.approach .section-title { margin-bottom: 48px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.card {
  background: var(--surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-index {
  margin: 0;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--dim);
}

.card h3 { margin: 0; font-size: 20px; font-weight: 500; color: var(--text); }

.card-text { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

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

.about { padding: 96px 0; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

.portrait {
  width: 220px;
  height: 220px;
  margin-bottom: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
}

.about .section-title { margin-bottom: 28px; }

.about-bio {
  margin: 0;
  max-width: 620px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--body);
  text-wrap: pretty;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 32px;
  border-left: 1px solid var(--line);
  padding-left: 40px;
}

.fact { display: flex; flex-direction: column; gap: 12px; }

.fact-label {
  margin: 0;
  font-size: 13px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--dim);
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.8;
  color: var(--body);
}

/* keeps wrapped entries readable as separate items */
.fact-list li + li { margin-top: 8px; }

/* --- call to action ------------------------------------------------------ */

.cta { border-top: 1px solid var(--line); }

.cta .shell {
  padding-top: 104px;
  padding-bottom: 104px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.cta h2 {
  margin: 0;
  max-width: 760px;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 300;
  letter-spacing: -1.8px;
  color: var(--heading);
}

.cta p { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.65; color: var(--muted); }

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

.site-footer { border-top: 1px solid var(--line); }

.site-footer .shell {
  padding-top: 36px;
  padding-bottom: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer p { margin: 0; font-size: 14px; color: var(--dim); }

.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* --- responsive ---------------------------------------------------------- */

@media (max-width: 960px) {
  :root { --gutter: 32px; }

  .hero h1 { font-size: 42px; letter-spacing: -1.6px; }
  .section-title { font-size: 36px; letter-spacing: -1.1px; }
  .cta h2 { font-size: 44px; letter-spacing: -1.3px; }

  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .facts { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 36px; }
}

@media (max-width: 760px) {
  :root { --gutter: 24px; --header-h: 64px; }

  .nav-link { display: none; }

  .hero { padding: 84px 0 68px; }
  .hero h1 { font-size: 34px; letter-spacing: -1.1px; }
  .hero .eyebrow { margin-bottom: 24px; }
  .hero-actions { margin-top: 36px; }

  .metrics-grid { grid-template-columns: 1fr; }
  .metric {
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .metric:last-child { border-bottom: 0; }
  .metric-value { font-size: 36px; letter-spacing: -1.1px; }

  .work { padding: 72px 0 16px; }
  .section-title { font-size: 30px; letter-spacing: -.9px; }
  .section-lede { font-size: 17px; }
  .timeline { margin-top: 40px; }
  .role { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .role-title { font-size: 22px; }
  .role-body li, .role-body > p { font-size: 16px; }

  .approach { padding-top: 72px; }
  .approach .section-title { margin-bottom: 32px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { padding: 26px; }

  .about { padding: 72px 0; }
  .about-grid { gap: 40px; }
  .portrait { width: 140px; height: 140px; margin-bottom: 28px; }
  .about-bio { font-size: 17px; }

  .cta .shell { padding-top: 76px; padding-bottom: 76px; gap: 22px; }
  .cta h2 { font-size: 34px; letter-spacing: -1px; }
  .cta p { font-size: 17px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 29px; letter-spacing: -.8px; }
  .cta h2 { font-size: 29px; letter-spacing: -.8px; }
  .section-title { font-size: 26px; letter-spacing: -.7px; }

  .btn--solid { height: 48px; padding: 0 20px; font-size: 15px; }

  .site-footer .shell { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* --- print --------------------------------------------------------------- */

@media print {
  html { color-scheme: light; }

  body {
    background: #fff;
    color: #1a1a1a;
    font-size: 10.5pt;
  }

  .site-header, .skip-link, .footer-links { display: none; }

  .shell { max-width: none; padding: 0; }

  .hero { padding: 0 0 18pt; }
  .hero h1 { font-size: 22pt; letter-spacing: -.5pt; color: #111; }

  .section-title, .cta h2 { font-size: 15pt; letter-spacing: -.3pt; color: #111; }

  .eyebrow, .card-index, .fact-label, .role-meta, .metric-label, .cta p { color: #555; }

  .metrics { border-color: #ddd; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .metric { padding: 12pt; border-right: 1px solid #ddd; border-bottom: 0; }
  .metric-value { color: #111; font-size: 16pt; }
  .metric-label { font-size: 9pt; }

  .work { padding: 18pt 0 0; }
  .timeline { margin-top: 14pt; }
  .role {
    grid-template-columns: 120px 1fr;
    padding: 12pt 0;
    gap: 18pt;
    border-top-color: #ddd;
  }
  /* never strand a role heading at the foot of a page */
  .role-title { break-after: avoid; page-break-after: avoid; }
  .role-body li, .role-body > p, .about-bio, .card-text { orphans: 2; widows: 2; }
  .role:last-child { border-bottom-color: #ddd; }
  .role-title { font-size: 12pt; color: #111; }
  .role-body li, .role-body > p, .about-bio, .section-lede, .card-text, .fact-list { color: #222; }

  .approach { padding-top: 18pt; }
  .card-grid { gap: 0; background: #fff; border: 0; grid-template-columns: repeat(2, 1fr); }
  .card { background: #fff; border: 1px solid #ddd; padding: 12pt; break-inside: avoid; }
  .card h3 { color: #111; }

  .about { padding: 18pt 0; }
  .about-grid { grid-template-columns: 1fr 260px; gap: 24pt; }
  .portrait { width: 90pt; height: 90pt; margin-bottom: 12pt; }
  .facts { border-left: 1px solid #ddd; border-top: 0; padding-left: 18pt; padding-top: 0; }

  .cta { border-top-color: #ddd; }
  .cta .shell { padding: 18pt 0; gap: 10pt; }

  .site-footer { border-top-color: #ddd; }
  .site-footer .shell { padding: 10pt 0; }
  .site-footer p { color: #555; }

  .btn {
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    color: #111;
    font-weight: 500;
    text-decoration: underline;
  }
  .hero-actions a::after {
    content: "\00a0\00a0" attr(href);
    font-weight: 400;
    text-decoration: none;
    color: #555;
    word-break: break-all;
  }

  a { color: #111; }
}
