:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #FFF6E9;
  --color-primary: #FF5A36;
  --color-secondary: #3D5AFE;
  --color-accent: #FFD23F;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;

  --font-heading: 'Space Grotesk', 'Noto Sans TC', sans-serif;
  --font-body: 'Noto Sans TC', sans-serif;
  --font-accent: 'Caveat', cursive;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.placeholder {
  background: repeating-linear-gradient(45deg, #eee, #eee 10px, #e2e2e2 10px, #e2e2e2 20px);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border-radius: 12px;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 32px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-heading);
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
}

/* Nav */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
}

.nav__logo {
  font-family: var(--font-heading);
  font-weight: 700;
}

.nav__links { display: flex; gap: 24px; }
.nav__links a:hover { color: var(--color-primary); }

/* Hero */
.hero {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 48px;
  min-height: 80vh;
}

.hero__text { flex: 1; }

.hero__tag {
  font-family: var(--font-heading);
  color: var(--color-secondary);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 24px;
}

.hero__title .highlight { color: var(--color-primary); }

.hero__desc {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  max-width: 420px;
}

.hero__image {
  flex: 1;
  height: 480px;
}

/* Work */
.work {
  padding: 96px 48px;
  background: var(--color-bg-alt);
}

.filter {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.filter__btn {
  border: 2px solid var(--color-text);
  background: transparent;
  padding: 8px 20px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 700;
  cursor: pointer;
}

.filter__btn.is-active,
.filter__btn:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
}

.bento__item--large { grid-column: span 2; grid-row: span 2; }
.bento__item--tall { grid-row: span 2; }

.bento__item.is-hidden { display: none; }

/* About */
.about {
  display: flex;
  align-items: center;
  gap: 64px;
  padding: 96px 48px;
}

.about__image {
  flex: 1;
  height: 360px;
}

.about__text { flex: 1; }

.about__text p { margin-bottom: 16px; color: var(--color-text-muted); }

/* Contact */
.contact {
  text-align: center;
  padding: 96px 48px;
  background: var(--color-bg-alt);
}

.contact__email {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 32px;
}

.contact__social {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-weight: 700;
}

.contact__social a:hover { color: var(--color-secondary); }

.footer {
  text-align: center;
  padding: 24px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Mobile */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav__links { gap: 16px; font-size: 0.9rem; }

  .hero {
    flex-direction: column;
    padding: 32px 20px;
    text-align: center;
  }
  .hero__title { font-size: 2rem; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__image { width: 100%; height: 280px; }
  .btn { width: 100%; }

  .work { padding: 64px 20px; }
  .filter { flex-wrap: wrap; }

  .bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .bento__item--large,
  .bento__item--tall { grid-column: span 1; grid-row: span 1; }

  .about {
    flex-direction: column;
    padding: 64px 20px;
    text-align: center;
  }
  .about__image { width: 100%; height: 240px; }

  .contact { padding: 64px 20px; }
  .contact__email { font-size: 1.4rem; }
  .contact__social { flex-wrap: wrap; gap: 16px; }
}
