.colouring-page { background: #faf4e8; color: #29483e; }
.colouring-page .colour-book-feature { grid-template-columns: minmax(140px, 240px) minmax(0, 480px) minmax(140px, 240px); gap: clamp(1.5rem, 3vw, 3rem); }
.story-book-cover { display: block; text-align: center; text-decoration: none; }
.story-book-cover img { width: 100%; height: auto; border-radius: 5px 12px 12px 5px; box-shadow: -5px 5px 0 #bdab7e, 0 20px 40px #394d3026; }
.story-book-cover span { display: block; margin-top: 1.2rem; font-size: .8rem; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 800px) { .colouring-page .colour-book-feature { grid-template-columns: minmax(110px, 180px) minmax(0, 1fr); }.story-book-cover { grid-column: 2; max-width: 180px; } }
@media (max-width: 480px) { .colouring-page .colour-book-feature { grid-template-columns: 1fr; }.story-book-cover { grid-column: auto; max-width: 230px; margin-inline: auto; } }
.story-reminder { max-width: 880px; margin: -2rem auto 3rem; padding: 1.25rem 1.5rem; text-align: center; border-top: 1px solid #daceb6; color: #68634f; font-size: .85rem; }
.story-reminder p { margin: 0 0 .8rem; }
.story-reminder strong { font-family: var(--serif); font-size: 1.1rem; font-weight: 400; color: #315b49; }
.story-reminder > div, .story-shop-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem 1.2rem; }
.story-reminder a { color: #315b49; text-underline-offset: 4px; }
.story-shop-links { font-size: .75rem; }
@media (max-width: 650px) { .story-reminder { margin-inline: 1rem; } }
@media print { .story-reminder { display: none !important; } }
.colouring-page .site-header, .colouring-page .site-footer { color: var(--paper); }
.colouring-page .eyebrow { color: #866125; }
.colour-hero { position: relative; overflow: hidden; text-align: center; padding: clamp(3rem, 7vw, 6rem) 1.25rem 3rem; background: radial-gradient(ellipse at 15% 20%, #f7d89780, transparent 45%), radial-gradient(ellipse at 90% 80%, #d6e6d3, transparent 50%), #faf4e8; }
.colour-hero h1 { font-size: clamp(2.8rem, 6vw, 5.4rem); line-height: 1.07; margin: 1rem 0 1.5rem; }
.colour-hero h1 em, .colour-book-feature h2 em { color: #a66835; }
.colour-hero > p:not(.eyebrow) { font-size: 1.08rem; }
.colour-pill { display: inline-block; padding: .7rem 1.2rem; border: 1px solid #bda777; border-radius: 30px; text-decoration: none; font-size: .83rem; margin-top: 1rem; }
.hero-spark { position: absolute; color: #be8c3b; font-size: 3rem; pointer-events: none; }
.spark-one { top: 24%; left: 10%; transform: rotate(-12deg); }.spark-two { right: 10%; bottom: 20%; font-size: 5rem; }
.colour-studio { max-width: 1280px; margin: auto; padding: 2.5rem 1.5rem 5rem; scroll-margin-top: 105px; }
.studio-heading { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }.studio-heading h2 { font: 2rem/1.2 var(--serif); margin: .5rem 0; }
.studio-tag { font: italic 1rem var(--serif); color: #806b47; }
.picture-picker { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.8rem 0; }
.colouring-page button { font: inherit; color: inherit; cursor: pointer; }
.picture-picker button { display: flex; align-items: center; gap: .8rem; text-align: left; border: 1px solid #d6cdb8; border-radius: 14px; background: #fffaf0; padding: .6rem 1.1rem .6rem .6rem; flex: 1 1 240px; max-width: 340px; }
.picture-picker img { width: 48px; height: 60px; object-fit: contain; border-radius: 4px; background: white; }.picture-picker span { font-weight: 650; font-size: .9rem; }.picture-picker small { display: block; font-weight: 400; font-size: .74rem; color: #726c5e; }
.picture-picker [aria-pressed="true"] { border-color: #365c48; box-shadow: 0 0 0 2px #365c48; background: #eef1e5; }
.studio-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 2rem; align-items: start; }
.paintbox { padding: 1.5rem; border: 1px solid #daceb6; border-radius: 18px; background: #fffaf1; box-shadow: 0 8px 28px #74562b09; }
.paintbox h3 { font: 1.6rem/1.2 var(--serif); margin: 0; }.tool-hint { font-size: .8rem; color: #756b58; }
.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; margin: 1.4rem 0; }.palette button { border: 3px solid #fffaf1; border-radius: 50%; aspect-ratio: 1; min-height: 38px; box-shadow: 0 0 0 1px #d5ccba; }.palette [aria-pressed="true"] { box-shadow: 0 0 0 3px #29483e; }
.custom-colour { display: flex; align-items: center; justify-content: space-between; font-size: .85rem; border-bottom: 1px solid #e3d9c7; padding-bottom: 1rem; }.custom-colour input { width: 42px; height: 35px; padding: 2px; border: 1px solid #c8b995; border-radius: 6px; background: transparent; }
.tool-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin: 1.2rem 0; }.tool-buttons button { background: #f3ecdd; border: 1px solid #d8ccb5; border-radius: 8px; padding: .6rem .1rem; font-size: 1.1rem; }.tool-buttons span { display: block; font-size: .66rem; }.tool-buttons [aria-pressed="true"] { color: #fffaf0; background: #315b49; border-color: #315b49; }
.brush-size { display: flex; flex-wrap: wrap; justify-content: space-between; font-size: .8rem; gap: .5rem; }.brush-size output { color: #82735b; }.brush-size input { width: 100%; accent-color: #315b49; }.tool-help { font-size: .76rem; color: #736951; min-height: 4.7em; }
.edit-actions { display: flex; flex-wrap: wrap; gap: .5rem; }.edit-actions button, .save-actions button { border-radius: 7px; border: 1px solid #d6c9b0; padding: .6rem .7rem; background: transparent; font-size: .76rem; }.edit-actions button:disabled { opacity: .4; cursor: default; }.save-actions { display: grid; gap: .55rem; margin-top: 1.3rem; }.save-actions #save { background: #315b49; border-color: #315b49; color: white; font-weight: 650; padding-block: .9rem; }.privacy-note { font-size: .7rem; color: #7c725e; margin-bottom: 0; }
.drawing-area { min-width: 0; text-align: center; padding: 1rem clamp(.6rem, 2vw, 1.5rem) 1.2rem; border-radius: 18px; background: #e9e1ce; background-image: radial-gradient(#b6a98650 .7px, transparent .7px); background-size: 10px 10px; }.paper-top { display: flex; justify-content: space-between; margin-bottom: .9rem; font: italic 1.05rem var(--serif); }.paper { background: white; box-shadow: 0 6px 20px #52442b20; max-width: 700px; margin: auto; }.paper canvas { display: block; width: 100%; height: auto; touch-action: none; cursor: crosshair; }.paper canvas:focus-visible { outline: 3px solid #315b49; outline-offset: 4px; }.canvas-caption { font: italic 1rem var(--serif); margin: 1rem 0 .4rem; }.studio-status { min-height: 1.6em; font-size: .78rem; margin: .3rem; }.drawing-area > a { font-size: .74rem; text-underline-offset: 3px; }
.colour-book-feature { display: grid; grid-template-columns: minmax(160px, 300px) minmax(0, 550px); gap: clamp(2rem, 6vw, 6rem); align-items: center; justify-content: center; background: #e8eddf; padding: 4rem 1.5rem; scroll-margin-top: 100px; }.colour-book-cover img { width: 100%; height: auto; border-radius: 5px 12px 12px 5px; box-shadow: -5px 5px 0 #bdab7e, 0 20px 40px #394d3026; }.colour-book-feature h2 { font-size: clamp(2.6rem, 4vw, 4rem); }.book-feature-links { display: flex; gap: 1.3rem; align-items: center; flex-wrap: wrap; }.book-feature-links > a:last-child { font-size: .83rem; }
.colouring-page :is(button, a, input):focus-visible { outline: 3px solid #b27527; outline-offset: 4px; }.colouring-page button:hover:not(:disabled) { filter: brightness(.95); }
@media(max-width: 800px) { .studio-layout { grid-template-columns: 1fr; }.paintbox { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.5rem; }.paintbox h3, .tool-hint, .privacy-note { grid-column: 1 / -1; }.palette { grid-row: span 2; margin: .8rem 0; grid-template-columns: repeat(6, 1fr); gap: .6rem; }.palette button { min-height: 32px; }.tool-buttons { margin-top: .7rem; }.tool-help { min-height: 0; }.save-actions { margin: .5rem 0; }.studio-tag { display: none; }.hero-spark { opacity: .35; }.spark-one { left: 2%; }.spark-two { right: 1%; }.colour-book-feature { gap: 2rem; } }
@media(max-width: 480px) { .colour-studio { padding-inline: .8rem; }.studio-heading h2 { font-size: 1.7rem; }.picture-picker { gap: .6rem; }.picture-picker button { padding: .5rem; gap: .45rem; }.picture-picker img { width: 33px; height: 48px; }.picture-picker span { font-size: .76rem; }.picture-picker small { font-size: .65rem; }.paintbox { padding: 1rem; gap: 0 1rem; }.palette { grid-template-columns: repeat(4, 1fr); }.colour-book-feature { grid-template-columns: 1fr; }.colour-book-cover { max-width: 230px; margin: auto; } }
@media print { @page { margin: 10mm; } body.colouring-page { background: white; } .site-header, .colour-hero, .studio-heading, .picture-picker, .paintbox, .colour-book-feature, .site-footer, .paper-top, .canvas-caption, .studio-status, .drawing-area > a, .skip-link, noscript { display: none !important; }.colour-studio, .drawing-area { padding: 0; margin: 0; background: white; }.studio-layout { display: block; }.paper { box-shadow: none; width: 100%; max-width: 170mm; }.paper canvas { width: 100%; max-height: 255mm; object-fit: contain; } }

@media(max-width: 480px) { .palette { gap: .4rem; }.palette button { min-height: 28px; } }
