﻿/* ==========================================================================
   akhilaharinarayana.com - homepage
   Design tokens and rationale: see DESIGN.md
   Single-theme by design (a light editorial site), every colour painted.
   ========================================================================== */

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

/* Single-theme by design: a mockup of a light editorial website, painted
   explicitly so it reads identically on any host ground. */
:root {
  --ink:      #121A1A;
  --ink-70:   #3D4747;
  --ink-50:   #667070;
  --ink-30:   #97A09D;

  --teal-900: #0F3D3E;
  --teal-700: #116466;
  --teal-400: #2A9D8F;
  --teal-200: #9CCFC7;

  --sand:     #FAF9F6;
  --sand-200: #F2F0EA;
  --sand-300: #E3E0D6;
  --sand-400: #CFCBBE;

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

  --s-1: .5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2.5rem; --s-5: 4rem;
  --band: 6.5rem;
  --measure: 62ch;
  --shell: 1160px;
}

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

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

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.018em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--teal-200); color: var(--teal-900); }
:focus-visible { outline: 2px solid var(--teal-400); outline-offset: 3px; border-radius: 2px; }

/* primitives -------------------------------------------------------- */
.shell { width: min(100% - 3rem, var(--shell)); margin-inline: auto; }
.band  { padding-block: var(--band); }
.band--sand { background: var(--sand-200); }
.band--deep { background: var(--teal-900); color: var(--sand); }

.eyebrow {
  font-size: .6875rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--teal-700); margin: 0 0 var(--s-3);
}
.band--deep .eyebrow { color: var(--teal-200); }

.section-head { max-width: 48ch; margin-bottom: var(--s-5); }
.section-head h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); color: var(--ink); }
.section-head p { margin-top: var(--s-2); color: var(--ink-50); max-width: var(--measure); }

.rule-sm { width: 40px; height: 2px; background: var(--teal-400); border: 0; margin: 0; }

/* buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .9375rem; font-weight: 500;
  padding: .85rem 1.6rem; border-radius: 2px;
  border: 1px solid transparent; text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--solid { background: var(--teal-900); color: #fff; font-weight: 500; }
.btn--solid:hover { background: var(--teal-700); }
.btn--quiet { border-color: var(--sand-400); color: var(--ink); }
.btn--quiet:hover { border-color: var(--teal-700); color: var(--teal-700); }
.btn--onDeep { background: var(--sand); color: var(--teal-900); font-weight: 600; }
.btn--onDeep:hover { background: #fff; }
.btn--ghost { border-color: rgba(156,207,199,.45); color: var(--sand); }
.btn--ghost:hover { border-color: var(--teal-200); background: rgba(156,207,199,.1); }
.arw { transition: transform .18s ease; }
.btn:hover .arw, .tlink:hover .arw { transform: translateX(3px); }

.tlink {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  font-size: .9375rem; font-weight: 600; color: var(--teal-700);
  text-decoration: none; padding-bottom: 2px; border-bottom: 1px solid var(--sand-400);
}
.tlink:hover { color: var(--teal-400); border-color: var(--teal-400); }

/* nav --------------------------------------------------------------- */
.skip { position: absolute; left: -9999px; background: var(--teal-900); color: #fff; padding: .75rem 1.25rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(250,249,246,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sand-300);
}
/* hidden until the narrow breakpoint turns it on */
.nav__toggle {
  display: none;
  align-items: center; gap: .5rem;
  font: inherit; font-size: .875rem; color: var(--ink);
  background: none; border: 1px solid var(--sand-400);
  border-radius: 2px; padding: .5rem .85rem; cursor: pointer;
}
.nav__toggle:hover { border-color: var(--teal-700); color: var(--teal-700); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 72px; }
.wordmark { text-decoration: none; display: grid; gap: 1px; }
.wordmark b { font-family: var(--display); font-weight: 500; font-size: 1.1rem; letter-spacing: .01em; color: var(--ink); }
.wordmark span { font-size: .625rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-50); }

.nav__links { display: flex; align-items: center; gap: var(--s-4); list-style: none; margin: 0; padding: 0; }
.nav__links a { font-size: .9375rem; color: var(--ink-70); text-decoration: none; padding-block: .3rem; border-bottom: 1px solid transparent; }
.nav__links a:hover { color: var(--ink); border-color: var(--teal-400); }
/* The nav CTA is the same button as the hero's primary CTA, only smaller.
   These need `.nav__links a.btn--solid` to outrank `.nav__links a`, which
   would otherwise force the link colour onto the button and put dark text
   on the dark teal fill. */
