/* Home: the loaf in front of the name, the morning from 4 am, the shelves, cakes, and where to find us. */

/* Hero. The film and its still blend with "lighten": the oven-black around the loaf disappears into the page, so the
   loaf sits in front of the giant name and the name shows through only where the frame is dark. */
.hero { position: relative; isolation: isolate; overflow: hidden; background-color: var(--oven); padding-bottom: 28px; }
.hero__stage { position: relative; isolation: isolate; }
.hero__word {
  margin: 0; display: flex; flex-direction: column; padding: 16px var(--gutter) 0;
  font: 900 21.6vw/.8 var(--display); letter-spacing: -.045em; text-transform: uppercase; color: var(--bake);
}
.hero__word span:last-child { align-self: flex-end; }
.hero__media {
  position: relative; width: 128vw; margin: -19vw 0 0 -14vw; aspect-ratio: 16 / 9; mix-blend-mode: lighten;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 70%, transparent 96%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 70%, transparent 96%), linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%); mask-composite: intersect;
}
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* The still waits a moment without script (the film may take its place); script and reduced motion settle it at once. */
.hero__media img { animation: still-in .8s ease 2.4s both; }
@keyframes still-in { from { opacity: 0; } }
.motion .hero__media img { animation: none; opacity: 0; transition: opacity .8s var(--ease); }
.motion .hero__media img.is-shown, .still .hero__media img { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; opacity: 1; } }
.hero__copy { position: relative; z-index: 2; margin-top: -12vw; }
.hero h1 { font-size: clamp(1.9rem, 8vw, 3.7rem); font-weight: 800; max-width: 16ch; }
.hero__lede { margin: 16px 0 0; max-width: 40ch; color: var(--on-dark-2); }
.hero__status { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; font: 600 15px/1.35 var(--mono); color: var(--on-dark); }
.hero__status svg { width: 20px; height: 20px; flex: none; color: var(--yolk); }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.hero__acts .btn { flex: 1 1 150px; }
.hero__hours { margin: 16px 0 0; font-size: 16px; line-height: 1.45; color: var(--on-dark-2); }

@media (min-width: 900px) {
  .hero { min-height: min(calc(100svh - 74px), 960px); display: grid; align-items: end; padding-bottom: clamp(36px, 5vw, 64px); }
  .hero__stage { position: absolute; inset: 0; }
  .hero__word { flex-direction: row; justify-content: center; padding: clamp(18px, 3vw, 40px) 0 0; font-size: 12.4vw; white-space: nowrap; }
  .hero__word span:last-child { align-self: auto; }
  .hero__media { position: absolute; right: -8vw; top: clamp(16px, 3vw, 44px); width: 75vw; margin: 0; }
  .hero__copy { margin-top: 0; padding-top: 22vw; display: grid; grid-template-columns: minmax(0, 34rem); }
  .hero h1 { font-size: clamp(2.5rem, 3.5vw, 3.8rem); }
  .hero__acts .btn { flex: 0 0 auto; }
}

/* The morning. Still: three times in a row. With motion: one pinned stage, the clock runs from 4:00 to 7:30. */
.morning { position: relative; background: var(--oven); color: var(--on-dark); padding: clamp(28px, 7vw, 110px) 0 clamp(48px, 8vw, 110px); }
.morning__head { margin-bottom: clamp(24px, 4vw, 48px); }
.morning__head h2 { max-width: 13ch; }
.morning__clock, .morning__rail { display: none; }
.beats { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; display: grid; gap: 28px; }
.beat__media { position: relative; aspect-ratio: 3 / 4; }
.beat__media video { position: absolute; inset: 0; }
.beat--four .beat__media img { object-position: 50% 92%; }
.beat__time { margin: 0 0 8px; font: 900 clamp(3.2rem, 13vw, 5rem)/.85 var(--display); letter-spacing: -.03em; color: var(--yolk); }
.beat__time small { margin-left: -.15em; font: 600 14px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-2); }
.beat h3 { margin-bottom: 8px; }
.beat p:last-child { margin: 0; color: var(--on-dark-2); }
.beat--four, .beat--seven { display: grid; grid-template-columns: 40% 1fr; gap: 18px; align-items: center; }
.beat--buns { position: relative; margin-top: 12px; }
.beat--buns .beat__media { aspect-ratio: 4 / 5; margin-inline: calc(-1 * var(--gutter)); }
.beat--buns .beat__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 16, 12, .88), rgba(20, 16, 12, 0) 48%); }
.beat--buns .beat__text { position: relative; z-index: 2; }
.beat--buns .beat__time { position: relative; font-size: clamp(7rem, 34vw, 15rem); color: var(--flour); margin: -.56em 0 14px; }
.beat--buns .beat__time { display: flex; align-items: flex-start; }
.beat--buns .beat__time small { color: var(--yolk); font-size: 16px; margin: .9em 0 0 .3em; }
.beat--buns h3 { font-size: clamp(2rem, 8vw, 3rem); font-weight: 900; }
.beat--buns p:last-child { color: var(--on-dark); font-size: 18px; max-width: 30ch; }

