:root{
  --ink: #2B3A2E;
  --ink-soft: #4A5A4C;
  --paper: #F7F1E2;
  --paper-card: #FFFDF7;
  --paper-line: #E4D9BE;
  --protein: #8B3A4A;
  --protein-soft: #F3E2E3;
  --lowcal: #6E8C63;
  --lowcal-soft: #E7EEDF;
  --hearty: #BE5A2E;
  --hearty-soft: #F4E4D5;
  --sweet: #C9932E;
  --sweet-soft: #F6E9D0;
  --plans: #3B6E71;
  --plans-soft: #DCE8E6;
  --pink: #C96A88;
  --cover-grey: #DEDCD6;
  --shadow: 0 2px 0 rgba(43,58,46,0.06), 0 10px 24px -12px rgba(43,58,46,0.25);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Work Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before{
  content:"";
  position: fixed;
  inset:0;
  pointer-events:none;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(43,58,46,0.05) 1px, transparent 0);
  background-size: 22px 22px;
  z-index: 0;
}

.wrap{ max-width: 1080px; margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

h1, h2, h3{ font-family: "Fraunces", serif; margin: 0; }

a{ color: inherit; }

.note{
  font-family: "Caveat", cursive;
  font-weight: 600;
}

/* ===== Header / cover page ===== */
header.cover{
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
}

.cover-inner{
  background: var(--cover-grey);
  color: var(--ink);
  border-radius: 22px;
  padding: 72px 48px 96px;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cover-inner::after{
  content:"";
  position:absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(43,58,46,0.06), transparent 70%);
}

.eyebrow{
  font-family: "Caveat", cursive;
  font-size: 1.4rem;
  color: var(--pink);
  display: inline-block;
  transform: rotate(-3deg);
  margin-bottom: 6px;
}

.cover-inner h1{
  font-family: "Playfair Display", serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cover-inner h1 a{ text-decoration:none; color:inherit; }

.cover-inner h1 em{
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
}

.cover-sub{
  max-width: 480px;
  margin-top: 22px;
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.stamp{
  position:absolute;
  right: 48px;
  bottom: 40px;
  width: 108px;
  height: 108px;
  border: 2px dashed rgba(43,58,46,0.3);
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  transform: rotate(8deg);
  font-family:"Caveat", cursive;
  font-size: 0.95rem;
  color: rgba(43,58,46,0.6);
  line-height:1.25;
  padding: 8px;
}

/* ===== Tab navigation styled like recipe box dividers ===== */
nav.tabs{
  margin-top: -34px;
  position: relative;
  z-index: 2;
  display:flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 0 12px;
}

nav.tabs a{
  text-decoration:none;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 22px 12px;
  border-radius: 10px 10px 4px 4px;
  box-shadow: var(--shadow);
  position: relative;
  top: 0;
  transition: top .15s ease;
}
nav.tabs a:hover{ top: -4px; }
nav.tabs a.active{ top: -4px; font-weight: 700; }

nav.tabs a.t-fit{ background: linear-gradient(90deg, var(--protein-soft) 50%, var(--lowcal-soft) 50%); color: var(--ink); }
nav.tabs a.t-hearty{ background: var(--hearty-soft); color: var(--hearty); }
nav.tabs a.t-sweet{ background: var(--sweet-soft); color: var(--sweet); }
nav.tabs a.t-plans{ background: var(--plans-soft); color: var(--plans); }

/* ===== Sections ===== */
section.entry{
  padding: 96px 0 20px;
  scroll-margin-top: 24px;
}

.entry-head{
  display:flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--paper-line);
  padding-bottom: 22px;
  margin-bottom: 44px;
}

.entry-head .tag{
  font-family:"Caveat", cursive;
  font-size: 1.25rem;
  display:block;
  margin-bottom: 4px;
}

.entry-head h2{
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
}

.entry-head p{
  max-width: 420px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 0;
}

#fit .tag{ color: var(--protein); }
#hearty .tag, #hearty .entry-head h2{ color: var(--hearty); }
#sweet .tag, #sweet .entry-head h2{ color: var(--sweet); }
#plans .tag, #plans .entry-head h2{ color: var(--plans); }
#week .tag{ color: var(--sweet); }
#recent .tag{ color: var(--plans); }
#about .tag{ color: var(--hearty); }

/* ===== Meal grid ===== */
.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

@media (max-width: 900px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px){
  .grid{ grid-template-columns: 1fr; }
}

.grid-2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
@media (max-width: 620px){
  .grid-2{ grid-template-columns: 1fr; }
}

.card{
  background: var(--paper-card);
  border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(var(--r, 0deg));
}
.card:nth-child(3n+1){ --r: -0.6deg; }
.card:nth-child(3n+2){ --r: 0.4deg; }
.card:nth-child(3n+3){ --r: -0.3deg; }

.photo-slot{
  aspect-ratio: 4 / 3;
  width: 100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 8px;
  border-bottom: 1px solid var(--paper-line);
  color: #9C9077;
  font-size: 0.82rem;
  text-align:center;
  padding: 10px;
}

#protein .photo-slot{ background: var(--protein-soft); }
#lowcal .photo-slot{ background: var(--lowcal-soft); }
#hearty .photo-slot{ background: var(--hearty-soft); }
#sweet .photo-slot{ background: var(--sweet-soft); }

.photo-slot svg{ width: 30px; height: 30px; opacity: 0.55; }

.photo-slot.placeholder{
  background: var(--paper-card);
  border: 2px dashed var(--paper-line);
}
.photo-slot.placeholder .note{ font-size: 1.1rem; color: #9C9077; }

.card-body{ padding: 18px 20px 22px; }

.card-body h3{
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.25;
}

.card-body .meta{
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.card-body .note{
  display:block;
  margin-top: 12px;
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.2;
}

.badge{
  display:inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.badge-protein{ background: var(--protein-soft); color: var(--protein); }
.badge-lowcal{ background: var(--lowcal-soft); color: var(--lowcal); }
.badge-both{ background: linear-gradient(90deg, var(--protein-soft) 50%, var(--lowcal-soft) 50%); color: var(--ink); }

.empty-grid{
  display:block;
  padding: 30px 0 10px;
}
.empty-note{
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  color: var(--ink-soft);
  margin: 0;
}

.washi{
  position:absolute;
  width: 64px; height: 20px;
  background: rgba(0,0,0,0.06);
}

/* ===== Meal of the Week (home) ===== */
.feature-card{
  background: var(--paper-card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display:grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 700px){
  .feature-card{ grid-template-columns: 1fr; }
}
.feature-card .photo-slot{ border-bottom:none; }
@media (min-width: 701px){
  .feature-card .photo-slot{ border-right: 1px solid var(--paper-line); height:100%; }
}
.feature-body{
  padding: 32px 34px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.feature-body h3{ font-size: 1.5rem; font-weight: 500; }
.feature-body .meta{ margin-top: 8px; font-size: 0.85rem; color: var(--ink-soft); }
.feature-body p.desc{ margin-top: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ===== Spin the Wheel (home) ===== */
.wheel-card{
  background: var(--paper-card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 48px;
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items:center;
}
@media (max-width: 760px){
  .wheel-card{ grid-template-columns: 1fr; padding: 36px 28px; justify-items:center; text-align:center; }
}

.wheel-stage{
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.wheel-chef{
  position: absolute;
  top: -94px;
  left: 50%;
  width: 96px;
  height: auto;
  transform: translateX(-50%);
  z-index: 3;
  animation: wheel-chef-bob 2.6s ease-in-out infinite;
  transform-origin: bottom center;
}
#chefArmRight{ transform-origin: 98.5px 58px; transform: rotate(18deg); transition: transform 0.3s ease; }
.wheel-chef.nudge #chefArmRight{ animation: wheel-arm-swipe 0.7s ease; }

.wheel-pointer{
  position:absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 20px solid var(--ink);
  z-index: 4;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

.wheel-disc{
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 6px solid var(--paper-card);
  box-shadow: var(--shadow);
  position: relative;
  background: conic-gradient(
    var(--protein) 0deg 45deg,
    var(--lowcal) 45deg 90deg,
    var(--hearty) 90deg 135deg,
    var(--sweet) 135deg 180deg,
    var(--plans) 180deg 225deg,
    var(--protein) 225deg 270deg,
    var(--lowcal) 270deg 315deg,
    var(--hearty) 315deg 360deg
  );
  transition: transform 4s cubic-bezier(0.15, 0.85, 0.25, 1);
}

.wheel-label{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  margin-left: -42px;
  margin-top: -16px;
  text-align: center;
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 0.68rem;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

.wheel-hub{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: 4px solid var(--paper-card);
  font-family: "Fraunces", serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 5;
  transition: transform 0.15s ease;
}
.wheel-hub:hover{ transform: translate(-50%, -50%) scale(1.05); }
.wheel-hub:disabled{ cursor: default; opacity: 0.85; }

.wheel-info p{ color: var(--ink-soft); line-height: 1.6; margin: 0 0 16px; }
.wheel-result{
  font-family: "Caveat", cursive;
  font-size: 1.5rem;
  color: var(--ink) !important;
  transition: opacity 0.2s ease;
}
.wheel-result a{ color: var(--pink); text-decoration: underline; }

@keyframes wheel-chef-bob{
  0%, 100%{ transform: translateX(-50%) translateY(0) rotate(0deg); }
  50%{ transform: translateX(-50%) translateY(-4px) rotate(-1.5deg); }
}
@keyframes wheel-arm-swipe{
  0%{ transform: rotate(18deg); }
  40%{ transform: rotate(70deg); }
  100%{ transform: rotate(18deg); }
}

@media (prefers-reduced-motion: reduce){
  .wheel-chef{ animation: none; }
  .wheel-disc{ transition: none; }
}

/* ===== About Me (home) ===== */
.about-grid{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items:center;
}
@media (max-width: 620px){
  .about-grid{ grid-template-columns: 1fr; }
}
.about-photo{
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--paper-card);
  box-shadow: var(--shadow);
  border: 2px dashed var(--paper-line);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#9C9077;
  font-size: 0.85rem;
  padding: 16px;
  overflow:hidden;
}
.about-photo img{ width:100%; height:100%; object-fit:cover; border-radius:50%; }
.about-text p{ color: var(--ink-soft); line-height: 1.65; margin: 0 0 14px; }
.about-text p:last-child{ margin-bottom: 0; }

.about-gallery{
  display:flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.about-gallery-item{
  width: 110px;
  height: 110px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(var(--r, 0deg));
  flex-shrink: 0;
}
.about-gallery-item:nth-child(1){ --r: -2deg; }
.about-gallery-item:nth-child(2){ --r: 1.5deg; }
.about-gallery-item:nth-child(3){ --r: -1deg; }
.about-gallery-item img{ width:100%; height:100%; object-fit:cover; display:block; }

.social-link{
  display:inline-flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--paper-card);
  box-shadow: var(--shadow);
  transition: transform .15s ease;
}
.social-link:hover{ transform: translateY(-2px); }
.social-link svg{ width: 18px; height: 18px; fill: currentColor; }

/* ===== Meal Plans / package section ===== */
#plans .entry-inner{
  background: var(--cover-grey);
  border-radius: 22px;
  padding: 56px 48px 60px;
  box-shadow: var(--shadow);
}

#plans .entry-head{
  border-bottom-color: rgba(43,58,46,0.15);
}
#plans .entry-head h2{ color: var(--ink); }
#plans .entry-head .tag{ color: var(--pink); }
#plans .entry-head p{ color: var(--ink-soft); }

.tier-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-bottom: 56px;
  align-items: stretch;
}

.tier-card{
  background: var(--paper-card);
  border: 1px solid var(--paper-line);
  border-radius: 14px;
  padding: 28px 24px;
  color: var(--ink);
  display:flex;
  flex-direction:column;
}

.tier-card.featured{
  background: var(--plans);
  border-color: var(--plans);
  color: var(--paper);
  transform: translateY(-8px);
  box-shadow: 0 16px 30px -14px rgba(0,0,0,0.5);
}

.tier-card .kicker{
  font-family:"Caveat", cursive;
  font-size: 1.1rem;
  color: var(--pink);
}
.tier-card.featured .kicker{ color: #F7F1E2; }

.tier-card h3{
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: 4px;
}

.tier-price{
  font-family: "Fraunces", serif;
  font-size: 2.1rem;
  margin-top: 14px;
}
.tier-price span{
  font-family: "Work Sans", sans-serif;
  font-size: 0.85rem;
  opacity: 0.7;
  font-weight: 400;
}

.tier-card p.desc{
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 12px;
}
.tier-card.featured p.desc{ color: #EAF1F0; }

.tier-list{
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.9;
  flex-grow: 1;
}
.tier-list li{ padding-left: 20px; position: relative; }
.tier-list li::before{
  content: "✓";
  position: absolute; left: 0;
  color: var(--pink);
}
.tier-card.featured .tier-list li::before{ color: #F7F1E2; }

.tier-cta{
  margin-top: 22px;
  display:inline-block;
  text-align:center;
  text-decoration:none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
}
.tier-card.featured .tier-cta{
  background: var(--ink);
  color: var(--paper);
}

.tier-card.enquiry{
  align-items:center;
  text-align:center;
  justify-content:center;
  border-style: dashed;
  background: rgba(43,58,46,0.02);
}
.tier-card.enquiry p.desc{ margin-top: 10px; }
.tier-card.enquiry .tier-cta{ margin-top: 24px; word-break: break-all; }

.included-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid rgba(43,58,46,0.15);
  padding-top: 36px;
}
@media (max-width: 900px){ .included-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .included-grid{ grid-template-columns: 1fr; } }

.included-item h4{
  font-family:"Fraunces", serif;
  font-weight: 500;
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0 0 6px;
}
.included-item p{
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0;
}

/* ===== Footer ===== */
footer{
  margin-top: 90px;
  padding: 54px 0 60px;
  border-top: 2px solid var(--paper-line);
}

footer .foot-inner{
  display:flex;
  justify-content: space-between;
  align-items:center;
  flex-wrap: wrap;
  gap: 18px;
}

footer p{ margin:0; color: var(--ink-soft); font-size: 0.92rem; }

footer .sign{
  font-family:"Caveat", cursive;
  font-size: 1.6rem;
  color: var(--ink);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  nav.tabs a{ transition:none; }
}