.nav__links a.btn--solid,
.nav__links a.btn--solid:hover {
  color: #fff;
  border-color: transparent;
  font-weight: 500;
}
.nav__links a.btn--solid { background: var(--teal-900); }
.nav__links a.btn--solid:hover { background: var(--teal-700); }
.nav__cta { padding: .55rem 1.1rem; font-size: .875rem; }

/* hero — light, photograph full-bleed to the right edge --------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 44%);
  align-items: stretch;
  background: var(--sand);
  border-bottom: 1px solid var(--sand-300);
}
.hero__copy {
  align-self: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  padding-right: clamp(2rem, 4vw, 4rem);
  padding-left: max(1.5rem, calc((100vw - var(--shell)) / 2));
}
.hero h1 {
  font-size: clamp(3rem, 6.4vw, 5rem);
  letter-spacing: -.035em;
  line-height: .98;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.hero__rule { margin-bottom: var(--s-3); }
.hero__role { font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 500; color: var(--ink); margin-bottom: .35rem; }
.hero__role em { font-style: normal; color: var(--teal-700); }
.hero__prev { font-size: .875rem; color: var(--ink-50); margin-bottom: var(--s-3); }
.hero__lede { font-size: 1.0625rem; color: var(--ink-70); max-width: 48ch; margin-bottom: var(--s-4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-2); }

.hero__img { position: relative; min-height: 420px; background: var(--sand-200); }
.hero__img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-width: 100%;
  object-fit: cover; object-position: 50% 18%;
  display: block;
}

/* affiliations ------------------------------------------------------- */
.affil { background: var(--sand-200); border-bottom: 1px solid var(--sand-300); padding-block: var(--s-4); }
.affil__label { font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-30); margin-bottom: var(--s-3); }
.affil__row { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--s-2); }
.affil__row div { border-left: 1px solid var(--sand-300); padding-left: .9rem; }
.affil__row b { display: block; font-family: var(--display); font-weight: 500; font-size: 1rem; line-height: 1.2; color: var(--ink); }
.affil__row span { display: block; margin-top: .3rem; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-30); }

/* intro -------------------------------------------------------------- */
.intro__in { display: grid; grid-template-columns: minmax(0,.3fr) minmax(0,.7fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: start; }

/* left rail: who is speaking, and what she trained in */
.rail { display: grid; gap: var(--s-3); align-content: start; }
.rail__now b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.1rem; line-height: 1.25; color: var(--ink); }
.rail__now span { display: block; margin-top: .2rem; font-size: .875rem; color: var(--teal-700); font-weight: 600; }
.rail__h { font-size: .6875rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-30); margin-bottom: -.35rem; }

.edu { list-style: none; margin: 0; padding: 0; }
.edu li { padding: .8rem 0; border-top: 1px solid var(--sand-300); }
.edu li:last-child { border-bottom: 1px solid var(--sand-300); }
.edu time { display: block; font-size: .6875rem; letter-spacing: .1em; color: var(--ink-30); font-variant-numeric: tabular-nums; }
.edu b { display: block; margin-top: .2rem; font-size: .875rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.edu span { display: block; margin-top: .15rem; font-size: .8125rem; line-height: 1.45; color: var(--ink-50); }
.intro__body > p + p { margin-top: var(--s-3); }
.intro__body > p { color: var(--ink-70); max-width: var(--measure); }
.intro__body > p:first-child {
  font-family: var(--display); font-size: clamp(1.35rem, 2.3vw, 1.7rem);
  line-height: 1.38; color: var(--ink); letter-spacing: -.015em;
}
.intro__sig { margin-top: var(--s-4); }

/* expertise ---------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sand-300); border: 1px solid var(--sand-300); }
.xp { background: var(--sand-200); padding: var(--s-4) var(--s-3); display: flex; flex-direction: column; gap: .9rem; transition: background-color .2s ease; }
.xp:hover { background: var(--sand); }
.xp h3 { font-size: 1.125rem; line-height: 1.28; color: var(--ink); }
.xp > p { font-size: .9375rem; color: var(--ink-50); }
.xp ul { list-style: none; margin: auto 0 0; padding: .9rem 0 0; border-top: 1px solid var(--sand-300); display: flex; flex-wrap: wrap; gap: .35rem; }
.xp li { font-size: .75rem; color: var(--teal-700); background: rgba(42,157,143,.09); padding: .25rem .55rem; border-radius: 2px; }
.xp--slot { background: transparent; border: 1px dashed var(--sand-400); margin: -1px; }
.xp--slot h3 { font-family: var(--sans); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--ink-30); }
.xp--slot > p { color: var(--ink-30); }

/* insights ----------------------------------------------------------- */
.insights__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-5); flex-wrap: wrap; }
.insights__head .section-head { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-3); }
.card { background: var(--sand); border: 1px solid var(--sand-300); border-radius: 2px; padding: var(--s-3); display: flex; flex-direction: column; gap: .75rem; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.card:hover { border-color: var(--teal-400); transform: translateY(-2px); }
.card__meta { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-30); }
.tag { color: var(--teal-700); font-weight: 600; }
.dot { color: var(--sand-400); }
.card h3 { font-size: 1.1rem; line-height: 1.32; color: var(--ink); }
.card p { font-size: .9375rem; color: var(--ink-50); }
.card__foot { margin-top: auto; padding-top: .6rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .875rem; font-weight: 600; color: var(--teal-700); }
.lock { display: inline-flex; align-items: center; gap: .35rem; font-size: .6875rem; letter-spacing: .08em; text-transform: uppercase; color: #9A6318; font-weight: 600; }

.alsopub { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--sand-300); font-size: .9375rem; color: var(--ink-50); max-width: var(--measure); }
.alsopub a { color: var(--teal-700); text-decoration: none; border-bottom: 1px solid var(--sand-400); }
.alsopub a:hover { border-color: var(--teal-400); }

