:root {
  --aqua: #8fced5;
  --ink: #3e3e3e;
  --cream: #fff2bf;
  --orange: #ffa45a;
  --white: #ffffff;
  --page-max: 1280px;
  --content: min(86vw, 1100px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Bai Jamjuree", "Noto Sans TC", sans-serif;
  letter-spacing: 0;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: 20px 50px;
  background: var(--aqua);
}

.brand img {
  width: 52px;
  height: 50px;
  object-fit: contain;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--white);
  flex: 0 0 auto;
}

.brand-name {
  font-family: "Pacifico", cursive;
  font-size: 40px;
  line-height: 1.75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 8vw, 105px);
}

.nav-links a {
  width: 100px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--aqua);
  background: var(--white);
  border-radius: 999px;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
}

.hero {
  position: relative;
  min-height: 725px;
  display: grid;
  align-items: center;
  justify-items: start;
  overflow: hidden;
  padding: 110px 7.4vw 140px;
  background:
    linear-gradient(90deg, rgb(32 54 54 / 0.08), rgb(32 54 54 / 0.26)),
    url("img/1.jpg") center / cover;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 640px;
  color: var(--white);
  text-align: left;
}

.hero-wave {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 48px;
  background: url("svg/hero-wave.svg") repeat-x bottom / 320px 48px;
  pointer-events: none;
}

.hero h1 {
  margin: 0 0 8px;
  font-family: "Pacifico", cursive;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 3.6px;
}

.hero p,
.gallery-kicker,
.product-section > p {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
}

.hero p {
  letter-spacing: 2.4px;
}

.welcome-button {
  width: 151px;
  height: 41px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 41px;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  border: 3px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
}

.welcome-button:hover {
  color: #7EE0D9;
  background: #fff;
}

.idea-section {
  position: relative;
  padding: 90px 0 110px;
  overflow: hidden;
  background: var(--white);
}

.idea-wrap {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 480px minmax(220px, 1fr);
  align-items: center;
  gap: 47px;
}

.idea-photo {
  height: 586px;
  overflow: hidden;
  border-radius: 200px;
}

.idea-copy {
  max-width: none;
}

.eyebrow,
.flavor-section h2,
.product-section h2 {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 24px;
  font-weight: 400;
}

.idea-copy p {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 1.875;
  text-align: justify;
}

.idea-copy p + p {
  margin-top: 30px;
}

.story-section {
  min-height: 456px;
  display: flex;
  align-items: center;
  background: var(--aqua);
}

.story-inner {
  width: min(78vw, 993px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 111px 1fr;
  gap: 186px;
  align-items: center;
  color: var(--white);
}

.story-inner h2 {
  margin: 0;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 24px;
  font-weight: 400;
}

.story-inner p {
  margin: 0;
  max-width: 696px;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  line-height: 2.5;
}

.flavor-section {
  padding: 68px 32px 135px;
}

.flavor-section h2,
.product-section h2 {
  text-align: center;
}

.flavor-grid {
  width: min(95vw, 1215px);
  margin: 85px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 210px) minmax(320px, 498px);
  gap: 29px;
  justify-content: center;
}

.flavor-card {
  position: relative;
  min-height: 415px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 500px;
}

.flavor-card span {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  text-align: center;
  font-family: "Pacifico", cursive;
  font-size: 16px;
}

.flavor-card.energy {
  color: var(--aqua);
  background: var(--cream);
}

.flavor-card.mood {
  color: var(--cream);
  background: var(--orange);
}

.flavor-card.calm {
  color: var(--white);
  background: var(--aqua);
}

.flavor-card.depth span {
  width: 169px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: rgb(255 255 255 / 0.8);
  font-size: 24px;
  border-radius: 500px;
}

.flavor-card.depth img {
  position: absolute;
  inset: 0;
  border-radius: 100px;
}

.flavor-card.depth {
  border-radius: 100px;
}

.gallery-section {
  min-height: 920px;
  padding: 61px 8.1vw 52px;
  color: var(--white);
  background: var(--aqua);
}

.gallery-kicker {
  text-align: center;
  line-height: 1;
  letter-spacing: 3.2px;
}

.mini-gallery {
  margin-top: 66px;
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 193px));
  gap: 27px;
  justify-content: center;
}

.mini-gallery figure,
.wide-gallery figure {
  margin: 0;
  display: grid;
  grid-template-rows: auto 45px;
}

.mini-gallery figure {
  row-gap: 14px;
}

.wide-gallery figure {
  row-gap: 12px;
}

.mini-gallery img {
  height: auto;
  aspect-ratio: 1;
  border-radius: 50px;
}

figcaption {
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  font-family: "Noto Sans TC", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 3.2px;
  border: 3px solid var(--white);
  border-radius: 500px;
}

