/* =====================================================================
   Sri Harsha Soma — personal site
   Palette: accent #dbe35b · body #2b317d · shade #a19ece · bg #ffffff
   Type   : Collinger (headings) · Raleway (body)
   ===================================================================== */

@font-face {
  font-family: "Forum";
  src: url("fonts/Forum-Regular.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Restora";
  src: url("fonts/Restora-ExtraLight.otf") format("opentype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Restora";
  src: url("fonts/Restora-ThinItalic.otf") format("opentype");
  font-weight: 100 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Collinger";
  src: url("fonts/Collinger-Regular.otf") format("opentype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Collinger";
  src: url("fonts/Collinger-Italic.otf") format("opentype");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face { font-family: "Qurova"; src: url("fonts/Qurova-Light.otf")    format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Qurova"; src: url("fonts/Qurova-Regular.otf")  format("opentype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Qurova"; src: url("fonts/Qurova-Medium.otf")   format("opentype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Qurova"; src: url("fonts/Qurova-SemiBold.otf") format("opentype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Qurova"; src: url("fonts/Qurova-Bold.otf")     format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face {
  font-family: "Raleway";
  src: url("fonts/Raleway-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Raleway";
  src: url("fonts/Raleway-Italic-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --accent: #dbe35b;
  --accent-ink: #2b317d;        /* high-contrast text on accent */
  --accent-soft: #f0f4b4;
  --accent-glow: rgba(219, 227, 91, 0.35);

  --shade: #a19ece;
  --shade-soft: #ece9f6;
  --shade-line: rgba(161, 158, 206, 0.35);

  --bg: #ffffff;
  --bg-soft: #f7f7fb;
  --bg-tint: #f1f2f8;

  --text: #2b317d;              /* body */
  --ink: #181d52;               /* headings */
  --panel-deep: #0b0e29;        /* deep navy panel bg */
  --on-deep: #ffffff;           /* default text color on --panel-deep */
  --muted: rgba(43, 49, 125, 0.62);
  --hairline: rgba(43, 49, 125, 0.12);

  --card: #ffffff;
  --card-shadow: 0 1px 2px rgba(24, 29, 82, 0.04), 0 8px 24px rgba(24, 29, 82, 0.05);
  --card-shadow-lg: 0 1px 2px rgba(24, 29, 82, 0.04), 0 18px 40px rgba(24, 29, 82, 0.10);

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: 24px;

  --serif: "Forum", "Restora", "Qurova", "Collinger", "Iowan Old Style", Georgia, serif;
  --sans: "Raleway", "Inter", system-ui, -apple-system, sans-serif;
}


* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  padding-top: 96px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
p { margin: 0; }
a { color: inherit; text-decoration: none; transition: color .2s ease; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
}

/* ---------- nav (floating glassmorphism) ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  background: transparent;
  border-bottom: 0;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 24px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  box-shadow:
    0 1px 0 rgba(255,255,255,.6) inset,
    0 12px 32px -12px rgba(11, 14, 41, 0.25),
    0 4px 12px -6px rgba(11, 14, 41, 0.12);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 36px; height: 36px; border-radius: 50%; }
.brand-name { font-family: var(--serif); font-size: 20px; color: var(--ink); font-weight: 500; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; position: relative; padding: 4px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--accent); border-radius: 2px; }
.nav-tools { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--hairline); color: var(--ink);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.icon-btn:hover { background: var(--bg-soft); border-color: var(--shade); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.mobile-toggle { display: none; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .mobile-toggle { display: inline-flex; }
  .nav-tools .search { display: none; }
  .nav-tools .btn-pill { padding: 8px 14px; font-size: 12px; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 0 14px; gap: 8px; }
  .nav-tools { gap: 8px; }
  .nav-tools .btn-pill { display: none; }
  .brand-name { font-size: 16px; }
  .brand { gap: 8px; }
  .brand-logo { width: 30px; height: 30px; }
}

/* mobile menu drawer */
.mobile-menu {
  position: fixed; inset: 76px 0 0 0; background: var(--bg);
  z-index: 40; padding: 24px var(--gutter);
  transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
  border-top: 1px solid var(--hairline);
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a {
  display: block; padding: 14px 0; border-bottom: 1px solid var(--hairline);
  font-family: var(--serif); font-size: 22px; color: var(--ink);
}
.mobile-menu a.active { color: var(--text); }
.mobile-menu a.active::before { content: "— "; color: var(--accent); }

/* ---------- buttons (glassmorphism, site-wide except nav) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: var(--radius); font-weight: 600; font-size: 14px;
  letter-spacing: 0.01em; cursor: pointer; white-space: nowrap;
  position: relative; isolation: isolate;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    0 10px 24px -12px rgba(11, 14, 41, 0.22),
    0 2px 6px -3px rgba(11, 14, 41, 0.10);
  transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: color-mix(in srgb, var(--accent) 60%, transparent); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 18%, transparent); }
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 80%, transparent);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 14px 32px -10px var(--accent-glow), 0 4px 10px -4px rgba(11,14,41,.18);
}
.btn-ink { background: color-mix(in srgb, var(--panel-deep) 62%, transparent); color: #fff; border-color: rgba(255,255,255,.18); }
.btn-ink:hover {
  background: color-mix(in srgb, var(--panel-deep) 82%, transparent);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 30px -10px rgba(11,14,41,.45);
}
.btn-ghost { background: color-mix(in srgb, var(--bg) 30%, transparent); color: var(--ink); }
.btn-ghost:hover {
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
  transform: translateY(-1px);
}
.btn-pill { border-radius: var(--radius-pill); padding: 10px 18px; font-size: 13px; }

/* animated shine border — brand-color gradient travels around the edge */
.btn::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background-image: radial-gradient(
    transparent,
    transparent,
    var(--accent),
    var(--accent-ink),
    var(--shade),
    transparent,
    transparent
  );
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  pointer-events: none;
  animation: btn-shine 14s linear infinite;
}
@keyframes btn-shine {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}
@media (prefers-reduced-motion: reduce) {
  .btn::before { animation: none; }
}
.nav .btn::before { display: none; }


/* nav buttons keep the original solid look */
.nav .btn {
  backdrop-filter: none; -webkit-backdrop-filter: none;
  border: 0; box-shadow: none;
}
.nav .btn-primary  { background: var(--accent); color: var(--accent-ink); }
.nav .btn-primary:hover  { background: #c8d040; transform: translateY(-2px); box-shadow: 0 10px 22px var(--accent-glow); }
.nav .btn-ink { background: var(--panel-deep); color: var(--on-deep); }
.nav .btn-ink:hover { background: #1a2050; transform: translateY(-2px); }
.nav .btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.nav .btn-ghost:hover { border-color: var(--ink); background: var(--bg-soft); }

/* ---------- chips, tags ---------- */
.eyebrow { display: inline-block; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--shade); font-weight: 600; }
.chip {
  display: inline-flex; align-items: center; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--ink); font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em;
}
.chip-shade { background: var(--shade-soft); color: var(--ink); }
.chip-ink { background: var(--ink); color: #fff; }
.tag {
  display: inline-block; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--shade);
}

/* ---------- card ---------- */
.card {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow); transition: transform .3s ease, box-shadow .3s ease;
  overflow: hidden; border: 1px solid var(--hairline);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-lg); }
.card-flat { background: var(--bg-soft); border-radius: var(--radius-lg); border: 1px solid var(--hairline); }

/* ---------- form ---------- */
.field-label { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.field-input, .field-textarea {
  width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--hairline);
  background: transparent; font-size: 16px; color: var(--ink); outline: none;
  transition: border-color .2s ease;
}
.field-input:focus, .field-textarea:focus { border-bottom-color: var(--accent); }
.field-textarea { resize: vertical; min-height: 100px; }
.field-boxed {
  width: 100%; padding: 14px 16px; border: 1px solid var(--hairline);
  background: var(--bg); color: var(--ink); border-radius: var(--radius);
  font-size: 15px; outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
.field-boxed:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.field-boxed::placeholder { color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--panel-deep); color: #d8daf0; padding: 72px 0 28px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand .brand-name { color: #fff; }
.footer-mission { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.55); max-width: 280px; }
.footer-col h5 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; font-weight: 700; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.65); padding: 6px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,.45); }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.15); display: inline-flex; align-items: center; justify-content: center; color: rgba(255,255,255,.55); }
.footer-social a:hover { color: var(--accent); border-color: var(--accent); }

