/* Elina Jadhav: site styles. Colors come from the design tokens below; see README.md. */

:root {
  --bg: #F7F5F1;
  --bg-alt: #EFEBE4;
  --ink: #14213D;
  --ink-muted: #3A4560;
  --ink-on-dark: #C9CFDC;
  --ink-faint-on-dark: #A9B2C6;
  --accent: #A84A24;
  --accent-hover: #8F3F1E;
  --accent-on-dark: #E8A27F;
  --rule: #DCD6CC;
  --rule-strong: #CFC7BA;
  --rule-on-dark: #3A4A6E;
  --card-dark: #22305A;
  --placeholder-border: #B9B0A2;
  --placeholder-ink: #6B6355;

  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Instrument Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --container: 1180px;
  --gutter: 32px;
  --section-y: 96px;
  --radius-card: 16px;
  --radius-photo: 12px;
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --section-y: 72px;
  }
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--accent-on-dark); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -100px;
  z-index: 10;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  border-radius: 999px;
  text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--bg); }

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

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.band-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.on-dark {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- Type ---------- */

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow--sm { font-size: 13px; letter-spacing: 0.08em; }
.eyebrow--tight { letter-spacing: 0.08em; }
.eyebrow--muted { color: var(--ink-muted); }
.on-dark .eyebrow, .eyebrow--on-dark { color: var(--accent-on-dark); }

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.1;
}

.lede {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink-muted);
}

.muted { color: var(--ink-muted); }
.small { font-size: 15px; }

.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: var(--card-dark); border-color: var(--card-dark); color: var(--bg); }
.btn--secondary { background: transparent; color: var(--ink); }
.btn--secondary:hover { background: var(--ink); color: var(--bg); }
.btn--light { background: var(--bg); border-color: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--ink); }
.btn--outline-light { background: transparent; border-color: var(--bg); color: var(--bg); }
.btn--outline-light:hover { background: var(--bg); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  padding-bottom: 28px;
}
.site-name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
@media (max-width: 600px) {
  .site-nav ul { gap: 0 18px; }
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 72px;
}
.hero-text { flex: 999 1 520px; min-width: 0; --gap: 24px; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.hero-credential { font-size: 18px; color: var(--ink-muted); max-width: 36rem; }
.hero .btn-row { padding-top: 8px; }
.hero-photo { flex: 1 1 300px; display: flex; justify-content: center; }
.hero-photo picture {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 600px) {
  .hero { gap: 40px; padding-top: 24px; }
}

/* ---------- Endorsement ---------- */

.endorsement {
  max-width: 900px;
  margin: 0 auto;
  padding: 56px var(--gutter);
  text-align: center;
  --gap: 16px;
  align-items: center;
}
.endorsement blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.3;
}
.endorsement figcaption { font-size: 15px; color: var(--ink-muted); }

/* ---------- Research ---------- */

.research { --gap: 48px; }
.section-head { --gap: 12px; max-width: 44rem; }

.feature {
  background: var(--bg);
  color: var(--ink);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.feature-main { max-width: 48rem; --gap: 16px; }
.feature-main .btn { align-self: flex-start; }
.feature h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  line-height: 1.15;
}
.feature :focus-visible { outline-color: var(--accent); }
.on-dark .feature .eyebrow { color: var(--accent); }
.on-dark .feature .eyebrow--muted { color: var(--ink-muted); }

/* Milestones run left to right, then wrap: 3 across on desktop, 2 on tablets, 1 on phones. */
.timeline {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  --gap: 20px;
}
.timeline ol {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 28px 32px;
  font-size: 15px;
}
.timeline li {
  position: relative;
  padding-top: 20px;
  border-top: 2px solid var(--rule);
  color: var(--ink-muted);
}
.timeline li::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.timeline strong { display: block; margin-bottom: 4px; color: var(--ink); }

/* Two wide cards per row on desktop; one column below ~900px. */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 24px;
}
.card {
  border: 1px solid var(--rule-on-dark);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card--highlight { background: var(--card-dark); border: 1.5px solid var(--accent-on-dark); }
.card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
}
.card p:not(.eyebrow) { color: var(--ink-on-dark); font-size: 16px; }
.card-link {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--bg);
  font-weight: 600;
}
.card-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0 28px; }
.card-links .card-link { margin-top: 0; }
.on-dark a.card-link:hover { color: var(--accent-on-dark); }
.card p.card-figure { font-family: var(--font-serif); font-size: 40px; line-height: 1; color: var(--bg); }
.card-figure span { font-family: var(--font-sans); font-size: 18px; color: var(--ink-on-dark); }
@media (max-width: 600px) {
  .card { padding: 24px; }
}

/* ---------- Figures & chips ---------- */

.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 24px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 32px 0;
}
.figures li, .figures-inline li { display: flex; flex-direction: column; }
.figure-num { font-family: var(--font-serif); font-size: 52px; line-height: 1; }
.figure-label { color: var(--ink-muted); }

