:root {
  --pm-ink: #21191d;
  --pm-muted: #6f666a;
  --pm-cream: #f8f3ec;
  --pm-paper: #fffdf9;
  --pm-wine: #6f1238;
  --pm-wine-dark: #451022;
  --pm-blue: #dbeaf7;
  --pm-line: rgba(58, 36, 45, 0.12);
  --pm-radius-lg: 34px;
  --pm-radius-md: 22px;
  --pm-shadow: 0 28px 80px rgba(45, 28, 35, 0.1);
}

body.home {
  background-color: var(--pm-cream);
  background-image: radial-gradient(circle at 1px 1px, rgba(69, 16, 34, .032) .75px, transparent .8px);
  background-size: 22px 22px;
  color: var(--pm-ink);
  font-family: "Manrope", sans-serif;
}

.site-title a { display: inline-flex; align-items: center; gap: 10px; }
.pm-brand-icon { display: block; flex: 0 0 34px; width: 34px; height: 34px; object-fit: contain; }

.pm-home *, .pm-home *::before, .pm-home *::after { box-sizing: border-box; }
.pm-home { overflow: clip; }
.pm-home h1, .pm-home h2, .pm-home h3, .pm-home p { margin-top: 0; }
.pm-home a { color: inherit; text-decoration: none; }

.pm-hero,
.pm-paths,
.pm-foods,
.pm-manifesto,
.pm-tools {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.pm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  min-height: 580px;
  margin-top: 24px;
  padding: 22px;
  gap: 22px;
  background: var(--pm-wine-dark);
  border-radius: var(--pm-radius-lg);
  color: #fff;
  box-shadow: var(--pm-shadow);
}

.pm-hero__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(26px, 4vw, 54px);
}

