/* Layla's pink paper, lavender headphones and the wood of the art table. */
.theme-layla {
  --plum: #712044;
  --deep-ink: #243247;
  --body-ink: #3a4149;
  --setting-image: url("images/setting-layla.webp");
}
.theme-layla .resource-header {
  background: linear-gradient(110deg, #fff4e4 8%, #fce8df 58%, #eadcf2);
}
.theme-layla .resource-header::before {
  background-position: center 54%;
  opacity: .61;
  mask-image: linear-gradient(90deg, #0001 0%, #0003 39%, #000b 67%, #000 100%);
}
.theme-layla .resource-hero { position: relative; }
.theme-layla .resource-hero h1 { color: var(--deep-ink); }
.theme-layla .resource-hero h1 em { color: var(--plum); }
.theme-layla .resource-hero .eyebrow { color: #694459; font-size: .875rem; }
.theme-layla .resource-hero .rocco-subtitle { background: #e7dbf0; color: #342742; }
.theme-layla .resource-hero .rocco-byline { color: #3e3645; line-height: 1.7; }
.theme-layla .resource-hero .hero-lede { color: #343142; max-width: 39ch; text-wrap: pretty; }
.theme-layla .hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.theme-layla .hero-actions a {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 46px; padding: .72rem 1.15rem; border: 1px solid var(--plum);
  border-radius: .45rem; font-size: 1rem; font-weight: 650; text-decoration: none;
}
.theme-layla .hero-actions .primary-action { color: white; background: var(--plum); }
.theme-layla .hero-actions .secondary-action { background: #fffaf5; color: var(--plum); }
.theme-layla .hero-actions a:hover { text-decoration: underline; text-underline-offset: .2em; }
.theme-layla .resource-hero .rocco-cover-figure { max-width: 27rem; }
.theme-layla .rocco-cover-figure img { display: block; box-shadow: 0 .8rem 2rem #59394040; }
.theme-layla #resource-main { background: #fffcf8; color: var(--body-ink); }
.theme-layla .layla-section {
  box-sizing: border-box; width: 100%; margin: 0; padding: clamp(2.6rem,6vw,5.5rem) max(1.25rem, calc((100% - 65rem) / 2)); text-align: center;
}
.theme-layla .layla-section h2 { font-size: clamp(1.85rem,3.6vw,3rem); color: var(--deep-ink); margin: 0 0 1.1rem; text-wrap: balance; }
.theme-layla .layla-section p { margin: .8rem 0; font-size: 1.04rem; line-height: 1.75; color: var(--body-ink); }
.layla-story-layout, .layla-family-layout { display: grid; align-items: center; gap: clamp(1.75rem,5vw,4.5rem); }
.layla-story-layout { grid-template-columns: minmax(12rem,.75fr) minmax(0,1.4fr); }
.layla-family-layout { grid-template-columns: minmax(0,1.4fr) minmax(12rem,.75fr); }
.layla-story-layout > div, .layla-family-layout > div { text-align: start; }
.theme-layla .layla-story-layout h2, .theme-layla .layla-family-layout h2 { text-align: start; }
.layla-story-layout figure, .layla-family-layout figure { margin: 0 auto; text-align: center; width: min(100%,17rem); }
.layla-story-layout figure { background: #fff; border: 1px solid #e4d3d9; border-radius: .6rem; padding: 1rem; box-shadow: 0 .5rem 1.5rem #5539470d; }
.layla-drawing img { display: block; width: 100%; height: auto; max-height: 18rem; object-fit: contain; }
.layla-family-layout img { display: block; margin: auto; width: 100%; height: auto; border-radius: .55rem; }
.theme-layla .layla-section figcaption { margin: .85rem auto 0; font-size: .95rem; color: #534454; line-height: 1.5; }
.layla-quote { padding: clamp(2.6rem,5vw,4.25rem) 1.25rem; margin: 0; text-align: center; background: #f1e8f5; }
.layla-quote blockquote { margin: 0 auto; max-width: 28ch; font: italic clamp(1.7rem,3.7vw,2.9rem)/1.3 Lora,Georgia,serif; color: #542640; text-wrap: balance; }
.layla-quote p { margin: 1rem 0 0; color: #534454; font-size: .98rem; }
.theme-layla .layla-reading > p { max-width: 65ch; margin-inline: auto; }
.layla-prompts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); margin-top: 1.75rem; gap: 1rem; }
.layla-prompts > div { padding: 1.5rem; border: 1px solid #e0d8cc; border-radius: .6rem; background: #fffcf4; }
.theme-layla .layla-prompts h3 { margin: 0; font-size: 1.35rem; color: #4f3344; }
.theme-layla .layla-prompts p { margin-bottom: 0; }
.theme-layla .layla-family { background: #f9ede5; }
.layla-text-link { display: inline-flex; align-items: center; min-height: 44px; color: #652342; font-weight: 650; text-underline-offset: .25em; }
.theme-layla .layla-editions .hero-actions { margin: 1.3rem 0 .45rem; }
.theme-layla :is(.layla-section,.layla-quote) a:focus-visible { outline: 3px solid #7d3158; outline-offset: 4px; }
@media (max-width: 900px) {
  .theme-layla .resource-header::before {
    background-size: cover; background-position: center bottom;
    mask-image: linear-gradient(180deg, transparent 4%, #0001 28%, #0008 53%, #000 85%);
  }
  .theme-layla .resource-hero .rocco-cover-figure { width: min(76vw,24rem); }
}
@media (max-width: 680px) {
  .layla-story-layout, .layla-family-layout, .layla-prompts { grid-template-columns: minmax(0,1fr); }
  .layla-story-layout > div { grid-row: 1; }
  .layla-story-layout figure, .layla-family-layout figure { width: min(100%,15rem); }
  .theme-layla .layla-section { padding-inline: 1.3rem; }
  .theme-layla .hero-actions a { padding-inline: .85rem; }
}
@media print, (forced-colors: active) { .theme-layla .resource-header::before { display: none; } }
@font-face {
  font-family: Nunito;
  src: url("fonts/nunito-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: Nunito;
  src: url("fonts/nunito-900.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}
/* Rounded title lettering follows the cover's navy, red and lavender. */
.theme-layla .resource-hero h1,
.theme-layla .resource-hero h1 em {
  font-family: Nunito, ui-rounded, system-ui, sans-serif;
  font-weight: 900;
  font-style: normal;
  letter-spacing: -.035em;
}
.theme-layla .resource-hero h1 { line-height: 1.09; }
.theme-layla .resource-hero h1 .resource-title-lead { font-weight: 800; }
.theme-layla .resource-hero h1 em { color: #a10b27; }
.theme-layla .resource-hero .rocco-subtitle { font-family: Nunito, ui-rounded, system-ui, sans-serif; font-weight: 800; }

/* A small real painting moment accompanies the closing family passage. */
.theme-layla .layla-family > h2 { max-width: 32ch; margin-inline: auto; margin-bottom: 1.8rem; }
.theme-layla .layla-family-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,.7fr); max-width: 65rem; margin: auto; }
.theme-layla .layla-family-layout .layla-painting-photo { width: min(100%,15rem); }
.layla-painting-photo img {
  opacity: .68;
  mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent),
    linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent);
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent),
    linear-gradient(180deg, transparent, #000 10%, #000 88%, transparent);
  -webkit-mask-composite: source-in;
}
@media (max-width: 680px) {
  .theme-layla .layla-family-layout { grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
  .theme-layla .layla-family-layout .layla-painting-photo { width: min(100%,12.5rem); }
}
