
:root {
  --ink: #171717;
  --muted: #777;
  --cream: #f8f5f1;
  --coffee: #e9c79f;
  --white: #fff;
  --shadow: 0 8px 28px rgba(0, 0, 0, .07);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: #fff;
  background-image: url("assets/space-bg.svg");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
  background-attachment: fixed;
  font-family: 'DM Sans', Arial, sans-serif;
}

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

.topbar {
  height: 92px;
  max-width: 1240px;
  margin: auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  cursor: pointer;
  width: 48px;
  text-align: center;
}

.cup-icon {
  font-size: 30px;
}

.brand {
  height: 76px;
  display: flex;
  align-items: center;
}

.brand img {
  width: 160px;
  height: 76px;
  object-fit: contain;
}

main {
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
}

.hero {
  min-height: 350px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 38px 5%;
  border-radius: 26px;
  background: linear-gradient(105deg, #fff 0%, #fff 45%, #f7f4f1 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 58%;
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: #9b8068;
}

h1 {
  margin: 8px 0 4px;
  font-size: clamp(42px, 6vw, 76px);
  letter-spacing: -3px;
  line-height: 1.05;
}

.hero-copy p {
  margin: 14px 0 0;
  font-size: clamp(19px, 2.5vw, 30px);
}

.hero-line {
  display: block;
  width: 190px;
  height: 4px;
  margin: 22px 0 0 90px;
  border-radius: 50%;
  background: var(--coffee);
  transform: rotate(-3deg);
}

.hero-image {
  position: absolute;
  right: 3%;
  bottom: -42px;
  width: 43%;
  height: 390px;
  object-fit: cover;
  object-position: center;
  border-radius: 48% 48% 0 0;
  mask-image: linear-gradient(to bottom, #000 75%, transparent 100%);
}

.menu-section {
  padding: 58px 0 34px;
}

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

h2 {
  margin: 6px 0 0;
  font-size: 30px;
  letter-spacing: -.8px;
}

.categories {
  display: flex;
  gap: 12px;
  margin: 24px 0 28px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: none;
}

.categories::-webkit-scrollbar {
  display: none;
}

.category {
  flex: 1 0 135px;
  border: 0;
  border-radius: 40px;
  padding: 15px 20px;
  background: #f1eeee;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
  cursor: pointer;
  transition: .2s ease;
}

.category.active {
  background: var(--ink);
  color: var(--white);
}

.category span {
  margin-left: 6px;
}

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

.menu-item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 164px;
  padding: 13px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
  border: 1px solid #f4f1ee;
}

.menu-item img {
  width: 142px;
  height: 136px;
  flex: 0 0 142px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--cream);
}

.item-info {
  min-width: 0;
}

.item-info h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.item-info p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.price {
  display: inline-block;
  padding: 7px 15px;
  border-radius: 30px;
  background: #f8e6d0;
  font-weight: 800;
}

.review-section {
  padding: 34px 0 58px;
}

.review-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 24px;
  text-align: center;
  border-radius: 22px;
  background: #fbf8f4;
}

.review-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.visit-icon,
.review-icon {
  font-size: 30px;
}

.review-card h2 {
  font-size: 25px;
}

.review-card p {
  color: var(--muted);
  line-height: 1.6;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  padding: 13px 20px;
  border-radius: 30px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.secondary-button {
  background: #e8c69e;
  color: var(--ink);
}

.stars {
  color: #e4a52b;
  font-size: 27px;
  letter-spacing: 5px;
}

.review-card small {
  display: block;
  max-width: 340px;
  margin: 14px auto 0;
  color: #888;
  line-height: 1.5;
}

footer {
  padding: 25px 20px 32px;
  text-align: center;
  border-top: 1px solid #f1eeee;
  background: rgba(255, 255, 255, .92);
}

footer img {
  width: 100px;
  height: 58px;
  object-fit: contain;
}

footer p {
  margin: 4px 0 8px;
  font-size: 18px;
  font-style: italic;
}

footer span {
  color: #999;
  font-size: 12px;
}

/* PeterParker Credit */
.made-by {
  width: 100%;
  padding: 12px 10px;
  text-align: center;
  font-size: 11px;
  color: #888;
  background: #fff;
  border-top: 1px solid #eee;
  letter-spacing: .5px;
  font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 760px) {
  body {
    background-size: 100% auto;
    background-attachment: scroll;
  }

  .topbar {
    height: 78px;
    padding: 8px 16px;
  }

  .brand {
    height: 65px;
  }

  .brand img {
    width: 128px;
    height: 65px;
  }

  main {
    padding: 0 16px;
  }

  .hero {
    min-height: 300px;
    padding: 28px 22px;
    border-radius: 20px;
    align-items: flex-start;
  }

  .hero-copy {
    width: 100%;
    padding-top: 15px;
  }

  h1 {
    max-width: 310px;
    font-size: 48px;
    letter-spacing: -2px;
  }

  .hero-copy p {
    max-width: 240px;
    font-size: 19px;
  }

  .hero-image {
    width: 58%;
    height: 210px;
    right: -5%;
    bottom: -3px;
    opacity: .95;
  }

  .hero-line {
    width: 125px;
    margin-left: 40px;
  }

  .menu-section {
    padding-top: 42px;
  }

  h2 {
    font-size: 27px;
  }

  .category {
    flex: 0 0 auto;
    padding: 13px 17px;
    font-size: 15px;
  }

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

  .menu-item {
    min-height: 130px;
    gap: 13px;
    padding: 10px;
    border-radius: 18px;
  }

  .menu-item img {
    width: 112px;
    height: 112px;
    flex-basis: 112px;
    border-radius: 13px;
  }

  .item-info h3 {
    font-size: 17px;
  }

  .item-info p {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .price {
    font-size: 14px;
    padding: 6px 12px;
  }

  .review-section {
    padding: 25px 0 42px;
  }

  .review-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .review-actions a {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .menu-item img {
    width: 94px;
    height: 104px;
    flex-basis: 94px;
  }

  .item-info h3 {
    font-size: 15px;
  }
}
