/* Yuvraj Patel brand kit: colour, typography and button tokens.
   Source of truth for the public website; see BRAND-KIT.md. Loaded last on every public page. */
:root{
  /* Primary accent and its scale (hue 146) */
  --brand-primary:#51E892;
  --brand-primary-rgb:81,232,146;
  --brand-50:#EDFDF4;
  --brand-100:#D6FAE6;
  --brand-200:#B2F5CF;
  --brand-300:#85EFB3;
  --brand-400:#51E892;
  --brand-500:#27E278;
  --brand-600:#25B161;
  --brand-700:#1D8B4D;
  --brand-800:#247C4A;
  --brand-900:#104C2A;
  --brand-primary-hover:var(--brand-300);
  --brand-on-primary:#06210F;           /* text on a #51E892 fill, 10.8:1 */
  --brand-ink:#247C4A;                  /* accent text, links and icons on light surfaces, 6.4:1 on white */

  /* Neutrals (light theme) */
  --brand-heading:#172B21;
  --brand-text:#52635A;
  --brand-bg:#F7FCF9;
  --brand-surface:#FFFFFF;
  --brand-surface-tint:#F4FCF7;
  --brand-line:#D8E7DE;
  --brand-danger:#B42318;

  /* Typography */
  --font-display:"Manrope","Inter",system-ui,sans-serif;
  --font-body:"Inter",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,Menlo,monospace;
  --weight-heading:800;
  --weight-subheading:700;
  --weight-label:600;
  --weight-body:400;

  /* Buttons and controls */
  --btn-height:48px;                    /* every primary and secondary button */
  --btn-height-sm:44px;                 /* pills, chips, theme switch */
  --icon-btn:40px;                      /* round icon links */
  --btn-radius:999px;
  --btn-padding-x:24px;
  --btn-font-size:14px;
  --btn-font-weight:700;

  /* Legacy names used across older stylesheets, kept in step with the kit */
  --theme:var(--brand-primary);
  --accent-ink:var(--brand-ink);
}
html[data-theme="dark"]{
  --brand-ink:#51E892;                  /* the primary itself reads at 11.5:1 on #111718 */
  --brand-heading:#EDF6F1;
  --brand-text:#BAC9C0;
  --brand-bg:#111718;
  --brand-surface:#17201C;
  --brand-surface-tint:#1B2922;
  --brand-line:#34463C;
  --brand-danger:#FF8A80;
  --accent-ink:var(--brand-ink);
}

/* Typography: Inter for text and UI, Manrope for headings, one weight per level */
body{font-family:var(--font-body)}
:is(h1,h2,h3,h4,h5,h6):not(.fa,[class*="fa-"]){font-family:var(--font-display)}
/* !important: older page-specific rules set 600 to 800 on the same levels */
:is(h1,h2){font-weight:var(--weight-heading)!important}
:is(h3,h4){font-weight:var(--weight-subheading)!important}
:is(h5,h6){font-weight:var(--weight-label)!important}
:is(code,pre,kbd,samp){font-family:var(--font-mono)}

/* Buttons: one height, radius, font and weight everywhere */
:is(.theme-btn,.footer-cta,.footer-resume,.intro-text-link,.cms-primary-link,.cms-secondary-link,.service-primary,.service-secondary,.technology-primary,.technology-secondary,.subscribe-input-row button,.contact-form button[type="submit"],.journal-empty .theme-btn){
  min-height:var(--btn-height)!important;
  border-radius:var(--btn-radius)!important;
  font-family:var(--font-body)!important;
  font-size:var(--btn-font-size)!important;
  font-weight:var(--btn-font-weight)!important;
  line-height:1.2!important;
  letter-spacing:0!important;
}
:is(.theme-btn:not(.style-2),.footer-cta){color:var(--brand-on-primary)!important}
.portrait-contact-links a,.theme-toggle{min-height:var(--btn-height-sm)}
.portrait-contact-links a,.theme-toggle{font-family:var(--font-body)!important;font-weight:var(--weight-label)!important}
.portrait-contact-links a{font-size:12px!important}
.social-link{width:var(--icon-btn);height:var(--icon-btn)}
:is(.theme-btn,.footer-cta,.cms-primary-link,.service-primary,.technology-primary):focus-visible{outline:2px solid var(--brand-ink);outline-offset:3px}

/* Text selection and form accents follow the brand */
::selection{background:rgba(var(--brand-primary-rgb),.35)}
:root{accent-color:var(--brand-primary)}

/* Flat backgrounds: no green spotlight glows outside the homepage hero (.intro-hero keeps its glow).
   Timeline lines, tool-card accent bars and empty-image placeholders are design elements, not glows. */
html[data-theme] body .site-content-section[data-spotlight]{background-image:none!important}
html:not([data-theme="dark"]) :is(.section-bg,.section-bg-2,.home-page .featured-services-section,.site-footer,.cms-detail-panel,.subscribe-card,.portfolio-lightbox,.portfolio-lightbox-toolbar){background-image:none!important}
:is(.cms-insights-home,.home-page .cms-insights-home,html[data-theme="dark"] .home-page .cms-insights-home){background-image:none!important}
.home-page>:is(.about-section,.awards-section,.project-section){background-image:none!important;background-color:var(--body)}
:is(.experience-studio,.experience-role.current,.career-journey-item.is-current .journey-card,.technology-hero){background-image:none!important}
:is(.page-banner-inner,.technology-logo-panel,.service-detail-visual,.service-fit-panel,.service-final-cta){background-image:none!important;background-color:var(--body)!important}
html[data-theme="dark"] :is(.technology-logo-panel,.service-detail-visual,.service-fit-panel,.service-final-cta){background-color:#1d2225!important}
.service-principles-grid article{background-image:none!important}
.tool-card{background-image:none!important;background-color:rgba(255,255,255,.045)}
.tool-card:hover{background-image:none!important;background-color:rgba(255,255,255,.07)}
html:not([data-theme="dark"]) .tool-card,html:not([data-theme="dark"]) .tool-card:hover{background-color:var(--surface)}

/* Contrast (WCAG 2.2 AA): links inside running text are underlined, not identified by colour alone;
   muted labels use full body-text colour. */
:is(main,article,section,.policy-content,.cms-prose,.faq-section) p a:not([class]),.section-title p a:not([class]){text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.policy-date,.policy-date time{color:var(--text,var(--brand-text))!important;opacity:1!important}
