/* Pratiksha Thapa
   Display serif headlines, sans for everything else, warm paper, one dark pill. */

:root {
  --paper: #f4f2ee;
  --tint:  #eae7e1;          /* alternating section wash */
  --ink:   #2b2926;
  --soft:  #56534e;          /* 7.0:1 on paper */
  --faint: #67635d;          /* clears 4.5:1 on paper AND on tint */
  --line:  #d8d4cc;
  --dark:  #2b2926;          /* pill */

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --shell: 1180px;
  --pad:   clamp(22px, 5vw, 56px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
p { margin: 0 0 1.15em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
img { display: block; max-width: 100%; }

::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 40;
  padding: 9px 15px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-300%);
}
.skip:focus { transform: none; }

/* ---------- display type ---------- */

h1, h2 {
  font-family: var(--display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---------- top bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px var(--pad);
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
}

.wordmark {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-decoration: none;
  white-space: nowrap;
}

.bar-nav {
  display: flex;
  gap: clamp(18px, 2.6vw, 40px);
  font-size: 0.9375rem;
}

.bar-nav a {
  position: relative;
  color: var(--soft);
  text-decoration: none;
  padding-bottom: 3px;
  transition: color .18s;
}
.bar-nav a:hover { color: var(--ink); }

.bar-nav a.is-active {
  color: var(--ink);
  font-weight: 500;
}
.bar-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--ink);
}

.bar-btn {
  display: none;
  padding: 8px 16px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font: inherit;
  font-size: 0.9375rem;
  cursor: pointer;
}

.menu { display: none; }

/* ---------- shell ---------- */

main { max-width: var(--shell); margin: 0 auto; }

section {
  position: relative;
  padding: clamp(64px, 8vw, 116px) var(--pad);
}

/* alternating wash, full-bleed */
.tint::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--tint);
  z-index: -1;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(56px, 7vw, 104px);
}

h1 {
  margin: 0 0 26px;
  font-size: clamp(2.75rem, 6.4vw, 5.25rem);
  line-height: 1.03;
  letter-spacing: -0.028em;
}

.hero-sub {
  margin: 0 0 34px;
  max-width: 40ch;
  font-size: 1.0625rem;
  color: var(--soft);
}

.pill {
  display: inline-block;
  padding: 14px 30px;
  background: var(--dark);
  color: var(--paper);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform .18s, opacity .18s;
}
.pill:hover { opacity: 0.88; transform: translateY(-1px); }

.hero-figure { margin: 0; }

.hero-figure img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 18px;
}

/* ---------- section headings ---------- */

.kicker {
  margin: 0 0 18px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

h2 {
  margin: 0 0 clamp(32px, 4vw, 52px);
  max-width: 22ch;
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  line-height: 1.12;
}

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

.cols {
  columns: 2;
  column-gap: clamp(32px, 5vw, 72px);
  max-width: 980px;
  color: var(--soft);
}
.cols p { break-inside: avoid; margin-bottom: 1.3em; }

/* ---------- focus items ---------- */

.items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(28px, 3.4vw, 48px);
  counter-reset: item;
}

.items article {
  counter-increment: item;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.items h3 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.items p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--soft);
}

/* ---------- rows ---------- */

.rows { margin: 0; }

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 4px 28px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }

.rows dt {
  font-family: var(--display);
  font-size: 1.1875rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.rows dd {
  grid-column: 1;
  margin: 0;
  max-width: 62ch;
  font-size: 0.9375rem;
  color: var(--soft);
}

.row-org {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
}

.row-side {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 4px 0 0;
  text-align: right;
  font-size: 0.875rem;
  color: var(--faint);
  white-space: nowrap;
}

/* ---------- skills ---------- */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 64px);
}

.skills h3 {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.skills p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--soft);
}

/* ---------- closer ---------- */

.closer { padding-bottom: clamp(56px, 7vw, 96px); }

.closer h2 { margin-bottom: 20px; }

.closer-sub {
  margin: 0 0 32px;
  max-width: 44ch;
  font-size: 1.0625rem;
  color: var(--soft);
}

.meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.meta dt {
  margin-bottom: 4px;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.meta dd { margin: 0; font-size: 0.9375rem; }

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

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 26px var(--pad) 44px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--faint);
}
footer p { margin: 0; }
.foot-name { color: var(--ink); }

/* ---------- narrow ---------- */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-figure { order: -1; max-width: 340px; }
  .hero-figure img { aspect-ratio: 3 / 2; object-position: center 15%; }
  .cols { columns: 1; }
}

@media (max-width: 720px) {
  .bar-nav { display: none; }
  .bar-btn { display: block; }

  .menu {
    display: none;
    flex-direction: column;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 0 var(--pad) 14px;
  }
  .menu.is-open { display: flex; }
  .menu a {
    padding: 13px 0;
    border-top: 1px solid var(--line);
    color: var(--soft);
    text-decoration: none;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .row-side {
    grid-column: 1;
    grid-row: auto;
    order: -1;
    margin: 0 0 2px;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

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

@media print {
  .bar, .menu, .skip, .pill { display: none; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .tint::before { display: none; }
  section { padding: 14pt 0; break-inside: avoid; }
  .hero-figure { max-width: 130px; }
  .cols { columns: 1; }
  a { text-decoration: none; }
}
