/* /delivery (Ben, 7 November 2026). The homepage's header, footer, type and colours
   (styles.css); everything sits right of a left margin that carries the orange line, as
   the Tap line does on the homepage (line.js draws it, for delivery.js). */

.dl {
  --dl-gut: 72px;
  --dl-gap: 40px;
  --dl-shadow: rgba(20, 33, 61, 0.1);
  position: relative;
  overflow-x: clip;
}

/* Everything starts right of the margin with the line in it. */
.dl-in {
  padding-left: calc(var(--dl-gut) + var(--dl-gap));
}

/* The line: drawn by line.js (line.css) in a box inside each section, the header and the
   footer, under their content. Each section is the box's frame; everything in it sits above. */
.dl main > section,
.dl .site-footer {
  position: relative;
}

.dl main > section > .wrap,
.dl .site-header__inner,
.dl .site-footer__inner {
  position: relative;
  z-index: 1;
}

/* The line ends just inside the top of the footer, where the tip (62% down the window)
   reaches even at the very end of the page: the footer is never shorter than that. */
.dl .site-footer {
  min-height: calc(38svh + 40px);
}

/* Hero */

.dl-hero {
  background: var(--paper);
  padding: clamp(64px, 8vw, 120px) 0 clamp(72px, 9vw, 128px);
}

.dl-eyebrow {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.dl-hero__title {
  max-width: 14ch;
  margin-top: 14px;
  font-size: clamp(40px, 6vw, 78px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.dl-hero__line {
  max-width: 40ch;
  margin-top: 22px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* The apps */

.dl-apps {
  background: var(--white);
  padding: var(--section) 0;
}

.dl-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 680px;
}

.dl-head__title {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.dl-head__line {
  color: var(--ink-soft);
}

.dl-apps__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
}

/* The small print under the tiles (the same line as under the homepage band's). */
.dl-apps__small {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
}

.dl-app {
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  /* The edge is an inset shadow, not a border, so the logo is sized on the whole tile. */
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px var(--dl-shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}

.dl-app:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 2px var(--accent), 0 14px 34px rgba(20, 33, 61, 0.14);
}

/* Three reasons */

.dl-why {
  background: var(--white);
  padding: 0 0 var(--section);
}

.dl-why__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.dl-why__item {
  position: relative;
  padding-top: 26px;
}

.dl-why__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

.dl-why__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.dl-why__text {
  margin-top: 10px;
  color: var(--ink-soft);
}

/* What's your night in? Four cards; each opens the "Order on..." chooser. */

.dl-night {
  background: var(--paper);
  padding: var(--section) 0;
}

.dl-night__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 720px;
}

.dl-night__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0.005em;
}

.dl-night__line {
  font-size: 20px;
  color: var(--ink-soft);
}

.dl-night__stage {
  position: relative;
  margin-top: 44px;
}

.dl-night__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.dl-night__card {
  display: flex;
  cursor: pointer;
  flex-direction: column;
  height: 100%;
  padding: 18px 18px 24px;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px var(--dl-shadow);
  color: var(--navy);
  text-decoration: none;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.dl-night__card:hover,
.dl-night__card[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--navy);
}

.dl-night__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(20, 33, 61, 0.14);
}

.dl-night__art {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 2;
  margin-bottom: 22px;
  border-radius: 14px;
  background: #FBEDE2;
}

.dl-night__art svg {
  display: block;
  width: 90%;
  height: auto;
}

.dl-night__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.02;
}

.dl-night__text {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.dl-night__go {
  margin-top: auto;
  padding-top: 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-deep);
}

.dl-night__small {
  max-width: 70ch;
  margin-top: 36px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* The chooser: a small navy panel over the card that opened it (placed by delivery.js). */
.dl-pick {
  position: absolute;
  z-index: 8;
  width: min(340px, 100%);
  padding: 16px 16px 18px;
  border-radius: 16px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 24px 60px rgba(20, 33, 61, 0.35);
  --focus: var(--accent-soft);
}

.dl-pick[hidden] {
  display: none;
}

.dl-pick__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.dl-pick__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
}

.dl-pick__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: -8px -8px -8px 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.dl-pick__close:hover {
  background: var(--navy-2);
}

.dl-pick__apps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dl-pick__app {
  aspect-ratio: 2.6 / 1;
  transition: box-shadow var(--ease);
}

.dl-pick__app:hover {
  box-shadow: inset 0 0 0 3px var(--accent-bg);
}

@media (max-width: 1040px) {
  .dl-apps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dl-why__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    max-width: 560px;
  }

  .dl-night__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Phones: the line keeps to the left margin, with everything indented from it */
@media (max-width: 759px) {
  .dl {
    --dl-gut: 36px;
    --dl-gap: 18px;
  }

  .dl-hero__line {
    font-size: 18px;
  }

  .dl-apps__grid {
    gap: 12px;
    margin-top: 32px;
  }

  .dl-app {
    border-radius: 14px;
  }

  .dl-night__line {
    font-size: 17px;
  }

  .dl-night__stage {
    margin-top: 28px;
  }

  .dl-night__cards {
    gap: 12px;
  }

  .dl-night__card {
    padding: 10px 10px 16px;
    border-radius: 14px;
  }

  .dl-night__art {
    margin-bottom: 14px;
    border-radius: 10px;
  }

  .dl-night__name {
    font-size: 22px;
  }

  .dl-night__text {
    margin-top: 6px;
    font-size: 14px;
  }

  .dl-night__go {
    padding-top: 10px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dl-app,
  .dl-night__card {
    transition: none;
  }

  .dl-app:hover,
  .dl-night__card:hover {
    transform: none;
  }
}