.mini-gallery figure:nth-child(2) figcaption,
.mini-gallery figure:nth-child(4) figcaption {
  color: var(--aqua);
  background: var(--white);
  border-color: var(--white);
}

.wide-gallery {
  margin: 31px auto 0;
  max-width: 1073px;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 524px));
  gap: 25px;
}

.wide-gallery img {
  height: 385px;
  border-radius: 50px;
}

.product-section {
  padding: 84px 32px 144px;
  text-align: center;
  background: var(--white);
}

.product-section > p {
  margin-top: 24px;
}

.product-section {
  margin-top: 9px;
}

.shop-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 30px;
  color: var(--ink);
  border: 3px solid var(--ink);
  background: transparent;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
}

.shop-button:hover {
  color: #fff;
  background: var(--ink);
}

.product-grid {
  width: min(95vw, 1215px);
  margin: 89px auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 385px));
  gap: 30px;
  justify-content: center;
}

.product-card {
  margin: 0;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  row-gap: 37px;
  text-align: center;
}

.product-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Sans TC", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.product-grid img {
  height: 724px;
  border-radius: 50px 50px 500px 500px;
}

.site-footer {
  position: relative;
  min-height: 301px;
  overflow: hidden;
  color: var(--white);
  background: var(--aqua);
}

.site-footer .footer-wave {
  position: absolute;
  z-index: 1;
  top: -1px;
  right: 0;
  left: 0;
  height: 36px;
  background: url("svg/footer-wave.svg") repeat-x top / 320px 36px;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 2;
  width: min(91vw, 1164px);
  min-height: 301px;
  margin: 0 auto;
  padding: 98px 0 62px;
  display: grid;
  grid-template-columns: 199px 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.footer-brand {
  align-self: center;
}

.footer-contact {
  margin: 0;
  display: grid;
  gap: 22px;
  font-style: normal;
  font-family: "Bai Jamjuree", "Noto Sans TC", sans-serif;
  font-size: 20px;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .site-header {
    height: auto;
    min-height: 110px;
    flex-wrap: wrap;
    padding-inline: 32px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 16px;
  }

  .idea-wrap {
    grid-template-columns: 1fr 1fr;
  }

  .idea-photo {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, 480px);
  }

  .story-inner {
    gap: 64px;
  }

  .flavor-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .mini-gallery {
    grid-template-columns: repeat(3, minmax(150px, 193px));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(190px, 1fr));
  }

  .product-grid img {
    height: 560px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 18px 20px 22px;
    gap: 20px;
  }

  .brand-name {
    font-size: 34px;
  }

  .brand-mark {
    width: 44px;
    height: 42px;
    transform: scale(0.84);
    transform-origin: left center;
  }

  .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .nav-links a {
    width: auto;
  }

  .hero {
    min-height: 620px;
    justify-items: center;
    padding: 96px 24px 110px;
    background-position: 38% center;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-wave {
    height: 36px;
    background-size: 240px 36px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .idea-section {
    padding: 72px 0 84px;
  }

  .idea-wrap,
  .story-inner,
  .wide-gallery,
  .product-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .idea-photo {
    height: 430px;
  }

  .story-section {
    min-height: auto;
    padding: 88px 0;
  }

  .story-inner {
    width: min(86vw, 520px);
    gap: 32px;
  }

  .story-inner p {
    line-height: 2.1;
  }

  .flavor-section {
    padding: 64px 20px 92px;
  }

  .flavor-grid {
    margin-top: 56px;
    grid-template-columns: 1fr;
  }

  .flavor-card {
    min-height: 260px;
  }

  .gallery-section {
    padding: 56px 20px 76px;
  }

  .mini-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .wide-gallery img {
    height: auto;
    aspect-ratio: 524 / 385;
  }

  .product-section {
    padding: 72px 20px 96px;
  }

  .product-grid {
    width: min(86vw, 385px);
    margin-top: 64px;
    row-gap: 64px;
  }

  .product-card {
    row-gap: 24px;
  }

  .product-card h3 {
    font-size: 20px;
  }

  .product-grid img {
    height: 620px;
  }

  .footer-inner {
    padding: 84px 0 54px;
    gap: 34px;
  }

  .site-footer .footer-wave {
    height: 28px;
    background-size: 240px 28px;
  }
}

.footer-inner {
  display: grid;
  grid-template-columns: 199px 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.footer-inner {
  display: grid;
  grid-template-columns: 199px 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.footer-contact {
  display: grid;
  gap: 22px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.contact-item img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 auto;
}

.contact-text {
  min-width: 0;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-contact {
    width: 100%;
    font-size: 17px;
  }

  .contact-item {
    align-items: flex-start;
  }

  .contact-text {
    width: 100%;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 22px;
  }

  .product-grid img {
    height: 560px;
  }
}
