/* =========================================================================
   Two Hungry People
   Palette: sand 222,196,162 | rose 203,124,149 | grey 161,161,165
            green 120,160,90 | lavender 190,185,223
   Fonts:   Fredoka (headings) | Caveat (accent) | Source Sans 3 (body)
   ========================================================================= */

:root {
  /* brand palette, straight from the mood board */
  --sand:      rgb(222, 196, 162);
  --rose:      rgb(203, 124, 149);
  --grey:      rgb(161, 161, 165);
  --green:     rgb(120, 160, 90);
  --lavender:  rgb(190, 185, 223);

  /* derived tints & shades */
  --sand-50:   #faf4ec;
  --sand-100:  #f3e8da;
  --sand-200:  #e9d8c3;
  --sand-600:  #b4946a;
  --rose-100:  #f6e4ea;
  --rose-600:  #b05c78;
  --rose-700:  #8e4860;
  --green-100: #e5efdc;
  --green-700: #5c7f43;
  --lav-100:   #eceaf8;
  --lav-700:   #6f68a8;

  --ink:       #2f2a26;
  --ink-soft:  #6b625a;
  --line:      #e7dccd;
  --card:      #ffffff;
  --bg:        var(--sand-50);

  --radius:      18px;
  --radius-sm:   10px;
  --radius-pill: 999px;
  --shadow:      0 2px 4px rgba(47, 42, 38, .04), 0 12px 28px rgba(47, 42, 38, .07);
  --shadow-sm:   0 1px 2px rgba(47, 42, 38, .05), 0 4px 12px rgba(47, 42, 38, .05);

  --font-head: "Fredoka", "Trebuchet MS", sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1120px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rose-600); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.stack > * + * { margin-top: 1rem; }
.hand { font-family: var(--font-hand); font-size: 1.45em; line-height: 1.2; color: var(--rose-600); }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 244, 236, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0;
}
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__mark {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; display: block; flex: none;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-head); font-weight: 600; font-size: 1.15rem; }
.brand__sub  { font-family: var(--font-hand); font-size: 1.05rem; color: var(--rose-600); }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  padding: .5rem .85rem; border-radius: var(--radius-pill);
  text-decoration: none; color: var(--ink); font-weight: 500;
}
.nav a:hover { background: var(--sand-100); }
.nav a.is-active { background: var(--rose); color: #fff; }

.nav-toggle {
  display: none; border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius-sm); padding: .5rem .7rem; cursor: pointer;
  font-size: 1.1rem; line-height: 1;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 100% .75rem auto .75rem;
    flex-direction: column; align-items: stretch;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: .5rem; box-shadow: var(--shadow); display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem .9rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.35rem; border-radius: var(--radius-pill);
  font-family: var(--font-head); font-weight: 500; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--rose); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--rose-600); color: #fff; }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--sand-100); color: var(--ink); }
