:root {
  /* Safari's Adaptive Dark Mode repaints light pages that do not declare a
     colour scheme, and flips the colours inside SVGs too (the logo's white eyes
     turn black). The site has no dark design, so it opts out. The meta tag in
     base.html does the same before this file loads. */
  color-scheme: light only;
  --bg: #FFF6F3;
  --surface: #FFFFFF;
  --ink: #5A3E4B;
  --muted: #7A5E6A;
  --accent: #B8456B;
  --accent-dark: #8F2F51;
  --line: #F0DCD9;
  --footer: #FBD9DF;
  --hover: #FFF0F3;
  --blush: #FBD9DF;
  --mint: #D4EFE3;
  --butter: #FDEFC2;
  --sky: #D5E9F8;
  --peach: #FFDCC8;
  --lilac: #E3DBF7;
  --sage: #E4EED5;
  --aqua: #D3F0EE;
  --sand: #F3E6D6;
  --mauve: #EED8EC;
  --font-body: Nunito, "Segoe UI", sans-serif;
  --font-display: Fredoka, "Trebuchet MS", sans-serif;
  --font-hand: Caveat, "Comic Sans MS", cursive;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

main {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
}

/* Wrapping: text fills its column, so a heading and the paragraph under it
   have the same available width. Paragraphs have no width limit of their
   own, and left-aligned headings are not balanced. Only centred text (the
   empty basket, the 404 page and the order-received page) and the hero
   heading use text-wrap: balance. */
h1,
h2,
p {
  text-wrap: pretty;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-dark);
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.shell {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface);
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
  color: var(--surface);
}

/* For labels that only assistive technology needs to read. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Header */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 40px;
}

.occasion-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  min-width: 0;
  /* The row scrolls when the links do not fit. The padding keeps focus rings
     clear of the scroll container's edges; the negative margin cancels it so
     the links stay aligned with the rest of the shell. */
  padding: 5px 6px;
  margin: -5px -6px;
  overflow-x: auto;
  scrollbar-width: none;
  /* Chrome leaves a partly visible link clipped when it receives focus, so
     make the scroll padding wide enough that a focused link is always
     scrolled to the middle of the row, outline included. */
  scroll-padding-inline: 50%;
}

.occasion-nav::-webkit-scrollbar {
  display: none;
}

