/* Mama's Sause — screen styles + responsive breakpoints */

/* ---- HOME ---- */
.home-top {
  background: linear-gradient(165deg, var(--deep) 0%, var(--deep-2) 38%, var(--accent-2) 78%, var(--accent) 100%);
  color: var(--ink-on-deep); position: relative; overflow: hidden; padding-bottom: 30px;
}
.home-hero { padding: 18px 24px 4px; text-align: center; position: relative; z-index: 2; }
.home-portrait { width: 106px; height: 106px; margin: 6px auto 0; }
.home-portrait .ms-mono { font-size: 38px; }
.home-portrait-cap { color: rgba(252,235,216,.92); text-shadow: 0 1px 3px rgba(0,0,0,.4); margin-top: 16px; }

.home-saying-wrap { height: 70px; margin: 28px 0 2px; display: grid; place-items: center; }
.home-saying {
  grid-area: 1 / 1;
  font-family: var(--font-script); font-weight: 700; font-size: 38px;
  line-height: .9; color: #FFF1DF; text-shadow: 0 2px 14px rgba(0,0,0,.22);
  transform: rotate(-3deg); white-space: nowrap;
  opacity: 0; transition: opacity .7s ease;
}
.home-saying.show { opacity: 1; }

.home-intro {
  font-size: 15.5px; line-height: 1.55; color: rgba(252,235,216,.88);
  max-width: 300px; margin: 14px auto 0; font-style: italic;
}
.home-cta  { display: flex; gap: 11px; justify-content: center; margin-top: 24px; }
.home-wave { height: 28px; background: var(--base); border-radius: 28px 28px 0 0; margin-top: -16px; position: relative; z-index: 2; }

.home-sec { padding: 8px 20px 4px; }
.home-sechead { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 4px 14px; }
.home-sechead .more {
  font-family: var(--font-display); font-size: 12px; color: var(--accent-2);
  font-weight: 600; background: none; border: none; cursor: pointer; text-decoration: none;
}
.home-feature  { margin-bottom: 16px; }
.home-grid2    { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.home-grid2 .ms-card-img  { height: 104px; }
.home-grid2 .ms-card-ttl  { font-size: 26px; }

.home-foot {
  margin-top: 14px; padding: 36px 20px 46px; text-align: center;
  background: linear-gradient(180deg, var(--base), var(--base-2));
}
.home-foot .ms-enjoy { font-size: 48px; }
.home-foot .sig { font-family: var(--font-script); font-size: 22px; color: var(--ink-2); margin-top: 6px; transform: rotate(-1.5deg); display: block; }
.home-foot .tag { font-family: var(--font-display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-top: 14px; opacity: .8; }

/* ---- BROWSE ---- */
.brw-head  { padding: 20px 22px 6px; }
.brw-title { font-family: var(--font-script); font-weight: 700; font-size: 50px; color: var(--accent-2); line-height: .85; }
.brw-sub   { font-size: 14px; color: var(--ink-2); font-style: italic; margin-top: 4px; }

.brw-search {
  margin: 16px 22px 0;
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 12px 15px; box-shadow: var(--shadow-sm);
}
.brw-search svg   { color: var(--ink-2); flex: none; }
.brw-search input { border: none; background: none; outline: none; font-family: var(--font-body); font-size: 15px; color: var(--ink); width: 100%; }
.brw-search input::placeholder { color: var(--ink-2); opacity: .7; }

.brw-filters { display: flex; gap: 9px; padding: 16px 22px 6px; overflow-x: auto; scrollbar-width: none; }
.brw-filters::-webkit-scrollbar { display: none; }
.brw-filter {
  flex: none; font-family: var(--font-display); font-size: 13px; font-weight: 600;
  padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--card); color: var(--ink-2);
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.brw-filter.active { background: var(--accent); color: #FFF3E6; border-color: var(--accent); box-shadow: 0 8px 18px -10px rgba(168,69,31,.8); }
.brw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 14px 22px 46px; }
.brw-grid .ms-card-img  { height: 118px; }
.brw-grid .ms-card-ttl  { font-size: 25px; }
.brw-grid .ms-card-body { padding: 12px 14px 14px; }
.brw-empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; color: var(--ink-2); font-style: italic; }

/* ---- RECIPE DETAIL ---- */
.rcp-hero { height: 248px; position: relative; overflow: hidden; }
.rcp-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.rcp-hero picture { display: block; height: 100%; }
.rcp-hero picture img { height: 100%; }
.rcp-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(94,42,24,.42) 0, transparent 26%, transparent 60%, var(--base));
}

