:root {
  --sand: #f6f1ea;
  --ink: #1f1b16;
  --blush: #e3c1b1;
  --oat: #fbe8d8;
  --sage: #637a6a;
  --burnt: #c45b38;
  --cream: #fff8f1;
  --shadow: rgba(31, 27, 22, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Noto Sans TC", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fcefe3, var(--sand) 50%, #f4efe9 100%);
  line-height: 1.6;
}

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

/*.hero {
  
  background: linear-gradient(135deg, #fef6ea 0%, #f2e6da 45%, #e9d6c8 100%);
  background-image: url(assets/dogandcat.png);
    background-size: 20%;
  background-position: left bottom;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}*/
.hero {
  padding: 32px 8vw 80px;
  position: relative;
  background-image: url("assets/dogandcat.png");
  background-size: 20%;
  background-repeat: no-repeat;
  background-position: left bottom;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  pointer-events: none;
}


.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(196, 91, 56, 0.12);
  top: -120px;
  right: -180px;
  filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Fraunces", "Noto Serif TC", serif;
  font-weight: 600;
}

.logo-mark {
  background: var(--burnt);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.logo-type {
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-weight: 500;
}

.nav-links a {
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-color: var(--burnt);
}

button {
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.nav-cta {
  background: var(--ink);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
  margin-top: 70px;
  position: relative;
  z-index: 1;
}

.hero-text h1 {
  font-family: "Fraunces", "Noto Serif TC", serif;
  font-size: clamp(2.5rem, 4vw, 4.2rem);
  margin: 18px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
  color: var(--sage);
  font-weight: 600;
}

.subtitle {
  max-width: 520px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.primary {
  background: var(--burnt);
  color: white;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
}

.ghost {
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 12px 22px;
  border-radius: 999px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.hero-highlights h3 {
  margin: 0;
  font-size: 1.6rem;
}

.hero-card {
  background: var(--cream);
  padding: 28px;
  border-radius: 24px;
  box-shadow: 0 30px 60px var(--shadow);
  display: grid;
  gap: 20px;
}

.hero-card img {
  width: 100%;
  border-radius: 20px;
  background: #f6f1ea;
}

.hero-card-top {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--sage);
}

.tag {
  background: #1f1b16;
  color: white;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 999px;
}

.hero-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-card-bottom button {
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  border-radius: 12px;
}

.hero-card-footer {
  display: flex;
  gap: 16px;
  color: var(--sage);
  font-size: 0.9rem;
}

main {
  padding: 80px 8vw;
  display: grid;
  gap: 90px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  font-family: "Fraunces", "Noto Serif TC", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 8px 0 0;
}

.collection-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.collection-grid article {
  padding: 24px;
  border-radius: 20px;
  background: white;
  box-shadow: 0 20px 40px var(--shadow);
  transition: transform 0.3s ease;
  display: grid;
  gap: 16px;
}

.collection-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: #f6f1ea;
}

.collection-grid article:hover {
  transform: translateY(-6px);
}

.collection-grid span {
  color: var(--burnt);
  font-weight: 600;
  font-size: 0.9rem;
}

.services {
  background: #faf6f0;
  padding: 60px;
  border-radius: 32px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.service-cards article {
  padding: 24px;
  background: white;
  border-radius: 18px;
  box-shadow: 0 18px 34px var(--shadow);
}

.stories {
  background: linear-gradient(135deg, #f7efe7, #f2e1d4);
  border-radius: 32px;
  padding: 60px;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 40px;
}

.story-text h2 {
  font-family: "Fraunces", "Noto Serif TC", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 12px 0;
}

.story-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
}

.story-panel {
  display: grid;
  gap: 20px;
}

.story-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.story-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 40px var(--shadow);
}

.story-card {
  background: white;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 20px 40px var(--shadow);
}

.story-card.alt {
  background: var(--ink);
  color: white;
}

.story-card button {
  margin-top: 18px;
  background: var(--burnt);
  color: white;
  padding: 10px 18px;
  border-radius: 999px;
}

.newsletter {
  background: white;
  padding: 40px 60px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 18px 40px var(--shadow);
}

.newsletter-form {
  display: flex;
  gap: 12px;
}

.newsletter-form input {
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #e0d6cd;
  min-width: 240px;
}

.newsletter-form button {
  background: var(--ink);
  color: white;
  padding: 12px 20px;
  border-radius: 12px;
}

footer {
  padding: 60px 8vw 40px;
  background: var(--ink);
  color: #f6f1ea;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.footer-grid h4 {
  margin-top: 0;
}

.footer-bottom {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.footer-bottom .ghost {
  border-color: white;
  color: white;
}

@media (max-width: 960px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero-content,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    background-position: center bottom;
  }

  .newsletter {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 28px 6vw 60px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .services,
  .stories {
    padding: 40px 24px;
  }

  .newsletter {
    padding: 30px 24px;
  }

  .hero-actions,
  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .story-actions {
    grid-template-columns: 1fr;
  }

  .hero-actions button,
  .newsletter-form button,
  .newsletter-form input {
    width: 100%;
  }
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text,
.hero-card,
.collection-grid article,
.service-cards article,
.story-card,
.newsletter {
  animation: floatUp 0.8s ease both;
}

.collection-grid article:nth-child(2) {
  animation-delay: 0.1s;
}

.collection-grid article:nth-child(3) {
  animation-delay: 0.2s;
}

.collection-grid article:nth-child(4) {
  animation-delay: 0.3s;
}

.collection-grid article:nth-child(5) {
  animation-delay: 0.4s;
}
