/* ==========================================
   Design System & Main Styles
   Krishna Priya Vasireddy Profile Site
   ========================================== */

:root {
  /* Brand & Theme Colors (Clean Light Palette) */
  --pink: #F5BCCF;
  --lav: #B7B1ED;
  --peri: #8383C3;
  --plum: #725A90;
  --bg: #FEFDFF;
  --surface: #FAF8FE;
  --card: #FFFFFF;
  --ink: #2A2140;
  --muted: #5F5577;
  --line: #ECE7F7;
  --accent: #725A90;
  --accent-ink: #FFFFFF;
  --soft: #FDF2F6;
  --link: #5F4A7D;
  --code-bg: #F6F3FC;
  --code-ink: #2A2140;

  /* Typography */
  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  /* Safe Area Support */
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: inherit;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 80px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--peri);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================
   Header & Navigation
   ========================================== */

header.site {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 64px;
  gap: 16px;
}

.site-brand {
  margin-right: auto;
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 400;
}
.site-brand span {
  color: var(--peri);
}

nav.links {
  display: flex;
  gap: 22px;
}

nav.links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

nav.links a:hover, nav.links a.active {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--line);
}

.btn.ghost:hover {
  border-color: var(--peri);
  background: var(--surface);
}

.menu-btn {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  color: var(--ink);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 24px 20px;
  background: var(--bg);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.mobile-nav.open {
  display: block;
}

@media (max-width: 900px) {
  nav.links, .header-actions .btn-contact-desktop {
    display: none;
  }
  .menu-btn {
    display: block;
  }
}

/* ==========================================
   Footer
   ========================================== */

footer {
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
