/* ══════════════════════════════════════════
   SHARED DESIGN SYSTEM — Prabhangini Portfolio
   Extracted from case study CSS
   ══════════════════════════════════════════ */

/* ── FONTS ── */
@font-face {
  font-family: 'Cabin';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/Cabin-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/DMSans-Variable.woff2') format('woff2');
}

/* ── VARIABLES ── */
:root {
  /* Core — Warm Ink + Clay palette, Begin Studio-inspired */
  --primary: #C4522A;        /* Warm Sienna Clay — deeper sibling of Terracotta */
  --primary-dark: #A83E1A;
  --primary-rgb: 196, 82, 42;
  --secondary: #E05A47;      /* Terracotta — the pop accent */
  --secondary-dark: #D94632;
  --secondary-rgb: 224, 90, 71;
  --accent: #D97706;         /* Warm Amber — hero em text */
  --ink: #1C1917;            /* Near-black warm tone (not cold slate) */
  --ink-mid: #57534E;        /* Warm mid-grey */
  --ink-light: #A8A29E;      /* Warm light-grey */
  --paper: #FAFAFA;
  --white: #ffffff;
  --border: #E2E8F0;

  /* Pastel Sections — all warm tones */
  --sky: #FDF0EB;        /* Warm cream (was light blue) */
  --mint: #FBF0EE;       /* Soft blush */
  --sunshine: #FFF5D6;   /* Warm gold tint */
  --lilac: #F7F0EE;      /* Light warm rose */

  /* Semantic */
  --success: #2EAD6A;
  --warning: #E8A020;
  --error: #E04B3D;
  --info: #2AA5A0;

  /* Layout */
  --page-max: 1100px;
  --page-pad: 80px;
  --r: 2px;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── SKIP TO CONTENT ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--r);
}
.skip-link:focus {
  top: 8px;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
  padding: 0 var(--page-pad);
  background: rgba(255,250,246,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-name {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--primary); text-decoration: none;
}
.nav-name:hover { color: var(--primary-dark); }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 13px; color: var(--ink-light);
  text-decoration: none; font-weight: 500;
  transition: color 0.2s;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--primary); }
.nav-links a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.nav-links a:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: var(--r);
}

/* ── SHARED TYPOGRAPHY ── */
.ey {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.ey::before { content: ''; width: 24px; height: 2px; background: var(--primary); }

h2 {
  font-family: 'Cabin', sans-serif;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700; line-height: 1.15;
  color: var(--ink); margin-bottom: 16px;
}

.lead {
  font-size: 16px; line-height: 1.75;
  color: var(--ink-mid); max-width: 600px;
}

/* ── SECTION LAYOUT ── */
section, .section-wrap {
  padding: 100px var(--page-pad);
  max-width: calc(var(--page-max) + var(--page-pad) * 2);
  margin: 0 auto;
}

/* ── BUTTONS ── */
.btn-primary {
  background: var(--primary); color: #fff;
  padding: 12px 28px; border-radius: var(--r);
  font-size: 13px; font-weight: 700; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: opacity 0.2s;
}
.btn-primary:hover { opacity: 0.85; }

/* ── FOOTER ── */
footer {
  background: var(--paper);
  padding: 0 var(--page-pad) 80px;
  max-width: calc(var(--page-max) + var(--page-pad) * 2);
  margin: 0 auto;
}
.footer-divider {
  width: 100%; max-width: 600px;
  height: 1px; background: var(--border);
  margin: 0 auto 64px;
}
.footer-content { text-align: center; }
.footer-headline {
  font-family: 'Cabin', sans-serif;
  font-size: 32px; font-weight: 700;
  color: var(--ink); margin-bottom: 16px;
}
.footer-body {
  font-size: 16px; color: var(--ink-mid);
  line-height: 1.7; margin-bottom: 40px;
}
.footer-body a {
  color: var(--secondary); text-decoration: underline;
  text-underline-offset: 3px; font-weight: 500;
  transition: color 0.2s;
}
.footer-body a:hover { color: var(--secondary-dark); }
.footer-social {
  display: flex; gap: 24px; justify-content: center;
}
.footer-social a {
  color: var(--ink); transition: color 0.2s;
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
}
.footer-social a:hover { color: var(--primary); }

/* ── SCROLL PROGRESS BAR ── */
.progress-bar {
  position: fixed; top: 0; left: 0; z-index: 101;
  height: 3px; width: 0;
  background: var(--primary);
  transition: width 50ms linear;
}

/* ── SCROLL ANIMATIONS ── */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* No-JS fallback: show everything without animation */
.no-js .fade-in,
.no-js .fi {
  opacity: 1; transform: none; transition: none;
}

/* Reduced motion: disable all animations */
@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  .progress-bar { transition: none; }
  html { scroll-behavior: auto; }
}

/* ── FOCUS STYLES ── */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: var(--r);
}

/* ── CTA BAND (Next project / Contact) ── */
.cta-band {
  background: var(--sky);
  padding: 48px var(--page-pad);
}
.cta-band-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.cta-band h3 {
  font-family: 'Cabin', sans-serif;
  font-size: 22px; font-weight: 700;
  color: var(--ink);
}
.cta-band p {
  font-size: 14px; color: var(--ink-mid);
  margin-top: 4px;
}
.cta-band a {
  color: var(--primary); font-weight: 600;
  font-size: 14px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: opacity 0.2s;
}
.cta-band a:hover { opacity: 0.7; }

/* ── VIEW TRANSITIONS ── */
@view-transition {
  navigation: auto;
}
nav { view-transition-name: site-nav; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  :root { --page-pad: 24px; }
  nav { padding: 16px 24px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; }
  footer { padding: 0 24px 60px; }
  .footer-headline { font-size: 28px; }
  .cta-band { padding: 32px 24px; }
  .cta-band-inner { flex-direction: column; text-align: center; }
}
