/* Pizza Doctor — redesign concept */
:root {
  --red: #d7261e;
  --red-deep: #a51a14;
  --yellow: #ffc629;
  --yellow-soft: #ffe08a;
  --cream: #fff4dc;
  --paper: #fffbf1;
  --ink: #241a16;
  --ink-soft: #5b4a42;
  --basil: #2f6b3a;
  --radius: 22px;
  --shadow: 0 6px 0 var(--ink);
  --display: "Fraunces", "Georgia", serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; line-height: 1.05; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--yellow); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1rem/1 var(--body);
  padding: 16px 26px;
  background: var(--bg); color: var(--fg);
  border: 3px solid var(--ink);
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.btn--red { --bg: var(--red); --fg: #fff; }
.btn--ghost { --bg: #fff; }
.btn--sm { padding: 11px 20px; font-size: .95rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 58px; height: 58px; object-fit: contain; margin-block: -6px; }
.brand span { font: 900 1.35rem/1 var(--display); font-variation-settings: "SOFT" 100, "WONK" 1; letter-spacing: -.01em; }
.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--yellow-soft); }
.status {
  display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px; background: var(--cream); border: 2px solid var(--ink);
  white-space: nowrap;
}
.status i { width: 10px; height: 10px; border-radius: 50%; background: #9b9b9b; }
.status[data-open="true"] i { background: #1f9d45; box-shadow: 0 0 0 4px rgba(31,157,69,.25); }
.status[data-open="false"] i { background: var(--red); }

/* ---------- Gingham ---------- */
.gingham {
  height: 26px;
  --c: var(--red);
  background:
    linear-gradient(90deg, rgba(215,38,30,.55) 50%, transparent 50%) 0 0 / 26px 26px,
    linear-gradient(0deg, rgba(215,38,30,.55) 50%, transparent 50%) 0 0 / 26px 26px,
    #fff;
  border-block: 3px solid var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--cream);
  overflow: hidden;
  padding-block: clamp(40px, 7vw, 88px) clamp(56px, 8vw, 104px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(36,26,22,.07) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.9rem); font-weight: 900; letter-spacing: -.025em; }
.hero h1 em { font-style: normal; color: var(--red); position: relative; white-space: nowrap; isolation: isolate; }
.hero h1 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: -.06em; height: .14em;
  background: var(--yellow); border-radius: 99px; z-index: -1;
}
.hero .lede { margin-top: 24px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34ch; color: var(--ink-soft); }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-facts { margin: 34px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; font-size: .95rem; }
.hero-facts li { display: flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 20px; height: 20px; color: var(--basil); }

.hero-art { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; }
.hero-art .plate {
  position: absolute; inset: 4%; border-radius: 50%;
  background: var(--red); border: 4px solid var(--ink);
  box-shadow: 10px 12px 0 var(--ink);
}
.hero-art .plate::after {
  content: ""; position: absolute; inset: 7%; border-radius: 50%;
  border: 3px dashed rgba(255,255,255,.55);
}
.hero-art .pizza { position: absolute; inset: 7%; width: 86%; height: 86%; animation: bob 6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(1.5deg); } }
.badge {
  position: absolute; right: -2%; top: -3%;
  width: clamp(104px, 22%, 132px); aspect-ratio: 1; border-radius: 50%;
  background: var(--yellow); border: 3px solid var(--ink);
  display: grid; place-items: center; text-align: center;
  font: 900 .95rem/1.05 var(--display); transform: rotate(12deg);
  box-shadow: 0 5px 0 var(--ink);
  padding: 8px;
}
.badge b { display: block; font-size: 1.5rem; color: var(--red); }
.hero-logo {
  position: absolute; left: -3%; bottom: 0; width: clamp(96px, 24%, 150px);
  transform: rotate(-8deg); filter: drop-shadow(0 6px 0 rgba(36,26,22,.9));
}

/* ---------- Ticker ---------- */
.ticker { background: var(--ink); color: var(--yellow); overflow: hidden; border-bottom: 3px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: tick 40s linear infinite; }
.ticker span { font: 800 1.1rem/1 var(--display); padding: 16px 0; white-space: nowrap; }
.ticker span::after { content: "✦"; margin-inline: 28px; color: var(--red); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- Deals ---------- */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; letter-spacing: -.02em; }
.section-head p { margin-top: 14px; color: var(--ink-soft); }

.deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.deal {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.deal:nth-child(1) { background: var(--yellow); }
.deal:nth-child(3) { background: var(--red); color: #fff; }
.deal .tag { font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.deal h3 { font-size: 1.7rem; font-weight: 900; }
.deal .price { font: 900 3.4rem/1 var(--display); letter-spacing: -.03em; margin-top: auto; padding-top: 12px; }
.deal .price small { font-size: 1.1rem; font-weight: 700; letter-spacing: 0; }
.deal p { font-size: .98rem; }

/* ---------- Menu ---------- */
.menu-sec { background: var(--cream); border-block: 3px solid var(--ink); }
.tabs {
  display: flex; gap: 10px; overflow-x: auto; padding: 4px 4px 14px; margin: 0 -4px 28px;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.tab {
  flex: none; font: 700 1rem/1 var(--body); padding: 13px 20px; border-radius: 999px;
  background: #fff; color: var(--ink); border: 3px solid var(--ink); cursor: pointer;
  transition: background .12s;
}
.tab:hover { background: var(--yellow-soft); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--yellow); }

.panel { display: none; }
.panel.active { display: block; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: start; }
.card {
  background: #fff; border: 3px solid var(--ink); border-radius: var(--radius); padding: 28px 28px 22px;
  box-shadow: var(--shadow);
}
.card--wide { grid-column: 1 / -1; }
.card h3 { font-size: 1.6rem; font-weight: 900; }
.card .sub { color: var(--ink-soft); font-size: .95rem; margin-top: 4px; }
.card .list { list-style: none; margin: 18px 0 0; padding: 0; }
.list li { padding: 11px 0; }
.list li + li { border-top: 2px dotted rgba(36,26,22,.22); }
.row { display: flex; align-items: baseline; gap: 10px; }
.row .name { font-weight: 700; }
.row .dots { flex: 1; border-bottom: 2px dotted rgba(36,26,22,.35); transform: translateY(-4px); min-width: 16px; }
.row .amt { font: 900 1.15rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.desc { font-size: .93rem; color: var(--ink-soft); margin-top: 3px; max-width: 58ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { font-size: .9rem; font-weight: 600; background: var(--cream); border: 2px solid var(--ink); border-radius: 999px; padding: 6px 13px; }
.note { margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }

.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.size { border: 3px solid var(--ink); border-radius: 16px; padding: 16px 12px; text-align: center; background: var(--cream); }
.size b { display: block; font: 900 1.2rem/1 var(--display); }
.size span { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 4px; }
.size strong { display: block; font: 900 1.9rem/1 var(--display); margin-top: 10px; color: var(--red); }
.spec-price { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.spec-price .chip { background: var(--yellow); }

.menu-foot { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.menu-foot p { font-size: .95rem; max-width: 60ch; color: var(--ink-soft); }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.story-art {
  position: relative; background: var(--yellow); border: 3px solid var(--ink); border-radius: 32px;
  box-shadow: 10px 10px 0 var(--ink); padding: clamp(28px, 5vw, 56px); display: grid; place-items: center;
  aspect-ratio: 1 / 1.02;
}
.story-art img { width: 78%; filter: drop-shadow(0 6px 0 rgba(36,26,22,.85)); }
.story-art .est {
  position: absolute; left: 18px; bottom: 18px; font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  background: var(--ink); color: var(--yellow); padding: 8px 14px; border-radius: 999px;
}
.story h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; letter-spacing: -.02em; }
.story p { margin-top: 18px; max-width: 54ch; }
.story blockquote {
  margin: 28px 0 0; padding: 22px 26px; border-left: 6px solid var(--red); background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0; font: 500 1.2rem/1.45 var(--display);
}
.story cite { display: block; margin-top: 12px; font: 700 .95rem var(--body); font-style: normal; color: var(--ink-soft); }
.pillars { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pillars li { border: 3px solid var(--ink); border-radius: 18px; padding: 16px; background: #fff; font-weight: 700; line-height: 1.3; }
.pillars b { display: block; font: 900 1.7rem/1 var(--display); color: var(--red); margin-bottom: 6px; }

/* ---------- Reviews ---------- */
.reviews { background: var(--red); color: #fff; border-block: 3px solid var(--ink); }
.reviews .eyebrow { color: var(--yellow); }
.reviews .section-head h2 { color: #fff; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  background: var(--paper); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 6px 0 var(--ink); display: flex; flex-direction: column; gap: 14px;
}
.review:nth-child(even) { transform: rotate(.6deg); }
.review:nth-child(odd) { transform: rotate(-.6deg); }
.stars { color: #f0a900; letter-spacing: .12em; font-size: 1.15rem; }
.review p { font: 500 1.15rem/1.4 var(--display); }
.review footer { margin-top: auto; font-weight: 700; font-size: .95rem; color: var(--ink-soft); }
.review:nth-child(4), .review:nth-child(5) { grid-column: span 1; }

/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.visit .card { display: flex; flex-direction: column; }
.hours { list-style: none; padding: 0; margin: 18px 0 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; }
.hours li + li { border-top: 2px dotted rgba(36,26,22,.22); }
.hours .today { font-weight: 800; color: var(--red); }
.entrances { margin-top: 18px; display: grid; gap: 10px; }
.entrances div { background: var(--cream); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; font-size: .95rem; }
.entrances b { display: block; }
.contact-lines { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover { text-decoration: underline; }
.contact-lines small { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.contact-lines strong { font: 900 1.35rem/1.25 var(--display); }
.visit .actions { margin-top: auto; padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Order band ---------- */
.order-band { background: var(--yellow); border-top: 3px solid var(--ink); text-align: center; padding-block: clamp(56px, 8vw, 96px); }
.order-band h2 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 900; letter-spacing: -.025em; }
.order-band p { margin: 16px auto 0; max-width: 44ch; }
.order-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #f5e9d2; padding-block: 44px 36px; font-size: .95rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.site-footer img { width: 64px; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer .fine { flex-basis: 100%; opacity: .6; font-size: .82rem; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero .wrap, .story, .visit { grid-template-columns: 1fr; }
  .hero-art { order: -1; width: min(78%, 400px); }
  .deals, .review-grid { grid-template-columns: 1fr; }
  .review { transform: none !important; }
  .panel-grid { grid-template-columns: minmax(0, 1fr); }
  .story-art { aspect-ratio: auto; max-width: 420px; }
}
@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .site-header .wrap { height: 68px; gap: 12px; }
  .status { font-size: .8rem; padding: 6px 11px; }
  .brand span { font-size: 1.15rem; }
  .site-header .btn { display: none; }
  .pillars { grid-template-columns: 1fr; }
  .sizes { gap: 8px; }
  .size { padding: 14px 6px; }
  .card { padding: 22px 18px 16px; }
  .size strong { font-size: 1.5rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; inset: auto 0 0 0; z-index: 60;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 3px solid var(--ink);
  }
  .mobile-bar .btn { padding: 14px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