.occasion-nav a {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.occasion-nav a:hover {
  color: var(--ink);
  background: var(--hover);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.header-search {
  display: flex;
  flex: 0 1 220px;
  min-width: 0;
}

.header-search__input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
}

.header-search__input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.header-search__input:focus {
  border-color: var(--accent);
}

.icon-link {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
}

.icon-link:hover {
  color: var(--ink);
  background: var(--hover);
}

.basket-count {
  position: absolute;
  top: 2px;
  right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.basket-count[hidden] {
  display: none;
}

/* The header takes two rows until the logo, all the curated links, the search
   field and the basket fit on one line. The value follows the number of
   occasions carrying a "nav" number in data/occasions.toml: with the current
   links, one row needs about 1100px of the shell's 1112px, leaving the search
   its full 220px and the nav whole. In two-row mode the first row is the logo,
   the search field and the basket, with the gap between the logo and the
   search, which stops growing at 360px; the nav takes the second row and
   scrolls sideways on its own row if it does not fit. */
@media (max-width: 1149px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .header-actions {
    flex: 1 1 0;
    justify-content: flex-end;
  }

  .header-search {
    flex: 0 1 360px;
    max-width: 360px;
  }

  .occasion-nav {
    order: 3;
    /* Cancel the inline padding's negative margin so the scrolling row still
       spans the shell's content box. */
    flex-basis: calc(100% + 12px);
  }
}

/* Shared blocks */

.page-section {
  padding-top: 56px;
}

.panel {
  border-radius: 32px;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.panel--blush {
  background: var(--blush);
}

.panel--butter {
  background: var(--butter);
}

.panel--lilac {
  background: var(--lilac);
}

.display-lg {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 54px;
  line-height: 1.1;
  /* The heading is two sentences with a forced break between them; this
     keeps the lines of the first one even when it wraps. */
  text-wrap: balance;
}

.lede {
  margin: 0;
  font-size: 19px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-dark);
  color: var(--surface);
}

/* Card grid */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 40px 28px;
}

.card-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

/* The hidden attribute is not enough on its own here, because the tile sets
   its own display. */
.card-tile[hidden] {
  display: none;
}

.card-cover {
  aspect-ratio: 105 / 148;
  display: block;
  overflow: hidden;
  border-radius: 6px;
  background: var(--card-bg, var(--blush));
  box-shadow: 0 1px 2px rgba(90, 62, 75, 0.10), 0 10px 24px rgba(90, 62, 75, 0.12);
}

.card-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-occasion {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.card-price {
  align-self: flex-start;
  display: inline-block;
  padding: 1px 10px;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* Home */

.home-hero {
  padding-top: 32px;
}

.hero-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  padding: 56px 48px;
  border-radius: 32px;
  background: var(--blush);
}

.hero-copy {
  display: flex;
  /* Wide enough for the heading on two lines; below this the cards wrap under. */
  flex: 1 1 440px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-cards {
  display: flex;
  flex: 1 1 480px;
  justify-content: center;
  padding: 16px 22px;
  overflow: hidden;
}

.hero-card {
  flex: 0 0 auto;
  width: 200px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(90, 62, 75, 0.10), 0 10px 24px rgba(90, 62, 75, 0.12);
}

.hero-card + .hero-card {
  margin-left: -44px;
}

.hero-card:nth-child(1) {
  transform: rotate(-8deg) translateY(14px);
}

.hero-card:nth-child(2) {
  transform: translateY(-6px);
}

.hero-card:nth-child(3) {
  transform: rotate(8deg) translateY(14px);
}

.home-section,
.card-more {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 72px;
}

.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.15;
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.section-heading a {
  font-weight: 700;
}

/* Occasions */

.occasion-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.occasion-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 12px 16px;
  border-radius: 24px;
  background: var(--blush);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  text-align: center;
  text-decoration: none;
}

.occasion-tile:hover {
  color: var(--ink);
  filter: brightness(0.97);
}

.occasion-tile img {
  width: 104px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(90, 62, 75, 0.10), 0 10px 24px rgba(90, 62, 75, 0.12);
}

/* Feature panel */

.something-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding: 40px 48px;
  border-radius: 32px;
  background: var(--mint);
}

.something-art {
  flex: 0 0 auto;
  width: 150px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(90, 62, 75, 0.10), 0 10px 24px rgba(90, 62, 75, 0.12);
}

.something-copy {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.something-copy p {
  margin: 0;
}

.something-copy .button {
  margin-top: 8px;
}

.button--outline {
  border: 1.5px solid var(--accent);
  background: var(--surface);
  color: var(--accent);
}

.button--outline:hover {
  background: var(--hover);
  color: var(--accent-dark);
}

/* Three steps */

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.step {
  display: flex;
  flex: 1 1 260px;
  align-items: flex-start;
  gap: 16px;
}

.step-number {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--butter);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}

.step:nth-child(2) .step-number {
  background: var(--lilac);
}

.step:nth-child(3) .step-number {
  background: var(--sky);
}

.step-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-copy span:first-child {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
}

.step-copy span:last-child {
  color: var(--muted);
}

/* Listings */

.listing-section {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 28px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--muted);
}

.listing-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px 48px;
  border-radius: 32px;
  background: var(--blush);
}

.occasion-tile--blush,
.listing-banner--blush {
  background: var(--blush);
}

.occasion-tile--mint,
.listing-banner--mint {
  background: var(--mint);
}

.occasion-tile--butter,
.listing-banner--butter {
  background: var(--butter);
}

.occasion-tile--sky,
.listing-banner--sky {
  background: var(--sky);
}

.occasion-tile--peach,
.listing-banner--peach {
  background: var(--peach);
}

.occasion-tile--lilac,
.listing-banner--lilac {
  background: var(--lilac);
}

.occasion-tile--sage,
.listing-banner--sage {
  background: var(--sage);
}

.occasion-tile--aqua,
.listing-banner--aqua {
  background: var(--aqua);
}

.occasion-tile--sand,
.listing-banner--sand {
  background: var(--sand);
}

.occasion-tile--mauve,
.listing-banner--mauve {
  background: var(--mauve);
}

.listing-banner__copy {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  gap: 10px;
}

.listing-banner h1,
.card-page__copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.1;
}

.listing-banner p,
.card-page__copy p {
  margin: 0;
  font-size: 18px;
}

.listing-banner__art {
  width: auto;
  height: 150px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(90, 62, 75, 0.10), 0 10px 24px rgba(90, 62, 75, 0.12);
}

.listing-count {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Shown on the All cards page only when the search has no matches. */
.card-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 24px 56px;
  text-align: center;
}

.card-empty[hidden] {
  display: none;
}

.card-empty__art {
  width: 200px;
  height: 200px;
}

.card-empty p {
  margin: 0;
  font-size: 18px;
  text-wrap: balance;
}

/* Card page */

.card-page {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}

.card-stage {
  display: flex;
  flex: 999 1 520px;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  min-width: 0;
  padding: 48px 24px 32px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: var(--surface);
}

/* A double-click would otherwise select the card's text, so its contents are
   not selectable. */
.card-scene {
  width: min(340px, 70vw);
  container-type: inline-size;
  perspective: 1600px;
  -webkit-user-select: none;
  user-select: none;
}