@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- page transitions ---------- */
.page-fade {
  animation: pageIn .55s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page-leaving { animation: pageOut .25s ease forwards; }
@keyframes pageOut {
  to { opacity: 0; transform: translateY(-8px); }
}

/* progress bar shown during page switch */
.route-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9999;
  background: linear-gradient(90deg, var(--accent) 0%, var(--shade) 100%);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .35s ease;
}
.route-progress.go { transform: scaleX(1); }

/* ---------- helpers ---------- */
.text-ink { color: var(--ink); }
.text-muted { color: var(--muted); }
.text-accent { color: var(--accent-ink); background: var(--accent); padding: 0 6px; border-radius: 3px; }
.text-shade { color: var(--shade); }
.serif { font-family: var(--serif); }
.divider { height: 1px; background: var(--hairline); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* image placeholder for hotlink fallback */
.img-fallback {
  background:
    repeating-linear-gradient(135deg, var(--shade-soft) 0 12px, var(--bg-soft) 12px 24px);
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; color: var(--muted); letter-spacing: 0.05em;
}

/* ---------- search palette ---------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in srgb, var(--panel-deep) 35%, transparent);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 14vh 24px 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-palette {
  width: 100%; max-width: 560px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 18px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.55) inset,
    0 24px 60px -20px rgba(11,14,41,.45);
  overflow: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: transform .2s ease;
}
.search-overlay.open .search-palette { transform: translateY(0) scale(1); }
.search-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--hairline);
}
.search-input-row svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.search-input-row input {
  flex: 1; background: transparent; border: 0; outline: none;
  font-family: var(--sans); font-size: 16px; color: var(--ink);
}
.search-input-row input::placeholder { color: var(--muted); }
.search-kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px; padding: 3px 7px; border-radius: 6px;
  background: var(--bg-soft); border: 1px solid var(--hairline); color: var(--muted);
}
.search-results { max-height: 50vh; overflow-y: auto; padding: 6px; }
.search-result {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ink); cursor: pointer;
  transition: background .12s ease;
}
.search-result:hover, .search-result[aria-selected="true"] { background: var(--bg-soft); }
.search-result .glyph {
  width: 28px; height: 28px; border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft) 60%, var(--bg));
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-ink); flex-shrink: 0;
}
.search-result .glyph svg { width: 14px; height: 14px; }
.search-result .label { font-size: 14px; font-weight: 600; }
.search-result .meta { margin-left: auto; font-size: 12px; color: var(--muted); }
.search-empty {
  padding: 32px 18px; text-align: center; color: var(--muted); font-size: 13px;
}

/* ---------- typography utilities ---------- */
.h-display { font-family: var(--serif); font-size: clamp(38px, 5.4vw, 60px); line-height: 1.05; letter-spacing: -0.02em; color: var(--ink); }
.h-1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.h-2 { font-family: var(--serif); font-size: clamp(26px, 2.8vw, 34px); line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); }
.h-3 { font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); line-height: 1.3; color: var(--ink); }
.lede { font-size: 18px; line-height: 1.7; color: var(--text); }
.lede-lg { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; color: var(--text); }
.kicker { font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--shade); font-weight: 600; }

