body.theme-artnouveau {
  --bg: #f9efdb;
  --card-bg: #fff7e6;
  --text-primary: #243c2c;
  --text-secondary: #4c563e;
  --accent: #713443;
  --accent-soft: #b69153;
  --border-light: #c7aa74;
  --nouveau-gold: #96723d;
}
.theme-artnouveau #header { background: var(--bg); border-bottom: 3px double var(--nouveau-gold); }
.theme-artnouveau .article-header { border-bottom: 3px double var(--nouveau-gold); }
.theme-artnouveau .article-header, .theme-artnouveau .book-title { font-family: "Noto Serif SC", "Songti SC", SimSun, serif; }
.theme-artnouveau #cover { background: var(--bg); color: var(--text-primary); }
.theme-artnouveau #archiveHome:has(.nouveau-home:not([hidden])) > :is(.archive-header, #archiveGrid, #archiveLowerPanels, .archive-footer) { display: none !important; }
.theme-artnouveau #archiveHome { max-width: 1600px; margin-inline: auto; }
.theme-artnouveau #archiveHome .archive-tools { padding: .35rem .75rem; margin: 0 0 .3rem; }
.theme-artnouveau #archiveHome .archive-tools > div { display: none; }
.nouveau-home { display: none; }
.theme-artnouveau .nouveau-home:not([hidden]) {
  display: block;
  background: #f9eed9;
  border: 3px double var(--nouveau-gold);
  border-radius: 9px;
  font-family: "Noto Serif SC", "Songti SC", SimSun, Georgia, serif;
}
.nouveau-mast {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  gap: .6rem;
  border-bottom: 3px double var(--nouveau-gold);
  background: url('../scenes/nouveau/top-left.webp') left top / 29% auto no-repeat,
              url('../scenes/nouveau/top-right.webp') right top / 29% auto no-repeat;
}
.nouveau-mast img { width: clamp(42px, 8vw, 117px); height: auto; }
.nouveau-mast h1 { font: 600 clamp(1.4rem, 3.25vw, 3rem)/1.1 Georgia, serif; letter-spacing: .12em; margin: 0; }
.nouveau-mast p { text-align: center; margin: .3em 0 0; letter-spacing: .22em; }
.nouveau-layout { display: grid; grid-template-columns: minmax(100px, 17fr) minmax(0, 61fr) minmax(140px, 22fr); }
.nouveau-layout h2 { color: var(--text-primary); text-align: center; font-weight: 700; letter-spacing: .14em; margin: 0 auto 1rem; padding: 0 0 .45rem; width: fit-content; border-bottom: 1px solid var(--nouveau-gold); }
.nouveau-catalogue { min-width: 0; padding: .7rem clamp(.65rem, 2.5vw, 2.5rem) 1rem; border-inline: 3px double var(--nouveau-gold); }
.nouveau-books { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; gap: clamp(.45rem, 1.55vw, 1.55rem); }
.nouveau-home :is(button,a) { color: inherit; text-decoration: none; font: inherit; cursor: pointer; }
.nouveau-home button { border: 0; background: none; }
.nouveau-home :is(button,a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nouveau-home .nouveau-book {
  position: relative; width: 100%; aspect-ratio: 0.76; padding: 0; border-radius: 6px;
  background: var(--cover-art, none) center / 100% 100% no-repeat, #f0dfbc;
  box-shadow: 0 1px 2px #44320d55;
}
.nouveau-book[data-kind="chronicle"] { --cover-art: url('../scenes/nouveau/chronicle.webp'); }
.nouveau-book[data-kind="labyrinth"] { --cover-art: url('../scenes/nouveau/labyrinth.webp'); }
.nouveau-book[data-kind="atlas"] { --cover-art: url('../scenes/nouveau/atlas.webp'); }
.nouveau-book[data-kind="journal"] { --cover-art: url('../scenes/nouveau/journal.webp'); }
.nouveau-book[data-kind="willow"] { --cover-art: url('../scenes/nouveau/willow.webp'); }
.nouveau-book[data-kind="gazetteer"] { --cover-art: url('../scenes/nouveau/gazetteer.webp'); }
.nouveau-book > span { position: absolute; inset: 14% 12% auto; min-height: 19%; display: grid; align-content: center; justify-items: center; gap: .2em; }
.nouveau-book strong { font-size: clamp(.84rem, 2.2vw, 2rem); line-height: 1.2; }
.nouveau-book small { font-size: clamp(.65rem, 1.04vw, .9rem); color: #394432; }
.nouveau-book:hover { box-shadow: 0 0 0 2px var(--accent), 0 3px 8px #44320d44; }
.nouveau-nav, .nouveau-news { padding: clamp(.6rem, 2vw, 1.85rem); min-width: 0; }
.nouveau-nav { display: flex; flex-direction: column; align-items: center; gap: 1em; background: url('../scenes/nouveau/bottom-left.webp') left bottom / 100% auto no-repeat; padding-bottom: min(13vw, 180px); }
.nouveau-portrait { width: 100%; height: auto; max-width: 214px; }
.nouveau-nav :is(a,button) { display: block; text-align: center; width: 100%; padding: .45em 0; }
.nouveau-nav [aria-current] { border: 3px double var(--nouveau-gold); border-radius: 35%; color: var(--accent); }
.nouveau-news { background: url('../scenes/nouveau/bottom-right.webp') right bottom / min(60%, 130px) auto no-repeat; padding-bottom: 7rem; }
.nouveau-news ol { list-style: none; margin: 0; padding: 0; }
.nouveau-news li { position: relative; padding: 0 0 1rem .8rem; border-left: 1px solid var(--nouveau-gold); }
.nouveau-news li::before { content: ''; width: 7px; height: 7px; border: 2px solid var(--accent); border-radius: 50%; background: var(--bg); position: absolute; left: -6px; top: .35rem; }
.nouveau-news button { display: grid; gap: .3rem; text-align: start; width: 100%; padding: 0; overflow-wrap: anywhere; }
.nouveau-news time { font-size: .78rem; color: var(--text-secondary); }
.nouveau-news strong { color: var(--accent); }
.nouveau-special { margin-top: .9rem; text-align: center; }
.nouveau-special button { border-bottom: 1px solid var(--nouveau-gold); color: var(--accent); padding: .4em; }
@media (max-width: 760px) {
  .nouveau-mast { min-height: 62px; background-size: 22% auto; }
  .nouveau-layout { grid-template-columns: minmax(0, 1fr); }
  .nouveau-nav { flex-direction: row; background: none; padding: .55rem .7rem; }
  .nouveau-portrait { display: none; }
  .nouveau-catalogue { border-inline: 0; border-block: 3px double var(--nouveau-gold); }
  .nouveau-books { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nouveau-book strong { font-size: clamp(.95rem, 4.3vw, 1.7rem); }
  .nouveau-book small { font-size: clamp(.68rem, 2.7vw, .9rem); }
  .nouveau-news { padding: 1rem 1.25rem .35rem; background-size: 68px auto; }
}

/* Keep engraved artwork on its own layer so paper edges feather into the page. */
.nouveau-mast { background: none; isolation: isolate; }
.nouveau-mast::before, .nouveau-mast::after {
  content: ''; position: absolute; inset-block: 0; width: 27%; z-index: -1;
  pointer-events: none; mix-blend-mode: multiply;
  mask-image: linear-gradient(to right, #000 55%, transparent),
              linear-gradient(to bottom, #000 60%, transparent 98%);
  mask-composite: intersect;
}
.nouveau-mast::before { left: 0; background: url('../scenes/nouveau/top-left.webp') left top / 100% auto no-repeat; }
.nouveau-mast::after {
  right: 0; background: url('../scenes/nouveau/top-right.webp') right top / 100% auto no-repeat;
  mask-image: linear-gradient(to left, #000 55%, transparent),
              linear-gradient(to bottom, #000 60%, transparent 98%);
}
.nouveau-mast img {
  mix-blend-mode: multiply;
  mask-image: radial-gradient(ellipse 51% 48% at center, #000 73%, transparent 100%);
}
.nouveau-nav, .nouveau-news { position: relative; isolation: isolate; background: none; }
.nouveau-nav::after, .nouveau-news::after {
  content: ''; position: absolute; bottom: 0; z-index: -1;
  pointer-events: none; mix-blend-mode: multiply;
}
.nouveau-nav::after {
  left: 0; width: 100%; aspect-ratio: 1;
  background: url('../scenes/nouveau/bottom-left.webp') left bottom / contain no-repeat;
  mask-image: linear-gradient(to top, #000 65%, transparent 98%);
}
.nouveau-news::after {
  right: 0; width: min(60%,130px); aspect-ratio: 1.4;
  background: url('../scenes/nouveau/bottom-right.webp') right bottom / 100% auto no-repeat;
  mask-image: linear-gradient(to top, #000 38%, transparent 85%),
              linear-gradient(to left, #000 54%, transparent);
  mask-composite: intersect;
}
.nouveau-portrait {
  mix-blend-mode: multiply;
  mask-image: radial-gradient(ellipse 65% 63% at center, #000 64%, transparent 88%);
}
.nouveau-special { margin-top: clamp(.85rem, 2vw, 1.65rem); }
.nouveau-home .nouveau-feature {
  display: grid; width: 100%; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr);
  align-items: stretch; min-height: 108px; padding: 4px; border: 4px double var(--nouveau-gold);
  border-radius: 8px; background: #6c3542; color: #fff3d8;
  text-align: center; overflow: hidden;
}
.nouveau-feature-art {
  background: #5e4841 url('../scenes/nouveau/foundation.webp') center / contain no-repeat;
  border-radius: 4px;
}
.nouveau-feature > span:last-child { display: grid; place-content: center; gap: .3em; padding: .8rem .4rem; }
.nouveau-feature strong { font-size: clamp(1.15rem,3vw,2rem); line-height: 1.15; }
.nouveau-feature small { color: #ffe1a8; letter-spacing: .15em; }
@media (max-width: 760px) {
  .nouveau-nav::after { display: none; }
  .nouveau-news::after { width: 65px; }
}

.nouveau-feature-art { display: block; aspect-ratio: 1586 / 992; align-self: center; }
