.theme-preview-bar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 16px;
  background: #283a2a; color: #fff5dc; letter-spacing: .05em; font-size: 12px;
}
.theme-preview-bar a { text-decoration: underline; text-underline-offset: 3px; }
footer { background: var(--theme-footer, #efeee5); color: var(--footer-ink, #29362c); border-color: var(--line); }
footer .brand svg { color: #63462c; }
footer .footer-main p,
footer .footer-main > div > a,
footer .footer-bottom,
footer .footer-bottom a { color: var(--footer-ink, #29362c); }
footer .footer-main p, footer .footer-main > div > a:not(.brand) { font-size: 13px; }
footer .footer-bottom { font-size: 11px; border-color: #a6896a; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }

main .fable-content {
  position: relative;
  padding: clamp(28px, 5.3vw, 70px);
  margin-bottom: clamp(42px, 6vw, 82px);
  border: 1px solid #ad8055;
  border-radius: 4px 12px 6px 10px / 11px 5px 9px 4px;
  background:
    radial-gradient(ellipse at 0 0, #9d5b3534, transparent 20%),
    radial-gradient(ellipse at 100% 9%, #b47b482a, transparent 22%),
    radial-gradient(ellipse at 2% 64%, #bc895523, transparent 18%),
    radial-gradient(ellipse at 99% 96%, #88512e31, transparent 28%),
    radial-gradient(ellipse at 42% 23%, #fff6e2 0, transparent 76%),
    linear-gradient(96deg, #dec095, #f5e4c2 10%, #f5e4c3 89%, #e1c69b);
  box-shadow: 0 14px 32px #59391c26, inset 0 0 22px #9c6c4540;
}
main .fable-content::before {
  content: "";
  position: absolute; inset: 6px 9px 8px 6px;
  border: 1px solid #8d5c394f;
  border-color: #8d5c3955 #8d5c3924 #8d5c3962 #8d5c393f;
  border-radius: 3px 10px 4px 8px / 8px 3px 6px 3px;
  pointer-events: none;
}
main .fable-content > p, main .fable-content li { color: #493729; }
main .fable-content > p:first-child::first-letter {
  font-family: var(--serif); font-size: 1.7em; line-height: .9; color: #835536;
}
@media (max-width: 480px) {
  main .fable-content { padding: 26px 23px; }
}

.story-audio { margin: 0 auto 2rem; }
.story-audio-card {
  max-width: 740px; margin: auto; padding: 1.5rem 1.75rem;
  border: 1px solid #8d5c3940; border-radius: 12px;
  background: #f7efe2; box-shadow: 0 6px 22px #4937290a;
}
.story-audio-card .eyebrow { margin: 0 0 .4rem; }
.story-audio-card h2 { margin: 0 0 1rem; font-size: 1.45rem; color: #493729; }
.story-audio-card audio { display: block; width: 100%; height: 54px; }
@media (max-width: 480px) { .story-audio-card { padding: 1.2rem; } }

.home-fables { padding-top: 2rem; }
.home-fables-intro { max-width: 38rem; margin: .8rem 0 0; color: var(--muted); }
.home-fables .story-card { background: #fffcf6; border-radius: 14px; overflow: hidden; }
.home-fables .story-card-media { background: #eee7d8; aspect-ratio: 4 / 5; }
.home-fables .story-card h3 { font-family: var(--serif); font-size: clamp(1.15rem, 1.8vw, 1.5rem); line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.home-fables-action { display: flex; justify-content: center; margin-top: 2rem; }
@media (max-width: 480px) { .home-fables .story-card-media { max-height: 320px; } }
.footer-music {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  padding-block: 2.5rem; border-top: 1px solid #8d76523d; color: var(--ink, #493729);
}
.footer-music h2 { margin: .25rem 0 .8rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.footer-music .eyebrow { margin: 0; }
.footer-music-copy > p:last-child { max-width: 26rem; }
.footer-music-player { min-width: 0; padding: 1.3rem; border: 1px solid #8d765240; border-radius: 14px; background: #ffffff65; }
.footer-music-player { align-self: center; }
.music-actions { display: flex; justify-content: center; align-items: center; gap: clamp(.4rem, 2vw, 1rem); }
.music-actions button { display: grid; place-items: center; padding: .5rem; width: 48px; height: 48px; border: 1px solid #8d765260; border-radius: 50%; color: var(--forest, #3b4c37); background: #fffaf1; font: inherit; font-size: 1.25rem; cursor: pointer; }
.music-actions button:hover { background: #eee8d8; }
.music-actions button:focus-visible, #music-volume:focus-visible { outline: 2px solid var(--forest, #3b4c37); outline-offset: 4px; }
.music-actions #music-start { width: 60px; height: 60px; background: var(--forest, #3b4c37); color: #fffaf1; }
.music-volume { position: relative; }
#music-volume-panel { position: absolute; z-index: 5; right: 0; bottom: calc(100% + .75rem); width: 160px; padding: .8rem; border: 1px solid #8d765260; border-radius: 12px; background: #fffaf1; box-shadow: 0 5px 20px #49372920; }
#music-volume-panel label { display: block; font-size: .9rem; margin-bottom: .4rem; }
#music-volume { width: 100%; accent-color: var(--forest, #3b4c37); }
#music-status { font-size: .85rem; margin: .6rem 0 0; }
#music-status:empty { display: none; }
.music-empty { align-self: center; font-size: .9rem; color: var(--muted); }
.woodland-flight { position: absolute; top: 130px; left: 0; right: 0; height: 210px; overflow: hidden; pointer-events: none; z-index: 3; }
.woodland-owl { display: block; width: 132px; height: 132px; object-fit: contain; opacity: 0; }
.woodland-visitor { display: flex; justify-content: flex-end; padding-block: 1rem; pointer-events: none; }
.woodland-visitor img { display: block; width: 170px; height: 210px; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .woodland-owl { opacity: 1; animation: woodland-flight 26s linear infinite; }
}
@keyframes woodland-flight {
  0% { transform: translate(-145px, 60px) scaleX(1); }
  24% { transform: translate(48vw, 8px) scaleX(1); }
  47% { transform: translate(calc(100vw + 10px), 65px) scaleX(1); }
  49% { transform: translate(calc(100vw + 145px), 65px) scaleX(1); }
  50% { transform: translate(calc(100vw + 145px), 65px) scaleX(-1); }
  74% { transform: translate(48vw, 8px) scaleX(-1); }
  97% { transform: translate(-145px, 60px) scaleX(-1); }
  99% { transform: translate(-160px, 60px) scaleX(-1); }
  100% { transform: translate(-145px, 60px) scaleX(1); }
}
@media (max-width: 680px) {
  .footer-music { grid-template-columns: 1fr; gap: 1rem; }
  .woodland-owl { width: 100px; height: 100px; }
  .woodland-flight { top: 100px; height: 160px; }
  .woodland-visitor img { width: 140px; height: 175px; }
}

@media (hover: hover) and (pointer: fine) {
  html, body { cursor: url("/assets/cursor-foglia.png") 2 2, auto; }
  body a, body button, body select, body summary,
  body input[type="button"], body input[type="submit"],
  body input[type="checkbox"], body input[type="radio"] {
    cursor: url("/assets/cursor-foglia.png") 2 2, pointer;
  }
  body textarea, body input[type="text"], body input[type="email"],
  body input[type="search"], body input[type="password"], body [contenteditable="true"] {
    cursor: text;
  }
}

/* Secondary privacy details stay available without interrupting the short notice. */
.privacy-details { margin-top: 2rem; padding-block: 1.1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.privacy-details summary { cursor: pointer; font-weight: 600; padding-block: .3rem; }
.privacy-details > div { padding-top: 1.5rem; }
.privacy-details h3 { font-size: 1.25rem; margin-top: 1.5rem; }
.privacy-details code { overflow-wrap: anywhere; }
