:root {
  --forest: #173f35;
  --forest-dark: #0e2b24;
  --coral: #e76f51;
  --gold: #e7b75d;
  --cream: #f7f1e7;
  --coffee: #6b4937;
  --ink: #18332c;
  --muted: #65766f;
  --white: #fffdf9;
  --line: rgba(23, 63, 53, 0.15);
  --wrap: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
}

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

button {
  font: inherit;
}

.wrap {
  width: min(calc(100% - 40px), var(--wrap));
  margin: 0 auto;
}

.header {
  position: fixed;
  z-index: 50;
  top: 0;
  width: 100%;
  color: var(--white);
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.header.is-scrolled {
  color: var(--ink);
  background: rgba(247, 241, 231, 0.96);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-seed {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.brand-seed::before,
.brand-seed::after {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50% 50% 45% 45%;
  content: "";
  transform: translateY(-50%) rotate(28deg);
}

.brand-seed::before {
  left: 8px;
}

.brand-seed::after {
  right: 8px;
  transform: translateY(-50%) rotate(-28deg);
}

.brand > span:last-child {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
}

.brand small {
  margin-top: 3px;
  opacity: 0.7;
  font-size: 8px;
  letter-spacing: 0.14em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}

.nav a:not(.nav-pill) {
  position: relative;
}

.nav a:not(.nav-pill)::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-pill {
  padding: 9px 16px;
  color: var(--forest-dark);
  background: var(--gold);
  border-radius: 999px;
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  color: currentColor;
  background: transparent;
  border: 0;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: 780px;
  overflow: hidden;
  color: var(--white);
}

.hero-photo,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-photo {
  background: url("../img/hero-coffee.jpg") center / cover no-repeat;
  animation: slow-zoom 14s ease-out both;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(11, 38, 31, 0.9), rgba(11, 38, 31, 0.52) 50%, rgba(11, 38, 31, 0.05)),
    linear-gradient(0deg, rgba(11, 38, 31, 0.32), transparent 55%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 780px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 80px;
}

.hero-label {
  display: inline-flex;
  padding: 8px 13px;
  color: #f8d993;
  border: 1px solid rgba(248, 217, 147, 0.45);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero h1 {
  max-width: 680px;
  margin: 24px 0 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 68px;
  font-weight: 500;
  line-height: 1.15;
}

.hero p {
  max-width: 590px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  gap: 13px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-coral {
  color: var(--white);
  background: var(--coral);
}

.button-coral:hover {
  background: #f17e60;
}

.button-transparent {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.hero-note {
  position: absolute;
  right: 0;
  bottom: 72px;
  display: grid;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}

.hero-note span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.hero-note strong {
  font-size: 16px;
}

.marquee {
  color: var(--forest-dark);
  background: var(--gold);
}

.marquee-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  font-family: Georgia, "Songti SC", serif;
  font-size: 15px;
}

.marquee i {
  width: 4px;
  height: 4px;
  flex: 0 0 auto;
  background: currentColor;
  border-radius: 50%;
  opacity: 0.5;
}

.section {
  padding: 112px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #f8d993;
}

.menu-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  align-items: end;
  gap: 60px;
  margin-bottom: 52px;
}

.menu-heading h2,
.space-copy h2,
.story-copy h2,
.visit-main h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: 43px;
  font-weight: 500;
  line-height: 1.22;
}

.menu-heading > p {
  margin: 0;
  color: var(--muted);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.menu-card {
  position: relative;
  min-height: 420px;
  padding: 27px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-card-dark {
  color: var(--white);
  background: var(--forest);
  border-color: var(--forest);
}

.menu-card-coral {
  color: var(--white);
  background: var(--coral);
  border-color: var(--coral);
}

.menu-no {
  font-family: Georgia, serif;
  font-size: 12px;
  opacity: 0.7;
}

.cup-illustration {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 44px auto 42px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.cup-illustration::before {
  position: absolute;
  top: 38px;
  left: 28px;
  width: 52px;
  height: 38px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 22px 22px;
  content: "";
}

.cup-illustration::after {
  position: absolute;
  top: 46px;
  right: 17px;
  width: 22px;
  height: 22px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 0 50% 50% 0;
  content: "";
}

.cup-illustration span {
  position: absolute;
  top: 23px;
  left: 39px;
  width: 32px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 7px 0 rgba(255, 255, 255, 0.36);
}

.cup-light span {
  box-shadow: 0 7px 0 rgba(23, 63, 53, 0.25);
}

.dessert-illustration {
  position: relative;
  width: 118px;
  height: 118px;
  margin: 44px auto 42px;
  border: 2px solid currentColor;
  border-radius: 8px;
}

.dessert-illustration::before,
.dessert-illustration::after {
  position: absolute;
  top: 30px;
  width: 45px;
  height: 58px;
  background: currentColor;
  border-radius: 45px 45px 8px 8px;
  content: "";
  opacity: 0.18;
}

.dessert-illustration::before {
  left: 12px;
}

.dessert-illustration::after {
  right: 12px;
}

.menu-card h3 {
  margin: 0 0 9px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 22px;
  font-weight: 600;
}

.menu-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.menu-card-dark p,
.menu-card-coral p {
  color: rgba(255, 255, 255, 0.7);
}

.price {
  position: absolute;
  right: 27px;
  bottom: 24px;
  left: 27px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 800;
}

.menu-card-dark .price,
.menu-card-coral .price {
  border-color: rgba(255, 255, 255, 0.2);
}

.menu-tip {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.space-section {
  background: var(--white);
}

.space-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 78px;
}

.space-copy > p:not(.eyebrow) {
  color: var(--muted);
}

.space-copy ul {
  display: grid;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.space-copy li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.space-copy li span {
  color: var(--coral);
  font-family: Georgia, serif;
  font-size: 12px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--coral);
  font-weight: 800;
}

.space-photo {
  position: relative;
}

.space-photo img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.space-photo > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  color: var(--white);
  background: rgba(14, 43, 36, 0.84);
  border-radius: 999px;
  font-size: 11px;
  backdrop-filter: blur(8px);
}

.story-section {
  color: var(--white);
  background: var(--forest-dark);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 76px;
}

.story-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

.story-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.66);
}

.story-quote {
  display: grid;
  margin-top: 32px;
  padding: 22px 0 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--gold);
}

.story-quote strong {
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
  font-weight: 500;
}

.story-quote span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.visit-section {
  background:
    radial-gradient(circle at 90% 20%, rgba(231, 183, 93, 0.25), transparent 28%),
    var(--cream);
}

.visit-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 60px;
  padding: 58px;
  color: var(--white);
  background: var(--forest);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(14, 43, 36, 0.16);
}

.visit-main p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.66);
}

