/* Magazine and audio-game pages. Matches the homepage: cream background, navy text, orange accent,
   Fredoka One for big headings, the same top bar and footer. Few boxes; pictures without frames. */
:root {
  color-scheme: light;
  --cream: hsl(48 100% 99%); --navy: hsl(238 61% 20%); --soft: hsl(238 20% 42%); --outline: #1560a0;
  --orange: hsl(24 95% 53%); --orange-dark: hsl(24 100% 40%); --link: hsl(242 47% 45%); --line: hsl(214 32% 91%);
  --tint: hsl(350 100% 97%); --tint-edge: hsl(350 70% 85%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--navy); font: 18px/1.75 "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: clip; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: var(--orange-dark); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; background: white; padding: 1rem; z-index: 30; }
.skip:focus { left: 1rem; top: 1rem; }
h1, .cta h2 { font-family: "Fredoka One", "Nunito", sans-serif; font-weight: 400; }

.post, .listing { width: min(100% - 32px, 780px); margin-inline: auto; }
.listing { width: min(100% - 32px, 1080px); }

/* Top bar: public/site-header.css */

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; padding: 0; margin: 20px 0 8px; font-size: 14px; font-weight: 600; color: var(--soft); }
.crumbs li + li::before { content: "›"; margin-right: 8px; }
.crumbs li[aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; }

.eyebrow { display: inline-block; background: var(--orange); color: white; padding: 4px 14px; border-radius: 99px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
h1 { font-size: clamp(30px, 5.5vw, 48px); line-height: 1.2; margin: 14px 0 10px; overflow-wrap: break-word; hyphens: auto; }
.meta { margin: 0; font-size: 16px; font-weight: 600; color: var(--soft); }

/* Overview pages: a sky band across the full width, like the top of the homepage */
.sky { position: relative; display: flex; align-items: center; gap: 16px; margin: 0 calc(50% - 50vw) 8px; padding: clamp(28px, 5vw, 56px) max(16px, calc(50vw - 540px));
  background:
    radial-gradient(64px 26px at 10% 24%, #fff 98%, transparent), radial-gradient(46px 22px at 14% 19%, #fff 98%, transparent),
    radial-gradient(84px 30px at 90% 16%, #fff 98%, transparent), radial-gradient(52px 24px at 85% 11%, #fff 98%, transparent),
    linear-gradient(180deg, hsl(205 85% 84%), hsl(200 90% 94%) 72%, var(--cream)); }
.sky-text { flex: 1 1 60%; }
h1.outlined { color: white; -webkit-text-stroke: 3px var(--outline); paint-order: stroke fill; }
.sky .meta { color: var(--navy); max-width: 50ch; font-size: 17px; }
.sky-pets { flex: 0 0 auto; width: clamp(140px, 24vw, 240px); }
.listing .crumbs { display: none; }

/* Article header: no box, just the title */
.post-hero { padding: 8px 0 0; }
.cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; margin: 24px 0; background: var(--line); }

.contents { margin: 0 0 32px; padding: 16px 22px; background: white; border: 1px solid var(--line); border-radius: 18px; }
summary { font-weight: 800; cursor: pointer; }
.contents ol { padding-left: 22px; margin: 8px 0 0; font-size: 15px; line-height: 1.6; }
.contents li { padding: 3px 0; }
.contents li::marker { color: var(--orange); font-weight: 800; }

.prose { overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 26px; line-height: 1.3; font-weight: 800; margin: 44px 0 12px; scroll-margin-top: 80px; }
.prose h3 { font-size: 20px; line-height: 1.4; font-weight: 800; margin: 30px 0 10px; }
.prose p { margin: 0 0 20px; }
.prose ul, .prose ol { padding-left: 26px; margin: 0 0 22px; }
.prose li { margin-bottom: 8px; }
.prose li::marker { color: var(--orange); font-weight: 800; }
.prose figure { margin: 28px 0; }
.prose figure img { display: block; margin-inline: auto; border-radius: 16px; }
.video { position: relative; aspect-ratio: 16 / 9; margin: 24px 0; border-radius: 16px; overflow: hidden; background: var(--navy); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* App box: the one coloured box on the page, with the pets in the tilted dashed frame from the homepage */
.cta { display: flex; align-items: center; gap: 28px; margin: 48px 0; padding: clamp(22px, 5vw, 36px); border-radius: 28px; background: var(--tint); border-bottom: 6px solid var(--tint-edge); }
.cta-pets { flex: 0 0 auto; background: white; border: 4px dashed hsl(24 95% 53% / .3); border-radius: 24px; padding: 6px; transform: rotate(3deg); }
.cta-pets img { display: block; width: 150px; transform: rotate(-3deg); }
.cta-text { flex: 1; min-width: 0; }
.cta h2 { font-size: clamp(22px, 4vw, 30px); line-height: 1.2; margin: 10px 0 8px; }
.cta p { margin: 0 0 16px; color: var(--soft); font-weight: 600; font-size: 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badges a { transition: transform .15s; }
.badges a:hover { transform: scale(1.05); }
.badges img { display: block; height: 48px; width: auto; }

/* Article lists: picture and text, no box */
.related h2 { font-size: 26px; font-weight: 800; margin: 40px 0 8px; }
.cards { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 36px 28px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card a { display: block; color: var(--navy); text-decoration: none; }
.card img { display: block; aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: 16px; background: var(--line); transition: transform .2s; }
.card a:hover img { transform: translateY(-4px); }
.card a:hover h2, .card a:hover h3 { color: var(--orange-dark); }
.card h2, .card h3 { font-size: 18px; line-height: 1.35; font-weight: 700; margin: 14px 0 6px; }
.card p { font-size: 15px; line-height: 1.55; color: var(--soft); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.more, .cross a { font-weight: 800; }
.cross { text-align: center; font-size: 18px; margin: 8px 0 0; }

/* Footer: same bottom row as the homepage */
.site-foot { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; width: min(100% - 32px, 1400px); margin: 48px auto 0; padding-block: 32px 40px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.site-foot img { height: 32px; width: auto; }
.site-foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 24px; }
.site-foot a { color: hsl(238 61% 20% / .7); text-decoration: none; }
.site-foot a:hover { color: var(--orange); }
.site-foot p { margin: 0; color: hsl(238 61% 20% / .7); }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .sky { flex-direction: column; align-items: flex-start; gap: 0;
    background: radial-gradient(70px 26px at 88% 10%, #fff 98%, transparent), radial-gradient(48px 22px at 80% 6%, #fff 98%, transparent), linear-gradient(180deg, hsl(205 85% 84%), hsl(200 90% 94%) 72%, var(--cream)); }
  .sky-pets { align-self: flex-end; width: 120px; margin: -16px 0 -12px; }
  h1.outlined { -webkit-text-stroke-width: 2px; }
  .prose h2 { font-size: 23px; }
  .cta { flex-direction: column; text-align: center; margin: 36px 0; }
  .cta-pets img { width: 120px; }
  .badges { justify-content: center; }
  .badges img { height: 44px; }
  .site-foot { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card img, .badges a { transition: none; } }
@media print { .contents, .cta, .related, .site-foot, .crumbs, .skip { display: none; } body { background: white; } }
