/* Michael's Pizza, Belmont MA — the blue sign, a red-check tablecloth, paper-plate cream */
:root {
  --blue: #1717ad;
  --blue-deep: #0f0f7d;
  --red: #e2261c;
  --red-dark: #bd1c14;
  --yellow: #ffc93c;
  --cream: #faf5e9;
  --paper: #ffffff;
  --ink: #17173a;
  --muted: #55557a;
  --line: #e4dcc8;
  --display: "Alfa Slab One", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 500 18px/1.6 var(--body); overflow-x: hidden; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.hero :focus-visible, .special :focus-visible, .visit :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .005em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); line-height: 1.08; color: var(--blue); }
h3 { font: 800 1.15rem/1.25 var(--body); }
.eyebrow { font: 800 .82rem/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: 14px; }
.eyebrow-yellow { color: var(--yellow); }
.lede { font-size: 1.15rem; max-width: 52ch; margin-top: 14px; color: var(--muted); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; border: 2px solid transparent; border-radius: 10px; font: 800 1rem/1.1 var(--body); text-decoration: none; text-align: center; cursor: pointer; transition: transform .12s, background-color .12s, box-shadow .12s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-dark); }
.btn-red:hover { background: #ee3227; }
.btn-white { background: #fff; color: var(--blue); border-color: var(--blue); }
.hero .btn-white, .special .btn-white, .visit .btn-white { border-color: #fff; }
.btn-lg { min-height: 58px; padding: 16px 30px; font-size: 1.1rem; }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: .95rem; box-shadow: 0 3px 0 var(--red-dark); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.cta-row.center { justify-content: center; }

/* ---------- Tablecloth strip ---------- */
.gingham { height: 28px; background-color: #fff;
  background-image: linear-gradient(90deg, rgba(226,38,28,.55) 50%, transparent 50%), linear-gradient(rgba(226,38,28,.55) 50%, transparent 50%);
  background-size: 28px 28px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--blue); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.header-row { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; white-space: nowrap; }
.brand-name { font: 400 1.45rem/1 var(--display); }
.brand-sub { font: 800 .68rem/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 10px 12px; font-weight: 700; font-size: .98rem; text-decoration: none; border-radius: 8px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.14); }
.nav-phone { color: var(--yellow); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 11px 9px; background: none; border: 2px solid #fff; border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { background: var(--blue); color: #fff; background-image: radial-gradient(circle at 78% 40%, #2a2ad0 0, var(--blue) 46%, var(--blue-deep) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding-block: clamp(40px, 6vw, 80px) clamp(48px, 7vw, 88px); }
.hero-kicker { font: 800 .85rem/1 var(--body); text-transform: uppercase; letter-spacing: .16em; color: var(--yellow); }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5rem); line-height: 1; margin-top: 18px; }
.hero-lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); max-width: 44ch; margin-top: 22px; color: #e6e6ff; }
.status { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; padding: 7px 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; font-weight: 700; font-size: .95rem; }
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #b9b9d6; }
.status.is-open::before { background: #4be07f; box-shadow: 0 0 0 4px rgba(75,224,127,.25); }
.hero-art { position: relative; justify-self: center; width: min(480px, 100%); }
.pie { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 10px solid #fff; box-shadow: 0 24px 50px rgba(0,0,40,.45); }
.tag { position: absolute; left: -4%; bottom: 6%; display: grid; place-items: center; align-content: center; width: 128px; height: 128px; border-radius: 50%; background: var(--red); color: #fff; text-decoration: none; text-align: center; transform: rotate(-10deg); box-shadow: 0 8px 20px rgba(0,0,40,.4); border: 3px dashed rgba(255,255,255,.75); transition: transform .15s; }
.tag:hover { transform: rotate(-4deg) scale(1.05); }
.tag span { font: 800 .78rem/1.1 var(--body); text-transform: uppercase; letter-spacing: .08em; }
.tag strong { font: 400 1.9rem/1.1 var(--display); }

/* ---------- Favorites ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(23,23,173,.16); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { position: relative; padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font: 400 1.3rem/1.15 var(--display); color: var(--blue); padding-right: 84px; }
.card p { font-size: 1rem; line-height: 1.5; color: var(--muted); }
.price { position: absolute; top: -22px; right: 16px; background: var(--red); color: #fff; font: 400 1.15rem/1 var(--display); padding: 11px 14px; border-radius: 10px; box-shadow: 0 3px 0 var(--red-dark); }

/* ---------- Everyday special ---------- */
.special { background: var(--red); color: #fff; padding: clamp(36px, 5vw, 56px) 0; }
.special-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.special h2 { color: #fff; }
.special-what { font-size: 1.3rem; font-weight: 700; margin-top: 8px; }
.special-buy { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.special-price { font: 400 clamp(2.6rem, 6vw, 4rem)/1 var(--display); color: var(--yellow); }
.special .btn-white { color: var(--red-dark); }

/* ---------- Menu board ---------- */
.board { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); border: 2px solid var(--blue); border-radius: 16px; overflow: hidden; }
.board li { padding: 22px 24px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.board li:nth-child(3n) { border-right: 0; }
.board li:nth-last-child(-n+3) { border-bottom: 0; }
.board h3 { font: 400 1.2rem/1.2 var(--display); color: var(--blue); }
.board p { font-size: .98rem; line-height: 1.5; color: var(--muted); margin-top: 8px; }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }

/* ---------- About ---------- */
.about { background: var(--paper); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.about-photos { position: relative; padding: 0 12% 14% 0; }
.about-main img { width: 100%; border-radius: 14px; }
.about-inset { position: absolute; right: 0; bottom: 0; width: 38%; }
.about-inset img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; border: 6px solid var(--paper); box-shadow: 0 10px 24px rgba(23,23,58,.2); }
.about-copy p:not(.eyebrow) { margin-top: 18px; max-width: 50ch; }
.about-copy .thanks { font: 400 1.25rem/1.3 var(--display); color: var(--red); }

/* ---------- Visit ---------- */
.visit { background: var(--blue); color: #fff; }
.visit h2 { color: #fff; }
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.facts { margin-top: 26px; border-top: 1px solid rgba(255,255,255,.3); }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.3); }
.facts dt { font: 800 .8rem/1.9 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--yellow); }
.facts dd { font-size: 1.2rem; font-weight: 700; line-height: 1.4; }
.facts a { text-underline-offset: 4px; }
.facts .phone { font: 400 1.6rem/1.2 var(--display); text-decoration: none; }
.today { display: block; margin-top: 6px; font-size: .95rem; font-weight: 700; color: var(--yellow); }
.map { border-radius: 16px; overflow: hidden; border: 6px solid #fff; background: #dfe3ee; aspect-ratio: 4 / 3; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: #dcdcf5; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 48px 36px; }
.footer-brand { font: 400 1.7rem/1.1 var(--display); color: #fff; margin-bottom: 8px; }
.site-footer h3 { font: 800 .8rem/1 var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--yellow); margin-bottom: 12px; }
.site-footer a { text-underline-offset: 3px; }
.site-footer a:hover { color: #fff; }
.footer-base { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-block: 18px 22px; border-top: 1px solid rgba(255,255,255,.18); font-size: .9rem; }
.powered { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.powered img { width: 34px; }

/* ---------- Phone order bar ---------- */
.mobile-order { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: repeat(2, 1fr); }
  .board li:nth-child(3n) { border-right: 1px solid var(--line); }
  .board li:nth-child(2n) { border-right: 0; }
  .board li:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .board li:nth-last-child(-n+2) { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .nav-toggle { display: flex; }
  .header-order { margin-left: auto; }
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 16px 16px; background: var(--blue); border-top: 1px solid rgba(255,255,255,.2); box-shadow: 0 12px 24px rgba(0,0,40,.3); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 8px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.15); border-radius: 0; }
  .hero-grid, .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(78vw, 400px); order: -1; }
  .hero-grid { padding-top: 28px; text-align: center; }
  .hero-lede { margin-inline: auto; }
  .hero .cta-row { justify-content: center; }
  .tag { width: 104px; height: 104px; left: -6%; }
  .tag strong { font-size: 1.5rem; }
  .tag span { font-size: .66rem; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .mobile-order { display: flex; align-items: center; justify-content: center; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; min-height: 54px; background: var(--red); color: #fff; font: 800 1.1rem/1 var(--body); text-decoration: none; border-radius: 12px; box-shadow: 0 4px 0 var(--red-dark), 0 10px 24px rgba(0,0,40,.35); transition: transform .25s, opacity .25s; }
  .mobile-order.tucked { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .site-footer { padding-bottom: 76px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .cards { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .board li, .board li:nth-child(3n) { border-right: 0; }
  .board li:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .board li:last-child { border-bottom: 0; }
  .brand-name { font-size: 1.2rem; }
  .header-order { padding-inline: 14px; }
  .hero .btn-lg { width: 100%; }
  .special-row { text-align: center; justify-content: center; }
  .special-buy { justify-content: center; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