.rcp-body    { padding: 0 24px 52px; }
.rcp-crumb   {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  color: var(--accent-2); padding: 18px 0 2px; text-decoration: none;
}
.rcp-crumb svg { flex: none; }
.rcp-title   { font-family: var(--font-script); font-weight: 700; font-size: 62px; color: var(--ink); line-height: .82; margin-top: 6px; }
.rcp-attrib  { font-style: italic; font-size: 15px; color: var(--accent-2); margin-top: 12px; font-weight: 500; }
.rcp-desc    { font-size: 16.5px; line-height: 1.5; color: var(--ink-2); margin-top: 11px; }
.rcp-prose   { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin-top: 14px; font-style: italic; }
.rcp-meta    { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.rcp-time    { font-size: 12.5px; color: var(--ink-2); font-style: italic; }

.rcp-cook {
  display: flex; align-items: center; gap: 13px; width: 100%; margin: 24px 0 4px; padding: 15px 17px;
  background: linear-gradient(150deg, var(--deep), var(--accent-2));
  color: var(--ink-on-deep); border: none; border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); cursor: pointer; text-align: left; transition: transform .12s;
}
.rcp-cook:active { transform: scale(.99); }
.rcp-cook .ico  { width: 40px; height: 40px; border-radius: 12px; background: var(--gold); display: flex; align-items: center; justify-content: center; flex: none; color: var(--deep); }
.rcp-cook .l    { flex: 1; }
.rcp-cook .l b  { font-family: var(--font-display); font-size: 15.5px; display: block; }
.rcp-cook .l span { font-size: 12.5px; color: rgba(252,235,216,.78); }
.rcp-cook .arr  { color: rgba(252,235,216,.7); width: 24px; height: 24px; flex: none; display: flex; align-items: center; justify-content: center; }

.rcp-sec    { margin-top: 28px; }
.rcp-sec h3 { font-family: var(--font-script); font-weight: 700; font-size: 32px; color: var(--accent-2); margin-bottom: 12px; line-height: 1; }

