/* =============================================
   SHREYA TALWAR PORTFOLIO — SHARED STYLES
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Manrope:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ── Tokens ───────────────────────────────── */
:root {
  --bg:         #F7F4EE;
  --ink:        #151515;
  --muted:      #5D5B57;
  --accent:     #72263A;
  --green:      #6B7A63;
  --border:     #DDD8CF;
  --card-bg:    #FFFDF9;
  --radius:     12px;
  --max-w:      1440px;
  --col-gap:    clamp(24px, 3vw, 48px);
  --section-y:  clamp(80px, 10vw, 140px);
}

/* ── Reset ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ───────────────────────────── */
.serif   { font-family: 'DM Serif Display', serif; }
.mono    { font-family: 'IBM Plex Mono', monospace; }
.manrope { font-family: 'Manrope', sans-serif; }

h1, h2, h3 { font-family: 'DM Serif Display', serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(42px, 6vw, 88px); letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.02em; }
h3 { font-size: clamp(22px, 2.5vw, 32px); }
h4 { font-family: 'Manrope', sans-serif; font-size: 18px; font-weight: 600; }
p  { font-size: 16px; color: var(--muted); line-height: 1.75; }

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}

/* ── Layout ───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 96px);
}
.section { padding: var(--section-y) 0; }
.section + .section { border-top: 1px solid var(--border); }

/* ── Navigation ───────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 5vw, 96px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav__wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__links a {
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--ink); }
.nav__links a.active::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: 6px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: var(--accent); }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn--outline:hover { border-color: var(--ink); }
.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover { opacity: 0.88; }

/* Mobile nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.25s;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 0 clamp(24px, 5vw, 96px) 24px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.nav__mobile a:last-child { border-bottom: none; }

/* ── Cards ────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(21,21,21,0.07);
}

.img-placeholder {
  background: #E8E4DC;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Divider ──────────────────────────────── */
.divider {
  width: 48px;
  height: 1.5px;
  background: var(--accent);
  margin: 24px 0;
}

/* ── Tags ─────────────────────────────────── */
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
}

/* ── Arrow link ───────────────────────────── */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  transition: gap 0.2s;
}
.arrow-link:hover { gap: 10px; }
.arrow-link svg { flex-shrink: 0; }

/* ── Footer ───────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: auto;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer__brand h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.footer__brand p {
  font-size: 14px;
  max-width: 280px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: right;
}
.footer__links a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom span {
  font-size: 12px;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
}

/* ── Reveal animation ─────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .footer__links { text-align: left; }
}

/* ── Section section headers ─────────────── */
.section-header {
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-header h2 { margin-bottom: 16px; }
.section-header p { max-width: 520px; font-size: 17px; }
.section-header--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

/* ── Grid helpers ─────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--col-gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--col-gap); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Page hero (inner pages) ─────────────── */
.page-hero {
  padding: clamp(64px, 8vw, 120px) 0 clamp(48px, 6vw, 80px);
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { margin-bottom: 20px; }
.page-hero p { font-size: 18px; max-width: 580px; }
