/* Priya Nair: white, ink, cobalt and sky. Source Serif 4 for headings, Source Sans 3 for text.
   Change the colours and fonts here; base.css reads these variables. */
:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --soft: #F3F6FB;
  --ink: #111827;
  --muted: #4B5563;
  --line: #E5E7EB;
  --line-strong: #CBD2DC;
  --brand: #2563EB;
  --brand-hover: #1D4ED8;
  --brand-ink: #FFFFFF;
  --brand-text: #1D4ED8;
  --sky: #0EA5E9;
  --eyebrow: #1D4ED8;
  --ok: #059669;
  --head: "Source Serif 4", Georgia, serif;
  --body: "Source Sans 3", system-ui, sans-serif;
  --fs-body: 1.06rem;
  --radius: 8px;
  --radius-lg: 14px;
  --btn-radius: 8px;
  --wrap: 1120px;
  --gap: 24px;
  --est-bg: #111827;
  --est-ink: #FFFFFF;
}
h1, h2, h3 { font-weight: 700; letter-spacing: -.01em; }
h1 em { font-style: italic; color: var(--brand); }
.w-cover { background: var(--soft); }

/* header */
.header { background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-pn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px; background: var(--brand); color: #fff; font: 700 1rem var(--head); }
.logo b { font: 700 1.2rem var(--head); }
.nav a { color: var(--muted); font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--soft); }

/* hero */
.hero { padding-block: clamp(36px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-portrait { max-width: 280px; order: -1; } }
.open-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: #ECFDF5; color: #065F46; font-weight: 600; font-size: .92rem; }
.open-badge span { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px #A7F3D0; animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(167,243,208,.4); } }
.hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.06; margin: 20px 0 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.roles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; font-size: .92rem; }
.roles span { color: var(--muted); margin-right: 4px; }
.roles b { padding: 4px 10px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); font-weight: 600; }
.hero-portrait { margin: 0; border-radius: 50% 50% var(--radius-lg) var(--radius-lg); overflow: hidden; border: 6px solid var(--soft); }
.hero-portrait svg { width: 100%; height: auto; }
.quick-band { padding-block: 0; }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (max-width: 760px) { .quick { grid-template-columns: 1fr 1fr; } }
.quick div { display: grid; gap: 2px; padding: 20px; background: #fff; }
.quick b { font: 700 1.9rem/1.1 var(--head); color: var(--brand); }
.quick span { color: var(--muted); font-size: .92rem; }
.skills-band { background: var(--soft); }
.proof { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.proof li { display: grid; gap: 6px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.proof a { color: var(--brand-text); font-weight: 600; text-underline-offset: 4px; }

/* resume page */
.rs-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .rs-layout { grid-template-columns: minmax(0, 1fr); } }
.rs-tools { position: sticky; top: 96px; display: grid; gap: 12px; }
@media (max-width: 860px) { .rs-tools { position: static; } }
.rs-toggles { margin-top: 8px; display: grid; gap: 6px; }
.rs-toggles label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.rs-toggles input { accent-color: var(--brand); width: 18px; height: 18px; }
.rs-paper { padding: clamp(14px, 3vw, 28px); background: var(--soft); border-radius: var(--radius-lg); }
.resume { max-width: 210mm; margin: 0 auto; padding: clamp(20px, 4vw, 44px); background: #fff; box-shadow: 0 10px 30px -14px rgba(17,24,39,.25); font-size: .95rem; line-height: 1.45; }
.rs-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.rs-head h1 { font-size: 2rem; }
.rs-head p { color: var(--muted); }
.rs-contact { text-align: right; font-size: .85rem; }
@media (max-width: 560px) { .rs-contact { text-align: left; } }
.rs-sec { margin-top: 16px; }
.rs-sec[hidden] { display: none; }
.rs-sec h2 { font: 700 .82rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); padding-bottom: 4px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.rs-sec ul { list-style: none; display: grid; gap: 8px; }
.rs-sec li p:first-child { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rs-sec li p:first-child span { color: var(--muted); font-size: .85rem; }
.rs-sec li p + p { color: #374151; }
.rs-plain { list-style: disc !important; padding-left: 1.1em; gap: 2px !important; }

/* inner pages */
.page-head { border-bottom: 1px solid var(--line); margin-bottom: clamp(28px, 4vw, 48px); background: var(--soft); }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.process-band { background: var(--soft); }
.about-portrait { border-radius: 50% 50% var(--radius-lg) var(--radius-lg); }

/* CTA + footer */
.cta-band { padding-block: clamp(48px, 7vw, 88px); background: var(--brand); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cta-band p { margin-top: 8px; color: #DBEAFE; max-width: 52ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn-primary { background: #fff; color: var(--brand-text); }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.footer { background: var(--ink); color: #9CA3AF; --footer-line: #1F2937; }
.footer .logo b { color: #fff; }
.footer h2 { color: #fff; }
.f-about { margin-top: 12px; max-width: 34ch; }
.footer .credit a { color: #fff; }

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; font-size: 10pt; }
  .header, .footer, .page-head, .rs-tools, .wa-float, .skip { display: none !important; }
  .section { padding: 0 !important; }
  .wrap, .rs-layout { display: block; width: auto; }
  .rs-paper { padding: 0; background: none; }
  .resume { box-shadow: none; padding: 0; max-width: none; font-size: 10pt; }
  .rs-sec { break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { .open-badge span { animation: none; } }
