/* Storybook article layout — the Muse Letter design, adapted for petanque.me.
   Opt-in per article via front matter `layout: storybook`.
   Warm paper, hand-lettered title (Caveat), script byline (Oooh Baby),
   Alegreya body, Tenor Sans headings, white-framed images with a slight tilt.
   Site chrome (header, ads, footer, related) is unchanged. */

.storybook .wrap.narrow { max-width: 680px; }

.storybook-dateline {
  color: var(--ink);
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.2;
  margin: 0 0 1.5rem;
  text-align: center;
}

.storybook-title {
  color: #a13f04;
  font-family: "Caveat", cursive;
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 auto 1.75rem;
  overflow-wrap: break-word;
  text-align: center;
}

.storybook-lede {
  color: var(--ink);
  font-family: "Alegreya", Georgia, serif;
  font-size: clamp(1.5rem, 2.25vw, 1.6875rem);
  font-weight: 600;
  line-height: 1.48;
  margin: 0 0 1.4rem;
}

.storybook-byline {
  color: #a13f04;
  font-family: "Oooh Baby", "Caveat", cursive;
  font-size: 2.375rem;
  line-height: 1.21;
  margin: 0 0 0.25rem;
}

.storybook-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 1rem;
}

.storybook-hero { margin: 1.75rem 0; }

.storybook-hero img {
  background: #ffffff;
  border: 6px solid #ffffff;
  border-radius: 30px;
  box-shadow: 0 2px 2px rgba(111, 101, 85, 0.1), 0 8px 24px rgba(111, 101, 85, 0.1);
  display: block;
  height: auto;
  transform: rotate(1deg);
  width: 100%;
}

.storybook-prose {
  font-family: "Alegreya", Georgia, serif;
  font-size: 1.1875rem;
  line-height: 1.5;
}

.storybook-prose p { margin: 0 0 1.75rem; }

.storybook-prose h2 {
  color: var(--ink);
  font-family: "Tenor Sans", Georgia, serif;
  font-size: clamp(2.125rem, 5vw, 2.375rem);
  font-weight: 400;
  line-height: 1.21;
  margin: 1.8rem 0 0.8rem;
}

.storybook-prose h3 {
  color: var(--ink);
  font-family: "Tenor Sans", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
  margin: 1.6rem 0 0.6rem;
}

.storybook-prose img {
  background: #ffffff;
  border: 6px solid #ffffff;
  border-radius: 30px;
  box-shadow: 0 2px 2px rgba(111, 101, 85, 0.1), 0 8px 24px rgba(111, 101, 85, 0.1);
  display: block;
  height: auto;
  transform: rotate(1deg);
  width: 100%;
}
