/* Design choices Katya makes in the admin, shared by every page that shows her
   content (public/site-model/plan.js). Only fixed class names and custom
   properties are used here, so saved choices can never inject CSS. */

/* Fonts she can choose (schema.js styles.fonts). Self-hosted, Latin subset,
   variable weight; a browser only downloads one when text uses it. Licences
   are next to the files. */
@font-face{font-family:'Lora';font-style:normal;font-weight:400 700;font-display:swap;src:url('/assets/fonts/lora-variable.woff2') format('woff2')}
@font-face{font-family:'Lora';font-style:italic;font-weight:400 700;font-display:swap;src:url('/assets/fonts/lora-variable-italic.woff2') format('woff2')}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:400 900;font-display:swap;src:url('/assets/fonts/playfair-display-variable.woff2') format('woff2')}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400 900;font-display:swap;src:url('/assets/fonts/playfair-display-variable-italic.woff2') format('woff2')}
@font-face{font-family:'Nunito';font-style:normal;font-weight:200 1000;font-display:swap;src:url('/assets/fonts/nunito-variable.woff2') format('woff2')}
@font-face{font-family:'Nunito';font-style:italic;font-weight:200 1000;font-display:swap;src:url('/assets/fonts/nunito-variable-italic.woff2') format('woff2')}
/* Caveat's letters are small for their size, so it is drawn a little larger. */
@font-face{font-family:'Caveat';font-style:normal;font-weight:400 700;font-display:swap;size-adjust:118%;src:url('/assets/fonts/caveat-variable.woff2') format('woff2')}

/* Text styles (styleClasses). Sizes are relative steps (styles.steps), so they
   follow each element's own size at every screen width. */
.ts-size-m3{font-size:.72em}
.ts-size-m2{font-size:.8em}
.ts-size-m1{font-size:.88em}
.ts-size-p1{font-size:1.15em}
.ts-size-p2{font-size:1.32em}
.ts-size-p3{font-size:1.5em}
.ts-size-p4{font-size:1.75em}
.ts-size-p5{font-size:2em}
.ts-size-p6{font-size:2.3em}
.ts-size-p7{font-size:2.65em}
.ts-size-p8{font-size:3em}
/* A chosen font drops the design's letter-spacing, which suits only its own fonts. */
.ts-font-caslon{font-family:'Libre Caslon Display',Georgia,serif;letter-spacing:normal}
.ts-font-dmsans{font-family:'DM Sans','Helvetica Neue',Arial,sans-serif;letter-spacing:normal}
.ts-font-lora{font-family:'Lora',Georgia,serif;letter-spacing:normal}
.ts-font-playfair{font-family:'Playfair Display',Georgia,serif;letter-spacing:normal}
.ts-font-nunito{font-family:'Nunito','Helvetica Neue',Arial,sans-serif;letter-spacing:normal}
.ts-font-caveat{font-family:'Caveat','Segoe Print','Bradley Hand',cursive;letter-spacing:normal}
.ts-bold{font-weight:600}
.ts-italic{font-style:italic}
.ts-upright{font-style:normal}
.ts-colour-ink{color:var(--ink)}
.ts-colour-coral{color:var(--coral)}
.ts-colour-muted{color:var(--muted)}
.ts-colour-paper{color:var(--paper)}
.ts-colour-blush{color:#dfb095}
.ts-colour-sage{color:#bfcdb7}

/* Drawings Katya chooses for a spot (schema.js graphics), on the page and in
   the admin's picker: ink lines, coral accents and a wash of the chosen tone
   (data-graphic-tone) behind. */
.site-graphic{display:block;width:100%;height:auto;overflow:visible;fill:none;stroke:#273d33;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.site-graphic .wash{fill:var(--graphic-wash,#f1ded1);stroke:none}
.site-graphic .page{fill:#f8f6ef}
.site-graphic .soft{stroke-opacity:.4}
.site-graphic .accent{stroke:#ad563f}
.site-graphic .spark{fill:#ad563f;stroke:none}
[data-graphic-tone=peach]{--graphic-wash:#f1ded1}
[data-graphic-tone=sage]{--graphic-wash:#e7ebdf}
[data-graphic-tone=lavender]{--graphic-wash:#eae6ed}
[data-graphic-tone=none]{--graphic-wash:transparent}

/* Parts Katya has dragged in the preview (plan.js placeVars). Offsets are
   numbers of pixels at the 1280px desktop preview, or the 375px phone preview,
   and shrink with narrower screens. They use the separate translate, rotate
   and scale properties, so the design's own transforms still apply on top. */
[data-site-moved]{--bu:min(1px,100vw / 1280);translate:calc(var(--bx,0) * var(--bu)) calc(var(--by,0) * var(--bu));rotate:calc(var(--br,0) * 1deg);scale:var(--bs,1)}
@media(max-width:700px){[data-site-moved]{--bu:clamp(.85px,100vw / 375,1.2px);translate:calc(var(--bx-p,0) * var(--bu)) calc(var(--by-p,0) * var(--bu));rotate:calc(var(--br-p,0) * 1deg);scale:var(--bs-p,1)}}

/* Background choices for sections: defaults remain untouched until selected. */
[data-section-colour="cream"]{--section-bg:#f8f6ef}[data-section-colour="white"]{--section-bg:#fffefa}[data-section-colour="sage"]{--section-bg:#e7ebdf}[data-section-colour="mint"]{--section-bg:#e3f0e7}[data-section-colour="peach"]{--section-bg:#f0ddcf}[data-section-colour="blush"]{--section-bg:#f6e4e1}[data-section-colour="lavender"]{--section-bg:#ebe8f3}[data-section-colour="blue"]{--section-bg:#e4eef2}[data-section-colour="lemon"]{--section-bg:#f5efcf}[data-section-colour="forest"]{--section-bg:#273d33}[data-section-colour="pine"]{--section-bg:#334b3a}[data-section-colour="navy"]{--section-bg:#293c4c}[data-section-colour="plum"]{--section-bg:#49364b}[data-section-colour="brown"]{--section-bg:#4b3a30}
[data-section-colour]{background-color:var(--section-bg)}
[data-section-colour][data-background-band]{position:relative;isolation:isolate;background-color:transparent}
[data-section-colour][data-background-band]::before{content:"";position:absolute;z-index:-1;top:0;bottom:0;left:50%;width:100vw;transform:translateX(-50%);background-color:var(--section-bg);pointer-events:none}
html[data-page="profile"] section[data-section-colour]{padding:20px 24px;border-radius:8px}
