/* Doughbry's home page. Loads after base.css and intro.css. */

/* Shared bits */
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.6rem); justify-items: start; }
.theme-red .lede { font-weight: 700; }
.theme-cream .eyebrow { color: var(--forest); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.tri { display: inline-block; width: 0.72em; height: 0.72em; flex: none; background: var(--yellow); clip-path: polygon(50% 6%, 97% 94%, 3% 94%); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: 100svh; display: flex; align-items: center; padding: clamp(6rem, 5rem + 4vw, 8rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: url("../assets/svg/tri-pattern.svg") 0 0 / 400px 400px; opacity: 0.45; }
.hero__bg .blob { position: absolute; height: auto; }
.blob--a { width: min(95vw, 980px); left: -22%; top: -30%; }
.blob--b { width: min(90vw, 900px); right: -20%; bottom: -34%; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: clamp(1rem, 4vw, 4rem); }
.hero__copy { display: grid; gap: clamp(1rem, 0.8rem + 1vw, 1.5rem); justify-items: start; }
.hero h1 span { display: block; }
.hero .lede { max-width: 31ch; }
.hero .chip { white-space: nowrap; font-size: clamp(0.66rem, 2.75vw, 0.95rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem 1rem; margin-top: 0.35rem; }

.hero__art { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1 / 0.94; justify-self: center; }
.hero__pie { position: absolute; left: 9%; right: 7%; top: 10%; rotate: 7deg; }
.hero__pie img { width: 100%; filter: drop-shadow(0 18px 0 rgba(20, 38, 30, 0.22)); }
.sticker { position: absolute; }
.sticker img { width: 100%; filter: drop-shadow(0 5px 0 rgba(20, 38, 30, 0.28)); }
.sticker--original { width: 37%; left: -3%; top: 9%; rotate: -11deg; }
.sticker--spicy { width: 24%; right: -1%; top: 3%; rotate: 13deg; }
.sticker--veggie { width: 27%; left: -1%; bottom: 13%; rotate: 9deg; }
.sticker--breakfast { width: 22%; right: 1%; bottom: 23%; rotate: -8deg; }
.sticker--goodness { width: 25%; left: 37%; bottom: -1%; rotate: -6deg; }

.float { animation: float-y 7s ease-in-out infinite; will-change: transform; }
.float--pie { animation-duration: 8s; }
.float--a { animation-duration: 6.2s; animation-delay: -1.5s; }
.float--b { animation-duration: 7.4s; animation-delay: -3.2s; }
.float--c { animation-duration: 6.8s; animation-delay: -4.6s; }
@keyframes float-y { 0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); } 50% { transform: translate3d(0, -11px, 0) rotate(1.6deg); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: clamp(0.85rem, 2vw, 1.2rem) 0; border-block: 3px solid var(--ink); }
.marquee__track { display: flex; width: max-content; animation: marquee 34s linear infinite; will-change: transform; }
.marquee__group { display: flex; align-items: center; gap: clamp(1.1rem, 2.4vw, 2rem); padding-right: clamp(1.1rem, 2.4vw, 2rem); flex: none; }
.marquee__group span { font-family: var(--font-body); font-stretch: 125%; font-weight: 800; font-size: clamp(1rem, 0.85rem + 0.9vw, 1.55rem); letter-spacing: 0.15em; text-transform: uppercase; white-space: nowrap; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- What it is ---------- */
.corners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.1rem, 2.6vw, 2rem); margin: 0; padding: 0; list-style: none; }
.corner-card { display: grid; gap: 0.7rem; align-content: start; background: var(--white); border: 3px solid var(--ink); border-radius: var(--radius); padding: 1.6rem 1.5rem 1.8rem; box-shadow: var(--pop); }
.corner-card:nth-child(1) { rotate: -1.3deg; }
.corner-card:nth-child(2) { rotate: 0.9deg; translate: 0 10px; }
.corner-card:nth-child(3) { rotate: -0.7deg; }
.corner-card__tag { display: flex; align-items: center; gap: 0.6em; font-family: var(--font-body); font-stretch: 125%; font-weight: 800; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); }
.corner-card__tag svg { flex: none; }
.corner-card h3 { color: var(--ink); }
@media (min-width: 901px) { .corner-card h3 { min-height: 2.1em; } }
.corner-card p:last-child { font-size: var(--step-0); }

/* ---------- The pies ---------- */
.pies { isolation: isolate; overflow: hidden; }
.pies__blob { position: absolute; z-index: -1; width: min(110vw, 1100px); height: auto; right: -30%; top: -8%; pointer-events: none; }
.pies__groups { display: grid; gap: clamp(1.8rem, 4vw, 3rem); }
.pie-group h3 { margin-bottom: 1.1rem; }
.flavors { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 215px), 1fr)); gap: 1.4rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.flavor { position: relative; display: flex; align-items: center; min-height: 4.7rem; padding: 1rem 1.15rem; background: var(--cream); color: var(--ink); border: 3px solid var(--ink); border-radius: 20px; box-shadow: var(--pop); font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); line-height: 1.05; letter-spacing: -0.01em; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.flavor:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 9px 0 0 rgba(20, 38, 30, 0.9); }
.flavor--badge { padding-right: 3.4rem; }
.flavor__badge { position: absolute; right: -14px; top: -24px; width: 58px; height: auto; rotate: 10deg; filter: drop-shadow(0 3px 0 rgba(20, 38, 30, 0.3)); }
.flavor__badge--wide { width: 86px; top: -22px; right: -16px; rotate: 7deg; }
@media (min-width: 761px) { .flavors { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 860px; } }
.pies__notes { margin-top: clamp(2.2rem, 5vw, 3.4rem); display: grid; gap: 0.75rem; justify-items: start; }
.note { display: flex; align-items: baseline; gap: 0.6em; font-size: var(--step-1); font-weight: 700; line-height: 1.3; }
.note .tri { translate: 0 0.05em; }
.pies__notes .chip { margin-top: 0.6rem; }

