/* ── Variables ── */
:root {
  --pink: #f5dce8;
  --lavender: #e8e2f5;
  --cream: #faf7f4;
  --peach: #f7ece4;
  --accent: #b8849c;
  --accent2: #7b6aaa;
  --text: #1a1520;
  --muted: #7a6e85;
  --white: #fff;
  --shadow: 0 2px 16px rgba(0,0,0,0.06);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Utility ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }
.center { text-align: center; }
.section-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  display: block;
}
h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 6vw, 3.6rem);
  color: var(--text);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 100;
  padding: 24px 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(250,247,244,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: var(--shadow); }
.logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.nav-links { list-style: none; display: flex; gap: 40px; }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 61px; left: 0;
  width: 100%; height: calc(100vh - 61px);
  background: var(--cream);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none;
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: var(--text);
  letter-spacing: -0.02em;
  transition: color .2s;
}
.mobile-nav a:hover { color: var(--accent2); }

/* ── Hero ── */
#hero {
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 64px 100px;
  background: linear-gradient(160deg, var(--lavender) 0%, var(--pink) 60%, var(--peach) 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'DM Serif Display', serif;
  font-size: clamp(100px, 22vw, 260px);
  color: rgba(255,255,255,0.22);
  white-space: nowrap;
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.hero-shapes {
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.shapes-svg {
  width: 100%;
  height: 100%;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-18px); }
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 6px 14px;
  border-radius: 99px;
}
#hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.6rem, 8vw, 6.5rem);
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--text);
}
#hero h1 span { color: var(--accent2); }
#hero p {
  color: var(--muted);
  font-size: clamp(.95rem, 2.5vw, 1.1rem);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.75;
}

/* ── Button ── */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--white);
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--accent2); transform: translateY(-2px); }

/* ── Sections ── */
section { padding: 80px 0; }

/* ── About ── */
#about { background: var(--white); }
.polaroid {
  width: 340px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: 4px;
  padding: 10px 10px 52px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  transform: rotate(-2deg);
  transition: transform .3s ease;
  overflow: hidden;
}
.polaroid:hover { transform: rotate(0deg); }
.polaroid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 2px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.about-text p {
  color: var(--muted);
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

/* ── Projects ── */
#projects { background: var(--cream); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
  margin-top: 48px;
  border: 2px solid var(--text);
}
.card {
  background: var(--white);
  overflow: hidden;
  transition: background .2s;
  border-right: 2px solid var(--text);
}
.card:last-child { border-right: none; }
.card:hover { background: var(--lavender); }
.card-thumb {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  border-bottom: 2px solid var(--text);
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card-body { padding: 24px 28px 32px; }
.card-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.card-body p { color: var(--muted); font-size: .9rem; margin-bottom: 20px; line-height: 1.7; }
.card-link {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .2s;
}
.card-link:hover { color: var(--accent2); }

/* ── Skills ── */
#skills { background: var(--text); }
#skills .section-label { color: rgba(255,255,255,0.4); }
#skills h2 { color: var(--white); }
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.skill {
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  padding: 10px 22px;
  border-radius: 99px;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.skill:hover { background: rgba(255,255,255,0.1); color: var(--white); }

/* ── Contact ── */
#contact { background: var(--pink); }
#contact h2 { font-size: clamp(2.2rem, 6vw, 5rem); }
.contact-sub {
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 36px;
  font-size: 1rem;
  line-height: 1.75;
}
.socials {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.socials a {
  color: var(--muted);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.socials a:hover { color: var(--text); border-color: var(--text); }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 28px 24px;
  background: var(--text);
  color: rgba(255,255,255,0.35);
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── Tablet ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-shapes { width: 45%; opacity: 0.6; }
  .two-col { grid-template-columns: 1fr; gap: 40px; }
  .polaroid { width: 100%; max-width: 320px; margin: 0 auto; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .card:nth-child(2) { border-right: none; }
  .card:nth-child(n+3) { border-top: 2px solid var(--text); }
}

/* ── Mobile ── */
@media (max-width: 480px) {
  #hero {
    height: auto;
    align-items: center;
    padding: 120px 20px 60px;
    text-align: center;
  }
  .hero-inner { text-align: center; }
  #hero p { margin: 0 auto 36px; }
  .hero-shapes { display: none; }
  .hero-bg-text { display: none; }
  section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .card-grid { grid-template-columns: 1fr; border: none; gap: 16px; }
  .card { border: 2px solid var(--text) !important; }
  .skills-grid { gap: 8px; justify-content: center; }
  .skill { padding: 8px 16px; font-size: .8rem; }
}