@media (min-width: 900px) {
  .beats { grid-template-columns: 1fr 1fr 1.45fr; gap: clamp(20px, 2.4vw, 36px); align-items: end; }
  .beat--four, .beat--seven { display: block; }
  .beat--four .beat__media, .beat--seven .beat__media { aspect-ratio: 4 / 5; margin-bottom: 18px; }
  .beat--buns { margin-top: 0; }
  .beat--buns .beat__media { margin: 0; aspect-ratio: 4 / 5; }
  .beat--buns .beat__text { position: absolute; left: 24px; right: 24px; bottom: 24px; margin: 0; }
  .beat--buns .beat__time { font-size: clamp(6rem, 11vw, 11rem); }
}

/* Motion: the pinned stage. */
.scenes .morning { padding: 0; }
.scenes .morning__stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; --dim: .62; }
.scenes .morning__head { position: absolute; top: calc(var(--top-h) + clamp(16px, 3vh, 36px)); left: 0; right: 0; z-index: 3; margin: 0 auto; }
.scenes .morning__head h2 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
.scenes .beats { position: absolute; inset: 0; width: auto; margin: 0; display: block; }
.scenes .beat { position: absolute; inset: 0; display: block; margin: 0; }
.scenes .beat__media, .scenes .beat--buns .beat__media { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; }
.scenes .beat__media::after { content: ''; position: absolute; inset: 0; background: var(--oven); opacity: var(--dim); }
.scenes .beat__media::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(20, 16, 12, .9), rgba(20, 16, 12, 0) 52%), linear-gradient(to bottom, rgba(20, 16, 12, .7), rgba(20, 16, 12, 0) 34%); }
.scenes .beat__text { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(84px, 12vh, 120px); top: auto; max-width: 34ch; margin: 0; }
.scenes .beat__time { display: none; }
.scenes .beat p:last-child { color: var(--on-dark); }
.scenes .morning__clock {
  display: block; position: absolute; z-index: 2; left: var(--gutter); top: 47%; transform: translateY(-50%); margin: 0;
  font: 900 min(30vw, 30svh)/.8 var(--display); letter-spacing: -.04em; color: var(--flour);
}
.scenes .morning__clock small { font: 600 clamp(14px, 1.6vw, 20px)/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--yolk); margin-left: .6em; }
.scenes .morning__rail {
  display: flex; gap: 0; position: absolute; z-index: 3; left: var(--gutter); right: var(--gutter); bottom: clamp(28px, 5vh, 48px);
  font: 600 13px/1 var(--mono); color: var(--on-dark-2); border-top: 2px solid var(--line-dark);
}
.scenes .morning__rail li { flex: 1; padding-top: 12px; transition: color .3s var(--ease); }
.scenes .morning__rail li:first-child { flex: 6; }
.scenes .morning__rail li:nth-child(2) { flex: 1.4; }
.scenes .morning__rail li:last-child { flex: 0 0 auto; }
.scenes .morning__rail li.is-on { color: var(--yolk); }
.scenes .morning__rail::before { content: ''; position: absolute; left: 0; top: -2px; height: 2px; width: calc(var(--p, 0) * 100%); background: var(--yolk); }
@media (min-width: 900px) {
  .scenes .beat__text { left: auto; right: var(--gutter); bottom: clamp(96px, 14vh, 140px); max-width: 30rem; }
  .scenes .beat h3 { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 900; }
}