/* stats — the single dark band --------------------------------------- */
.proof__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.stat { border-left: 1px solid rgba(156,207,199,.32); padding-left: var(--s-3); }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 4.4vw, 3.1rem); line-height: 1; color: #fff; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: .7rem; font-size: .875rem; color: var(--teal-200); }

/* career — a real sequence, so it earns its dates --------------------- */
.career { display: grid; gap: 0; }
.role { display: grid; grid-template-columns: minmax(0,.26fr) minmax(0,.74fr); gap: clamp(1rem, 4vw, 3rem); padding-block: var(--s-4); border-top: 1px solid var(--sand-300); }
.role:last-child { border-bottom: 1px solid var(--sand-300); }
.role__when { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-30); font-variant-numeric: tabular-nums; }
.role__when .now { display: inline-block; margin-top: .5rem; font-size: .6875rem; color: var(--teal-700); background: rgba(42,157,143,.11); padding: .2rem .5rem; border-radius: 2px; letter-spacing: .08em; }
.role h3 { font-size: 1.3rem; color: var(--ink); }
.role .org { margin-top: .25rem; font-size: .9375rem; color: var(--teal-700); font-weight: 600; }
.role ul { list-style: none; margin: var(--s-2) 0 0; padding: 0; display: grid; gap: .5rem; }
.role li { font-size: .9375rem; color: var(--ink-50); padding-left: 1.1rem; position: relative; max-width: var(--measure); }
.role li::before { content: ""; position: absolute; left: 0; top: .72em; width: 5px; height: 1px; background: var(--teal-400); }

/* recognition -------------------------------------------------------- */
.hbr {
  display: grid; gap: .4rem;
  border-left: 2px solid var(--teal-400);
  padding: var(--s-2) 0 var(--s-2) var(--s-3);
  margin-bottom: var(--s-4);
}
.hbr b { font-family: var(--display); font-weight: 500; font-size: 1.25rem; color: var(--ink); }
.hbr span { font-size: .9375rem; color: var(--ink-50); }

.awards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--sand-300); border: 1px solid var(--sand-300); }
.award { background: var(--sand-200); padding: var(--s-3); display: grid; gap: .4rem; align-content: start; }
.award time { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-30); font-variant-numeric: tabular-nums; }
.award b { font-size: .9375rem; color: var(--ink); font-weight: 600; }
.award span { font-size: .875rem; color: var(--ink-50); }

/* speaking ----------------------------------------------------------- */
.talks { list-style: none; margin: 0; padding: 0; }
.talks li { display: grid; grid-template-columns: minmax(0,.2fr) minmax(0,.8fr); gap: clamp(1rem, 4vw, 2.5rem); padding-block: var(--s-3); border-top: 1px solid var(--sand-300); }
.talks li:last-child { border-bottom: 1px solid var(--sand-300); }
.talks time { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-30); font-variant-numeric: tabular-nums; }
.talks b { display: block; font-size: 1rem; color: var(--ink); font-weight: 600; }
.talks span { display: block; margin-top: .25rem; font-size: .9375rem; color: var(--ink-50); max-width: var(--measure); }
.talks .fmt { display: inline-block; margin-top: .5rem; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-700); }

/* contact — the closing dark band ------------------------------------ */
.cta { position: relative; overflow: hidden; background: var(--teal-900); color: var(--sand); }

