/* Pieces added in the Nov 1, 2026 content pass. Loaded after the page styles on every page. */

/* A plain list of short facts with a small brand triangle in front of each, instead of three look-alike cards.
   The line is bold and big, the small line under it is regular. */
.trio { list-style: none; margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(24px, 3vw, 48px); }
.trio--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
.trio--stack { grid-template-columns: 1fr; margin-top: 0; gap: 22px; }
.trio li { position: relative; padding-left: 38px; font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
.trio li::before { content: ""; position: absolute; left: 0; top: 0.18em; width: 24px; height: 21px; background: var(--orange); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.trio li span { display: block; margin-top: 8px; font-weight: 400; font-size: var(--body); line-height: 1.45; letter-spacing: 0; }
@media (max-width: 760px) {
  .trio, .trio--2 { grid-template-columns: 1fr; gap: 22px; }
}

/* The first screen, "Real Food. Real Fast." (Jacob's pick, Nov 1, 2026). These rules come after home.css on purpose,
   so they replace the old "Golden, Flaky, Gone." timing without touching that file.
   The lede says what, where and when, in bold ink: 4.7:1 on the orange and 3.86:1 on the swirl, and bold text at
   19px or more only needs 3:1. */
.hero .lede { max-width: 34ch; font-weight: 700; }
/* The pie never grows taller than the screen leaves room for, so the steam always clears the fixed header. */
.hero__pie { width: clamp(24rem, min(58vw, 100vw - 37rem, (100svh - 13rem) * 1.2), 62rem); }
/* The pie arrives hot, whole and steaming with "Real Food." and gets one quick chomp on "Real Fast."
   With less motion or no scripts it is the finished picture: bitten, steam at rest. */
.pie__wisp { transform-box: fill-box; transform-origin: 50% 100%; }
html.is-ready .pie { --bite-time: calc(10 * var(--enter-step, 50ms) + var(--enter-base, 60ms)); animation: pie-chomp 0.45s var(--spring) var(--bite-time) both; }
html.is-ready .pie__whole { animation: pie-then-hide 20ms step-start var(--bite-time) both; }
html.is-ready .pie__bitten { animation: pie-then-show 20ms step-start var(--bite-time) both; }
html.is-ready .pie__flake {
  animation: flake-pop 0.5s var(--spring) both, flake-drift 6s ease-in-out infinite;
  animation-delay: calc(4 * var(--enter-step, 50ms) + var(--enter-base, 60ms) + var(--n, 0) * 50ms), calc(var(--n, 0) * -1.1s);
}
/* Steam (Nov 2, 2026, after Jacob: "steam looks broken"): two whole wisps rise out of the bite once it lands. Each fades in
   quickly, drifts up and sways a little, then fades out quickly, always whole: no stubs, dots or pale ghosts. */
html.is-ready .pie__wisp { animation: steam-rise 3.6s ease-in-out infinite both; animation-delay: calc(var(--bite-time, 0.6s) + 0.1s + var(--n, 0) * 1.8s); }
/* Steam, Nov 3, 2026 (Jacob: "the steam is better but still a little weird and slow"; he picked this one on the Go page at
   4:06 PM and added "add one more steam line"): each of 3 wisps draws itself up out of the bite, then lifts away from the
   bottom, thins and fades, like cartoon steam, twice as fast as before. */
html.is-ready .pie__wisp { stroke-dasharray: 160 400; animation: steam-draw 2.4s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite both; animation-delay: calc(var(--bite-time, 0.6s) + 0.1s + var(--n, 0) * 0.8s); }      /* 3 wisps, a third of the loop apart */
@keyframes steam-draw {
  0% { stroke-dashoffset: 170; opacity: 0; stroke-width: 16; transform: translate(0, 4px); }
  10% { opacity: 1; }
  45% { stroke-dashoffset: 0; }
  65% { opacity: 1; stroke-width: 16; }
  100% { stroke-dashoffset: -110; opacity: 0; stroke-width: 6; transform: translate(0, -12px); }
}

@keyframes pie-chomp { 0% { transform: none; } 30% { transform: scale(0.94) rotate(3deg); } 65% { transform: scale(1.03) rotate(-1deg); } 100% { transform: none; } }
@keyframes steam-rise {
  0% { opacity: 0; transform: translate(0, 5px); }
  7% { opacity: 1; }
  50% { transform: translate(3px, -4px); }
  90% { opacity: 1; }
  100% { opacity: 0; transform: translate(0, -14px); }
}
@media (prefers-reduced-motion: reduce) {
  .pie, .pie__whole, .pie__bitten, .pie__flake, .pie__wisp { animation: none !important; }
}

/* No one-word last lines in running text (phones especially). */
p, li, dd, figcaption { text-wrap: pretty; }
/* The menu stickers: a touch smaller than the look pass made them, so neighbours never touch and none hangs past the last line. */
.sticker--original { --h: 2.5em; }
.sticker--veggie { --h: 2.6em; }
.sticker--breakfast { --h: 2.8em; }
.sticker--spicy { --h: 2.7em; }
/* The last corner of the pie by the sign-up: the same drawing as the top of the page, almost eaten. */
.dibs__last .pie { width: 100%; height: auto; }
.dibs__last { --sprout: clamp(22rem, 38vw, 38rem); width: var(--sprout); right: calc(6vw - var(--sprout) * 0.3); top: auto; bottom: 4%; rotate: 0deg; }      /* only the bottom-left corner of the drawing is left, so the box hangs off the right */
@media (max-width: 760px) {
  .dibs__last { --sprout: 13.5rem; right: -3.9rem; bottom: 1.75rem; }
}

/* Story: "We just added the dough." at display size, on its own orange band. */
.punch-band { padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; }
.punch-band__line { margin: 0; color: #fff; font-weight: 900; font-size: clamp(2.6rem, 1.4rem + 5vw, 6.2rem); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }

/* Home story panel: tall enough that the big sun never rises into the headline, whatever the text beside it. */
@media (min-width: 761px) { .story__lead { min-height: min(50vw, 48rem); } }      /* the sun is anchored to the bottom and sized by width, so the block grows with it */
@media (max-width: 480px) { .what .confetti { display: none; } }      /* small phones: no room for confetti between the moving fillings and the headline (Nov 3, 2026: three triangles crowded "Philly") */

/* Nothing drawn tucks under the fixed header (motion watch on the live site, Nov 2, 2026). The header is a solid orange
   bar, so a drawing that rose behind it looked cut off flat: the home pie's steam on most laptop screens and on short
   iPhone views, and the tip of the green leaf on the questions page. Measured at 22 sizes in Chrome and Safari's engine. */
@media (min-width: 901px) {
  /* Home: the pie keeps its size and sits only as much lower as its steam needs, at its highest, to clear the header
     (no change on big screens, where it already clears). The leaf behind it drops by the same amount, so the bite
     keeps its clear air above the leaf. */
  .hero__art { --pie-w: clamp(24rem, min(58vw, 100vw - 37rem, (100svh - 13rem) * 1.2), 62rem);
    --pie-drop: max(0px, 5.5rem - 50svh + 0.5 * var(--pie-w)); }
  .hero__pie { width: var(--pie-w); translate: 0 calc(-50% + var(--pie-drop)); }
  .hero__leaf { translate: 0 var(--pie-drop); }
  /* Questions: the leaf shows a little less, so its tip stays in sight. */
  .peek--sprout { --show: min(clamp(10rem, 24vw, 21rem), 17.5rem); }
}
/* Phones and small tablets: the pie leaves room above it for the steam (a touch smaller only where the screen is short). */
@media (max-width: 620px) { .hero__pie { height: min(100% - 2rem, 19rem); } }
@media (min-width: 621px) and (max-width: 900px) { .hero__pie { height: min(100% - 2rem, 30rem); } }
/* The footer's round social buttons (4 since YouTube was added, Nov 2, 2026) go onto 2 rows on the narrowest phones,
   instead of pushing the whole page sideways at 320 px. From 344 px up they stay on one row. */
@media (max-width: 340px) { .footer-social { flex-wrap: wrap; } }

/* The Pies page: the pie a touch smaller, so its top, bite and steam clear the header (Jacob's pick, Nov 2, 2026). */
@media (min-width: 901px) { .peek--pie { --w: clamp(20rem, 31vw, 28rem); } }

/* The sign-up button is ink, so on the orange band it reads as the button and the white box as the place to type (Nov 3, 2026). */
.dibs .signup .btn { background: var(--ink); color: var(--white); }
@media (hover: hover) { .dibs .signup .btn:hover { background: var(--white); color: var(--ink); } }
.dibs .signup .btn.is-loading .hop { color: var(--white); }

/* The lineup: more room around each sticker, so none sits on a divider line (Nov 3, 2026). */
.menu__list li { min-height: 3.6em; }
/* No empty cell in the menu board (Jacob, Nov 3: "the blank space in the classics looks odd"). The Classics are 3 pies, so in
   2 columns one cell sat empty beside Spinach. Wide screens get 3 columns (3 classics in one row, then 2 rows of 6);
   in between, Spinach takes the whole row; phones were already one column. */
@media (min-width: 1200px) { .menu { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 621px) and (max-width: 1199px) { .menu__group:first-child .menu__list li:last-child:nth-child(odd) { grid-column: 1 / -1; } }
/* A name never runs under its sticker: on the narrowest phones (320 px) SPICY covered the n of "Buffalo chicken" (Nov 3, 2026).
   The name stops short of the sticker's width, so it only wraps where it would have touched. */
.menu__list li:has(> .sticker--veggie) > span { max-width: calc(100% - 3.9em); }
.menu__list li:has(> .sticker--breakfast) > span { max-width: calc(100% - 3.2em); }
.menu__list li:has(> .sticker--spicy) > span { max-width: calc(100% - 3.4em); }
/* The Pies page: one short line under each name. */
.menu__line { display: block; margin-top: 0.25em; font-size: var(--body); font-weight: 500; line-height: 1.35; letter-spacing: 0; color: var(--ink-soft); }
/* Five follow buttons since X joined (Nov 3, 2026). On a phone they get their own full-width row in the footer, and on the narrowest
   phones they shrink to 44 px (still a full fingertip) so all five fit on one line everywhere they appear. */
@media (max-width: 760px) { .footer-grid > div:last-child { display: contents; } .footer-social { grid-column: 1 / -1; margin-top: 0.2rem; } }
@media (max-width: 400px) { .social { gap: 0.5rem; } .social a { width: 44px; height: 44px; } }

/* The hand pie page (Nov 3, 2026). The pasty, the empanada and ours in three plain rows, the press page's fact rows with the name
   in bold. (Drawings of the three were tried first; Jacob found them "a little confusing", 3:32 PM.) */
.lineup__rows { margin-top: 0.4rem; }
.lineup__name { font-weight: 900; font-size: var(--h3); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }
.lineup__note { margin-top: clamp(1.8rem, 4vw, 2.6rem); max-width: 46rem; }
.lineup__note > p:first-child { font-size: var(--lede); line-height: 1.45; font-weight: 500; }
/* The top of the hand pie page: the label is a small tilted yellow tag, like the brand's flavor stickers, so a visitor from a
   search sees "not open yet, and where" before anything else. The button never breaks onto two lines. */
.page-hero .kicker.hero-tag { justify-self: start; display: grid; gap: 0.25rem; padding: 0.6rem 0.95rem 0.68rem; background: var(--yellow); color: var(--ink);
  border-radius: 12px; rotate: -3deg; font-size: 0.9375rem; letter-spacing: 0.18em; line-height: 1.15; }
.hero-tag span + span { font-size: 0.8125rem; letter-spacing: 0.14em; }
.page-hero__cta .btn, .one-line { white-space: nowrap; }      /* .one-line: a hyphenated word never splits at the end of a line */
@media (max-width: 360px) { .page-hero__cta .btn { padding-inline: 1.15em; font-size: 1.125rem; } }

/* ---------- Phone first (Jacob's picks on the proposal board, Nov 11, 2026) ---------- */
/* 1. The email box on the first screen */
.hero__signup { margin-top: 0.5rem; }
@media (min-width: 621px) { .hero__signup { width: min(100%, 28rem); } .hero__signup input[type="email"] { min-width: 0; } }      /* keeps the button clear of the drawn pie on laptops */
.hero__signup .btn { background: var(--ink); color: var(--white); }
@media (hover: hover) { .hero__signup .btn:hover { background: var(--white); color: var(--ink); } }
.hero__signup .form-note:empty { display: none; }
.signup.is-sent .field { display: none; }
.signup.is-sent .form-note { font-size: 1.25rem; font-weight: 800; }
@media (max-width: 620px) { .hero__inner { gap: 0.9rem; } .hero .lede { font-size: 1.15rem; } }
/* The phone bar and its sign-up sheet (phones only; site/js/phone.js adds them) */
.dibs-bar, .dibs-sheet { display: none; }
@media (max-width: 620px) {
  body.has-dibs-bar { padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
  .dibs-bar { display: flex; position: fixed; z-index: 60; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 0.8rem;
    padding: 0.55rem 0.55rem 0.55rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--white); transition: translate 0.35s var(--ease), opacity 0.35s var(--ease); }
  .dibs-bar b { font-size: 1rem; line-height: 1.15; }
  .dibs-bar .btn { min-height: 2.9rem; padding-inline: 1.2rem; background: var(--white); color: var(--ink); font-size: 1rem; white-space: nowrap; }
  .dibs-bar.is-away { translate: 0 150%; opacity: 0; pointer-events: none; visibility: hidden; transition: translate 0.35s var(--ease), opacity 0.35s var(--ease), visibility 0s 0.35s; }
  .dibs-sheet { display: block; position: fixed; z-index: 70; inset: 0; pointer-events: none; visibility: hidden; transition: visibility 0s 0.35s; }
  .dibs-sheet::before { content: ""; position: absolute; inset: 0; background: rgb(0 0 0 / 0.45); opacity: 0; transition: opacity 0.3s; }
  .dibs-sheet__card { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem var(--edge) calc(1.4rem + env(safe-area-inset-bottom)); border-radius: var(--radius) var(--radius) 0 0; background: var(--orange); color: var(--white); translate: 0 105%; transition: translate 0.35s var(--ease); }
  .dibs-sheet__card h2 { margin: 0 0 0.3rem; font-size: 2rem; line-height: 1.05; }
  .dibs-sheet__card p { margin: 0 0 1rem; color: var(--ink); font-weight: 600; }
  .dibs-sheet__card .signup .btn { background: var(--ink); color: var(--white); }
  .dibs-sheet__card .form-note:empty { display: none; }
  .dibs-sheet__x { position: absolute; top: 0.9rem; right: 0.9rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); font-size: 1.4rem; line-height: 1; }
  .dibs-sheet.is-open { pointer-events: auto; visibility: visible; transition: visibility 0s; }
  .dibs-sheet.is-open::before { opacity: 1; }
  .dibs-sheet.is-open .dibs-sheet__card { translate: 0 0; }
}
/* 2. Send it to a friend, right after a sign-up */
.friend { display: grid; gap: 0.6rem; justify-items: start; margin-top: 0.9rem; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--ink); width: min(100%, 34rem); }
.friend p { margin: 0; color: var(--white); font-weight: 700; font-size: 1.15rem; line-height: 1.25; }
.friend .btn { background: var(--white); color: var(--ink); }
@media (max-width: 620px) { .friend .btn { width: 100%; } }
/* 3. Tap the pie you'd grab first */
.pick-ask { margin: 0 0 1rem; padding-top: 0.4rem; font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.menu__list li.pickable { cursor: pointer; justify-content: flex-start; gap: 0.85rem; -webkit-tap-highlight-color: transparent; transition: background 0.2s; }
.menu__list li.pickable > span { flex: 1 1 auto; }
.menu__list li.pickable:has(> .sticker) > span { max-width: calc(100% - 3.6rem - 3.4em); }
.menu__list li.pickable .sticker--original { --h: 2.3em; }
.menu__list li.pickable:has(> .sticker--original) > span { max-width: calc(100% - 3.6rem - 5.4em); }
.pick-dot { flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid var(--orange); display: grid; place-items: center; background: var(--white); color: var(--orange); font: 800 1.3rem/1 var(--font-brand); font-style: normal; }
.pick-dot::before { content: "+"; }
.menu__list li.is-picked { background: #FFF1D6; }
.menu__list li.is-picked .pick-dot { background: var(--orange); border-color: var(--orange); color: var(--white); }
.menu__list li.is-picked .pick-dot::before { content: "\2713"; }
.menu__list li.pickable:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.pick-done { margin: 0.9rem 0 0; padding: 1rem 1.15rem; border-radius: var(--radius); background: var(--ink); color: var(--white); font-weight: 700; }
.pick-done[hidden] { display: none; }
@media (max-width: 620px) { .pick-done { position: fixed; z-index: 65; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); margin: 0; } }
@media (max-width: 360px) {
  .menu__list li.pickable { gap: 0.6rem; }
  .pick-dot { flex-basis: 2.1rem; width: 2.1rem; height: 2.1rem; font-size: 1.05rem; }
  .menu__list li.pickable .sticker { --h: 2.2em; }
  .menu__list li.pickable:has(> .sticker) > span { max-width: calc(100% - 2.7rem - 2.5em); }
  .menu__list li.pickable:has(> .sticker--original) > span { max-width: calc(100% - 2.7rem - 4.6em); }
}