/* ---------- Our story ---------- */
.story { overflow: hidden; }
.story__grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.story__copy { display: grid; gap: 1.15rem; max-width: 37rem; }
.story__copy p:not(.eyebrow) { font-size: var(--step-1); line-height: 1.5; font-weight: 500; }
.story__eyebrow, .story__sign { color: var(--yellow); }
.story__sign { margin-top: 0.7rem; }
.story__quote { position: relative; aspect-ratio: 1 / 0.9; display: grid; place-items: center; max-width: 520px; width: 100%; justify-self: center; rotate: 5deg; }
.story__quote svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.story__quote p { position: relative; margin-top: 24%; max-width: 8ch; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.55rem, 1rem + 2.5vw, 2.9rem); line-height: 0.98; letter-spacing: -0.02em; color: var(--ink); rotate: -5deg; }

/* ---------- Find us ---------- */
.find__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.find__copy { display: grid; gap: 1.2rem; justify-items: start; }
.mapcard { margin: 0; border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; box-shadow: var(--pop); background: var(--white); rotate: 1.4deg; }
.mapcard svg { display: block; width: 100%; height: auto; }
.map-road { font-family: var(--font-body); font-stretch: 125%; font-weight: 800; font-size: 13px; letter-spacing: 0.12em; fill: #F0F0E7; }
.map-pin { font-family: var(--font-body); font-stretch: 125%; font-weight: 800; font-size: 9.5px; letter-spacing: 0.08em; fill: #F0F0E7; }
.map-n { font-family: var(--font-body); font-weight: 800; font-size: 9px; fill: #14261E; }

/* ---------- First dibs ---------- */
.dibs { position: relative; isolation: isolate; overflow: hidden; text-align: center; }
.dibs::before, .dibs::after { content: ""; position: absolute; z-index: -1; width: clamp(180px, 30vw, 420px); aspect-ratio: 1 / 0.9; clip-path: polygon(50% 4%, 98% 96%, 2% 96%); }
.dibs::before { background: var(--orange); left: -6%; bottom: -12%; rotate: 14deg; opacity: 0.55; }
.dibs::after { background: var(--lime); right: -7%; top: -14%; rotate: -160deg; opacity: 0.6; }
.dibs__inner { display: grid; gap: 1.15rem; justify-items: center; max-width: 46rem; }
.dibs h2 { color: var(--ink); font-size: var(--step-4); }
.signup { width: min(100%, 35rem); margin-top: 0.5rem; }
.signup .field { justify-content: center; }
.signup .btn { flex: 0 0 auto; }
.form-note { text-align: center; }
.form-note.is-good { font-weight: 800; }
.dibs__follow { margin-top: 0.8rem; font-weight: 800; font-family: var(--font-display); font-size: var(--step-1); }
.social--ink a { background: var(--ink); color: var(--yellow); }
.social--ink a:hover { background: var(--forest); }

/* ---------- Partners ---------- */
.partners__card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.4rem 2.2rem; background: var(--lime); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.7rem); box-shadow: var(--pop); }
.partners__copy { display: grid; gap: 0.5rem; max-width: 34rem; }
.partners__card h2 { color: var(--ink); }
.partners__card p { font-weight: 600; }

/* ---------- Tablets and phones ---------- */
@media (max-width: 900px) {
  .hero { align-items: flex-start; padding-top: 5.6rem; padding-bottom: 0; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .hero__art { max-width: min(86vw, 400px); margin: 0.6rem auto -9%; }
  .corners { grid-template-columns: minmax(0, 1fr); }
  .corner-card:nth-child(n) { rotate: none; translate: none; }
  .story__grid, .find__grid { grid-template-columns: minmax(0, 1fr); }
  .story__quote { max-width: 300px; margin-top: 0.5rem; }
  .mapcard { rotate: none; }
}
@media (max-width: 560px) {
  .chip { font-size: 0.72rem; letter-spacing: 0.11em; }
  .hero .lede { max-width: none; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1 1 auto; padding-inline: 1.1em; }
  .flavors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.3rem 0.8rem; }
  .flavor { font-size: 1.08rem; padding: 0.9rem 0.9rem; min-height: 4.4rem; }
  .flavor--badge { padding-right: 2.9rem; }
  .flavor__badge { width: 50px; right: -8px; top: -20px; }
  .flavor__badge--wide { width: 76px; top: -20px; right: -10px; }
  .flavors > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .signup .field { flex-direction: column; }
  .signup .field input[type="email"] { flex: 1 1 auto; width: 100%; text-align: center; }
  .signup .btn { width: 100%; }
  .partners__card .btn { width: 100%; }
}

/* ---------- Less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .float, .marquee__track { animation: none !important; }
}