/* ruled grid, faded at the edges — chart gridlines, not a gradient wave */
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 78% 72% at 50% 42%, #000 28%, transparent 76%);
          mask-image: radial-gradient(ellipse 78% 72% at 50% 42%, #000 28%, transparent 76%);
}
/* one soft teal light source, off-centre */
.cta::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(760px 420px at 80% 8%, rgba(42,157,143,.20), transparent 62%),
    radial-gradient(620px 380px at 6% 104%, rgba(42,157,143,.10), transparent 60%);
}
.cta > * { position: relative; z-index: 1; }

.contact__in { display: grid; grid-template-columns: minmax(0,.52fr) minmax(0,.48fr); gap: clamp(2rem, 6vw, 4.5rem); align-items: center; }
.contact__in h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); color: #fff; }
.contact__in > div > p { margin-top: var(--s-3); color: var(--teal-200); max-width: var(--measure); }

/* what she is actually available for — a CTA converts on specifics */
.avail { list-style: none; margin: 0 0 var(--s-4); padding: 0; }
.avail li { padding: .8rem 0; border-top: 1px solid rgba(156,207,199,.22); display: flex; gap: .85rem; align-items: baseline; font-size: .9375rem; color: rgba(250,249,246,.8); }
.avail li:last-child { border-bottom: 1px solid rgba(156,207,199,.22); }
.avail b { color: #fff; font-weight: 600; flex: 0 0 8.5rem; }

/* the address spelled out — people copy it rather than click through */
.contact__mail { margin-bottom: var(--s-3); }
.contact__mail a {
  font-family: var(--display); font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: #fff; text-decoration: none;
  border-bottom: 1px solid rgba(156,207,199,.5); padding-bottom: 2px;
  word-break: break-word;
}
.contact__mail a:hover { border-color: var(--teal-400); color: var(--teal-200); }

.contact__cta { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* footer ------------------------------------------------------------- */
/* a shade darker than the CTA above, so the two read as separate blocks */
.foot { background: #082324; color: rgba(250,249,246,.62); padding-block: var(--s-4); font-size: .875rem; }
.foot a { color: rgba(250,249,246,.82); text-decoration: none; }
.foot a:hover { color: var(--teal-200); }

.foot__top {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(0,.8fr) minmax(0,1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-bottom: var(--s-4);
}
.foot__name { font-family: var(--display); font-size: 1.15rem; color: #fff; margin-bottom: .5rem; }
.foot__desc { max-width: 42ch; }
.foot__desc + .foot__desc { margin-top: .6rem; color: rgba(250,249,246,.45); }
.foot__h { font-size: .6875rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(250,249,246,.4); margin-bottom: .8rem; }
.foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }

.foot__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3); flex-wrap: wrap;
  padding-top: var(--s-3);
  border-top: 1px solid rgba(250,249,246,.12);
  font-size: .8125rem;
  color: rgba(250,249,246,.45);
}

/* responsive --------------------------------------------------------- */
@media (max-width: 1000px) {
  .affil__row { grid-template-columns: repeat(3, 1fr); row-gap: var(--s-3); }
  .proof__in { grid-template-columns: repeat(2, 1fr); }
  .awards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --band: 4rem; }

  /* nav becomes a disclosure panel rather than hiding its items */
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--sand);
    border-bottom: 1px solid var(--sand-300);
    padding: 0 1.5rem 1.25rem;
    box-shadow: 0 12px 24px -18px rgba(18,26,26,.4);
  }
  .nav__links[data-open] { display: flex; }
  .nav__links li { border-top: 1px solid var(--sand-300); }
  .nav__links li a { display: block; padding: .95rem 0; border-bottom: none; }
  .nav__links li:last-child { border-top: none; }
  .nav__links a.btn--solid { justify-content: center; margin-top: 1rem; }

  .hero { grid-template-columns: 1fr; }
  .hero__img { order: -1; min-height: 0; aspect-ratio: 5/4; }
  .hero__copy { padding-inline: 1.5rem; padding-block: var(--s-4) var(--s-5); }

  .intro__in, .contact__in { grid-template-columns: 1fr; }
  .grid-3, .cards { grid-template-columns: 1fr; }
  .role, .talks li { grid-template-columns: 1fr; gap: .5rem; }
  .role__when .now { margin-top: 0; }
  .foot__top { grid-template-columns: 1fr 1fr; row-gap: var(--s-4); }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 2rem, var(--shell)); }
  .affil__row { grid-template-columns: repeat(2, 1fr); }
  .awards, .proof__in { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid rgba(156,207,199,.32); padding: var(--s-2) 0 0; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }
  .foot__top { grid-template-columns: 1fr; }
  .foot__in { flex-direction: column; align-items: flex-start; gap: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
