/* ═══════════════════════════════════════════════
   style.css — Amit Baghel · Shared Site Styles
   ═══════════════════════════════════════════════ */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400;1,9..144,500&family=Manrope:wght@400;500;600;700;800&display=swap');

/* ── Variables ── */
:root {
  --bg:         #FAF6EF;   /* warm paper */
  --bg-2:       #F1E9DB;   /* warm sand — alt sections */
  --bg-3:       #FFFFFF;   /* lifted card surface */
  --border:     rgba(51, 45, 38, 0.08);
  --ink:        #34302A;
  --ink-soft:   #756B5E;
  --ink-mute:   #A39884;
  --green:      #5F7857;                     /* sage — primary accent */
  --green-dim:  rgba(95, 120, 87, 0.12);
  --green-glow: rgba(95, 120, 87, 0.22);
  --honey:      #B8853A;                     /* warm accent — highlights & stats */
  --honey-dim:  rgba(184, 133, 58, 0.14);
  --serif:      'Fraunces', Georgia, serif;
  --sans:       'Manrope', system-ui, sans-serif;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --radius-lg:  28px;
  --radius-md:  18px;
  --radius-sm:  10px;
  --radius-pill: 999px;
  --shadow-sm:  0 1px 2px rgba(51, 45, 38, 0.04), 0 6px 18px rgba(51, 45, 38, 0.06);
  --shadow:     0 2px 6px rgba(51, 45, 38, 0.05), 0 26px 56px rgba(95, 120, 87, 0.18);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: radial-gradient(ellipse 1300px 800px at 50% -5%, #FFFEFA 0%, var(--bg) 60%);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(95, 120, 87, 0.25); color: var(--ink); }

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.35;
}

/* ── Nav (floating pill) ── */
nav {
  position: fixed; top: 1.25rem; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 3rem), 1120px);
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.85rem;
  background: rgba(250, 246, 239, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: padding 0.3s var(--ease), top 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

nav.scrolled { padding: 0.7rem 1.5rem; top: 0.85rem; box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.6); }

.nav-name {
  font-family: var(--serif);
  font-size: 1.15rem; font-weight: 500; font-style: italic;
  color: var(--ink); text-decoration: none; letter-spacing: 0.01em;
  transition: opacity 0.3s ease;
}
.nav-name:hover { opacity: 0.65; }

.name-full    { display: inline; }
.name-initials { display: none; }

nav.scrolled .name-full     { display: none; }
nav.scrolled .name-initials { display: inline; }

.nav-links {
  display: flex; align-items: center;
  gap: 1.85rem; list-style: none;
}

.nav-links a {
  font-size: 0.92rem; font-weight: 600;
  color: var(--ink-soft); text-decoration: none;
  transition: color 0.3s var(--ease);
}

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

/* Icon links */
.nav-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin: -9px;
  color: var(--ink-soft); text-decoration: none;
  transition: color 0.3s var(--ease);
  line-height: 0;
}
.nav-icon:hover { color: var(--green); }

.nav-icon svg {
  width: 18px; height: 18px;
  stroke: currentColor; fill: none;
  stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  font-family: var(--sans); font-size: 0.92rem;
  font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none; border-radius: var(--radius-pill);
  transition: all 0.3s var(--ease);
}

.btn-primary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 45%), var(--green);
  color: var(--bg-3);
  border: 1px solid var(--green);
}
.btn-primary:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 45%), #51664A;
  border-color: #51664A;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(95, 120, 87, 0.3);
}

.btn-ghost {
  background: transparent; color: var(--ink-soft);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--green); color: var(--green);
  background: var(--green-dim);
  transform: translateY(-2px);
}

/* ── Page intro (shared: work, reads) ── */
.page-intro {
  padding: 10rem 4rem 5rem;
  max-width: 1120px; margin: 0 auto;
}

.page-eyebrow {
  font-size: 0.85rem; font-weight: 600;
  color: var(--green); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.55rem;
}
.page-eyebrow span {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px var(--green-glow);
  flex-shrink: 0;
}
.page-eyebrow::after {
  content: ''; flex: 1; height: 1px; min-width: 2rem;
  background: linear-gradient(to right, var(--border), transparent);
}

.page-title {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  font-weight: 400; letter-spacing: -0.01em;
  line-height: 1.12; margin-bottom: 1.5rem;
}

.page-desc {
  font-size: 1.05rem; color: var(--ink-soft);
  max-width: 480px; line-height: 1.85;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 4rem;
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}

.footer-left {
  font-family: var(--serif); font-style: italic;
  font-size: 1rem; color: var(--ink-mute);
}

.footer-links { display: flex; gap: 1.75rem; list-style: none; }
.footer-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--ink-mute);
  text-decoration: none; transition: color 0.3s ease;
}
.footer-links a:hover { color: var(--green); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Keyframes ── */
@keyframes up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--green-glow); }
  50%       { box-shadow: 0 0 0 7px rgba(95, 120, 87, 0.05); }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(2%, 3%); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  nav { padding: 0.9rem 1.5rem; width: calc(100% - 2rem); }
  nav.scrolled { padding: 0.7rem 1.3rem; }
}

@media (max-width: 640px) {
  nav { top: 0.85rem; padding: 0.85rem 1.25rem; }
  .name-full     { display: none !important; }
  .name-initials { display: inline !important; }
  .nav-links { gap: 1.1rem; }
  .page-intro { padding: 7.5rem 1.5rem 3rem; }
  .site-footer {
    flex-direction: column; gap: 1.25rem;
    padding: 2.5rem 1.5rem; text-align: center;
  }
}
