/* The homepage's own rules, loaded after the design kit (public/assets). The :root block is the
   brand palette (warm paper ground, plum ink, coral action), as start.mjs brand printed it. */
:root {
  --p-bg: #fbf6f0;
  --p-surface: #ffffff;
  --p-ink: #30213f;
  --p-muted: #766a7f;
  --p-accent: #e78278;
  --p-accent-ink: #111111;
  --p-action: #e78278;
  --p-action-ink: #111111;
  --p-inv-bg: #30213f;
  --p-inv-surface: #3c2e4a;
  --p-inv-ink: #fbf6f0;
  --p-inv-muted: #a79ea9;
  --p-inv-accent: #e78278;
  --p-inv-accent-ink: #111111;
  --p-inv-action: #e78278;
  --p-inv-action-ink: #111111;
  --font-display: 'Instrument Sans', system-ui, sans-serif;
  --font-text: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.028em;
  --display-tracking-xl: -0.036em;
  --display-stretch: 96%;
  --ly-scale: 1.04;
}
/* The coral action is 2.49:1 on the paper ground, under the 3:1 a focus ring needs; the ring
   takes the ground's ink instead (plum on paper, paper on the plum band). */
:focus-visible {
  outline-color: var(--ink);
}

.nav__logo img {
  display: block;
  height: 36px;
  width: auto;
}

/* hero collage: pieces sized in % of the collage, their text in container units */
.ly-collage {
  container-type: inline-size;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ly-collage .ly-piece {
  box-shadow:
    0 1px 2px rgb(48 33 63 / 0.12),
    0 24px 48px -20px rgb(48 33 63 / 0.35);
}
.ly-collage .pc-typed,
.ly-collage .pc-share {
  background: #fffaf6;
  color: #241820;
  padding: 3.4cqw 3.6cqw;
  display: grid;
  gap: 1.6cqw;
  align-content: start;
}
.pc-typed p {
  margin: 0;
  font: 500 max(13px, 2.5cqw)/1.35 var(--font-text);
}
.pc-label {
  font: 500 max(13px, 1.8cqw)/1.2 var(--font-text);
  color: #7a6872;
}
.pc-meta {
  font: 400 max(13px, 1.8cqw)/1.35 var(--font-text);
  color: #5b4a54;
}
.pc-share p {
  margin: 0;
  font: 400 max(13px, 1.9cqw)/1.4 var(--font-mono);
  overflow-wrap: anywhere;
}
@media (max-width: 639px) {
  .pc-meta,
  .ly-collage .pc-share {
    display: none;
  }
}

/* hero: the main action above the pricing link, both as wide as the column */
@media (min-width: 1024px) {
  .hero--triptych .hero__cta {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }
}

/* how a card is made: three steps on white cards */
.how-steps {
  margin: var(--s-7) 0 0;
  padding: 0;
  list-style: none;
}
.how-step {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-6);
  background: var(--p-surface);
  border: 1px solid #eee3d8;
  border-radius: 24px;
  box-shadow: 0 18px 40px -28px rgb(48 33 63 / 0.35);
}
.how-step__n {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--p-accent);
  color: var(--p-accent-ink);
  font: 500 15px/1 var(--font-text);
}
.how-step h3 {
  margin: 0;
  font: 500 22px/1.2 var(--font-display);
  letter-spacing: -0.01em;
}
.how-details {
  display: grid;
  gap: var(--s-3);
  margin: var(--s-2) 0 0;
}
.how-details div {
  padding-bottom: var(--s-3);
  border-bottom: 1px solid #f0e7dd;
}
.how-details div:last-child {
  border-bottom: 0;
}
.how-details dt {
  font-size: 13px;
  color: var(--p-muted);
}
.how-details dd {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.4;
}
.how-art {
  flex: 1;
  min-height: 240px;
  margin-top: var(--s-2);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.how-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.how-note {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-top: var(--s-2);
  padding: var(--s-6);
  background: var(--p-bg);
  border-radius: 16px;
}
.how-note p {
  margin: 0 0 auto;
  font: 400 22px/1.45 var(--font-display);
}
.how-note__url {
  font: 400 13px/1.3 var(--font-mono);
  color: var(--p-muted);
  overflow-wrap: anywhere;
}
.how-note__copy {
  align-self: start;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--p-accent);
  color: var(--p-ink);
  font-size: 14px;
}
@media (max-width: 1023px) {
  .how-step {
    grid-column: 1 / -1;
  }
  .how-art {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }
}

/* occasions: the art style under each occasion's name */
#occasions .tile__head {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.tile__style {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* nav-cards panel */
.menu-card .panel {
  --p-h: 200px;
}

/* occasions: portrait tiles for portrait artwork */
#occasions .tile__media {
  aspect-ratio: 3 / 4;
}

/* art styles: three plain facts */
.facts {
  list-style: none;
  margin: var(--s-2) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s-2);
}
.facts li {
  font-size: var(--t-body);
}

/* pricing lines */
.plan-lines {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: var(--s-2);
}

#styles figure {
  margin: 0;
}
/* every plan's button sits on the card's bottom line, whatever the length of its list */
#pricing .card--plan {
  display: flex;
  flex-direction: column;
}
#pricing .card--plan > .btn {
  margin-top: auto;
}
.plans-note {
  margin-top: var(--s-6);
}

/* the card as its recipient opens it (questions) */
.rv {
  display: grid;
  grid-template-columns: 2fr 3fr;
  margin-top: var(--s-6);
  background: var(--u-bg);
  border: 1px solid var(--u-border);
  border-radius: var(--u-r);
  overflow: hidden;
}
.rv img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}
.rv__text {
  display: grid;
  align-content: center;
  gap: var(--s-3);
  padding: var(--s-6);
  color: var(--u-ink);
}
.rv__text p {
  margin: 0;
  font: 400 20px/1.4 var(--font-display);
}
.rv__url {
  font: 400 13px/1.3 var(--font-mono);
  color: var(--u-muted);
  overflow-wrap: anywhere;
}
.rv__from {
  font-size: 14px;
  color: var(--u-muted);
}

/* screens: at the tablet the stacked plans and questions take two screens, the occasions stay four across;
   on a phone the plans and questions take two screens, the styles frame a wide crop */
@media (min-width: 640px) and (max-width: 1023px) {
  #pricing {
    --h: 2;
  }
  #questions .rv {
    display: none;
  }
  #occasions .tile__media {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 639px) {
  #pricing,
  #questions {
    --hm: 2;
  }
  #styles .frame--split {
    --ratio: 66%;
  }
}
@media (max-width: 639px) {
  .rv {
    grid-template-columns: minmax(0, 1fr);
  }
  .rv img {
    aspect-ratio: 4 / 3;
    height: auto;
  }
}
