/* Botanical colors drawn from Ophelia: forest, ivory, brass, and burgundy. */
:root{
  --forest:#263d32;
  --ivory:#f4efe2;
  --surface:#fcfaf4;
  --gold:#a18a58;
  --burgundy:#713c46;
  --sage:#4c624e;
  --hero-ink:#fff;
  --painting-image:url('assets/hero-painting.jpg');
  --ink:var(--forest);
  --paper:var(--ivory);
  --muted:#556451;
  --line:#c8cbb9;
  /* Existing components share the same semantic palette. */
  --auburn:var(--forest);
  --white:var(--ivory);
  --wine:var(--burgundy);
  --slate:var(--forest);
  --vanilla:var(--ivory);
  --yellow:var(--gold);
}
html,body{background:var(--paper);color:var(--ink)}
header,.navigation{background:var(--ivory)}
.navigation a{color:var(--forest)}
.navigation a.active,.eyebrow,.toolbar-kicker,.card-number{color:var(--burgundy)}
.nav-inner a:hover,.text-link:hover,.collection-link,.admin-footer-link{color:var(--burgundy)}
.hero-title-block{color:var(--hero-ink)}
.hero-title-block h1{-webkit-text-stroke-color:var(--hero-ink)}
.logo-placeholder{border-color:var(--gold);color:var(--forest)}
.editorial-heading>p,.book-author,.recommendation-caption p,.category-sub,.category-count,.home-status{color:var(--muted)}
.book-cover:before,.collection-feature:nth-child(odd) .book-cover:before{background:var(--gold)}
.book-cover:after{border-color:var(--gold)}
.book-cover .star-icon{color:var(--gold)}
.collection-feature:nth-child(4n+2) .book-cover{background:var(--burgundy);color:var(--ivory);border-color:var(--burgundy)}
.collection-feature:nth-child(4n+3) .book-cover{background:var(--sage);color:var(--ivory);border-color:var(--sage)}
.page-heading,.category-list details,.library-toolbar,.category-navigation,.resource-tabs,.footer-bottom,footer{border-color:var(--line)}
.library-toolbar form{background:var(--surface);border-color:var(--muted)}
.library-toolbar input,.library-toolbar button{background:var(--surface)}
.library-toolbar input::placeholder{color:var(--muted)}
.genre-pill{color:var(--burgundy);border-color:var(--line)}
.statement-grid article{border-color:var(--line)}
.statement-grid article:nth-child(2),.resource-empty{background:var(--forest);color:var(--ivory)}
.resource-empty .eyebrow,.statement-grid article:nth-child(2) .card-number{color:var(--ivory)}
.portrait-placeholder,.about-placeholder,.skip{color:var(--ivory)}
.resource-tabs button{background:var(--ivory)}
.primary-link:hover,.detail-actions button:hover{background:var(--burgundy);border-color:var(--burgundy);color:var(--ivory)}
.footer-inner>p,.footer-wordmark span,.footer-bottom>span{color:var(--muted)}
/* The admin screens use the same palette as the reading site. */
.admin-header{background:var(--ivory);border-color:var(--line)}
.login-intro .eyebrow,.login-intro h1 em,.sidebar .eyebrow,.admin-user>span,.sidebar-note p{color:var(--ivory)}
.side-active{border-color:var(--gold)}
input,textarea,select{background:var(--surface);color:var(--forest)}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
.drop-zone{background:var(--surface);border-color:var(--muted)}
.drop-zone.dragging{outline-color:var(--forest);background:var(--ivory)}
.category-badge{color:var(--burgundy);background:var(--ivory);border-color:var(--line)}
.notice{background:var(--ivory);border-color:var(--gold);color:var(--forest)}
.notice.error{background:var(--ivory);border-color:var(--burgundy);color:var(--burgundy)}
.form-message,.site-link,.entry-actions button,.entry-actions a{color:var(--burgundy)}
dialog{background:var(--surface);color:var(--forest)}
dialog::backdrop{background:rgba(38,61,50,.68)}
.recommendation-control input{accent-color:var(--forest)}
.recommendation-control input:checked{background:var(--forest);border-color:var(--forest)}
.recommendation-control input:checked:after{color:var(--ivory)}
.sidebar a:focus-visible,.sidebar button:focus-visible{outline-color:var(--ivory)}
progress{border-color:var(--forest);background:var(--ivory);color:var(--forest)}
progress::-webkit-progress-bar{background:var(--ivory)}
progress::-webkit-progress-value{background:var(--forest)}
progress::-moz-progress-bar{background:var(--forest)}

/* Artwork palettes apply only to the public document, selected before it paints. */
html[data-theme="starry-night"]{
  --forest:#243a61;--ivory:#f3efdc;--surface:#faf8ec;
  --gold:#b59a48;--burgundy:#3e5b88;--sage:#405f6a;
  --muted:#505c6c;--line:#c1c8cd;--hero-ink:#fff8d9;
  --painting-image:url('assets/starry-night.jpg');
}
html[data-theme="red-kimono"]{
  --forest:#35494a;--ivory:#f4eee1;--surface:#fbf8ef;
  --gold:#a88a56;--burgundy:#8b3338;--sage:#596763;
  --muted:#546360;--line:#c9c7b7;--hero-ink:#fff;
  --painting-image:url('assets/red-kimono.jpg');
}
html[data-theme="wheat-field"]{
  --forest:#38462b;--ivory:#f6f0d6;--surface:#fcf9eb;
  --gold:#ad8c39;--burgundy:#775c24;--sage:#677244;
  --muted:#5d6245;--line:#cec8a4;--hero-ink:#313d27;
  --painting-image:url('assets/wheat-field.jpg');
}
html[data-theme="starry-night"] .category-art-poetry{background-position:0% 100%}
html[data-theme="starry-night"] .category-art-stories{background-position:75% 78%}
html[data-theme="starry-night"] .category-art-essays{background-position:53% 16%}
html[data-theme="starry-night"] .category-art-reviews{background-position:100% 0%}
html[data-theme="red-kimono"] .category-art-poetry{background-position:36% 12%}
html[data-theme="red-kimono"] .category-art-stories{background-position:70% 0%}
html[data-theme="red-kimono"] .category-art-essays{background-position:38% 86%}
html[data-theme="red-kimono"] .category-art-reviews{background-position:100% 46%}
html[data-theme="wheat-field"] .category-art-poetry{background-position:8% 65%}
html[data-theme="wheat-field"] .category-art-stories{background-position:82% 72%}
html[data-theme="wheat-field"] .category-art-essays{background-position:40% 0%}
html[data-theme="wheat-field"] .category-art-reviews{background-position:100% 20%}
