.full-sketchbook {
  --sketch-paper: #f6eee4;
  --sketch-card: #fff9f0;
  --sketch-ink: #302431;
  --sketch-muted: #4f424f;
  --sketch-line: #cbb8bb;
  --sketch-lilac: #eee4ed;
  --sketch-sage: #42533b;
  --sketch-link: #57364d;
  --sketch-stem: #54644b;
  --sketch-petal: #965970;
  --sketch-seed: #896439;
  --sketch-surface: radial-gradient(ellipse at 50% 0%, #fff9ef 0%, #f6eee4 72%);
}

@media screen {
  body.full-sketchbook,
  body.full-sketchbook:is(.store-view,.planner-view,.story-view),
  body.full-sketchbook:has(.tab.active) {
    color-scheme: light;
    color: var(--sketch-ink) !important;
    background: var(--sketch-surface) !important;
  }
  body.full-sketchbook {
    --ink: var(--sketch-ink);
    --bg: var(--sketch-paper);
    --paper: var(--sketch-card);
    --border: var(--sketch-line);
    --soft: var(--sketch-lilac);
  }
  body.full-sketchbook header.sketchbook-mast {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .75rem 1.5rem;
    width: min(1060px, calc(100% - 40px));
    margin: auto;
    padding: 19px 0;
    border: 0;
    border-bottom: 1px solid var(--sketch-line);
    background: transparent !important;
    color: var(--sketch-ink) !important;
    box-shadow: none;
  }
  body.sketchbook-home header.sketchbook-mast { width: 100%; }
  .full-sketchbook .sketchbook-wordmark {
    color: var(--sketch-ink);
    font: clamp(1.25rem, 2.7vw, 1.7rem)/1.1 Georgia, serif;
    text-decoration: none;
    white-space: nowrap;
  }
  .full-sketchbook .sketchbook-mast nav {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem 1.1rem;
    justify-content: flex-end;
    align-items: center;
  }
  .full-sketchbook .sketchbook-mast nav a {
    padding: .1rem 0;
    color: var(--sketch-muted);
    font: 500 .84rem/1.45 system-ui, sans-serif;
    text-decoration: none;
  }
  .full-sketchbook .sketchbook-mast nav a:is(:hover,[aria-current]) {
    color: var(--sketch-ink);
    text-decoration: underline;
    text-underline-offset: .26em;
  }
  .full-sketchbook :focus-visible { outline: 3px solid #7b5d79; outline-offset: 3px; }
  .full-sketchbook :is(.shop-sprig,.planner-sprig,.story-sprig,.circle-sprig,.welcome-sprig,.hero .sprig) {
    opacity: 1 !important;
  }
  .full-sketchbook :is(.shop-sprig,.planner-sprig,.story-sprig,.circle-sprig,.welcome-sprig) :is([stroke="#a1ab96"],[stroke="#9aa18a"]) {
    stroke: var(--sketch-stem);
  }
  .full-sketchbook :is(.shop-sprig,.planner-sprig,.story-sprig,.circle-sprig,.welcome-sprig) :is([stroke="#cda6b0"],[stroke="#d6a6ad"]) {
    stroke: var(--sketch-petal);
  }
  .full-sketchbook :is(.shop-sprig,.planner-sprig,.story-sprig,.circle-sprig,.welcome-sprig) [fill="#9aa18a"] {
    fill: var(--sketch-stem);
  }
  .full-sketchbook :is(.shop-sprig,.planner-sprig,.story-sprig,.circle-sprig,.welcome-sprig) [fill="#d6a6ad"] {
    fill: var(--sketch-petal);
  }
  .full-sketchbook :is(.shop-sprig,.planner-sprig,.story-sprig,.circle-sprig,.welcome-sprig) :is([fill="#c3ad87"],[fill="#c5ac7c"]) {
    fill: var(--sketch-seed);
  }
  .full-sketchbook.sketchbook-portraits .intro .sprig { color: var(--sketch-stem); }
  body.full-sketchbook footer, body.full-sketchbook footer a {
    color: var(--sketch-muted);
    border-color: var(--sketch-line);
  }

  /* Shared storefront, gallery and portrait surfaces. Artwork keeps its own palette. */
  .full-sketchbook :is(.sketchbook-wordmark, main > .intro h1, .intro h1, .results-welcome h1) { color: var(--sketch-ink); }
  .full-sketchbook :is(.intro h1, .results-welcome h1, .circle-hero h1) {
    font-family: Georgia, serif;
    letter-spacing: -.035em;
  }
  .full-sketchbook :is(.eyebrow, .free-badge, .number, .preview, .sprig) { color: var(--sketch-sage); }
  .full-sketchbook :is(h1 em, .intro h1 em, .circle-hero h1 em) { color: var(--sketch-link); }
  .full-sketchbook :is(.intro p, .hero p:not(.eyebrow), .detail .intro, .service p, .contact p,
    .foot, .totals span, .results-welcome #results-description, #series-description, .browse,
    .category p, .collection p, .art-start p, .series-choice p, .comic p, .in-the-works > p,
    .future-tools p, .in-the-works small, .feedback-area > p, .feedback-choice span,
    .free-download .download-note, .details > p, .option small, .note, .quiet, .steps p, details p,
    figcaption, dialog p, .request-field small, .consent, #reader-caption, #reader-words) {
    color: var(--sketch-muted);
  }
  .full-sketchbook :is(.category, .collection, .art-start, .feedback-choice, .series-choice, .comic,
    .option, .photo-guide, dialog, #cartoon-reader) {
    background: var(--sketch-card);
    border-color: var(--sketch-line);
    color: var(--sketch-ink);
  }
  .full-sketchbook :is(.category img, .collection img, .art-start > img, .comic > button) {
    background: var(--sketch-lilac);
  }
  .full-sketchbook .option:has(input:checked) { background: var(--sketch-lilac); border-color: #937689; }
  .full-sketchbook :is(.linkbutton,.collection a,.browse a,.future-tools h3,.feedback-choice strong,
    .beta-feedback,.series-choice span,.options legend,.close-button,#form-status,
    #cartoon-reader summary,#reader-full) { color: var(--sketch-link); }
  .sketchbook-shop :is(.linkbutton,.collection a,.browse a,.beta-feedback,.sketchbook-shop-keepsakes a):hover {
    color: var(--sketch-ink);
    text-decoration: underline;
  }
  .sketchbook-shop-keepsakes {
    margin: 32px 0 0;
    padding: 28px 0;
    border-top: 1px solid var(--sketch-line);
  }
  .sketchbook-shop-keepsakes p { color: var(--sketch-muted); font-size: .875rem; max-width: 640px; }
  .sketchbook-shop-keepsakes a { color: var(--sketch-link); font-size: .875rem; text-underline-offset: .3em; }

  /* The Shop's collection links also open the catalog view in Studio. */
  .sketchbook-studio :is(#collections,#productdialog) { --ink: var(--sketch-ink); color: var(--sketch-ink); }
  .sketchbook-studio :is(#collections,#productdialog) :is(p,small,label,figcaption,.collection-name,.product-format) {
    color: var(--sketch-muted);
  }
  .sketchbook-studio :is(#collections,#productdialog) :is(.eyebrow,.product-collection,.catalog-art-type,.catalog-art-brand) {
    color: var(--sketch-sage);
  }
  .sketchbook-studio :is(#collections,#productdialog) :is(.outline,.text-link,.world-enter,.linkbutton) {
    color: var(--sketch-link);
    border-color: #9d8794;
  }
  .sketchbook-studio :is(#collections,#productdialog) :is(.product-card,.shop-world-card,.catalog-title-art,.catalog-note,.shop-filters input,.shop-filters select) {
    background: var(--sketch-card);
    color: var(--sketch-ink);
    border-color: var(--sketch-line);
  }
  .sketchbook-studio #collections .shop-filters input::placeholder { color: var(--sketch-muted); }
  .sketchbook-studio :is(#collections,#productdialog) .product-status { color: var(--sketch-ink); background: var(--sketch-lilac); }
  .sketchbook-studio :is(#collections,#productdialog) .product-status.available { color: #354b31; background: #e5eddf; }
  .sketchbook-studio :is(#collections,#productdialog) .primary { color: var(--sketch-card); background: var(--sketch-ink); }
  .sketchbook-studio :is(#collections,#productdialog) .primary:hover { background: #4e324e; }
  .sketchbook-studio :is(#collections,#productdialog) .outline:hover { background: var(--sketch-lilac); }
  .full-sketchbook :is(.button, .free-download a, .full-sampler .primary) {
    background: var(--sketch-ink);
    color: var(--sketch-card);
    border-color: var(--sketch-ink);
  }
  .full-sketchbook :is(.button, .free-download a, .full-sampler .primary):hover {
    background: #4e324e;
    color: var(--sketch-card);
  }
  .full-sketchbook .button:disabled { opacity: .55; cursor: default; }
  .full-sketchbook .request-field :is(input:not([type=file]), textarea) {
    background: #fffdf8;
    color: var(--sketch-ink);
    border-color: var(--sketch-line);
  }

  /* Theme the workspace controls while leaving printable cover and page themes independent. */
  .sketchbook-studio :is(#planner,#scrapbook,#circle) { color: var(--sketch-ink); }
  .sketchbook-studio :is(#planner,#scrapbook) > .intro {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
  }
  .sketchbook-studio :is(#planner,#scrapbook,#circle) :is(.intro,.circle-hero) h1 {
    color: var(--sketch-ink);
  }
  .sketchbook-studio :is(#planner,#scrapbook,#circle) :is(.intro,.circle-hero) h1 em {
    color: var(--sketch-link);
  }
  .sketchbook-studio :is(#planner,#scrapbook,#circle) :is(.intro,.circle-hero) p {
    color: var(--sketch-muted);
  }
  .sketchbook-studio :is(#planner,#scrapbook,#circle) :is(.eyebrow,.step) { color: var(--sketch-sage); }
  .sketchbook-studio #planner :is(.choices,.companion,.planner-memory,.studio-start-grid button,
    .planner-package-grid article,.save-choice-grid article,.chapter-cover-choice),
  .sketchbook-studio #scrapbook :is(.story-editor,.story-savebar,#brain-space,.art-add),
  .sketchbook-studio #circle :is(.circle-next-chapter,.circle-contact,.circle-optional,.circle-writing,
    .circle-prompt-section,.circle-guidelines,.circle-phase-label) {
    --ink: var(--sketch-ink);
    --border: var(--sketch-line);
    --soft: var(--sketch-lilac);
    background: var(--sketch-card);
    color: var(--sketch-ink);
    border-color: var(--sketch-line);
  }
  .sketchbook-studio #planner :is(.studio-start,.weekly-path-heading,.save-intro,.save-choice-grid,
    .planner-package-grid,.planner-offering) :is(h2,h3,strong),
  .sketchbook-studio #planner .panel :is(h2,h3):not(.cover-sheet *, .planner-page *),
  .sketchbook-studio #scrapbook :is(.story-editor,.story-savebar,.story-preview-help,#brain-space,.keepsake-invitation) :is(h2,h3),
  .sketchbook-studio #circle :is(h2,h3,summary,strong) { color: var(--sketch-ink); }
  .sketchbook-studio #planner :is(.studio-start,.studio-start-grid,.weekly-path-heading,.save-intro,
    .save-choice-grid,.planner-offering,.planner-package-grid,.planner-memory,.companion) :is(p,span,li):not(.primary *),
  .sketchbook-studio #planner .panel :is(p,label,.hint,.muted):not(.cover-sheet *, .planner-page *),
  .sketchbook-studio #scrapbook :is(.story-editor,.story-savebar,.story-preview-help,#brain-space) :is(p,label,.hint,.muted),
  .sketchbook-studio #circle :is(p,label,.hint,#circle-note-status) { color: var(--sketch-muted); }
  .sketchbook-studio #planner :is(.planner-package-price,#localsavestatus,.paper-top,.tab-color-label) { color: var(--sketch-link) !important; }
  .sketchbook-studio :is(#planner,#scrapbook,#circle) :is(summary,.calm-text-link,.studio-skip,
    .art-choice a,#brain-sticker-picker a,#storydraftstatus,.story-saving-note) { color: var(--sketch-link); }
  .sketchbook-studio #planner :is(.studio-brand-notes span,.mood,.segmented button),
  .sketchbook-studio #scrapbook :is(.story-intro-notes span,.story-prompts button,.story-prompt-note,
    .stickers button,.brain-placed select),
  .sketchbook-studio #circle .circle-prompts button {
    background: var(--sketch-lilac);
    color: var(--sketch-ink);
    border-color: var(--sketch-line);
  }
  .sketchbook-studio :is(#planner,#scrapbook,#circle) :is(.primary,.download,
    .mood.active,.segmented button.selected,[aria-pressed="true"]):not(.planner-page *, .cover-sheet *) {
    background: var(--sketch-ink);
    color: var(--sketch-card);
    border-color: var(--sketch-ink);
  }
  .sketchbook-studio :is(#planner,#scrapbook,#circle) :is(.outline,.filebutton):not(.planner-page *, .cover-sheet *) {
    background: transparent;
    color: var(--sketch-ink);
    border-color: #9d8794;
  }
  .sketchbook-studio :is(#planner,#scrapbook,#circle) :is(.outline,.filebutton):hover {
    background: var(--sketch-lilac);
  }
  .sketchbook-studio :is(#planner,#scrapbook,#circle) :is(.primary,.download):hover {
    background: #4e324e;
    color: var(--sketch-card);
  }
  .sketchbook-studio #planner :is(.choices,.panel) :is(input:not([type=checkbox]):not([type=range]):not([type=file]),select,textarea):not(.planner-page *, .cover-sheet *),
  .sketchbook-studio #scrapbook :is(.story-editor,#brain-space) :is(input:not([type=checkbox]):not([type=range]):not([type=file]),select,textarea),
  .sketchbook-studio #circle .circle-writing textarea {
    background: #fffdf8;
    color: var(--sketch-ink);
    border-color: var(--sketch-line);
  }
  .sketchbook-studio :is(#planner,#scrapbook,#circle) :is(input,textarea):not(.planner-page *, .cover-sheet *)::placeholder { color: var(--sketch-muted); }
  .sketchbook-studio #planner .studio-start-grid button:hover { background: var(--sketch-lilac); border-color: #937689; }
  .sketchbook-studio #scrapbook #storywordwarning { color: #773d29 !important; }
}

@media screen and (max-width: 790px) {
  body.full-sketchbook header.sketchbook-mast { align-items: flex-start; flex-direction: column; gap: .65rem; }
  .full-sketchbook .sketchbook-mast nav { justify-content: flex-start; gap: .3rem .9rem; }
}
.full-sampler {
  display: grid;
  grid-template-columns: minmax(140px, .55fr) minmax(0, 1fr);
  gap: clamp(20px, 5vw, 56px);
  align-items: center;
  margin: 42px 0 0;
  padding: clamp(20px, 4vw, 35px);
  border: 1px solid #cbb8bb;
  border-radius: 6px;
  color: #302431;
  background: #f6eee4;
}
.full-sampler img { display: block; width: 100%; max-width: 260px; height: auto; border-radius: 4px; }
.full-sampler h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.full-sampler .primary {
  display: inline-block;
  background: #302431;
  color: #fff8ee;
  padding: .6rem 1rem;
  border-radius: 4px;
  text-decoration: none;
}
.full-sampler .sampler-note { font-size: .76rem; margin: .7rem 0 0; }
.full-newsletter {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(20px, 5vw, 56px);
  padding: clamp(28px, 5vw, 44px);
  margin: 32px 0 0;
  border: 1px solid #b6a1ab;
  border-radius: 8px 5px 8px 5px;
  background: var(--sketch-card);
  color: var(--sketch-ink);
  scroll-margin-top: 16px;
}
.newsletter-flower-corner {
  position: absolute;
  width: clamp(42px, 8vw, 82px);
  height: auto;
  pointer-events: none;
}
.newsletter-flower-start { top: -3px; left: -3px; }
.newsletter-flower-end { bottom: -3px; right: -3px; transform: rotate(180deg); }
.newsletter-flower-top-right, .newsletter-flower-bottom-left { width: clamp(34px, 6vw, 60px); }
.newsletter-flower-top-right { top: -2px; right: -2px; transform: scaleX(-1); }
.newsletter-flower-bottom-left { bottom: -2px; left: -2px; transform: scaleY(-1); }
.full-newsletter h2 { font-size: clamp(1.7rem, 4vw, 2.35rem); }
.full-newsletter h2 em { color: var(--sketch-link); }
.full-newsletter p { color: var(--sketch-muted); }
.full-newsletter .newsletter-form label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: 6px; }
.full-newsletter .newsletter-form > div { display: flex; flex-wrap: wrap; gap: 8px; }
.full-newsletter .newsletter-form input {
  flex: 1 1 145px;
  min-width: 0;
  border: 1px solid var(--sketch-line);
  border-radius: 4px;
  padding: 10px;
  background: #fffdf8;
  font: inherit;
}
.full-newsletter .newsletter-form input::placeholder { color: var(--sketch-muted); }
.full-newsletter :is(.full-newsletter .newsletter-form p,.newsletter-note) { font-size: .76rem; margin: 8px 0 0; }
.portfolio-inquiry { margin: 28px 0 38px; padding: 24px 0 0; border-top: 1px solid var(--sketch-line); }
.portfolio-inquiry h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.portfolio-inquiry p, .portfolio-inquiry-note { color: var(--sketch-muted); }
.portfolio-inquiry-note { font-size: .9rem; }
#portrait-options { scroll-margin-top: 1rem; }
.full-side-quests {
  width: min(760px, 100%);
  margin: 18px auto 40px;
  padding: clamp(15px, 4vw, 28px);
  background: #f6eee4;
  color: #302431;
  border: 1px solid #cbb8bb;
  border-radius: 8px;
}
.full-side-quests > p { margin: 0 0 .35rem; font: 700 .7rem/1.5 system-ui; letter-spacing: .14em; color: var(--sketch-sage); }
.full-side-quests h2 { margin: 0 0 1rem; color: #302431; font: 2rem/1.15 Georgia, serif; }
.full-scene-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.full-scene-grid figure { margin: 0; }
.full-scene-grid img { display: block; width: 100%; height: auto; border-radius: 4px; }
.full-scene-grid figcaption { padding-top: 8px; }
.full-scene-grid strong { display: block; font: 1.22rem/1.3 Georgia, serif; }
.full-scene-grid span { font: .84rem/1.5 system-ui, sans-serif; color: var(--sketch-muted); }
@media(max-width: 550px) {
  .full-sampler, .full-newsletter, .full-scene-grid { grid-template-columns: 1fr; }
  .full-sampler img { max-width: 200px; }
}

.full-newsletter .newsletter-form label { color: var(--sketch-ink); }
.full-newsletter .newsletter-form input:is([type=email],[type=text]) {
  min-height: 42px;
  color: var(--sketch-ink);
}
.full-newsletter .newsletter-form :is(button,input)[type=submit] {
  background: var(--sketch-ink) !important;
  border-color: var(--sketch-ink) !important;
  color: var(--sketch-card) !important;
  border-radius: 4px !important;
}
