/* =========================================================
   Manu Arya — bold & creative personal site
   ========================================================= */

:root {
  --ink: #0b0b0f;
  --ink-soft: #16161d;
  --paper: #f6f4ee;
  --lime: #d7ff3f;
  --coral: #ff5c39;
  --violet: #8b6bff;
  --muted: #9a97a8;
  --border: rgba(246, 244, 238, 0.12);
  --radius: 18px;
  --max: 1180px;
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { color: inherit; }

.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Layout helpers ---------- */
main > section,
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: linear-gradient(to bottom, rgba(11,11,15,0.92), rgba(11,11,15,0.7));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand-dot { color: var(--lime); }

.site-nav {
  display: flex;
  gap: 28px;
}
.nav-link {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.is-active { color: var(--paper); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--coral));
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--paper);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  color: var(--lime);
  margin: 0 0 18px;
}

.hero {
  padding-top: 96px;
  padding-bottom: 72px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 28px;
  background: linear-gradient(120deg, var(--paper) 40%, var(--lime) 70%, var(--coral) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 560px;
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 36px;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary {
  background: linear-gradient(90deg, var(--lime), #b8ff6a);
  color: var(--ink);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(215,255,63,0.25); }
.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--paper);
}
.btn-outline:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 40px 32px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--lime);
}
.stat-label {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

/* ---------- Section label ---------- */
.section-label {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 32px;
  max-width: 640px;
}

/* ---------- Project grid / cards ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 100px;
}
.project-card, .post-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-soft);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.project-card:hover, .post-card:hover {
  transform: translateY(-6px);
  border-color: var(--violet);
}
.project-card-image, .post-card-image {
  height: 180px;
  background-size: cover;
  background-position: center;
  background-color: #1d1d27;
}
.project-card-body, .post-card-body { padding: 24px; }
.project-tag {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral);
  margin-bottom: 10px;
  font-weight: 600;
}
.project-card-body h3, .post-card-body h2 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  font-size: 21px;
}
.project-card-body p, .post-card-body p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center;
  padding: 80px 32px 120px;
  border-top: 1px solid var(--border);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 28px;
}

/* ---------- Generic page hero ---------- */
.page-hero {
  padding: 90px 32px 50px;
}
.page-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 780px;
}

/* ---------- About ---------- */
.about-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  padding-bottom: 120px;
  align-items: start;
}
.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
}
.about-copy { font-size: 17px; color: #d9d7e0; }
.about-copy h2, .about-copy h3 {
  font-family: var(--font-display);
  color: var(--paper);
  margin-top: 36px;
}
.about-copy strong { color: var(--lime); }
.about-copy ul { padding-left: 20px; }
.about-copy li { margin-bottom: 8px; }

/* ---------- Work list ---------- */
.work-list { padding-bottom: 120px; }
.work-item {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  align-items: start;
  scroll-margin-top: 100px;
}
.work-item:first-child { border-top: none; }
.work-item-media {
  height: 220px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: #1d1d27;
}
.work-item-copy h2 {
  font-family: var(--font-display);
  font-size: 30px;
  margin: 10px 0 14px;
}
.work-summary { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.work-detail { color: #cfcdd8; }

/* ---------- Post list / post page ---------- */
.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding-bottom: 120px;
}
.post-card-date { color: var(--muted); font-size: 13px; }

.post { padding-bottom: 120px; max-width: 760px; }
.post-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 10px 0 8px;
}
.post-date { color: var(--muted); margin-bottom: 40px; }
.post-body { color: #d9d7e0; font-size: 18px; margin-bottom: 48px; }
.post-body p { margin-bottom: 22px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding-bottom: 60px;
}
.contact-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease;
}
.contact-block:hover { border-color: var(--coral); }
.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.contact-value {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.contact-form-wrap { padding-bottom: 120px; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.contact-form input, .contact-form textarea {
  background: var(--ink-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--lime);
}
.contact-form button { align-self: flex-start; border: none; cursor: pointer; }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  margin-top: 40px;
}
.footer-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 18px;
}
.footer-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--lime);
  text-decoration: none;
  margin-bottom: 24px;
}
.footer-meta {
  color: var(--muted);
  font-size: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-meta a { color: var(--muted); text-decoration: none; }
.footer-meta a:hover { color: var(--paper); }
.footer-sep { opacity: 0.4; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .about-body, .work-item { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-toggle { display: flex; }
}