.figures-inline { display: flex; flex-wrap: wrap; gap: 32px 40px; }
.figures-inline .figure-num { font-size: 44px; }
.figures-inline .figure-label { font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.chips li {
  padding: 8px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 15px;
}
.chips--sm { gap: 8px 10px; }
.chips--sm li { padding: 7px 14px; border-color: var(--rule-strong); font-size: 14px; }

/* ---------- Photos & placeholders ---------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 20px;
}
.photo-grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }

.photo {
  width: 100%;
  border-radius: var(--radius-photo);
  object-fit: cover;
  background: var(--bg-alt);
}
.screenshot { object-position: left top; border: 1px solid var(--rule); }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-3x2 { aspect-ratio: 3 / 2; }
.ratio-4x3 { aspect-ratio: 4 / 3; }

/* Not final: every .placeholder and .todo must be gone before launch. */
.placeholder {
  border: 1.5px dashed var(--placeholder-border);
  border-radius: var(--radius-photo);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: var(--placeholder-ink);
  font-size: 15px;
}
.band-alt .placeholder { background: var(--bg); }

/* ---------- Two-column sections ---------- */

.split {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  align-items: flex-start;
}
.split-main { flex: 999 1 520px; min-width: 0; --gap: 18px; }
.split-side { flex: 1 1 300px; --gap: 16px; }
.split--center { align-items: center; gap: 48px 64px; }
.split-main .btn { align-self: flex-start; }

.conference { --gap: 48px; padding-bottom: 64px; }
/* Same background as the LSE section above, so a rule marks the break instead of extra space. */
.village {
  --gap: 40px;
  padding-top: 64px;
  background: linear-gradient(var(--rule), var(--rule)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.narrow { max-width: 40rem; }

.quote-block {
  background: var(--bg-alt);
  border-radius: var(--radius-card);
  padding: clamp(24px, 4vw, 48px);
  --gap: 14px;
}
.quote-block blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.35;
}
.quote-block figcaption { font-size: 15px; color: var(--ink-muted); }

/* ---------- How I work ---------- */

.how {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 64px;
  padding-top: var(--section-y);
  padding-bottom: 48px;
}
.how-photo { flex: 0 1 280px; }
.how-body .eyebrow { font-family: var(--font-sans); font-size: 14px; line-height: 1.6; }
.how-body {
  flex: 999 1 560px;
  min-width: 0;
  --gap: 20px;
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.55;
}
@media (max-width: 600px) {
  .how-body { font-size: 20px; }
  .how-photo { flex-basis: 100%; max-width: 260px; }
}

/* ---------- Elina Bakes ---------- */

.bakes { --gap: 32px; padding-top: 48px; }
.bakes-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: flex-end;
  justify-content: space-between;
}
.bakes-head .stack { --gap: 12px; max-width: 40rem; }

/* ---------- Programs ---------- */

.programs { --gap: 40px; }
.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
}
.program {
  --gap: 14px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: clamp(24px, 3vw, 36px);
}
.program h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
}
.program p:not(.eyebrow) { color: var(--ink-muted); font-size: 16px; }

/* ---------- Leadership & honors ---------- */

.honors { display: flex; flex-wrap: wrap; gap: 32px 48px; }
.honors-title { flex: 1 1 260px; }
.honors-title .section-title { font-size: clamp(2rem, 4vw, 2.6rem); }
.honors-list {
  flex: 999 1 560px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 28px 40px;
  font-size: 16px;
}
.honors-list strong { display: block; }
.honors-list span { color: var(--ink-muted); }

/* ---------- Contact ---------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  gap: 48px 64px;
  padding-top: 80px;
  padding-bottom: 56px;
}
.contact-intro { flex: 1 1 320px; --gap: 12px; }
.contact-intro p { color: var(--ink-on-dark); }
.contact-intro .btn-row { padding-top: 16px; }
.contact-form { flex: 1 1 420px; min-width: 0; --gap: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--rule-on-dark);
  border-radius: 10px;
  background: var(--card-dark);
  color: var(--bg);
  font: inherit;
  font-size: 17px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--accent-on-dark);
  outline-offset: 1px;
  border-color: var(--accent-on-dark);
}
.contact-form .btn { align-self: flex-start; }
.contact-form .btn[disabled] { opacity: .6; cursor: wait; }

/* Honeypot: hidden from people, visible to naive bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.6em; font-size: 15px; color: var(--ink-on-dark); }
.form-status.is-error { color: var(--accent-on-dark); }

.copyright {
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--ink-faint-on-dark);
}

/* ---------- Small modifiers ---------- */

.village-intro { --gap: 12px; }
.figures-inline--spaced { padding-top: 8px; }
.split-side--wide { flex-basis: 340px; }
.band-alt--open { border-bottom: 0; }