.visit-info {
  display: grid;
  gap: 15px;
}

.visit-info > div {
  display: grid;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.visit-info span {
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
}

.visit-info strong {
  overflow-wrap: anywhere;
}

.visit-info .button {
  justify-self: start;
  margin-top: 6px;
}

.footer {
  color: rgba(255, 255, 255, 0.64);
  background: #0a211b;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 32px;
}

.footer-grid strong {
  color: var(--white);
  font-family: Georgia, "Songti SC", serif;
  font-size: 18px;
}

.footer-grid p {
  max-width: 520px;
  margin: 9px 0 0;
  font-size: 13px;
}

.footer-nav {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 13px;
}

.footer-bottom {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.footer-bottom a {
  color: inherit;
}

@keyframes slow-zoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

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

  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .space-grid,
  .story-grid,
  .visit-card {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .space-photo {
    order: -1;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: min(calc(100% - 28px), var(--wrap));
  }

  .header-inner {
    min-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    display: grid;
    padding: 24px 22px 30px;
    color: var(--ink);
    background: var(--cream);
    box-shadow: 0 18px 32px rgba(14, 43, 36, 0.14);
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-pill {
    justify-self: start;
  }

  .hero,
  .hero-inner {
    min-height: 720px;
  }

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

  .hero p {
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }

  .hero-note {
    right: auto;
    bottom: 42px;
    left: 14px;
  }

  .marquee-inner {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
  }

  .section {
    padding: 78px 0;
  }

  .menu-heading {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 34px;
  }

  .menu-heading h2,
  .space-copy h2,
  .story-copy h2,
  .visit-main h2 {
    font-size: 33px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .menu-card {
    min-height: 390px;
  }

  .visit-card {
    padding: 34px 25px;
  }

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

  .footer-nav {
    justify-content: flex-start;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
