/* srikantadatta.com — hand-written stylesheet, no build step.
   Type: Outfit (display) + Inter (body), self-hosted in assets/fonts.
   Palette carried over from the original site: ink #0d141a, white, accent blue #2a5cf0. */

:root {
  --ink: #0d141a;
  --text: #1f2933;
  --muted: #5c6875;
  --rule: #e1e5eb;
  --surface: #f4f6f9;
  --paper: #ffffff;
  --accent: #2a5cf0;
  --accent-ink: #1d47c4;
  --font-display: "Outfit", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.375rem; line-height: 1.3; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem .75rem; z-index: 30; }
.skip-link:focus { left: var(--gutter); }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* Sticky white header, as on the original site */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.5rem; flex-wrap: wrap; padding-block: .75rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 1.9rem; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 3vw, 1.75rem); }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--accent-ink); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Hero: video background with white text, as on the original site */
.hero { position: relative; min-height: clamp(420px, 68vh, 640px); display: flex; align-items: center; color: #fff; background: var(--ink); overflow: hidden; }
.hero video, .hero .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,20,26,.74) 0%, rgba(13,20,26,.6) 55%, rgba(13,20,26,.5) 100%); }
.hero .container { position: relative; z-index: 1; padding-block: 3rem; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .tagline { font-size: clamp(1.125rem, 1.8vw, 1.375rem); max-width: 42ch; margin: 1.25rem 0 1.75rem; line-height: 1.4; }
.button { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; font-weight: 500; font-size: 1rem; padding: .85rem 1.6rem; border-radius: 6px; border: 0; cursor: pointer; font-family: var(--font-body); }
.button:hover { background: var(--accent-ink); color: #fff; }

/* Sections */
main { padding-bottom: 1rem; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--surface { background: var(--surface); }
.section--centered h2 { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(1.25rem, 3vw, 2rem); }
.section-head .more { font-size: 1rem; white-space: nowrap; }
.lede { font-size: 1.1875rem; color: var(--muted); max-width: 60ch; }

/* Overview: justified paragraphs across the container, as on the original */
.overview p { text-align: justify; margin-bottom: 1.25rem; }
.overview em { font-style: italic; }

/* Two columns: portrait + Connect on the left, experience lists on the right */
.two-col { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
.portrait { border-radius: 14px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--surface); }
.bullets { margin: 1.5rem 0 0; padding-left: 1.4rem; }
.bullets li { margin-bottom: 1.1rem; padding-left: .2rem; }
.bullets li strong { font-weight: 600; color: var(--ink); }
.bullets li .desc { display: block; font-style: italic; color: var(--text); }
.bullets li .meta { display: block; font-size: .9375rem; color: var(--muted); }
.stack > * + * { margin-top: clamp(2rem, 4vw, 3rem); }

/* Forms (Connect block and Contact page) */
.form { display: grid; gap: .75rem; }
.form label { font-weight: 500; font-size: .9375rem; }
.form input, .form textarea { width: 100%; font: inherit; padding: .8rem .95rem; border: 1px solid #cfd5dd; border-radius: 6px; background: #fff; color: var(--text); }
.form input::placeholder, .form textarea::placeholder { color: #8a94a0; }
.form textarea { min-height: 8rem; resize: vertical; }
.form .button { justify-self: start; margin-top: .25rem; }
.form-note { font-size: .875rem; color: var(--muted); margin: .25rem 0 0; min-height: 1.2em; }
.connect h3 { margin-bottom: 1rem; }

/* Cards (press) — Forbes-style published content */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.5rem; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 1px 3px rgba(13,20,26,.06); display: flex; flex-direction: column; overflow: hidden; }
.card-media { display: block; aspect-ratio: 16 / 10; background: var(--surface); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; letter-spacing: -.01em; text-decoration: none; }
.card-tile:hover { color: #fff; }
.card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; gap: .4rem; }
.card-kind { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.card-kind span { color: var(--ink); }
.card-kind span::after { content: ""; display: inline-block; width: 1px; height: .85em; background: var(--rule); margin: 0 .6rem -0.1em; }
.card-title { font-size: 1.25rem; line-height: 1.3; margin: 0; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent-ink); text-decoration: underline; }
.card-date { font-size: .8125rem; color: var(--muted); }
.card-excerpt { font-size: .9375rem; color: var(--text); margin: .35rem 0 1rem; }
.btn { margin-top: auto; align-self: flex-end; background: var(--ink); color: #fff; text-decoration: none; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .8rem 1.1rem; border-radius: 3px; }
.btn:hover { background: var(--accent-ink); color: #fff; }

/* Page title (inner pages) */
.page-title { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem); }
.page-title .lede { margin-top: 1rem; }
.page-title .links { margin-top: 1.25rem; font-size: 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }

/* Ledger: dated list used on the research page */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ledger > li { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: .25rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.ledger .when { color: var(--muted); font-size: .9375rem; font-variant-numeric: tabular-nums; padding-top: .2rem; }
.ledger h3 { font-size: 1.25rem; }
.ledger h3 a { color: var(--ink); text-decoration: none; }
.ledger h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
.ledger .meta { color: var(--muted); font-size: .9375rem; margin: .4rem 0 0; }
.ledger .meta a { color: inherit; }
.ledger .authors { margin: .35rem 0 0; font-size: .9375rem; }
.ledger .authors strong { font-weight: 500; color: var(--ink); }
.ledger .body { min-width: 0; }

/* Focus areas (research) */
.focus { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2.5rem; }
.focus li { border-left: 2px solid var(--ink); padding-left: 1rem; }
.focus h3 { font-size: 1.0625rem; margin-bottom: .25rem; }
.focus p { color: var(--muted); font-size: .9375rem; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-card { background: var(--surface); border-radius: 8px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.contact-card .email { font-family: var(--font-display); font-size: clamp(1.125rem, 2.2vw, 1.5rem); font-weight: 600; word-break: break-all; }
.contact-card ul { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .5rem; }

/* Footer, with the media links column as on the original */
.site-footer { border-top: 1px solid var(--rule); padding-block: clamp(2rem, 5vw, 3rem); font-size: .9375rem; color: var(--muted); }
.site-footer .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.site-footer h3 { font-size: 1.125rem; margin-bottom: .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer .profile-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; }
.site-footer a { color: var(--ink); }

/* Scroll reveal — same motion as the original Hostinger site (.transition--slide). Active only with JS. */
.js .reveal { opacity: 0; transform: translateY(clamp(16px, 20%, 40px)); transition-property: opacity, transform; will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); transition-duration: .65s; transition-timing-function: ease; transition-delay: var(--reveal-delay, .1s); will-change: auto; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* Responsive */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .two-col .portrait { max-width: 24rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .ledger > li { grid-template-columns: 1fr; gap: .15rem; }
  .ledger .when { padding-top: 0; }
  .focus { grid-template-columns: 1fr; }
  .site-footer .container { grid-template-columns: 1fr; }
  .overview p { text-align: left; }
}
@media (max-width: 520px) {
  .site-header .container { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .site-nav ul { gap: 1.25rem; }
}
@media print {
  .site-nav, .skip-link, .btn, .hero video, .form { display: none; }
  .hero { min-height: 0; color: var(--ink); background: #fff; }
  .hero::after { display: none; }
  .hero h1 { color: var(--ink); }
  a { color: inherit; text-decoration: none; }
}

/* Domain tag used for working papers */
.tag { display: inline-block; white-space: nowrap; background: var(--surface); color: var(--ink); font-size: .8125rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; line-height: 1.2; margin-top: -.15rem; }
.ledger--tags > li { grid-template-columns: 13.5rem minmax(0, 1fr); }
@media (max-width: 860px) { .ledger--tags > li { grid-template-columns: 1fr; } .ledger--tags .when { margin-bottom: .35rem; } }

/* Profile header (media page): dark band with overlapping circular headshot, Forbes-style */
.profile-band { background: var(--ink); height: 150px; }
.profile-panel { display: flow-root; background: var(--surface); border-radius: 8px; text-align: center; padding: 0 clamp(1.25rem, 4vw, 3rem) 2.25rem; max-width: 46rem; margin: 0 auto; }
.headshot { width: 184px; height: 184px; border-radius: 50%; object-fit: cover; margin: -92px auto 1.25rem; border: 6px solid var(--surface); box-shadow: 0 3px 12px rgba(0,0,0,.28); display: block; background: var(--surface); }
.profile-panel h1 { font-size: clamp(1.75rem, 3vw, 2.375rem); letter-spacing: -0.01em; }
.profile-role { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.1875rem; margin: .9rem auto .3rem; line-height: 1.3; }
.profile-org { margin: 0 0 .2rem; font-size: 1.0625rem; }
.profile-loc { margin: 0; color: var(--muted); font-size: .9375rem; }
.profile-panel hr { width: 140px; border: 0; border-top: 1px solid var(--ink); margin: 1.25rem auto; }
.profile-icons { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: .5rem; }
.profile-icons a { color: var(--ink); display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; }
.profile-icons a:hover { background: rgba(13,20,26,.08); color: var(--ink); }
.profile-icons svg { width: 24px; height: 24px; fill: currentColor; }
.profile-intro { text-align: center; max-width: 46rem; margin: 1.5rem auto 0; }
.profile-intro .links { justify-content: center; }
@media (max-width: 520px) { .profile-band { height: 120px; } .headshot { width: 150px; height: 150px; margin-top: -75px; } }

/* Contact page: two aligned panels */
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: clamp(1.5rem, 3.5vw, 2.25rem); }
.panel h2 { font-size: 1.375rem; margin-bottom: .35rem; }
.panel .hint { color: var(--muted); font-size: .9375rem; margin-bottom: 1.5rem; }
.panel--tint { background: var(--surface); border-color: transparent; }
.details { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.details li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: .9rem; align-items: start; }
.details .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--rule); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.details .ico svg { width: 20px; height: 20px; fill: currentColor; }
.details .lbl { display: block; font-size: .8125rem; color: var(--muted); margin-bottom: .1rem; }
.details a { color: var(--ink); text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.details a:hover { color: var(--accent-ink); text-decoration: underline; }
.contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: stretch; }
.form .button { width: auto; }

/* Hero profile photo */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
.hero-photo { width: clamp(200px, 22vw, 280px); aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; border: 6px solid rgba(255,255,255,.92); box-shadow: 0 10px 32px rgba(0,0,0,.35); justify-self: end; }
@media (max-width: 700px) {
  .hero-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-photo { width: 150px; justify-self: start; order: -1; border-width: 4px; }
}
