/* Mama's Sause — shared atoms */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain overlay — fixed, non-interactive, on top of everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  opacity: .35;
  mix-blend-mode: multiply;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}

/* centered content column */
.ms-page {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

/* ---------- atoms ---------- */
.ms-script  { font-family: var(--font-script); font-weight: 700; line-height: .9; }
.ms-eyebrow { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; font-weight: 600; color: var(--gold); }
.ms-eyebrow.on-light { color: var(--accent-2); }
.ms-wm    { font-family: var(--font-script); font-weight: 700; color: var(--accent-2); line-height: 1; }
.ms-enjoy { font-family: var(--font-script); font-weight: 700; color: var(--accent-2); line-height: .78; }
.ms-back  {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: var(--ink-2); background: none; border: none; cursor: pointer;
  padding: 6px 8px 6px 0; text-decoration: none;
}

/* buttons */
.ms-btn {
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  padding: 13px 20px; border-radius: var(--r-md);
  text-decoration: none; border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.ms-btn:active { transform: scale(.97); }
.ms-btn.cream   { background: var(--ink-on-deep); color: var(--deep-2); box-shadow: 0 12px 24px -12px rgba(0,0,0,.55); }
.ms-btn.ghost   { background: rgba(252,235,216,.12); color: var(--ink-on-deep); border: 1px solid rgba(252,235,216,.42); }
.ms-btn.solid   { background: var(--accent); color: #FFF3E6; box-shadow: 0 12px 24px -14px rgba(168,69,31,.9); }
.ms-btn.outline { background: var(--card); color: var(--ink); border: 1px solid var(--line); }

/* chips */
.ms-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--r-pill);
}
.ms-chip.main      { background: var(--accent);   color: #FFF3E6; }
.ms-chip.sauce     { background: var(--sage);     color: #F6F8EC; }
.ms-chip.side      { background: var(--sage-2);   color: #F6F8EC; }
.ms-chip.dessert   { background: var(--gold);     color: #5A3B12; }
.ms-chip.appetizer { background: var(--accent-2); color: #FFF3E6; }
.ms-chip.soup      { background: var(--sage);     color: #F6F8EC; }
.ms-chip.salad     { background: var(--sage-2);   color: #F6F8EC; }
.ms-chip.bread     { background: var(--gold);     color: #5A3B12; }
.ms-chip.breakfast { background: var(--gold);     color: #5A3B12; }
.ms-chip.drink     { background: var(--sage);     color: #F6F8EC; }
.ms-chip.soft      { background: rgba(194,86,47,.12); color: var(--accent-2); }

/* recipe card */
.ms-card {
  background: var(--card); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-md); border: 1px solid var(--hair);
  cursor: pointer; transition: transform .14s ease, box-shadow .18s ease;
  text-align: left; width: 100%; display: block; text-decoration: none;
}
.ms-card:hover  { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.ms-card:active { transform: scale(.985); }
.ms-card .ms-card-img { height: 150px; background-size: cover; background-position: center; overflow: hidden; }
.ms-card .ms-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ms-card .ms-card-body { padding: 14px 16px 16px; }
.ms-card .ms-card-ttl  { font-family: var(--font-script); font-weight: 700; font-size: 31px; line-height: .85; color: var(--ink); margin-bottom: 9px; }

/* card image placeholder */
.ms-ph { background: linear-gradient(150deg, var(--accent), var(--deep)); position: relative; }
.ms-ph.alt  { background: linear-gradient(150deg, var(--sage), var(--sage-2)); }
.ms-ph.gold { background: linear-gradient(150deg, var(--gold), #B9762B); }
.ms-ph::after {
  content: attr(data-l);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 0 14px;
  font-family: var(--font-script); font-weight: 700; font-size: 26px;
  color: rgba(255,241,223,.92);
}

/* portrait — circle variant (home hero) */
.ms-portrait {
  border-radius: 50%; position: relative; flex: none;
  background: radial-gradient(120% 120% at 50% 28%, #FBE6CC, #EAC79C);
  box-shadow: 0 0 0 5px rgba(252,235,216,.2), 0 0 0 6px rgba(252,235,216,.4), 0 16px 32px -12px rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.ms-portrait::after {
  content: ""; position: absolute; inset: 8px;
  border: 1.5px dashed rgba(124,58,34,.5); border-radius: 50%;
  pointer-events: none;
}
.ms-portrait.has-photo::after { display: none; }
.ms-portrait img { width: 100%; height: 100%; object-fit: cover; }
.ms-portrait .ms-mono { font-family: var(--font-script); font-weight: 700; color: var(--deep); position: relative; }
.ms-portrait-cap {
  font-family: var(--font-display); font-size: 10px; letter-spacing: .2em;
  text-transform: uppercase; font-weight: 600; text-align: center; margin-top: 14px;
}

/* rounded-square portrait variant (Chris page) */
.ms-portrait.sq { border-radius: 24px; }
.ms-portrait.sq::after { border-radius: 14px; }

/* site header */
.site-head {
  position: sticky; top: 0; z-index: 25;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px 14px;
  background: var(--deep); border-bottom: 1px solid rgba(252,235,216,.14);
}
.site-wm {
  font-family: var(--font-script); font-weight: 700; font-size: 24px;
  color: var(--ink-on-deep); line-height: 1;
  text-decoration: none; white-space: nowrap;
}
.site-nav { display: flex; gap: 15px; }
.site-nav a {
  font-family: var(--font-display); font-size: 13.5px; font-weight: 500;
  color: rgba(252,235,216,.66); text-decoration: none;
  padding: 5px 0; position: relative; transition: color .15s; white-space: nowrap;
}
.site-nav a:hover  { color: rgba(252,235,216,.9); }
.site-nav a.active { color: var(--ink-on-deep); font-weight: 600; }
.site-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold); border-radius: 2px;
}