.btn--sm { padding: .4rem .9rem; font-size: .9rem; }
.btn--danger { background: #fff; border-color: var(--rose); color: var(--rose-700); }
.btn--danger:hover { background: var(--rose); color: #fff; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 30rem at 12% -10%, var(--rose-100), transparent 60%),
    radial-gradient(48rem 26rem at 92% 0%, var(--lav-100), transparent 62%),
    var(--sand-50);
  border-bottom: 1px solid var(--line);
}
.hero__inner { padding: clamp(3rem, 8vw, 5.5rem) 0; max-width: 46rem; }
.hero h1 { margin-bottom: .3em; }
.hero__lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; }
.hero__eyebrow { font-family: var(--font-hand); font-size: 1.7rem; color: var(--rose-600); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem; }
.stat__value { font-family: var(--font-head); font-size: 2rem; line-height: 1; }
.stat__label { font-size: .9rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- score chips & dials ---------- */
.score {
  display: inline-flex; align-items: baseline; gap: .12rem;
  font-family: var(--font-head); font-weight: 600;
  padding: .3rem .75rem; border-radius: var(--radius-pill);
  background: var(--sand-100); color: var(--ink);
}
.score small { font-weight: 400; font-size: .7em; opacity: .65; }
.score--great { background: var(--green-100); color: var(--green-700); }
.score--good  { background: var(--lav-100);   color: var(--lav-700); }
.score--ok    { background: var(--sand-200);  color: #7a5c33; }
.score--poor  { background: var(--rose-100);  color: var(--rose-700); }
.score--none  { background: #f1f0ef; color: var(--grey); }
.score--lg { font-size: 1.6rem; padding: .35rem 1rem; }

.dial { --pct: 0; width: 84px; height: 84px; position: relative; flex: none; }
.dial__ring {
  width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(var(--dial-colour, var(--rose)) calc(var(--pct) * 1%), var(--sand-100) 0);
  display: grid; place-items: center;
}
.dial__ring::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--card);
}
.dial__value {
  position: relative; z-index: 1;
  font-family: var(--font-head); font-weight: 600; font-size: 1.3rem;
}
.dial--great { --dial-colour: var(--green); }
.dial--good  { --dial-colour: var(--lavender); }
.dial--ok    { --dial-colour: var(--sand); }
.dial--poor  { --dial-colour: var(--rose); }
.dial--none  { --dial-colour: var(--grey); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media {
  aspect-ratio: 16 / 10; background: var(--sand-100); position: relative;
  display: grid; place-items: center; overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media .placeholder { color: var(--sand-600); opacity: .55; display: block; }
.plate-mark { display: block; }
.card__score { position: absolute; top: .75rem; right: .75rem; box-shadow: var(--shadow-sm); }
.card__body { padding: 1.1rem 1.25rem 1.35rem; display: flex; flex-direction: column; flex: 1; gap: .4rem; }
.card__title { margin: 0; font-size: 1.25rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--rose-600); }
.card__meta { font-size: .9rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; gap: .5rem; }
.card__meta span + span::before { content: "\00b7"; margin-right: .5rem; }
.card__summary { font-size: .97rem; color: var(--ink-soft); flex: 1; }
.card__mini { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .4rem; }

.tag {
  font-size: .78rem; padding: .18rem .6rem; border-radius: var(--radius-pill);
  background: var(--lav-100); color: var(--lav-700); font-weight: 600;
  letter-spacing: .01em; white-space: nowrap;
}
.tag--sand { background: var(--sand-100); color: #7a5c33; }
.tag--rose { background: var(--rose-100); color: var(--rose-700); }
.tag--green { background: var(--green-100); color: var(--green-700); }

/* featured review strip */
.feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.feature__media { background: var(--sand-100); min-height: 300px; display: grid; place-items: center; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; gap: .6rem; }
@media (max-width: 800px) { .feature { grid-template-columns: 1fr; } .feature__media { min-height: 200px; } }

/* ---------- category breakdown (accordion) ---------- */
.breakdown { display: grid; gap: .75rem; }
.cat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.cat__head {
  display: flex; align-items: center; gap: 1rem; width: 100%;
  padding: 1rem 1.15rem; background: none; border: 0; cursor: pointer;
  text-align: left; font: inherit; color: inherit;
}
.cat__head:hover { background: var(--sand-50); }
.cat__icon { font-size: 1.5rem; flex: none; }
.cat__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.cat__title { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }
.cat__blurb { display: block; font-size: .85rem; color: var(--ink-soft); }
.cat__grow { flex: 1; }
.cat__chevron { transition: transform .2s ease; color: var(--grey); flex: none; }
.cat.is-open .cat__chevron { transform: rotate(180deg); }
/* max-height rather than the 0fr/1fr grid trick: fr interpolation is patchy,
   and a category never gets anywhere near this tall. */
.cat__panel { overflow: hidden; max-height: 0; transition: max-height .28s ease; }
.cat.is-open .cat__panel { max-height: 40rem; }
.cat__subs { padding: 0 1.15rem 1.15rem; display: grid; gap: .6rem; }

.sub {
  display: grid; grid-template-columns: minmax(9rem, 14rem) 1fr auto;
  align-items: center; gap: .9rem;
}
.sub__label { font-size: .95rem; }
.sub__bar { display: block; height: 9px; border-radius: var(--radius-pill); background: var(--sand-100); overflow: hidden; }
.sub__fill { display: block; height: 100%; border-radius: inherit; background: var(--rose); width: 0; }
.sub__fill--great { background: var(--green); }
.sub__fill--good  { background: var(--lavender); }
.sub__fill--ok    { background: var(--sand-600); }
.sub__fill--poor  { background: var(--rose); }
.sub__score { font-family: var(--font-head); font-weight: 600; font-size: .95rem; min-width: 2.6rem; text-align: right; }
.sub--empty { opacity: .45; }
@media (max-width: 560px) {
  .sub { grid-template-columns: 1fr auto; }
  .sub__bar { grid-column: 1 / -1; order: 3; }
}

/* ---------- review detail ---------- */
.review-hero {
  background: linear-gradient(180deg, var(--rose-100), var(--sand-50));
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
}
.review-hero__top { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.review-hero__meta { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; color: var(--ink-soft); font-size: .95rem; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .review-layout { grid-template-columns: 1fr; } }
.prose p { font-size: 1.08rem; }
.prose { max-width: 40rem; }

.says { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.say {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.say__who { font-family: var(--font-hand); font-size: 1.5rem; color: var(--rose-600); line-height: 1; margin-bottom: .35rem; }
.say--h .say__who { color: var(--lav-700); }
.say p { margin: 0; font-size: .98rem; color: var(--ink-soft); }

.sidecard {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.sidecard + .sidecard { margin-top: 1.25rem; }
.sidecard h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); }
.sidecard dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; font-size: .95rem; }
.sidecard dt { color: var(--ink-soft); }
.sidecard dd { margin: 0; text-align: right; font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.gallery img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* ---------- filters ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .85rem 1rem; margin-bottom: 2rem;
}
.filters input[type="search"], .filters select {
  font: inherit; padding: .5rem .8rem; border: 1px solid var(--line);
  border-radius: var(--radius-pill); background: var(--sand-50); color: var(--ink);
  width: auto;  /* override the full-width default used elsewhere in forms */
}
.filters input[type="search"] { min-width: 15rem; flex: 1; }
.chiprow { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font-size: .85rem; padding: .3rem .8rem; border-radius: var(--radius-pill);
  background: var(--sand-100); color: var(--ink); text-decoration: none; border: 1px solid transparent;
}
.chip:hover { border-color: var(--sand-600); color: var(--ink); }
.chip.is-active { background: var(--rose); color: #fff; }

/* ---------- series ---------- */
.series-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .75rem;
}
.progress { height: 12px; border-radius: var(--radius-pill); background: var(--sand-100); overflow: hidden; }
.progress__fill { height: 100%; background: linear-gradient(90deg, var(--rose), var(--lavender)); border-radius: inherit; }
.leaderboard { display: grid; gap: .5rem; }
.lb-row {
  display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: .9rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .7rem .9rem; text-decoration: none; color: inherit;
}
.lb-row:hover { border-color: var(--rose); color: inherit; }
.lb-rank { font-family: var(--font-head); font-size: 1.15rem; color: var(--grey); text-align: center; }
.lb-row:nth-child(1) .lb-rank { color: var(--rose-600); }
.lb-name { font-weight: 600; }
.lb-sub { font-size: .85rem; color: var(--ink-soft); }

/* ---------- forms (public contact) ---------- */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-soft); font-weight: 400; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"],
input[type="number"], input[type="search"], textarea, select {
  font: inherit; width: 100%; padding: .65rem .85rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink);
}
textarea { min-height: 9rem; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--rose); }

.notice { padding: .9rem 1.1rem; border-radius: var(--radius-sm); border: 1px solid; }
.notice--ok { background: var(--green-100); border-color: var(--green); color: var(--green-700); }
.notice--error { background: var(--rose-100); border-color: var(--rose); color: var(--rose-700); }

.honeypot { position: absolute; left: -9999px; }

/* ---------- panels / callouts ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-sm);
}
.panel--sand { background: var(--sand-100); border-color: var(--sand-200); }
.panel--lav  { background: var(--lav-100);  border-color: var(--lavender); }

.empty {
  text-align: center; padding: 3rem 1rem; color: var(--ink-soft);
  border: 2px dashed var(--line); border-radius: var(--radius);
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: 4rem; background: var(--ink); color: var(--sand-100);
  padding: 3rem 0 2rem;
}
.site-footer a { color: var(--sand); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; color: var(--sand); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.site-footer__bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between;
  font-size: .88rem; color: var(--grey);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- reviews map strip ---------- */
.map-strip {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-sm);
  overflow: hidden; margin-bottom: 1.5rem;
}
.map-strip__toggle {
  display: flex; align-items: center; gap: .75rem; width: 100%;
  padding: .95rem 1.15rem; background: none; border: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.map-strip__toggle:hover { background: var(--sand-50); }
.map-strip__icon { font-size: 1.2rem; flex: none; }
.map-strip__label { font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.map-strip__count {
  font-size: .8rem; padding: .18rem .6rem; border-radius: var(--radius-pill);
  background: var(--lav-100); color: var(--lav-700); font-weight: 600;
}
.map-strip__chevron { margin-left: auto; color: var(--grey); transition: transform .2s ease; flex: none; }
.map-strip.is-open .map-strip__chevron { transform: rotate(180deg); }

.map-strip__body { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.map-strip.is-open .map-strip__body { max-height: 60vh; }

.reviews-map {
  height: clamp(320px, 55vh, 520px);
  border-top: 1px solid var(--line);
  background: var(--sand-100);
  z-index: 0;                    /* keep tiles under the sticky header */
}

.map-pop { display: grid; gap: .15rem; font-family: var(--font-body); min-width: 9rem; }
.map-pop__score {
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
  padding: .1rem .5rem; border-radius: var(--radius-pill);
  background: var(--sand-100); justify-self: start;
}
.map-pop__score--great { background: var(--green-100); color: var(--green-700); }
.map-pop__score--good  { background: var(--lav-100);   color: var(--lav-700); }
.map-pop__score--ok    { background: var(--sand-200);  color: #7a5c33; }
.map-pop__score--poor  { background: var(--rose-100);  color: var(--rose-700); }
.map-pop__name { font-weight: 700; font-size: 1.02rem; color: var(--ink) !important; }
.map-pop__meta, .map-pop__series { font-size: .85rem; color: var(--ink-soft); }
.map-pop__series { color: var(--rose-600); }
.leaflet-popup-content { margin: .7rem .9rem; }
.leaflet-container { font-family: var(--font-body); }