/* On the shelves: a written board beside two close photographs. */
.shelf { padding: clamp(64px, 10vw, 140px) 0; }
.shelf__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 clamp(16px, 2vw, 28px); }
.shelf__head { grid-column: 1 / 7; }
.shelf__head .lede { margin-top: 16px; color: var(--ink-2); }
.shelf__loaf { grid-column: 8 / 13; grid-row: 1 / 4; aspect-ratio: 2 / 3; align-self: start; }
.shelf__crust { grid-column: 6 / 9; grid-row: 2 / 4; aspect-ratio: 2 / 3; align-self: end; z-index: 2; margin-bottom: -48px; box-shadow: 0 30px 50px -24px rgba(27, 20, 15, .55); border: 6px solid var(--flour); }
.board { grid-column: 1 / 6; grid-row: 2 / 4; display: grid; gap: 34px; margin-top: 44px; align-content: start; }
.board h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); font-weight: 900; padding-bottom: 10px; border-bottom: 3px solid var(--ink); }
.board li { display: flex; align-items: baseline; gap: 10px; padding: 13px 0 11px; border-bottom: 1px solid var(--line-light); font: 700 clamp(1.15rem, 1.6vw, 1.35rem)/1.2 var(--display); }
.board li::before { content: ''; order: 2; flex: 1; border-bottom: 2px dotted rgba(27, 20, 15, .35); transform: translateY(-4px); min-width: 16px; }
.board li span { order: 1; }
.board li b { order: 3; font: 600 1.05rem/1 var(--mono); }
.board em { font: 600 12px/1 var(--mono); font-style: normal; letter-spacing: .06em; color: var(--flour); background: var(--crust); padding: 4px 6px; border-radius: 3px; margin-left: 6px; vertical-align: .18em; }
.board__more { justify-self: start; }
@media (max-width: 899px) {
  .shelf__grid { grid-template-columns: repeat(8, 1fr); }
  .shelf__head { grid-column: 1 / -1; margin-bottom: 22px; }
  .shelf { padding-top: 56px; }
  .shelf__loaf { grid-column: 1 / 6; grid-row: 3; margin-top: 44px; }
  .shelf__crust { grid-column: 5 / 9; grid-row: 3; margin: 0 0 -28px; border-width: 5px; }
  .board { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
}

/* Cakes: the one band in crust brown. */
.cakes-band { background: var(--crust); color: var(--flour); padding: clamp(64px, 10vw, 130px) 0; }
.cakes-band__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.cakes-band__photo { aspect-ratio: 1 / 1; }
.cakes-band__photo img { object-position: 50% 92%; filter: sepia(.22) saturate(1.08); }
.cakes-band .eyebrow { color: var(--yolk); }
.cakes-band h2 { max-width: 11ch; }
.cakes-band .lede { margin: 18px 0 26px; }
.sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 24px; border-top: 1px solid rgba(247, 242, 234, .3); }
.sizes div { padding: 16px 16px 16px 0; border-bottom: 1px solid rgba(247, 242, 234, .3); }
.sizes div + div { padding-left: 18px; border-left: 1px solid rgba(247, 242, 234, .3); }
.sizes dt { font: 800 1.35rem/1.1 var(--display); }
.sizes dd { margin: 6px 0 0; color: #ead9c6; }
.sizes dd b { display: block; font: 900 2.4rem/1 var(--display); color: var(--flour); margin-bottom: 4px; }
.cakes-band p { max-width: 42ch; }
.cakes-band__next { font: 500 14px/1.5 var(--mono); color: #ead9c6; }
.cakes-band__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 8px; }
.cakes-band .link { text-decoration-color: var(--yolk); }
@media (max-width: 899px) {
  .cakes-band__grid { grid-template-columns: 1fr; }
  .cakes-band__photo { aspect-ratio: 5 / 4; margin-inline: calc(-1 * var(--gutter)); }
}

/* Find us */
.find { padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.find__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.find__status { font: 600 15px/1.4 var(--mono); color: var(--yolk); margin: 16px 0 20px; }
.hours { width: 100%; max-width: 30rem; border-collapse: collapse; margin-bottom: 14px; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px solid var(--line-dark); text-align: left; font-weight: 500; }
.hours td { text-align: right; font-family: var(--mono); font-size: 15px; color: var(--on-dark-2); }
.hours tr.is-today th, .hours tr.is-today td { color: var(--yolk); font-weight: 700; }
.hours tr.is-today th::after { content: ' · today'; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.find__note { color: var(--on-dark-2); margin-bottom: 22px; }
.find__photo { aspect-ratio: 3 / 2; }
.find__photo img { filter: sepia(.42) saturate(1.12); }
@media (max-width: 899px) { .find__grid { grid-template-columns: 1fr; } .find__photo { order: -1; margin-inline: calc(-1 * var(--gutter)); } }
.scenes [data-drift] { scale: 1.14; }