.card-flip {
  position: relative;
  aspect-ratio: 105 / 148;
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

.card-flip.is-open {
  transform: rotateY(180deg);
}

.card-open,
.card-flip__inside {
  position: absolute;
  inset: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 4px 0 0 -1px #F3E7DF, 5px 0 0 -1px #E4D3CA, 0 24px 40px rgba(90, 62, 75, 0.18);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-open {
  width: 100%;
  cursor: pointer;
}

.card-open img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Text that is too tall (long text, user text spacing) scrolls instead of
   being clipped. The text's auto margins centre it and, unlike
   align-items: center, let it start at the first line when it overflows. */
.card-flip__inside {
  display: flex;
  overflow-y: auto;
  /* 8 mm of the 105 mm card width: INSIDE_MARGIN_MM in
     scripts/card_studio.py, which refuses text taller than this space. */
  padding-block: calc(8 / 105 * 100cqw);
  text-align: center;
  transform: rotateY(180deg);
}

/* The inside mirrors render_inside in scripts/card_studio.py: Nunito Regular
   in #5A3E4B, a text block 60% of the card wide, centred on the face, at
   about 66/1311 of the card width with 1.45 line height. */
.card-flip__text {
  width: 60%;
  margin: auto;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: calc(66 / 1311 * 100cqw);
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: break-word;
  white-space: pre-line;
}

.card-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--blush);
  font-size: 15px;
  font-weight: 700;
}

.card-hint[hidden],
.card-close[hidden] {
  display: none;
}

.card-close {
  min-height: 44px;
  padding: 0 20px;
  border: 1.5px solid #D9BFC6;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.card-close:hover {
  background: var(--hover);
}

.card-page__copy {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.card-page__copy h1 {
  font-size: 38px;
}

.card-tag {
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--blush);
  font-size: 14px;
  font-weight: 700;
}

.card-tag--blush {
  background: var(--blush);
}

.card-tag--mint {
  background: var(--mint);
}

.card-tag--butter {
  background: var(--butter);
}

.card-tag--sky {
  background: var(--sky);
}

.card-tag--peach {
  background: var(--peach);
}

.card-tag--lilac {
  background: var(--lilac);
}

.card-tag--sage {
  background: var(--sage);
}

.card-tag--aqua {
  background: var(--aqua);
}

.card-tag--sand {
  background: var(--sand);
}

.card-tag--mauve {
  background: var(--mauve);
}