.pm-eyebrow {
  margin-bottom: 22px;
  color: #9b315d;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.pm-hero .pm-eyebrow { color: #f3b8ce; }

.pm-hero h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #fff !important;
  font-size: clamp(48px, 4.4vw, 68px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}

.pm-hero__intro {
  max-width: 610px;
  margin-bottom: 34px;
  color: rgba(255,255,255,.76);
  font-size: 17px;
  line-height: 1.65;
}

.pm-search {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 7px 8px 7px 18px;
  background: #fff;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(20, 5, 11, .22);
}

.pm-search svg { width: 20px; fill: none; stroke: var(--pm-wine); stroke-width: 1.8; }
.pm-search input { width: 100%; min-width: 0; padding: 8px 0; border: 0; outline: 0; background: transparent; color: var(--pm-ink); font: inherit; }
.pm-search button, .pm-button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 13px;
  background: var(--pm-wine);
  color: #fff;
  font: 700 14px/1 "Manrope", sans-serif;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.pm-search button:hover, .pm-button:hover { transform: translateY(-2px); background: #8a1949; }

.pm-quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pm-quick-links a { padding: 8px 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: rgba(255,255,255,.84); font-size: 12px; }
.pm-quick-links a:hover { background: #fff; color: var(--pm-wine-dark); }

.pm-hero__visual { position: relative; width: 100%; min-width: 0; min-height: 536px; overflow: hidden; border-radius: 25px; background: var(--pm-blue); }
.pm-hero__visual > img { width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
.pm-hero__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 58%, rgba(20,13,16,.22)); pointer-events: none; }
.pm-hero__note { position: absolute; z-index: 2; right: 20px; bottom: 20px; width: min(250px, calc(100% - 40px)); padding: 15px 17px; border: 1px solid rgba(255,255,255,.65); border-radius: 16px; background: rgba(255,255,255,.84); color: var(--pm-ink); backdrop-filter: blur(12px); }
.pm-hero__note span, .pm-hero__note strong { display: block; }
.pm-hero__note span { margin-bottom: 4px; color: var(--pm-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.pm-hero__note strong { font-size: 14px; }

.pm-paths { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border: 1px solid var(--pm-line); border-radius: var(--pm-radius-md); background: var(--pm-paper); }
.pm-paths a { position: relative; display: grid; gap: 6px; min-height: 142px; padding: 24px; border-right: 1px solid var(--pm-line); transition: background .2s ease; }
.pm-paths a:last-child { border-right: 0; }
.pm-paths a:hover { background: #f3e8df; }
.pm-paths span { color: var(--pm-wine); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.pm-paths strong { align-self: end; font: 700 23px/1.15 "Plus Jakarta Sans", sans-serif; letter-spacing: -.035em; }
.pm-paths small { color: var(--pm-muted); font-size: 12px; }

.pm-foods, .pm-tools { padding-block: 120px; }
.pm-section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 64px; align-items: end; margin-bottom: 44px; }
.pm-section-heading h2, .pm-manifesto h2 { margin-bottom: 0; font: 700 clamp(40px, 4.2vw, 66px)/1.03 "Plus Jakarta Sans", sans-serif; letter-spacing: -.045em; text-wrap: balance; }
.pm-section-heading > p { max-width: 470px; margin-bottom: 6px; color: var(--pm-muted); font-size: 15px; line-height: 1.7; }

.pm-food-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pm-food-card > a { display: block; overflow: hidden; border: 1px solid var(--pm-line); border-radius: var(--pm-radius-md); background: var(--pm-paper); transition: transform .24s ease, box-shadow .24s ease; }
.pm-food-card > a:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(43,28,35,.1); }
.pm-food-card__image { display: grid; place-items: center; height: 220px; overflow: hidden; background: #eadfd5; color: var(--pm-wine); font: 700 72px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: -.06em; }
.pm-food-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pm-food-card > a:hover img { transform: scale(1.035); }
.pm-food-card__body { position: relative; min-height: 142px; padding: 22px; }
.pm-food-card h3 { margin: 14px 50px 0 0; font: 700 26px/1.15 "Plus Jakarta Sans", sans-serif; letter-spacing: -.035em; }
.pm-status { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pm-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pm-status--safe { color: #258a57; }
.pm-status--caution { color: #c88300; }
.pm-status--danger { color: #d44343; }
.pm-status--neutral { color: var(--pm-muted); }
.pm-food-card__arrow { position: absolute; right: 20px; bottom: 20px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--pm-line); border-radius: 50%; font-size: 18px; }
.pm-text-link { display: inline-flex; gap: 10px; margin-top: 30px; color: var(--pm-wine); font-size: 14px; font-weight: 800; }

.pm-manifesto { display: grid; grid-template-columns: .85fr 1.15fr; min-height: 620px; overflow: hidden; border-radius: var(--pm-radius-lg); background: var(--pm-wine-dark); color: #fff; }
.pm-manifesto__image { position: relative; display: grid; place-items: end center; min-height: 620px; background: var(--pm-blue); }
.pm-manifesto__image img { width: 85%; max-height: 96%; object-fit: contain; object-position: center bottom; }
.pm-manifesto h2 { color: #fff !important; }
.pm-manifesto__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(44px, 7vw, 100px); }
.pm-manifesto__copy > p:not(.pm-eyebrow) { max-width: 620px; margin: 30px 0; color: rgba(255,255,255,.76); line-height: 1.7; }
.pm-button--light { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; background: #fff; color: var(--pm-wine-dark) !important; }

.pm-tools { padding-bottom: 140px; }
.pm-tool-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px 56px; align-items: center; padding: clamp(30px, 5vw, 64px); border-radius: var(--pm-radius-lg); background: var(--pm-blue); }
.pm-tool-card__number { display: block; margin-bottom: 36px; color: var(--pm-wine); font-size: 12px; font-weight: 800; letter-spacing: .14em; }
.pm-tool-card h3 { margin-bottom: 14px; font: 700 clamp(32px, 3vw, 48px)/1.05 "Plus Jakarta Sans", sans-serif; letter-spacing: -.04em; }
.pm-tool-card p { max-width: 420px; margin-bottom: 0; color: var(--pm-muted); }
.pm-search--dark { box-shadow: none; }
.pm-legend { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pm-legend span { position: relative; padding-left: 14px; font-size: 12px; font-weight: 700; }
.pm-legend span::before { content: ""; position: absolute; left: 0; top: .45em; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pm-legend__safe { color: #258a57; }
.pm-legend__caution { color: #bd7900; }
.pm-legend__danger { color: #d44343; }

@media (max-width: 1024px) {
  .pm-hero { grid-template-columns: 1fr .88fr; min-height: 580px; }
  .pm-hero h1 { font-size: clamp(48px, 6vw, 66px); }
  .pm-hero__visual { min-height: 524px; }
  .pm-food-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .pm-brand-icon { flex-basis: 29px; width: 29px; height: 29px; }
  .pm-hero, .pm-paths, .pm-foods, .pm-manifesto, .pm-tools { width: min(100% - 24px, 640px); }
  .pm-hero { grid-template-columns: 1fr; min-height: 0; margin-top: 12px; padding: 16px; gap: 16px; border-radius: 25px; }
  .pm-hero > * { min-width: 0; }
  .pm-hero__copy { padding: 22px 8px 10px; }
  .pm-eyebrow { margin-bottom: 14px; font-size: 10px; }
  .pm-hero h1 { margin-bottom: 20px; font-size: clamp(42px, 13vw, 58px); line-height: .96; }
  .pm-hero__intro { margin-bottom: 24px; font-size: 15px; }
  .pm-search { grid-template-columns: 20px minmax(0, 1fr) auto; min-height: 58px; padding-left: 13px; }
  .pm-search button { min-height: 44px; padding-inline: 15px; }
  .pm-search input { font-size: 14px; }
  .pm-quick-links { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .pm-quick-links::-webkit-scrollbar { display: none; }
  .pm-quick-links a { flex: 0 0 auto; }
  .pm-hero__visual { min-height: 360px; }
  .pm-hero__note { right: 14px; bottom: 14px; }

  .pm-paths { grid-template-columns: 1fr 1fr; }
  .pm-paths a { min-height: 120px; padding: 18px; border-bottom: 1px solid var(--pm-line); }
  .pm-paths a:nth-child(2n) { border-right: 0; }
  .pm-paths a:nth-last-child(-n+2) { border-bottom: 0; }
  .pm-paths strong { font-size: 21px; }

  .pm-foods, .pm-tools { padding-block: 78px; }
  .pm-section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
  .pm-section-heading h2, .pm-manifesto h2 { font-size: clamp(38px, 11vw, 52px); }
  .pm-section-heading > p { margin-bottom: 0; font-size: 14px; }
  .pm-food-grid { grid-template-columns: 1fr; }
  .pm-food-card__image { height: 210px; }

  .pm-manifesto { grid-template-columns: 1fr; }
  .pm-manifesto__image { min-height: 370px; }
  .pm-manifesto__copy { padding: 42px 26px 48px; }

  .pm-tool-card { grid-template-columns: 1fr; padding: 28px 20px; }
  .pm-tool-card__number { margin-bottom: 22px; }
  .pm-legend { grid-column: 1; gap: 10px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .pm-home *, .pm-home *::before, .pm-home *::after { scroll-behavior: auto !important; transition: none !important; }
}
