@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --theme-ink: #102033;
  --theme-muted: #536477;
  --theme-teal: #0f9f83;
  --theme-cyan: #08a9c7;
  --theme-violet: #7358ef;
  --theme-pink: #db4ca6;
  --theme-border: rgba(148, 163, 184, .24);
  --theme-card-shadow: 0 18px 45px rgba(30, 64, 90, .09);
}

html { scroll-behavior: smooth; }
body:not(.saas-mesh-bg) {
  color: var(--theme-ink);
  font-family: "DM Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  background-color: #f7fbff;
  background-image:
    radial-gradient(ellipse at 4% 5%, rgba(45, 212, 191, .17), transparent 32rem),
    radial-gradient(ellipse at 96% 9%, rgba(129, 140, 248, .16), transparent 30rem),
    radial-gradient(ellipse at 86% 88%, rgba(244, 114, 182, .08), transparent 32rem),
    linear-gradient(180deg, #fbfdff 0%, #f5fbff 52%, #f8faff 100%);
  background-attachment: fixed;
}
body.saas-mesh-bg {
  background-color: #f7fbff;
  background-image:
    radial-gradient(ellipse at 8% 4%, rgba(45, 212, 191, .19), transparent 34rem),
    radial-gradient(ellipse at 96% 8%, rgba(129, 140, 248, .15), transparent 30rem),
    radial-gradient(ellipse at 85% 85%, rgba(244, 114, 182, .08), transparent 34rem),
    linear-gradient(180deg, #fbfdff 0%, #f5fbff 55%, #f8faff 100%);
}

h1, h2, h3, h4, h5, h6,
.font-black, .font-extrabold { font-family: "Plus Jakarta Sans", "DM Sans", sans-serif; }
main h1 {
  background-image: linear-gradient(105deg, #0f766e 0%, #0891b2 48%, #7256e8 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent !important;
  text-wrap: balance;
}
.resume-preview-name { background: none !important; color: #0f172a !important; -webkit-text-fill-color: #0f172a; }
main h2 { text-wrap: balance; }
main p { text-wrap: pretty; }
main article a:not([class*="bg-"]), footer a { color: #0f766e; text-decoration-color: rgba(15, 118, 110, .35); text-underline-offset: 3px; }
main article a:not([class*="bg-"]):hover, footer a:hover { color: #6d4fe6; text-decoration: underline; }

body > header {
  background: rgba(255, 255, 255, .86) !important;
  border-bottom-color: rgba(148, 163, 184, .28) !important;
  box-shadow: 0 8px 30px rgba(31, 55, 88, .07) !important;
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
}
body > header nav a,
body > header nav button { transition: color .18s ease, background-color .18s ease, transform .18s ease; }
body > header nav a:hover,
body > header nav button:hover { transform: translateY(-1px); }
body > footer {
  background: linear-gradient(105deg, rgba(255,255,255,.96), rgba(240,253,250,.95), rgba(238,242,255,.96)) !important;
  border-top-color: rgba(148, 163, 184, .26) !important;
}
.site-update-box {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  width: min(100% - 2rem, 72rem);
  margin: .15rem auto .85rem;
  padding: 1.1rem 1.3rem;
  overflow: hidden;
  border: 1px solid rgba(45, 212, 191, .32);
  border-radius: 1.25rem;
  background: linear-gradient(110deg, rgba(236,253,245,.96), rgba(240,249,255,.98) 55%, rgba(245,243,255,.96));
  box-shadow: 0 14px 36px rgba(31, 66, 94, .08);
}
.site-update-box::after {
  position: absolute;
  z-index: -1;
  top: -4.5rem;
  right: -3rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45,212,191,.16), rgba(129,140,248,.15), rgba(244,114,182,.13));
  content: "";
  filter: blur(2px);
}
.site-update-eyebrow { color: #0f766e; font-size: .65rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.site-update-title { margin-top: .25rem; color: #102033; font-size: 1rem; font-weight: 800; }
.site-update-copy { margin-top: .2rem; color: #536477; font-size: .78rem; line-height: 1.5; }
.site-update-date-wrap { display: grid; justify-items: end; gap: .25rem; border-left: 1px solid rgba(148,163,184,.32); padding-left: 1.2rem; }
.site-update-date-label { color: #536477; font-size: .68rem; font-weight: 700; }
.site-update-date { color: #5140a8; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.site-support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .7rem 1rem;
  border: 1px solid rgba(217, 119, 6, .28);
  border-radius: 999px;
  background: linear-gradient(110deg, #fef3c7, #fde68a 55%, #fed7aa);
  color: #713f12 !important;
  font-size: .8rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(180, 83, 9, .12);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.site-support-link:hover { transform: translateY(-2px); filter: saturate(1.08); box-shadow: 0 12px 24px rgba(180, 83, 9, .2); }
.site-support-link:focus-visible { outline: 3px solid rgba(217, 119, 6, .45); outline-offset: 3px; }

main > article.bg-white,
main article.bg-white,
main .bg-white.rounded-3xl,
main .bg-white.rounded-2xl {
  border-color: var(--theme-border) !important;
  box-shadow: var(--theme-card-shadow);
}
main > article > div:first-child {
  border: 1px solid rgba(45, 212, 191, .18);
  border-radius: 1.25rem;
  background: linear-gradient(120deg, rgba(236, 253, 245, .92), rgba(240, 249, 255, .94) 55%, rgba(245, 243, 255, .9));
  padding: 1.1rem 1.25rem;
}
main > article > div:first-child h1 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.13; }
main > article h2 { color: #0f4c5c; }
main > section:first-child[class*="bg-slate-950"] {
  background-image: linear-gradient(125deg, #083c47, #152344 54%, #433280) !important;
  box-shadow: 0 24px 60px rgba(38, 61, 123, .2);
}
main > section:first-child[class*="bg-gradient"] {
  border-color: rgba(45, 212, 191, .2);
}

main .bg-white[class*="rounded-"] { transition: box-shadow .22s ease, border-color .22s ease, transform .22s ease; }
main .bg-white[class*="rounded-"]:hover { border-color: rgba(20, 184, 166, .38) !important; box-shadow: 0 22px 48px rgba(31, 66, 94, .12); }
main button:not(:disabled),
main a[class*="rounded-"] { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
main button:not(:disabled):hover,
main a[class*="rounded-"]:hover { filter: saturate(1.12); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(8, 169, 199, .55);
  outline-offset: 2px;
}
input, textarea, select { accent-color: #0f9f83; }
input:not([type="checkbox"]):not([type="radio"]), textarea, select { transition: border-color .18s ease, box-shadow .18s ease; }
input:not([type="checkbox"]):not([type="radio"]):focus, textarea:focus, select:focus { border-color: #14b8a6; box-shadow: 0 0 0 4px rgba(45, 212, 191, .13); }

table thead { background: linear-gradient(95deg, #d1fae5, #cffafe 52%, #ede9fe) !important; }
pre, code { overflow-wrap: anywhere; }
::selection { background: rgba(45, 212, 191, .3); color: #102033; }

@keyframes themeRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes themeGlow { 0%, 100% { box-shadow: 0 14px 35px rgba(15, 159, 131, .08); } 50% { box-shadow: 0 18px 42px rgba(115, 88, 239, .12); } }
main > article, main > section:first-child, .resume-paper { animation: themeRise .48s ease-out both; }
.glass-card { animation: themeGlow 9s ease-in-out infinite; }

@media (max-width: 640px) {
  body { background-attachment: scroll; }
  main > article > div:first-child { padding: .9rem; }
  main > article.bg-white { padding: 1.1rem !important; }
  .site-update-box { grid-template-columns: 1fr; width: calc(100% - 2rem); gap: .8rem; padding: 1rem; }
  .site-update-date-wrap { justify-items: start; border-left: 0; border-top: 1px solid rgba(148,163,184,.32); padding: .65rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  body { background: #fff !important; }
  main > article, main > section:first-child, .glass-card { animation: none !important; }
}