.rcp-ing { list-style: none; background: var(--card); border-radius: var(--r-lg); padding: 4px 16px; box-shadow: var(--shadow-md); border: 1px solid var(--hair); }
.rcp-ing li { display: flex; align-items: flex-start; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 16.5px; line-height: 1.35; cursor: pointer; transition: opacity .2s; }
.rcp-ing li:last-child { border-bottom: none; }
.rcp-ing li .box { width: 21px; height: 21px; border-radius: 6px; border: 1.5px solid var(--sage); flex: none; margin-top: 1px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.rcp-ing li.done        { opacity: .42; }
.rcp-ing li.done .box   { background: var(--sage); border-color: var(--sage); }
.rcp-ing li.done .txt   { text-decoration: line-through; }
.ing-check { opacity: 0; transform: scale(.5); transition: all .2s; color: #FFF8F0; display: flex; align-items: center; justify-content: center; width: 13px; height: 13px; }
.done .ing-check { opacity: 1; transform: scale(1); }

.rcp-steps { list-style: none; counter-reset: s; }
.rcp-steps li { display: flex; gap: 14px; padding: 13px 0; font-size: 16.5px; line-height: 1.5; cursor: pointer; transition: opacity .2s; }
.rcp-steps li .n {
  counter-increment: s; flex: none; width: 33px; height: 33px; border-radius: 50%;
  background: var(--accent); color: #FFF3E6;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.rcp-steps li .n::before { content: counter(s); }
.rcp-steps li.done       { opacity: .42; }
.rcp-steps li.done .n    { background: var(--sage); }
.rcp-steps li.done .txt  { text-decoration: line-through; }
.rcp-steps b { color: var(--accent-2); }

.rcp-original {
  display: flex; align-items: center; gap: 15px; width: 100%; margin-top: 26px;
  background: var(--base-2); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; cursor: pointer; text-align: left; transition: transform .12s; text-decoration: none;
}
.rcp-original:active { transform: scale(.99); }
.rcp-original .thumb { width: 56px; height: 68px; border-radius: 8px; border: 3px solid #fff; box-shadow: 0 6px 14px -5px rgba(0,0,0,.5); transform: rotate(-3deg); flex: none; overflow: hidden; }
.rcp-original .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rcp-original .t b    { font-family: var(--font-display); font-size: 14.5px; display: block; color: var(--ink); }
.rcp-original .t span { font-size: 12.5px; color: var(--ink-2); font-style: italic; }

.rcp-related { margin-top: 28px; }
.rcp-related h3 { font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; }
.rcp-related-links { display: flex; flex-wrap: wrap; gap: 10px; }
.rcp-related-links a { font-family: var(--font-script); font-size: 22px; color: var(--accent-2); text-decoration: none; }
.rcp-related-links a:hover { text-decoration: underline; }

.rcp-foot { text-align: center; margin-top: 34px; }
.rcp-foot .ms-enjoy { font-size: 62px; }
.rcp-foot .hand { font-family: var(--font-script); font-size: 23px; color: var(--ink-2); margin-top: 14px; transform: rotate(-1.5deg); display: block; }

/* ---- COOK MODE ---- */
.cook-overlay {
  display: none; position: fixed; inset: 0; z-index: 60;
  background: linear-gradient(170deg, var(--deep) 0%, var(--deep-2) 100%);
  color: var(--ink-on-deep); flex-direction: column; overflow-y: auto;
}
.cook-overlay.open { display: flex; }

.cook-bar { display: flex; align-items: flex-start; justify-content: space-between; padding: 18px 22px 10px; flex: none; }
.cook-bar .ttl   { font-family: var(--font-script); font-weight: 700; font-size: 40px; line-height: .8; }
.cook-bar .awake { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 11px; letter-spacing: .06em; color: rgba(252,235,216,.62); text-transform: uppercase; margin-top: 6px; }
.cook-exit { background: rgba(252,235,216,.14); border: 1px solid rgba(252,235,216,.34); color: var(--ink-on-deep); cursor: pointer; font-family: var(--font-display); font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: var(--r-pill); flex: none; }

.cook-content { padding: 8px 24px 40px; }
.cook-h { font-family: var(--font-script); font-weight: 700; font-size: 34px; color: var(--gold); margin: 18px 0 10px; }

.cook-ing { list-style: none; }
.cook-ing li { display: flex; align-items: flex-start; gap: 16px; padding: 16px 2px; border-bottom: 1px solid rgba(252,235,216,.16); font-size: 21px; line-height: 1.3; cursor: pointer; transition: opacity .2s; }
.cook-ing li .box { width: 30px; height: 30px; border-radius: 8px; border: 2px solid rgba(252,235,216,.6); flex: none; margin-top: 1px; display: flex; align-items: center; justify-content: center; transition: all .2s; }
.cook-ing li.done      { opacity: .4; }
.cook-ing li.done .box { background: var(--gold); border-color: var(--gold); }
.cook-ing li.done .txt { text-decoration: line-through; }
.cook-check { opacity: 0; transform: scale(.5); transition: all .2s; color: var(--deep-2); width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; }
.done .cook-check { opacity: 1; transform: scale(1); }

.cook-steps { list-style: none; counter-reset: cs; }
.cook-steps li { display: flex; gap: 18px; padding: 18px 2px; font-size: 22px; line-height: 1.45; cursor: pointer; transition: opacity .2s; border-bottom: 1px solid rgba(252,235,216,.16); }
.cook-steps li .n {
  counter-increment: cs; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); color: #FFF3E6;
  font-family: var(--font-display); font-weight: 600; font-size: 21px;
  display: flex; align-items: center; justify-content: center; transition: all .2s;
}
.cook-steps li .n::before { content: counter(cs); }
.cook-steps li.done      { opacity: .4; }
.cook-steps li.done .n   { background: var(--gold); color: var(--deep-2); }
.cook-steps li.done .txt { text-decoration: line-through; }
.cook-steps b { color: var(--gold); }

.cook-enjoy            { text-align: center; padding: 20px 0 10px; }
.cook-enjoy .ms-enjoy  { color: var(--gold); font-size: 56px; }

/* ---- CHRIS ---- */
.chr-top  { background: linear-gradient(165deg, var(--deep), var(--accent-2)); color: var(--ink-on-deep); position: relative; padding-bottom: 36px; }
.chr-hero { padding: 14px 26px 0; text-align: center; position: relative; z-index: 2; }
.chr-eyebrow { color: var(--gold); }
.chr-photo-wrap { width: 150px; height: 150px; margin: 18px auto 0; }
.chr-name { font-family: var(--font-script); font-weight: 700; font-size: 52px; margin-top: 20px; line-height: .85; }
.chr-role { font-family: var(--font-display); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(252,235,216,.7); margin-top: 8px; }
.chr-words { font-size: 17px; line-height: 1.62; color: rgba(252,235,216,.92); margin: 22px auto 0; max-width: 330px; }
.chr-sayings .s  { font-family: var(--font-script); font-weight: 700; font-size: 38px; color: var(--gold); line-height: 1; transform: rotate(-2deg); display: block; }
.chr-sayings .s:nth-child(2) { transform: rotate(1.5deg); margin-left: 30px; color: #FFE9CC; }
.chr-sayings { margin-top: 24px; display: flex; flex-direction: column; gap: 2px; }
.chr-wave { height: 28px; background: var(--base); border-radius: 28px 28px 0 0; margin-top: -16px; position: relative; z-index: 3; }

.chr-feature { padding: 22px 22px 4px; text-align: center; }
.chr-feature img { max-width: 100%; max-height: 420px; width: auto; height: auto; display: inline-block; border-radius: var(--r-lg); border: 4px solid #fff; box-shadow: var(--shadow-md); }

.chr-story { padding: 24px 26px 8px; }
.chr-story p { font-size: 16px; line-height: 1.72; color: var(--ink); max-width: 60ch; margin: 0 auto 16px; }
.chr-story p:last-child { margin-bottom: 0; }

.chr-gal     { padding: 10px 22px 52px; }
.chr-galhead { margin: 12px 4px 16px; }
.chr-galhead h3 { font-family: var(--font-script); font-weight: 700; font-size: 36px; color: var(--accent-2); line-height: .9; }
.chr-galhead p  { font-size: 13.5px; color: var(--ink-2); font-style: italic; margin-top: 4px; }
.chr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chr-tile {
  aspect-ratio: 4/5; border-radius: var(--r-md); overflow: hidden;
  border: 4px solid #fff; box-shadow: var(--shadow-md); cursor: pointer;
  transition: transform .14s; position: relative;
  background-size: cover; background-position: center;
  display: block; width: 100%; background-color: var(--base-2);
}
.chr-tile:active { transform: scale(.98); }
.chr-tile img    { width: 100%; height: 100%; object-fit: cover; display: block; }
.chr-tile.ruled  { background: repeating-linear-gradient(#FCF6EA 0 27px, #DCC9AE 27px 28px); }
.chr-tile.ruled::after {
  content: attr(data-l); position: absolute; left: 14px; right: 14px; top: 16px;
  font-family: var(--font-script); font-weight: 700; font-size: 23px; color: rgba(120,80,45,.62); line-height: 1.15;
}
.chr-tile .cnr {
  position: absolute; top: 8px; right: 8px;
  background: rgba(123,58,34,.85); color: var(--ink-on-deep);
  font-family: var(--font-display); font-size: 9px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: var(--r-pill);
}

/* ---- LIGHTBOX ---- */
.lb {
  display: none; position: fixed; inset: 0; z-index: 80;
  background: rgba(40,20,12,.86); backdrop-filter: blur(6px);
  flex-direction: column; align-items: center; justify-content: center; padding: 24px;
}
.lb.open   { display: flex; }
.lb-img    { max-width: 100%; max-height: 74vh; border-radius: 8px; border: 6px solid #fff; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); transform: rotate(-1.5deg); object-fit: contain; }
.lb-cap    { font-family: var(--font-script); font-weight: 700; font-size: 30px; color: #FFE9CC; margin-top: 22px; text-align: center; transform: rotate(-1.5deg); display: block; }
.lb-sub    { font-family: var(--font-display); font-size: 12px; letter-spacing: .04em; color: rgba(252,235,216,.7); margin-top: 8px; text-align: center; font-style: italic; }
.lb-close  { position: absolute; top: 20px; right: 20px; width: 42px; height: 42px; border-radius: 50%; background: rgba(252,235,216,.16); border: 1px solid rgba(252,235,216,.3); color: var(--ink-on-deep); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; }

/* ---- PAGE FOOTER ---- */
.pg-foot { padding: 36px 20px 46px; text-align: center; background: linear-gradient(180deg, var(--base), var(--base-2)); }
.pg-foot .ms-enjoy { font-size: 48px; }
.pg-foot .sig { font-family: var(--font-script); font-size: 22px; color: var(--ink-2); margin-top: 6px; transform: rotate(-1.5deg); display: block; }
.pg-foot .tag { font-family: var(--font-display); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-top: 14px; opacity: .8; }

/* ========= RESPONSIVE ========= */

@media (min-width: 520px) {
  .home-top, .brw-head, .brw-search, .brw-filters,
  .brw-grid, .rcp-hero, .rcp-body, .chr-top, .chr-gal, .chr-feature, .chr-story { max-width: 520px; margin-left: auto; margin-right: auto; }
  .site-head { padding: 15px 24px 14px; }
}

@media (min-width: 768px) {
  .ms-page { max-width: 900px; }
  .brw-grid   { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
  .home-grid2 { grid-template-columns: repeat(3, 1fr); }
  .chr-grid   { grid-template-columns: repeat(3, 1fr); }
  .home-top, .chr-top { max-width: 100%; }
  .rcp-hero { height: 360px; max-width: 900px; margin: 0 auto; }
  .rcp-body { max-width: 680px; margin: 0 auto; }
  .rcp-title { font-size: 72px; }
  .cook-ing li    { font-size: 24px; }
  .cook-steps li  { font-size: 26px; }
  .cook-content   { max-width: 680px; margin: 0 auto; }
}
