@font-face {
  font-family: "Mak";
  src: url("/fonts/mak-light.woff") format("woff");
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
}

@font-face {
  font-family: "Mak";
  src: url("/fonts/mak-bold.woff") format("woff");
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
}

:root {
  --display: "Mak", "Editorial Narrow", "Arial Narrow", sans-serif;
}

.mobile-mode-tabs {
  display: none;
}

@keyframes order-glint {
  0%,
  64% {
    transform: translateX(-160%) skewX(-22deg);
  }

  100% {
    transform: translateX(280%) skewX(-22deg);
  }
}

@keyframes mobile-panel-in {
  from {
    opacity: 0.3;
    transform: scale(1.012);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (width <= 720px) {
  .site-header {
    padding: env(safe-area-inset-top, 0)
      max(12px, env(safe-area-inset-right, 0)) 0
      max(12px, env(safe-area-inset-left, 0));
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .brand-logo-wrap {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy b {
    font-family: var(--display);
    white-space: nowrap;
    letter-spacing: 0.015em;
    font-size: 15px;
    line-height: 1;
  }

  .header-order {
    isolation: isolate;
    border: 1px solid #2015122b;
    border-radius: 999px;
    gap: 8px;
    min-height: 42px;
    padding: 4px 5px 4px 13px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 22px #2015121a;
  }

  .header-order::before {
    content: "";
    z-index: -1;
    background: linear-gradient(90deg, transparent, #fff8ec59, transparent);
    width: 34%;
    position: absolute;
    inset: -4px auto -4px 0;
    animation: order-glint 3.8s ease-in-out infinite;
  }

  .header-order span:first-child {
    display: inline;
    letter-spacing: 0.12em;
    font-size: 9px;
  }

  .header-order span:last-child {
    background: var(--cinnamon);
    border-radius: 50%;
    place-items: center;
    width: 30px;
    height: 30px;
    font-size: 14px;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
    display: grid;
  }

  .header-order:active {
    background: var(--ink);
    transform: scale(0.96);
  }

  .header-order:active span:last-child {
    transform: rotate(45deg);
  }

  .hero {
    padding-top: 72px;
  }

  .mobile-mode-tabs {
    background: #fff8ecf2;
    border-bottom: 1px solid var(--line);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    height: 52px;
    padding: 6px max(10px, env(safe-area-inset-right, 0)) 6px
      max(10px, env(safe-area-inset-left, 0));
    display: grid;
  }

  .mobile-mode-tab {
    color: var(--ink);
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 999px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    min-width: 0;
    padding: 0 7px;
    transition:
      color 0.24s,
      background 0.24s,
      transform 0.24s,
      box-shadow 0.24s;
    display: flex;
  }

  .mobile-mode-tab span {
    opacity: 0.55;
    letter-spacing: 0.08em;
    font-size: 8px;
    font-weight: 800;
  }

  .mobile-mode-tab strong {
    white-space: nowrap;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    font-size: 9px;
  }

  .mobile-mode-tab.is-active {
    border-color: #2015121f;
    background: var(--cream);
    box-shadow: 0 5px 14px #20151212;
    transform: translateY(-1px);
  }

  .mobile-mode-tab:nth-child(2).is-active {
    background: var(--mustard);
  }

  .mobile-mode-tab:nth-child(3).is-active {
    background: var(--espresso);
    color: var(--paper);
  }

  .mobile-mode-tab:focus-visible {
    outline: 2px solid var(--cinnamon);
    outline-offset: 2px;
  }

  .mode-grid,
  .mode-grid[data-active="1"],
  .mode-grid[data-active="2"] {
    width: 100%;
    height: clamp(590px, calc(100svh - 160px), 700px);
    min-height: 590px;
    display: block;
    overflow: hidden;
  }

  .mode-panel {
    border-right: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    display: none;
  }

  .mode-panel[data-is-active="true"] {
    display: block;
  }

  .mode-closed,
  .mode-hit {
    display: none;
  }

  .mode-open,
  .mode-panel[data-is-active="true"] .mode-open {
    opacity: 1;
    pointer-events: auto;
    transition: none;
  }

  .mode-panel[data-is-active="true"] .mode-open {
    animation: mobile-panel-in 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero-product {
    object-position: center 42%;
    width: 100%;
    height: 50%;
    transform: none;
  }

  .mode-sweet .hero-product {
    object-position: 50% 45%;
  }

  .mode-savory .hero-product {
    object-position: 50% 52%;
  }

  .mode-pizza .hero-product {
    object-position: 50% 54%;
  }

  .hero-shade {
    background: linear-gradient(
      180deg,
      #f2e7d500 22%,
      #f2e7d5d9 48%,
      #f2e7d5 60%
    );
  }

  .mode-savory .hero-shade {
    background: linear-gradient(
      180deg,
      #d99a2b00 22%,
      #d99a2bd9 48%,
      #d99a2b 60%
    );
  }

  .mode-pizza .hero-shade {
    background: linear-gradient(
      180deg,
      #2a171200 22%,
      #2a1712db 48%,
      #2a1712 60%
    );
  }

  .hero-copy {
    max-width: none;
    bottom: 24px;
    left: 18px;
    right: 18px;
  }

  .eyebrow {
    margin-bottom: 11px;
    font-size: 8px;
  }

  .hero-copy h1 {
    font-family: var(--display);
    white-space: nowrap;
    letter-spacing: -0.035em;
    font-size: clamp(38px, 11.4vw, 51px);
    line-height: 0.86;
  }

  .hero-lead {
    max-width: 440px;
    margin: 15px 0 17px;
    font-size: 13px;
    line-height: 1.38;
  }

  .hero-actions {
    align-items: stretch;
    gap: 10px;
  }

  .hero-actions .primary-button {
    border-radius: 999px;
    width: 100%;
    min-height: 48px;
    padding: 0 9px 0 17px;
  }

  .hero-actions .primary-button span {
    background: #fff8ec24;
    border-radius: 50%;
    place-items: center;
    width: 30px;
    height: 30px;
    display: grid;
  }

  .hero-note {
    padding-left: 2px;
    font-size: 9px;
  }

  .active-chapter {
    display: none;
  }

  .hero-ticker {
    height: 36px;
  }
}

@media (width <= 370px) {
  .site-header {
    padding-right: 9px;
    padding-left: 9px;
  }

  .brand {
    gap: 7px;
  }

  .brand-logo-wrap {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .brand-copy b {
    font-size: 13px;
  }

  .header-order {
    min-height: 38px;
    padding-left: 10px;
  }

  .header-order span:last-child {
    width: 27px;
    height: 27px;
  }

  .mobile-mode-tab {
    gap: 4px;
  }

  .mobile-mode-tab strong {
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-order::before,
  .mode-panel[data-is-active="true"] .mode-open {
    animation: none;
  }
}
