/* Mary Ellen's Portuguese Bakery, site-v1. Base: direction B "The sweet bread runs through it" (Besley + IBM Plex Sans,
   white / pale grey / crust / counter orange-red, maroon only as the header rule + notice bar). */
@font-face{font-family:"Besley";font-style:normal;font-weight:700;font-display:swap;src:url(../fonts/besley.woff2) format("woff2")}
@font-face{font-family:"Besley";font-style:normal;font-weight:400;font-display:swap;src:url(../fonts/besley-400.woff2) format("woff2")}
@font-face{font-family:"Besley";font-style:italic;font-weight:400 500;font-display:swap;src:url(../fonts/besley-italic.woff2) format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400 600;font-display:swap;src:url(../fonts/plex-sans.woff2) format("woff2")}
:root{
  --paper:#fff; --wall:#e4e6e9; --ink:#24272b; --ink-2:#4d525a; --crust:#4a1d0a; --crust-2:#7a3410;
  --counter:#c9401a; --counter-lo:#9c2c0e; --maroon:#5e1e2a; --rule:#d9c7bb; --rule-2:#c7b2a5;
  --serif:"Besley",Georgia,serif; --sans:"IBM Plex Sans",system-ui,sans-serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-padding-top:12px}
body{margin:0;background:var(--paper);color:var(--ink);font:400 17px/1.6 var(--sans);overflow-x:hidden}
a{color:inherit}
a[href^="tel:"]{white-space:nowrap}
img,svg{display:block;max-width:100%}
img{height:auto}
[hidden]{display:none !important}
.wrap{max-width:1280px;margin:0 auto;padding:0 40px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--counter);outline-offset:3px}
.skip{position:absolute;left:8px;top:-60px;background:var(--crust);color:#fff;padding:12px 16px;z-index:9}
.skip:focus{top:8px}

/* header: one thin maroon line, the open chip and Call on the right */
.top{border-bottom:1px solid var(--maroon);background:var(--paper)}
.top .wrap{display:flex;align-items:center;gap:22px;min-height:64px}
.name{font:700 19px/1.15 var(--serif);color:var(--crust);text-decoration:none;display:inline-flex;align-items:center;min-height:44px;flex:none}
.top nav{display:flex;gap:22px;margin-left:auto;font-size:16px;flex:none}
.top nav a{text-decoration:none;padding:12px 0}
.top nav a:hover{text-decoration:underline;text-underline-offset:4px}
.chip{display:inline-flex;align-items:center;gap:8px;font:500 15px/1.2 var(--sans);color:var(--ink);white-space:nowrap;flex:none}
.chip::before{content:"";width:9px;height:9px;border-radius:50%;background:#8b9097}
.is-open .chip::before{background:#2f7d4a}
.chip small{font-size:14px;color:var(--ink-2);font-weight:400}
.top__call{background:var(--counter);color:#fff;text-decoration:none;font-weight:600;padding:0 16px;min-height:46px;display:inline-flex;align-items:center;white-space:nowrap;flex:none}
.top__call:hover{background:var(--counter-lo)}

.notice{background:var(--maroon);color:#fff}
.notice .wrap{padding-top:13px;padding-bottom:13px;font-weight:500}
.notice p{margin:0}

/* hero (B): the headline across the whole wrap on top (two lines at 1440); under it the loaf sits on the counter line in the left
   column, bleeding off the left edge, and on the right the Call block, the open line and the dishes it becomes, stepping out along
   its shoulder */
.hero{overflow:hidden}
.hero__grid{display:grid;grid-template-columns:minmax(0,36fr) minmax(0,64fr);grid-template-areas:"h1 h1" "loaf text";grid-template-rows:auto auto;
  max-width:1280px;margin:0 auto;padding:56px 40px 0}
.hero h1{grid-area:h1;font:700 clamp(40px,4.3vw,62px)/1.04 var(--serif);color:var(--crust);letter-spacing:-.02em;margin:0 0 28px;padding-left:0}
/* desktop: always "Portuguese sweet bread, at the table / and to take home." (phones wrap freely) */
@media (min-width:821px){ .hero h1 .h1__end{display:inline-block} }
/* what + where, small, on its own line above the big words (the big words stay two lines at 1366 / 1440) */
.hero h1 .h1__where{display:block;font:600 16px/1.25 var(--sans);color:var(--crust-2);letter-spacing:0;margin:0 0 6px}
/* the loaf's column starts at the window's left edge, and the loaf pokes 40 px past it */
.loaf{grid-area:loaf;align-self:end;position:relative;margin-left:calc(-40px - max(0px, (100vw - 1280px) / 2))}
/* never taller than the text column beside it, Call block to the last dish rule (layout.js measures it at every width) */
.loaf img{width:min(36vw,460px);max-width:none;margin:0 0 -1px -40px}
.hero__text{grid-area:text;align-self:end;padding:0 0 30px 8px;min-width:0}
/* Cash only stays beside Call; a long ATM line wraps inside its box instead of dropping the box under Call */
.act{display:flex;flex-wrap:nowrap;align-items:stretch;margin:0 0 12px}
.act .call{display:flex;flex-direction:column;justify-content:center;background:var(--counter);color:#fff;text-decoration:none;padding:10px 22px;font:500 15px/1.25 var(--sans);min-height:66px;white-space:normal;flex:none}
.act .call strong{font:700 26px/1.15 var(--serif);white-space:nowrap}
.act .call:hover{background:var(--counter-lo)}
.act .call.shut{background:var(--crust)}
.act .call.shut:hover{background:#2f1205}
.act .cash{display:flex;flex-direction:column;justify-content:center;border:2px solid var(--crust);border-left:0;padding:8px 20px;margin:0;min-width:0}
.act .cash b{font:700 23px/1.1 var(--serif);color:var(--crust);white-space:nowrap}
.act .cash span{font-size:15px;color:var(--ink-2);line-height:1.35}
.open{margin:0;font-size:16px;color:var(--ink-2)}
.open b{color:var(--ink)}
.note{color:var(--ink-2)}
.becomes{list-style:none;margin:26px 0 0;padding:0}
.becomes li{font:400 clamp(20px,1.75vw,26px)/1.25 var(--serif);padding:12px 0;border-top:1px solid var(--rule)}
.becomes li:last-child{border-bottom:1px solid var(--rule)}
/* each line steps out along the dome's shoulder: the higher the line, the closer it leans in over the crown */
.becomes li:nth-child(1){margin-left:-12%}
.becomes li:nth-child(2){margin-left:-8%}
.becomes li:nth-child(3){margin-left:-4%}
.becomes em{font-style:italic;color:var(--crust-2)}
.hero__base{height:14px;background:var(--counter);position:relative;z-index:1}

/* sections */
.sec{padding:96px 0}
.sec--wall{background:var(--wall)}
.sec h2{font:700 clamp(36px,3.8vw,56px)/1.05 var(--serif);color:var(--crust);letter-spacing:-.02em;margin:0 0 16px}
.lede{max-width:54ch;color:var(--ink-2);margin:0 0 44px;font-size:18px}
.price{font:500 14px/1.3 var(--sans);color:#8a3a1c;white-space:nowrap}
.price::before{content:"";display:inline-block;width:18px;height:1px;background:#c79a82;vertical-align:middle;margin:0 8px 0 4px}
.price.set{font-weight:600;font-size:16px;color:var(--crust)}
.draft{display:inline-block;font:500 14px/1.3 var(--sans);color:#5c4100;background:#fff3c4;border:1px dashed #9a7700;padding:2px 7px;margin-top:4px}

/* at the table: the three plates people name, as big editorial rows */
.named{border-top:2px solid var(--crust);margin-bottom:64px}
.named article{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,4fr);gap:40px;padding:28px 0;border-bottom:1px solid var(--rule);align-items:baseline}
.named h3{font:700 clamp(26px,2.4vw,34px)/1.15 var(--serif);margin:0;color:var(--ink)}
.named p{margin:0;color:var(--ink-2)}
.named q{display:block;font:italic 400 19px/1.45 var(--serif);color:var(--crust);margin-top:12px;quotes:"\201C" "\201D"}
.named cite{display:block;font:400 15px/1.4 var(--sans);font-style:normal;color:var(--ink-2);margin-top:2px}

/* the rest of the menu: two columns, section names in a narrow italic side column; each section folds on phones */
.carte{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 64px;align-items:start}
.course{position:relative;padding:22px 0 14px 170px;border-top:1px solid var(--rule)}
.course summary{position:absolute;left:0;top:18px;width:150px;list-style:none;cursor:default;display:flex;align-items:flex-start;gap:10px}
.course summary::-webkit-details-marker{display:none}
.course h3{font:italic 500 21px/1.3 var(--serif);color:var(--crust);margin:0;flex:1 1 auto;min-width:0}
.course .tog{display:none}
.course ul{list-style:none;margin:0;padding:0}
.course li{margin:0 0 9px;line-height:1.45}
.course li b{font-weight:600}
.course li .d{color:var(--ink-2)}
.carte__note{font-size:15px;color:var(--ink-2);margin:26px 0 0}

/* to take home: B's list with the small flat icons, A's bakery case beside it */
.home-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:56px;align-items:start}
.takes{list-style:none;margin:0 0 28px;padding:0}
.takes li{display:grid;grid-template-columns:64px minmax(0,1fr);gap:18px;align-items:center;padding:15px 0;border-top:1px solid var(--rule-2)}
.takes li:last-child{border-bottom:1px solid var(--rule-2)}
.takes svg{width:64px;height:40px}
.takes b{font:700 23px/1.2 var(--serif);display:block;color:var(--ink)}
.takes span{color:var(--ink-2);font-size:16px}
.case{margin:8px 0 0}
.case img{width:100%;border-bottom:6px solid #3d4148}
.case figcaption{font-size:15px;color:var(--ink-2);margin-top:10px}
.home__act{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center}
.home__act p{margin:0;max-width:34ch}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:0 24px;text-decoration:none;font:600 17px/1.15 var(--sans);border:2px solid var(--crust);color:var(--crust);background:transparent;text-align:center}
.btn:hover{background:var(--crust);color:#fff}
.btn--call{background:var(--counter);border-color:var(--counter);color:#fff}
.btn--call:hover{background:var(--counter-lo);border-color:var(--counter-lo)}

/* reviews: one big voice, three smaller */
.lead-q{font:italic 400 clamp(30px,3.4vw,50px)/1.2 var(--serif);color:var(--crust);margin:0 0 14px;max-width:26ch;letter-spacing:-.01em}
.who{color:var(--ink-2);margin:0;font-size:15px}
.who a{font-weight:600;display:inline-flex;align-items:center;min-height:44px}
.lead-cite{margin:0 0 48px;font-size:16px}
.qs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px;border-top:2px solid var(--crust);padding-top:30px}
.qs blockquote{margin:0}
.qs p.q{font:400 18px/1.5 var(--serif);font-style:normal;margin:0 0 8px}
.tally{display:flex;flex-wrap:wrap;gap:8px 40px;align-items:center;margin:44px 0 0;padding-top:16px;border-top:1px solid var(--rule-2);color:var(--ink-2)}
.tally b{color:var(--ink);font:700 22px/1 var(--serif)}
.tally a{font-weight:600;display:inline-flex;align-items:center;min-height:44px}

/* find us behind the Dairy Queen */
.map{margin:0 0 40px;border:1px solid var(--rule-2);background:var(--paper)}
.map figcaption{padding:10px 16px;font-size:15px;color:var(--ink-2);border-top:1px solid #e2d6cd}
.where{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.7fr);gap:56px;align-items:start}
.where address{font:normal 700 26px/1.3 var(--serif);color:var(--crust);margin:0 0 6px}
.where .plus{color:var(--ink-2);margin:0 0 6px;font-size:15px}
.where .cash-line{margin:0 0 22px}
.acts{display:flex;flex-wrap:wrap;gap:12px}
.week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:2px solid var(--crust)}
.week div{padding:14px 10px 16px;border-right:1px solid var(--rule)}
.week div:last-child{border-right:0}
.week b{display:block;font:700 18px/1.2 var(--serif);margin-bottom:6px}
.week span{font-size:15px;color:var(--ink-2);display:block}
.week .today{background:var(--paper)}
.week .today b{color:var(--counter)}
.week .today span{color:var(--ink)}
.week__line{margin:16px 0 4px;font-size:16px}
.week__note{margin:0;font-size:15px}
.hol{margin:22px 0 0;padding:16px 18px;background:var(--paper);border:1px solid var(--rule)}
.hol h3{font:700 19px/1.2 var(--serif);margin:0 0 6px;color:var(--crust)}
.hol ul{margin:0;padding-left:18px;font-size:16px}

.wall{padding:52px 0 60px;border-top:1px solid #e2d6cd}
.wall__row{display:flex;gap:20px;flex-wrap:wrap;align-items:center;margin-top:16px}
.plaque{margin:0;background:#fbfbf9;border:6px solid #6d5a45;padding:16px 24px;font:italic 400 23px/1.25 var(--serif)}
.plaque:nth-child(even){border:1px solid #9aa0a6;font:600 17px/1.3 var(--sans);padding:12px 18px}
.wall__k{font:italic 500 20px/1.3 var(--serif);color:var(--crust);margin:0}

.foot{background:var(--crust);color:#f3e6dc;padding:52px 0 64px}
.foot .wrap{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:32px}
.foot b{font:700 21px/1.2 var(--serif);color:#fff;display:block;margin-bottom:8px}
.foot p{margin:0 0 6px}
.foot a{color:#fff;display:inline-flex;align-items:center;min-height:44px}
.foot .social-row{display:flex;gap:18px;flex-wrap:wrap}
.foot .edit{font-size:15px;opacity:.9}

/* the plain pages (privacy, 404): the same header with Call, one column of text, the same footer */
.plain .top__call{margin-left:auto}
/* a short page (the 404 on a big screen) still ends with the footer at the bottom, no white strip under it */
.plain{min-height:100vh;display:flex;flex-direction:column}
.page{padding:72px 0 96px;flex:1 0 auto}
.page h1{font:700 clamp(36px,3.8vw,56px)/1.05 var(--serif);color:var(--crust);letter-spacing:-.02em;margin:0 0 14px}
.page .from{color:var(--ink-2);margin:0 0 36px;font-size:16px}
.page h2{font:700 23px/1.2 var(--serif);color:var(--crust);margin:34px 0 6px}
.page p{max-width:62ch;margin:0 0 12px}
.page .acts{margin-top:28px}
.page .big{font:700 clamp(24px,2.4vw,30px)/1.3 var(--serif);color:var(--crust);margin:0 0 6px}

/* motion with a meaning: the loaf rises once on load (desktop only; reduced motion = still) */
@media (min-width:821px) and (prefers-reduced-motion:no-preference){
  .loaf img{animation:rise 1.1s cubic-bezier(.2,.7,.2,1) both;transform-origin:50% 100%}
  @keyframes rise{from{transform:translateY(10px) scaleY(.93);opacity:0}to{transform:none;opacity:1}}
}
/* header row: "hours to confirm" only where it fits (the hero, find us and footer say it too) */
@media (max-width:1439px){ .top .chip small{display:none} }
/* the section links come back only where the longest chip ("Closed, back Tue 6 AM") still leaves Call inside the wrap */
@media (max-width:1239px){ .top nav{display:none} .chip{margin-left:auto} }
@media (max-width:1060px){ .carte{grid-template-columns:1fr} .where{grid-template-columns:1fr;gap:34px} }
@media (max-width:980px){ .home-grid{grid-template-columns:1fr;gap:28px} .case{max-width:640px} .qs{grid-template-columns:1fr 1fr} }

/* phones */
@media (max-width:820px){
  .wrap{padding:0 20px}
  .top .wrap{min-height:58px;gap:12px}
  .chip{display:none}
  .name{font-size:17px;flex:0 1 auto;min-width:0}
  .top__call{margin-left:auto;padding:0 12px}
  /* the whole loaf, small, above the headline; Call + Cash only stay in the first screen */
  .hero__grid{grid-template-columns:1fr;grid-template-areas:"loaf" "h1" "text";grid-template-rows:none;padding:18px 20px 0}
  .loaf{margin:0 0 10px;align-self:start}
  .loaf img{width:min(46vw,190px);margin:0}
  .hero h1{font-size:clamp(29px,8vw,40px);margin:0 0 16px;max-width:16ch;padding-left:0}
  .hero__text{padding:0 0 24px}
  .act{margin:0 0 10px;flex-wrap:nowrap}
  .act .call{flex:1 1 0;min-width:0;padding:9px 14px;min-height:62px;font-size:14px}
  .act .call strong{font-size:22px}
  .act .cash{flex:0 0 auto;padding:8px 12px;max-width:42%}
  .act .cash span{font-size:14px}
  .becomes{margin:18px 0 0}
  .becomes li,.becomes li:nth-child(n){font-size:19px;padding:9px 0;margin-left:0}
  .sec{padding:64px 0}
  .lede{margin-bottom:32px;font-size:17px}
  .named article{grid-template-columns:1fr;gap:8px}
  /* menu: every section folds; the three plates above stay open */
  .course{padding:0;border-top:1px solid var(--rule)}
  .course summary{position:static;width:auto;min-height:52px;align-items:center;cursor:pointer;padding:6px 0}
  .course h3{font-size:21px}
  .course .tog{display:block;flex:none;width:44px;height:44px;position:relative}
  .course .tog::before,.course .tog::after{content:"";position:absolute;left:13px;right:13px;top:21px;height:2px;background:var(--crust)}
  .course .tog::after{transform:rotate(90deg);transition:transform .2s}
  .course[open] .tog::after{transform:none}
  .course ul{padding:0 0 14px}
  .home-grid{gap:24px}
  .takes li{grid-template-columns:48px minmax(0,1fr);gap:12px}
  .takes svg{width:48px;height:30px}
  .takes b{font-size:20px}
  .qs{grid-template-columns:1fr;gap:26px}
  .week{grid-template-columns:1fr}
  .week div{display:flex;justify-content:space-between;gap:12px;border-right:0;border-bottom:1px solid var(--rule);padding:10px 8px}
  .week b{margin:0;font-size:17px}
  .week span{text-align:right}
  .foot .wrap{grid-template-columns:1fr}
  .page{padding:48px 0 64px}
}
@media (max-width:360px){
  .name{font-size:15px}
  .top__call{padding:0 10px;font-size:15px}
  .act{flex-wrap:wrap}
  .act .call,.act .cash{flex:1 1 100%;max-width:none}
  .act .cash{border-left:2px solid var(--crust);border-top:0;flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:2px 10px;padding:8px 12px}
  .act .cash span{max-width:none}
  .act .call strong{font-size:21px}
  .act .cash b{font-size:20px}
  .loaf img{width:150px}
  .hero h1{font-size:28px}
}
