/* ---------------------------------------------------------------
   Pradeep Muthaiya — shared stylesheet
   Palette: forest green / beige / tan, rust orange accents
   Type: Fraunces (display) + Inter (text), self-hosted variable
   --------------------------------------------------------------- */

@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest:       #24382b;
  --forest-soft:  #55705c;
  --beige:        #f6f2e9;
  --tan:          #ddd0b8;
  --tan-soft:     #e8dfcd;
  --rust:         #b0562a;
  --ink:          #23231f;
  --ink-soft:     #6a685e;

  --maxw: 44rem;

  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Fraunces is a variable font with an optical-size axis; softness/wonk give
     it the slightly idiosyncratic cut that makes it feel less generic. */
  --fr-display: "opsz" 144, "SOFT" 30, "WONK" 1;
  --fr-text: "opsz" 20, "SOFT" 20, "WONK" 0;
}

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

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

body {
  margin: 0;
  background: var(--beige);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.72;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.75rem;
}

main { padding: 5.5rem 0 6rem; }

section + section { margin-top: 5rem; }

/* ---------- header / nav ---------- */
/* No background fill, no border — the header floats on the page. */

.site-header {
  padding: 2rem 0 0;
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--display);
  font-variation-settings: var(--fr-text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--forest);
  text-decoration: none;
}

.brand:hover { color: var(--rust); }

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav a:hover { color: var(--forest); }

.nav a[aria-current="page"] { color: var(--forest); }

/* Rust dot marks the current page — quieter than an underline. */
.nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -0.5rem;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--rust);
}

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: var(--display);
  color: var(--forest);
  margin: 0;
  font-weight: 500;
}

h1 {
  font-variation-settings: var(--fr-display);
  font-size: clamp(2.9rem, 8.5vw, 4.35rem);
  line-height: 1.02;
  letter-spacing: -0.028em;
  font-weight: 400;
}

h2 {
  font-variation-settings: var(--fr-text);
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

h3 {
  font-variation-settings: var(--fr-text);
  font-size: 1.06rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 600;
}

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--rust); }
a:hover { color: var(--forest); }

/* Micro-label: wide-tracked uppercase, with a short rust rule above it.
   Replaces the old bordered section headers. */
.section-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--forest-soft);
  margin: 0 0 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tan);
  position: relative;
}

.section-label::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 2rem;
  height: 1px;
  background: var(--rust);
}

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

.hero { margin-bottom: 3rem; }

.hero-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-bottom: 2rem;
  filter: saturate(0.92);
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 1.1rem;
}

.hero h1 { margin-bottom: 1.1rem; }

.tagline {
  font-family: var(--display);
  font-variation-settings: var(--fr-text);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink-soft);
  margin: 0;
}

/* Lede paragraph — larger than body, sets the reading rhythm. */
.lede {
  font-size: 1.13rem;
  line-height: 1.68;
  color: var(--ink);
  max-width: 34rem;
}

/* ---------- links / actions ---------- */
/* Buttons are gone; these are underlined text links with an arrow. */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2.5rem;
}

.link-arrow {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--forest);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--tan);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.link-arrow::after {
  content: " \2192";
  color: var(--rust);
}

.link-arrow:hover {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

/* ---------- entries (was: cards) ---------- */
/* No box, no fill. A hairline rule separates one role from the next. */

.entry {
  padding: 2.25rem 0;
  border-top: 1px solid var(--tan);
}

.entry:first-of-type { padding-top: 0; border-top: none; }
.entry:last-of-type { padding-bottom: 0; }

.entry-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.entry-org {
  font-family: var(--display);
  font-variation-settings: var(--fr-text);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.entry-meta {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Bullets without bullet glyphs — indentation alone does the grouping. */
.bullets {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 36rem;
}

.bullets li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.7rem;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 5px;
  height: 1px;
  background: var(--rust);
}

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

.bullets strong {
  font-weight: 600;
  color: var(--forest);
}

/* ---------- contact ---------- */

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 0.95rem 0;
  border-top: 1px solid var(--tan);
}

.contact-list li:first-child { border-top: none; padding-top: 0; }

.contact-label {
  flex: 0 0 4.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-soft);
}

.contact-list a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--tan);
  padding-bottom: 2px;
  word-break: break-word;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.contact-list a:hover {
  color: var(--rust);
  border-bottom-color: var(--rust);
}

/* ---------- tags ---------- */
/* Plain inline text separated by rust dividers — no chips, no borders. */

.tags {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.tags li { display: inline-flex; align-items: center; }

.tags li:not(:last-child)::after {
  content: "\00b7";
  color: var(--rust);
  margin: 0 0.6rem;
}

.skill-group + .skill-group { margin-top: 1.75rem; }

.skill-group h3 {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest-soft);
  margin-bottom: 0.7rem;
}

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

.site-footer {
  border-top: 1px solid var(--tan);
  padding: 2rem 0 3rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-links a:hover { color: var(--rust); }

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

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

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

@media (max-width: 620px) {
  body { font-size: 16px; }

  .wrap { padding: 0 1.35rem; }
  main { padding: 3.5rem 0 4rem; }
  section + section { margin-top: 3.5rem; }

  .site-header { padding-top: 1.5rem; }

  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }

  .nav { gap: 1.5rem; }

  .hero-photo { width: 78px; height: 78px; margin-bottom: 1.5rem; }
  .tagline { font-size: 1.1rem; }
  .lede { font-size: 1.06rem; }

  .actions { gap: 1.25rem; flex-direction: column; align-items: flex-start; }

  .entry { padding: 1.85rem 0; }

  .entry-head { gap: 0.15rem; }
  .entry-meta { white-space: normal; }

  .contact-list li {
    flex-direction: column;
    gap: 0.3rem;
  }
}

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

@media print {
  .site-header, .site-footer, .actions { display: none; }
  body { background: #fff; color: #000; }
}