.card-buy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.card-quantity {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-quantity label {
  font-size: 14px;
  font-weight: 700;
}

/* Draw our own chevron: the native arrow sits on the pill's curved edge. */
.card-quantity select {
  min-height: 48px;
  padding: 0 44px 0 20px;
  border: 1.5px solid #D9BFC6;
  border-radius: 999px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%235A3E4B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 20px center;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.card-details {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 10px;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 15px;
}

.card-detail {
  display: inline-block;
  padding: 1px 8px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.card-basket-status {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

/* Basket */

.basket-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 40px;
}

.basket-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.basket-content[hidden],
.basket-empty[hidden] {
  display: none;
}

.basket-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.1;
}

.basket-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}

.basket-lines {
  flex: 999 1 480px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.basket-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.basket-line__thumb {
  flex: 0 0 auto;
  width: 84px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(90, 62, 75, 0.10), 0 10px 24px rgba(90, 62, 75, 0.12);
}

.basket-line__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 105 / 148;
  object-fit: cover;
}

.basket-line__copy {
  display: flex;
  flex: 1 1 200px;
  flex-direction: column;
  gap: 4px;
}

.basket-line__occasion {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.basket-line__title {
  align-self: flex-start;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.basket-line__title:hover,
.basket-line__title:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.basket-remove {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.basket-remove:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.basket-stepper {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  border: 1.5px solid #D9BFC6;
  border-radius: 999px;
  background: var(--surface);
}

.basket-stepper__button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.basket-stepper__button:hover:not(:disabled) {
  background: var(--hover);
}

.basket-stepper__button:disabled {
  color: #C4AFB6;
  cursor: default;
}

.basket-stepper__count {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

.basket-line__price {
  flex: 0 0 auto;
}

.basket-summary {
  display: flex;
  flex: 1 1 320px;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.basket-summary__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
}

.basket-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.basket-row--total {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.basket-checkout {
  width: 100%;
}

.basket-checkout:disabled {
  background: #E5D3D8;
  color: var(--muted);
  cursor: default;
}

.basket-error {
  margin: 0;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--blush);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.basket-error[hidden] {
  display: none;
}

.basket-summary__note {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.basket-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 32px 56px;
  border-radius: 32px;
  background: var(--mint);
  text-align: center;
}

.basket-empty__art {
  width: 200px;
  height: 200px;
}

.basket-empty h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.1;
  text-wrap: balance;
}

.basket-empty p {
  margin: 0;
  font-size: 18px;
  text-wrap: balance;
}

.basket-empty__action {
  padding-top: 8px;
}

.basket-noscript {
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  font-size: 18px;
}

/* Page not found */

.not-found-section {
  padding-top: 56px;
}

.not-found {
  align-items: center;
  gap: 16px;
  padding: 48px 32px 56px;
  text-align: center;
}

.not-found-art {
  width: 200px;
  height: 200px;
}

.not-found h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.1;
  text-wrap: balance;
}

.not-found p {
  margin: 0;
  font-size: 18px;
  text-wrap: balance;
}

.not-found-action {
  padding-top: 8px;
}

/* Order received */

.order-received-section {
  padding-top: 56px;
}

.order-received {
  align-items: center;
  gap: 16px;
  padding: 48px 32px 56px;
  text-align: center;
}

.order-received-art {
  width: 200px;
  height: 200px;
}

.order-received h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 44px;
  line-height: 1.1;
  text-wrap: balance;
}

.order-received p {
  margin: 0;
  font-size: 18px;
  text-wrap: balance;
}

.order-received-action {
  padding-top: 8px;
}

/* Legal and contact pages */

.legal-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 56px;
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 17px;
}

.legal-body p {
  margin: 0;
}

/* Footer */

.site-footer {
  margin-top: 88px;
  background: var(--footer);
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 48px;
  padding-bottom: 36px;
}

.footer-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex: 2 1 260px;
  flex-direction: column;
  gap: 10px;
}

.footer-wordmark {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
}

.footer-wordmark img {
  display: block;
  width: auto;
  height: 32px;
}

.footer-tagline {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.footer-business {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-business a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-business a:hover {
  color: var(--accent-dark);
}

/* Every occasion is listed here, so the links flow into columns to keep the
   footer short as occasions are added. */
.footer-links {
  display: grid;
  flex: 3 1 300px;
  grid-template-columns: repeat(auto-fill, minmax(min(140px, calc(50% - 12px)), 1fr));
  align-content: start;
  gap: 10px 24px;
}

.footer-heading {
  grid-column: 1 / -1;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
}

.footer-links a {
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.footer-note {
  color: var(--muted);
  font-size: 14px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--accent-dark);
}

/* Mobile */

@media (max-width: 720px) {
  .brand img {
    height: 32px;
  }

  .occasion-nav a {
    padding: 0 10px;
    font-size: 14px;
  }

  .page-section,
  .not-found-section,
  .order-received-section,
  .legal-section {
    padding-top: 32px;
  }

  .panel {
    padding: 40px 24px;
    gap: 16px;
    border-radius: 24px;
  }

  .display-lg {
    font-size: 36px;
  }

  .lede {
    font-size: 17px;
  }

  .home-hero {
    padding-top: 20px;
  }

  .hero-panel,
  .something-panel,
  .listing-banner {
    gap: 24px;
    padding: 32px 24px;
    border-radius: 24px;
  }

  .hero-card {
    width: 96px;
  }

  .hero-card + .hero-card {
    margin-left: -20px;
  }

  .home-section,
  .card-more {
    gap: 20px;
    padding-top: 48px;
  }

  .section-title {
    font-size: 26px;
  }

  .occasion-tiles {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .occasion-tile {
    font-size: 16px;
  }

  .occasion-tile img {
    width: 84px;
  }

  .something-art {
    width: 110px;
  }

  .listing-section {
    gap: 20px;
    padding-top: 20px;
  }

  .listing-banner h1,
  .card-page__copy h1 {
    font-size: 34px;
  }

  .listing-banner p,
  .card-page__copy p {
    font-size: 17px;
  }

  .listing-banner__art {
    height: 110px;
  }

  .card-stage {
    gap: 20px;
    padding: 32px 16px 24px;
    border-radius: 24px;
  }

  .basket-section {
    padding-top: 24px;
  }

  .basket-title,
  .basket-empty h1 {
    font-size: 34px;
  }

  .basket-layout {
    gap: 28px;
  }

  .basket-summary {
    padding: 24px;
  }

  .basket-empty {
    padding: 40px 24px 48px;
    border-radius: 24px;
  }

  .basket-empty p {
    font-size: 17px;
  }

  .basket-empty__art {
    width: 160px;
    height: 160px;
  }

  .not-found h1 {
    font-size: 34px;
  }

  .not-found p {
    font-size: 17px;
  }

  .not-found-art {
    width: 160px;
    height: 160px;
  }

  .order-received h1 {
    font-size: 34px;
  }

  .order-received p {
    font-size: 17px;
  }

  .order-received-art {
    width: 160px;
    height: 160px;
  }

  .site-footer {
    margin-top: 56px;
  }

  .site-footer__inner {
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-flip {
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
