/*
 * Chatacombs section styles: an illuminated manuscript inside Lithodora.info.
 * Loaded only on Chatacombs pages, and every rule is scoped to a cc- class (or
 * body.cc-section), so nothing here can restyle the rest of the site. Colours and
 * fonts follow the site: parchment, ink, gold, Cinzel Decorative headings and
 * Spectral text (inherited from the theme's Global Styles).
 */

.cc-section,
.editor-styles-wrapper {
  --cc-ink: #2b2118;
  --cc-ink-soft: #5a4632;
  --cc-sepia: #6b4a2a;
  --cc-gold: #d4a443;
  --cc-gold-deep: #a97a26;
  --cc-gold-pale: #f3d48a;
  --cc-purple: #35093c;
  --cc-rust: #8a3e27;
  --cc-parchment: #f2e0c8;
  --cc-parchment-dark: #e8d3b6;
  --cc-paper: #f3e6cd;
  --cc-night: #120c10;
  --cc-header-room: 150px; /* the site's fixed transparent header sits over the top of each page */
  --cc-fleuron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 28'%3E%3Cg fill='none' stroke='%236b4a2a' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M8 14H98M162 14H252'/%3E%3Cpath d='M98 14c8-10 18-10 23-3M98 14c8 10 18 10 23 3M162 14c-8-10-18-10-23-3M162 14c-8 10-18 10-23 3'/%3E%3Cpath d='M8 14l-4-3M8 14l-4 3M252 14l4-3M252 14l4 3'/%3E%3C/g%3E%3Cpath d='M130 4l7 10-7 10-7-10z' fill='%23b5862f' stroke='%236b4a2a' stroke-width='.9'/%3E%3Ccircle cx='90' cy='14' r='2' fill='%236b4a2a'/%3E%3Ccircle cx='170' cy='14' r='2' fill='%236b4a2a'/%3E%3C/svg%3E");
  --cc-ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 16'%3E%3Cg fill='none' stroke='%236b4a2a' stroke-width='1' stroke-linecap='round'%3E%3Cpath d='M6 8H60M90 8H144'/%3E%3Cpath d='M60 8c5-6 10-6 13-2M60 8c5 6 10 6 13 2M90 8c-5-6-10-6-13-2M90 8c-5 6-10 6-13 2'/%3E%3C/g%3E%3Cpath d='M75 3l4 5-4 5-4-5z' fill='%23b5862f'/%3E%3C/svg%3E");
}

/*
 * Upright Spectral for long reading. The site installs only Spectral 500 italic,
 * so its text is italic everywhere; on these pages the story is set upright and
 * italics are kept for quotations, captions and asides. Bundled (SIL OFL, see
 * assets/fonts/OFL.txt) so no visitor request goes to a third-party font host.
 */
@font-face { font-family: "CC Spectral"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/spectral-400.woff2") format("woff2"); }
@font-face { font-family: "CC Spectral"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/spectral-600.woff2") format("woff2"); }
@font-face { font-family: "CC Spectral"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/spectral-400-italic.woff2") format("woff2"); }

/* ------------------------------------------------------------ the page itself */

/*
 * One continuous sheet of aged paper behind every Chatacombs page: a seamless
 * grain tile, browned edges and a couple of faint smudges. Text sits straight
 * on it; strong parchment is kept for quotations and records.
 */
body.cc-section {
  background-color: var(--cc-paper);
  background-image:
    radial-gradient(ellipse 38% 22% at 6% 34%, rgba(120, 78, 30, .075), transparent 70%),
    radial-gradient(ellipse 30% 18% at 95% 68%, rgba(110, 70, 30, .06), transparent 70%),
    linear-gradient(90deg, rgba(105, 66, 28, .2), rgba(105, 66, 28, 0) 7%, rgba(105, 66, 28, 0) 93%, rgba(105, 66, 28, .2)),
    url("../img/paper.jpg");
  background-size: auto, auto, auto, 1024px 1024px;
}

.cc-main { padding: 0; }
.cc-main > .wp-block-post-content > * + * { margin-block-start: 0; }

.cc-page {
  /* Above the banner/profile clearings, which reach down past their own header. */
  position: relative; z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  box-sizing: border-box;
}
.cc-page::after { content: ""; display: table; clear: both; }

.cc-prose, .cc-profile__text, .cc-banner__subtitle, .cc-nav {
  font-family: "CC Spectral", var(--wp--preset--font-family--body, Spectral), serif;
}
.cc-prose { color: var(--cc-ink); font-size: 1.15rem; line-height: 1.75; }
.cc-prose strong { font-weight: 600; }
.cc-prose h2 {
  clear: both; color: var(--cc-purple); text-align: center; margin: 3.25rem 0 1.25rem;
  font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.2;
}
.cc-prose h2::after {
  content: ""; display: block; width: 150px; height: 16px; margin: .6rem auto 0;
  background: var(--cc-ornament) center / contain no-repeat;
}
.cc-prose h3 { color: var(--cc-rust); margin: 2rem 0 .5rem; font-size: 1.3rem; }
.cc-prose a { color: var(--cc-rust); }
.cc-prose a:hover { color: var(--cc-purple); }

/* "Chapter I" over a heading. */
.cc-kicker {
  clear: both; margin: 3.5rem 0 0; text-align: center; font-size: .8rem; letter-spacing: .32em;
  text-transform: uppercase; color: var(--cc-rust);
}
.cc-kicker + h2, .cc-kicker + .wp-block-heading { margin-top: .35rem; }

/* Illuminated initial: a gilded capital on a deep purple ground. */
.cc-illuminated::first-letter,
.cc-lede::first-letter {
  float: left;
  margin: .08em .16em 0 0;
  padding: .14em .16em .1em;
  font-family: var(--wp--preset--font-family--heading, serif);
  font-size: 3.9em;
  line-height: .8;
  color: var(--cc-gold-pale);
  background:
    radial-gradient(circle at 30% 25%, rgba(243, 212, 138, .22), transparent 55%),
    radial-gradient(circle at 70% 80%, #5a1f52, var(--cc-purple) 75%);
  border: 2px solid var(--cc-gold);
  text-shadow: 0 2px 0 #1a0520, 0 0 8px rgba(243, 212, 138, .35);
}

/* A fleuron rule between passages (core Separator with class cc-fleuron). */
hr.cc-fleuron, .cc-fleuron {
  clear: both;
  width: min(260px, 70%) !important; height: 28px; max-width: none;
  margin: 2.75rem auto !important; border: 0 !important; opacity: 1;
  background: var(--cc-fleuron) center / contain no-repeat;
}

/* Torn-edge band (same art as the site's .darkparchment), kept for the landing page. */
.cc-band {
  position: relative;
  background: var(--cc-parchment-dark);
  padding: 2.5rem 1.5rem;
  margin: 3.5rem -1.5rem;
}
.cc-band::before, .cc-band::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 40px;
  background-size: auto 100%; background-repeat: repeat-x; pointer-events: none;
}
.cc-band::before { top: -40px; background-image: url("/wp-content/uploads/2026/04/top_dark.png"); }
.cc-band::after { bottom: -40px; background-image: url("/wp-content/uploads/2026/04/bottom_dark.png"); }

/* ------------------------------------------------------------ printed artwork */

/*
 * Header art is printed into the paper rather than laid over it: sepia ink,
 * multiplied onto the page, fading out at the sides and into the text below.
 * It stays strongest at the very top, where the site's white navigation needs
 * a dark ground.
 */
.cc-print {
  position: absolute; inset: 0; z-index: -2;
  background: center 30% / cover no-repeat;
  filter: sepia(.75) saturate(.7) contrast(.82) brightness(1.08);
  opacity: .78;
  mix-blend-mode: multiply;
  -webkit-mask-image:
    linear-gradient(180deg, #000 0, #000 38%, rgba(0, 0, 0, .55) 70%, transparent 100%),
    linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(180deg, #000 0, #000 38%, rgba(0, 0, 0, .55) 70%, transparent 100%),
    linear-gradient(90deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
/* A thin wash of night at the top only, for the site's white navigation. */
.cc-banner::before, .cc-profile::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: -1; height: calc(var(--cc-header-room) + 30px);
  background: linear-gradient(180deg, rgba(22, 13, 9, .72), rgba(22, 13, 9, .38) 60%, rgba(22, 13, 9, 0));
  pointer-events: none;
}

/* The little fleuron under a title. */
.cc-banner__rule {
  display: block; width: min(260px, 70%); height: 28px; margin: .9rem auto .2rem;
  background: var(--cc-fleuron) center / contain no-repeat;
}

/* ------------------------------------------------------------ banner */

.cc-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: min(70vh, 660px);
  padding: calc(var(--cc-header-room) + 1rem) 1.5rem 3.5rem;
  box-sizing: border-box;
  text-align: center;
  color: var(--cc-ink);
  overflow-x: clip; /* the wide paper clearing never adds a sideways scroll */
}
.cc-banner--short { min-height: 0; }
/* The title sits on a soft clearing of paper, so it reads without darkening the art. */
.cc-banner__inner { position: relative; max-width: 820px; padding: 2rem 3rem 1.6rem; }
.cc-banner__inner::before {
  content: ""; position: absolute; inset: -11.5rem -12.5rem; z-index: -1;
  background: radial-gradient(closest-side, rgba(245, 233, 211, .97) 0, rgba(245, 233, 211, .93) 55%, rgba(245, 233, 211, .7) 78%, rgba(245, 233, 211, 0) 100%);
}
.cc-banner__eyebrow {
  margin: 0 0 .9rem; letter-spacing: .3em; text-transform: uppercase; font-size: .82rem; color: var(--cc-rust);
}
.cc-banner__title {
  margin: 0; color: var(--cc-purple); font-size: clamp(2.4rem, 7vw, 4.4rem); line-height: 1.05;
  text-shadow: 0 1px 0 rgba(255, 248, 232, .8);
}
.cc-banner__logo { margin: 0; line-height: 0; }
.cc-banner__logo img { width: min(640px, 82vw); height: auto; }
.cc-banner__subtitle {
  margin: .6rem auto 0; max-width: 600px; font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-style: italic; line-height: 1.55;
  color: var(--cc-ink-soft);
}

/* ------------------------------------------------------------ section nav */

/* A running head: small capitals between two ruled lines. */
.cc-nav { display: flex; justify-content: center; padding: 0 1rem; margin: 0; position: relative; z-index: 2; }
.cc-nav ul {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .15rem 0;
  list-style: none; margin: 0; padding: .4rem 1rem;
  border-block: 3px double rgba(107, 74, 42, .55);
}
.cc-nav li { display: flex; align-items: center; }
.cc-nav li + li::before { content: "\2756"; font-size: .6rem; color: var(--cc-gold-deep); padding: 0 .3rem; }
.cc-nav a {
  display: block; padding: .35rem .7rem; color: var(--cc-ink); text-decoration: none;
  font-family: var(--wp--preset--font-family--heading, serif); font-size: .95rem;
}
.cc-nav a:hover, .cc-nav a:focus-visible { color: var(--cc-rust); text-decoration: underline; text-decoration-color: var(--cc-gold); text-underline-offset: .3em; }
.cc-nav a[aria-current="page"] { color: var(--cc-purple); text-decoration: underline; text-decoration-color: var(--cc-gold); text-decoration-thickness: 2px; text-underline-offset: .3em; }

/* ------------------------------------------------------------ cards & gallery */

.cc-gallery {
  list-style: none; margin: 2rem 0 0; padding: 0;
  display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.cc-card a {
  position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; box-sizing: border-box;
  padding: 1rem .75rem 1.1rem; text-align: center; text-decoration: none; color: var(--cc-ink);
  /* The parchment art gives the card its shape: no border, corners or resting shadow. */
  background: url("/wp-content/uploads/2026/06/parchment.png") center / 100% 100%;
  transition: transform .2s ease, filter .2s ease;
}
.cc-card a:hover, .cc-card a:focus-visible { transform: translateY(-4px); filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5)); }
/* Keyboard focus stays visible, drawn inside the torn edge so it follows the sheet. */
.cc-card a:focus-visible { outline: 2px dashed var(--cc-rust); outline-offset: -10px; }
@media (prefers-reduced-motion: reduce) {
  .cc-card a { transition: none; }
  .cc-card a:hover, .cc-card a:focus-visible { transform: none; }
}
.cc-card__portrait {
  width: 128px; height: 128px; image-rendering: pixelated; background: var(--cc-night);
  border: 3px double var(--cc-gold); border-radius: 2px;
}
.cc-card__name { margin-top: .75rem; font-family: var(--wp--preset--font-family--heading, serif); font-size: 1.05rem; line-height: 1.25; color: var(--cc-purple); }
.cc-card__role { margin-top: .3rem; font-size: .9rem; font-style: italic; color: var(--cc-ink-soft); }

/* ------------------------------------------------------------ pixel strips */

.cc-strip {
  display: block;
  background-repeat: no-repeat;
  background-size: calc(var(--cc-frames, 1) * 100%) 100%;
  background-position: 0 0;
  image-rendering: pixelated;
}
.cc-strip--anim { animation: cc-strip var(--cc-dur, 1s) steps(var(--cc-frames, 1)) infinite; }
@keyframes cc-strip { to { background-position-x: var(--cc-end, 0%); } }
@media (prefers-reduced-motion: reduce) { .cc-strip--anim { animation: none; } }

/* A framed portrait: dark mat, gilt double rule, small gilt corners. */
.cc-frame {
  position: relative; display: inline-block; padding: 6px; background: var(--cc-night);
  border: 4px double var(--cc-gold); border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(107, 74, 42, .5), 0 10px 26px rgba(43, 33, 24, .38);
}
.cc-frame::before {
  content: ""; position: absolute; inset: -9px; pointer-events: none;
  background:
    linear-gradient(var(--cc-gold), var(--cc-gold)) 0 0 / 12px 2px,
    linear-gradient(var(--cc-gold), var(--cc-gold)) 0 0 / 2px 12px,
    linear-gradient(var(--cc-gold), var(--cc-gold)) 100% 0 / 12px 2px,
    linear-gradient(var(--cc-gold), var(--cc-gold)) 100% 0 / 2px 12px,
    linear-gradient(var(--cc-gold), var(--cc-gold)) 0 100% / 12px 2px,
    linear-gradient(var(--cc-gold), var(--cc-gold)) 0 100% / 2px 12px,
    linear-gradient(var(--cc-gold), var(--cc-gold)) 100% 100% / 12px 2px,
    linear-gradient(var(--cc-gold), var(--cc-gold)) 100% 100% / 2px 12px;
  background-repeat: no-repeat;
}

/* ------------------------------------------------------------ hero profile */

.cc-profile {
  position: relative; isolation: isolate;
  padding: calc(var(--cc-header-room) + 1.5rem) 1.5rem 3rem;
  color: var(--cc-ink);
  overflow-x: clip;
}
.cc-profile__inner {
  max-width: 940px; margin: 0 auto;
  display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center;
}
.cc-profile__art { position: relative; }
.cc-profile__portrait { width: 256px; height: 256px; }
.cc-profile__sprite {
  position: absolute; right: -64px; bottom: -40px; width: 192px; height: 192px;
  filter: drop-shadow(0 6px 4px rgba(43, 33, 24, .45));
}
.cc-profile__text { position: relative; padding: 1.6rem 1.75rem; }
.cc-profile__text::before {
  content: ""; position: absolute; inset: -8rem -12rem -15rem -19rem; z-index: -1;
  background: radial-gradient(closest-side, rgba(245, 233, 211, .96) 0, rgba(245, 233, 211, .92) 62%, rgba(245, 233, 211, .65) 82%, rgba(245, 233, 211, 0) 100%);
}
.cc-profile__text .cc-banner__rule { margin: .7rem 0 .9rem; }
.cc-profile__eyebrow { margin: 0; letter-spacing: .28em; text-transform: uppercase; font-size: .78rem; color: var(--cc-rust); }
.cc-profile__name {
  margin: .4rem 0 .2rem; color: var(--cc-purple); font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08;
  text-shadow: 0 1px 0 rgba(255, 248, 232, .8);
}
.cc-profile__role { margin: 0; font-family: var(--wp--preset--font-family--heading, serif); color: var(--cc-sepia); font-size: 1.05rem; }
.cc-profile__bio { margin: 0; font-size: 1.15rem; font-style: italic; line-height: 1.6; max-width: 32em; color: var(--cc-ink); }

/* ------------------------------------------------------------ the adventurer (secondary) */

/*
 * Who the hero is comes first; how they fight follows in a quieter register:
 * smaller type, ruled off, with the full move list folded into a reference.
 */
.cc-adventurer, .cc-attacks {
  clear: both; font-size: 1.02rem; color: var(--cc-ink-soft);
}
.cc-adventurer { margin-top: 3.5rem; padding-top: .5rem; }
.cc-adventurer h2, .cc-attacks__title {
  font-size: 1.5rem !important; margin: .35rem 0 1rem !important; color: var(--cc-ink) !important;
}
.cc-adventurer h2::after, .cc-attacks__title::after { width: 110px !important; }
.cc-adventurer h3 { font-size: 1.1rem; color: var(--cc-sepia); }
.cc-moves { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .9rem; }
.cc-moves li { padding-left: 1.4rem; position: relative; }
.cc-moves li::before { content: "\2726"; position: absolute; left: 0; top: .05em; color: var(--cc-gold-deep); }
.cc-moves strong { font-family: var(--wp--preset--font-family--heading, serif); font-weight: 400; color: var(--cc-purple); }

.cc-attacks { margin-top: 1.5rem; }
.cc-adventurer + .cc-attacks, .cc-prose .wp-block-post-content:has(.cc-adventurer) + .cc-attacks { margin-top: .5rem; }
.cc-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.25rem 0; }
.cc-stats div {
  min-width: 5.5rem; padding: .3rem .8rem; text-align: center;
  border: 1px solid rgba(107, 74, 42, .45); border-radius: 2px; background: rgba(245, 233, 211, .55);
}
.cc-stats dt { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--cc-sepia); }
.cc-stats dd { margin: 0; font-size: 1.3rem; font-family: var(--wp--preset--font-family--heading, serif); color: var(--cc-ink); }

.cc-reference { margin: 1.25rem 0 0; border: 1px solid rgba(107, 74, 42, .4); border-radius: 2px; background: rgba(232, 211, 182, .35); }
.cc-reference > summary {
  cursor: pointer; padding: .7rem 1rem; list-style: none;
  font-family: var(--wp--preset--font-family--heading, serif); color: var(--cc-purple); font-size: 1rem;
}
.cc-reference > summary::-webkit-details-marker { display: none; }
.cc-reference > summary::before { content: "\25B8"; display: inline-block; width: 1.2em; color: var(--cc-gold-deep); transition: transform .15s; }
.cc-reference[open] > summary::before { transform: rotate(90deg); }
.cc-reference[open] > summary { border-bottom: 1px solid rgba(107, 74, 42, .3); }
.cc-reference__body { padding: .25rem 1rem 1rem; }
.cc-reference h3 { font-size: 1.05rem; margin: 1.1rem 0 .4rem; color: var(--cc-sepia); }

.cc-attack-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(43, 33, 24, .2); }
.cc-attack-list li {
  display: grid; grid-template-columns: 5.5rem 1fr; column-gap: 1rem; align-items: baseline;
  padding: .5rem .25rem; border-bottom: 1px solid rgba(43, 33, 24, .2);
}
.cc-attack__cat {
  grid-row: span 2; align-self: center; text-align: center; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .2rem .3rem; border-radius: 2px; background: var(--cc-ink); color: var(--cc-parchment);
}
.cc-attack__cat--ranged { background: #2d4a5c; }
.cc-attack__cat--magic, .cc-attack__cat--spell { background: var(--cc-purple); }
.cc-attack__cat--self, .cc-attack__cat--defend { background: #3f5a2c; }
.cc-attack__name { font-family: var(--wp--preset--font-family--heading, serif); color: var(--cc-purple); font-size: 1.05rem; }
.cc-attack__facts { font-size: .92rem; color: var(--cc-ink-soft); }

/* ------------------------------------------------------------ pager */

.cc-pager {
  clear: both;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 1rem; align-items: center;
  margin-top: 3.5rem; padding-top: 1.5rem; border-top: 3px double rgba(107, 74, 42, .45);
}
.cc-pager a { color: var(--cc-rust); text-decoration: none; font-family: var(--wp--preset--font-family--heading, serif); }
.cc-pager a:hover { text-decoration: underline; }
.cc-pager__prev::before { content: "\2190\00a0"; }
.cc-pager__next { text-align: right; }
.cc-pager__next::after { content: "\00a0\2192"; }
.cc-pager__all { padding: .45rem 1rem; border: 1px solid var(--cc-rust); border-radius: 2px; }

/* ------------------------------------------------------------ plates */

/* An illustration plate: the still printed on a lighter leaf, ruled and captioned. */
.cc-plate { margin: 2.5rem auto; }
.cc-plate__frame {
  display: block; padding: 9px; background: #f8efdd;
  border: 1px solid rgba(107, 74, 42, .55);
  outline: 1px solid rgba(107, 74, 42, .3); outline-offset: 4px;
  box-shadow: 0 12px 26px rgba(43, 33, 24, .2);
}
.cc-plate img { display: block; width: 100%; height: auto; filter: sepia(.16) saturate(.92); }
.cc-plate figcaption { margin-top: 1rem; text-align: center; font-size: .98rem; font-style: italic; line-height: 1.5; color: var(--cc-ink-soft); }
.cc-plate__label {
  display: block; margin-bottom: .15rem; font-style: normal; font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--cc-rust);
}
.cc-plate--left, .cc-plate--right { width: 46%; margin-top: .4rem; margin-bottom: 1.4rem; }
.cc-plate--left { float: left; margin-right: 2rem; }
.cc-plate--right { float: right; margin-left: 2rem; }
.cc-plate--wide { clear: both; }

/* ------------------------------------------------------------ dialogue & quotations */

/* A spoken line set as a manuscript quotation beside the speaker's portrait. */
.cc-dialogue { clear: both; display: flex; gap: 1.25rem; align-items: center; margin: 2.25rem 0; }
.cc-frame--small { padding: 3px; border-width: 3px; flex: none; }
.cc-frame--small::before { inset: -7px; }
.cc-dialogue__portrait { width: 96px; height: 96px; }
.cc-dialogue__box {
  position: relative; flex: 1; margin: 0; padding: .6rem 1.2rem .7rem 1.4rem;
  background: linear-gradient(90deg, rgba(232, 211, 182, .7), rgba(232, 211, 182, 0));
  border: 0; border-left: 2px solid var(--cc-gold);
  font-style: italic; font-size: 1.22rem; line-height: 1.55;
}
.cc-dialogue__box p { margin: 0; }
.cc-dialogue__box p::before { content: "\201C"; color: var(--cc-rust); }
.cc-dialogue__box p::after { content: "\201D"; color: var(--cc-rust); }
.cc-dialogue__name {
  font-family: var(--wp--preset--font-family--heading, serif); font-style: normal; font-size: .85rem; color: var(--cc-rust);
  letter-spacing: .06em; margin-bottom: .2rem;
}

/* A parchment excerpt: reserved for passages that should feel like a found page. */
.cc-excerpt {
  clear: both; position: relative; margin: 2.5rem auto; max-width: 40em; padding: 1.8rem 2.2rem;
  background: url("/wp-content/uploads/2026/06/parchment.png") center / 100% 100%;
  font-style: italic; text-align: center; font-size: 1.15rem;
}
.cc-excerpt p { margin: .4rem 0; }
.cc-excerpt cite { display: block; margin-top: .9rem; font-style: normal; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--cc-rust); }

/* The cast of a story: framed portraits with one line each. */
.cc-cast {
  clear: both; display: grid; gap: 1.5rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 1.5rem 0 2rem;
}
.cc-cast > * { margin: 0 !important; }
.cc-cast-card { margin: 0; text-align: center; }
.cc-cast-card__portrait { width: 96px; height: 96px; }
.cc-cast-card figcaption { margin-top: .8rem; line-height: 1.4; }
.cc-cast-card__name { display: block; font-family: var(--wp--preset--font-family--heading, serif); color: var(--cc-purple); font-size: 1.02rem; }
.cc-cast-card__note { display: block; font-size: .95rem; font-style: italic; color: var(--cc-ink-soft); }

/* A note in the margin, beside the text on wide screens. */
.cc-marginal {
  float: right; clear: right; width: 15rem; margin: .3rem -17rem 1rem 1.5rem; padding-left: .9rem;
  border-left: 1px solid rgba(107, 74, 42, .45);
  font-size: .92rem; font-style: italic; line-height: 1.5; color: var(--cc-sepia);
}

/* ------------------------------------------------------------ archive notes */

/* The Headmaster's and the Archive's voice: a parchment slip with a wax-red rule. */
/* The torn parchment is the shape: no fill colour, border or box shadow behind it. */
.cc-record {
  margin: 2.5rem 0; padding: 1.5rem 1.75rem;
  background: url("/wp-content/uploads/2026/06/parchment.png") center / 100% 100%;
  filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5));
}
.cc-record p:last-child { margin-bottom: 0; }
.cc-record cite, .cc-signature { display: block; margin-top: 1rem; text-align: right; font-style: italic; color: var(--cc-ink-soft); }

/* Three-up entry cards on the landing page. */
.cc-doors { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 2rem 0; }
.cc-doors > * {
  padding: 1.5rem 1.25rem; text-align: center;
  margin: 0 !important; /* the theme's block gap would stagger the cards */
  background: var(--cc-ink); color: var(--cc-parchment); border: 1px solid var(--cc-gold); border-radius: 3px;
}
.cc-doors code { background: rgba(243, 212, 138, .14); color: var(--cc-gold-pale); }
.cc-doors h3 { margin: 0 0 .5rem; color: var(--cc-gold); }
.cc-doors p { margin: .4rem 0; }
.cc-doors a { color: var(--cc-gold-pale); }

/* Command tables (the Command Scroll). */
.cc-commands table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.cc-commands th, .cc-commands td { padding: .55rem .7rem; border-bottom: 1px solid rgba(43, 33, 24, .2); text-align: left; vertical-align: top; }
.cc-commands thead th { background: var(--cc-ink); color: var(--cc-parchment); font-weight: 600; border: 0; }
.cc-commands td:first-child { white-space: nowrap; }
.cc-commands code, .cc-prose code {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9em;
  padding: .05em .35em; background: rgba(53, 9, 60, .08); color: var(--cc-purple); border-radius: 2px;
}

.cc-steps { counter-reset: cc-step; list-style: none; padding: 0; margin: 1.5rem 0; }
.cc-steps > li { counter-increment: cc-step; position: relative; padding: 0 0 1.1rem 3.2rem; }
.cc-steps > li::before {
  content: counter(cc-step); position: absolute; left: 0; top: -.1rem; width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--cc-ink); color: var(--cc-gold); font-family: var(--wp--preset--font-family--heading, serif);
}

/* Small italic aside, e.g. "told in the game" notes. */
.cc-note { clear: both; font-size: .95rem; font-style: italic; color: var(--cc-ink-soft); text-align: center; margin-top: 2.5rem; }

/* ------------------------------------------------------------ editor-only markers */

.cc-proposed {
  clear: both; margin: 2rem 0; padding: 1rem 1.25rem; border: 2px dashed var(--cc-purple); border-radius: 4px;
  background: repeating-linear-gradient(-45deg, rgba(53, 9, 60, .04) 0 12px, rgba(53, 9, 60, .08) 12px 24px);
}
.cc-proposed__label {
  margin: 0 0 .75rem; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--cc-purple);
}
.cc-proposed__label span { text-transform: none; letter-spacing: 0; font-weight: 400; font-style: italic; }
.cc-badge { display: inline-block; margin-top: .5rem; padding: .1rem .5rem; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; }
.cc-badge--draft { background: var(--cc-rust); color: #fff; }
.cc-editor-empty { padding: 1rem; border: 1px dashed #999; color: #555; font-style: italic; }

/* ------------------------------------------------------------ narrower screens */

@media (max-width: 1260px) {
  .cc-marginal { float: none; width: auto; margin: 1.25rem 0; }
}

@media (max-width: 782px) {
  .cc-section { --cc-header-room: 120px; }
  body.cc-section {
    background-image:
      linear-gradient(90deg, rgba(105, 66, 28, .14), rgba(105, 66, 28, 0) 5%, rgba(105, 66, 28, 0) 95%, rgba(105, 66, 28, .14)),
      url("../img/paper.jpg");
    background-size: auto, 768px 768px;
  }
  .cc-prose { font-size: 1.08rem; }
  .cc-page { padding: 2rem 1rem 3rem; }
  .cc-band { margin-inline: -1rem; padding-inline: 1rem; }
  .cc-print {
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 40%, rgba(0, 0, 0, .5) 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0, #000 40%, rgba(0, 0, 0, .5) 70%, transparent 100%);
  }
  .cc-banner { min-height: 0; padding-bottom: 2.5rem; }
  .cc-banner__inner { padding: 1.5rem 1rem 1.25rem; }
  .cc-banner__inner::before { inset: -1rem -1.5rem; }
  .cc-profile { padding-bottom: 2rem; }
  .cc-profile__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 1.75rem; }
  .cc-profile__portrait { width: 176px; height: 176px; }
  .cc-profile__sprite { right: -70px; bottom: -36px; width: 144px; height: 144px; }
  .cc-profile__text { padding: 1.25rem .75rem; }
  .cc-profile__text::before { inset: -.5rem -1rem; }
  .cc-profile__text .cc-banner__rule { margin-inline: auto; }
  .cc-profile__bio { margin-inline: auto; }
  .cc-gallery { grid-template-columns: repeat(2, 1fr); gap: .85rem; }
  .cc-card__portrait { width: 96px; height: 96px; }
  .cc-pager { grid-template-columns: 1fr 1fr; }
  .cc-pager__all { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .cc-commands td:first-child { white-space: normal; }
  .cc-nav ul { padding-inline: .25rem; }
  .cc-nav a { padding: .35rem .45rem; font-size: .86rem; }
  .cc-plate--left, .cc-plate--right { float: none; width: auto; margin: 2rem 0; }
  .cc-dialogue { gap: .9rem; align-items: flex-start; }
  .cc-dialogue__portrait { width: 72px; height: 72px; }
  .cc-dialogue__box { font-size: 1.08rem; padding-left: 1rem; }
  .cc-excerpt { padding: 1.4rem 1.2rem; }
  .cc-illuminated::first-letter, .cc-lede::first-letter { font-size: 3.3em; }
}

/* Consecutive lines of one exchange sit closer together. */
.cc-dialogue + .cc-dialogue { margin-top: -1rem; }

@media (max-width: 782px) {
  /* On a phone the profile stacks tall: let the art fade out behind the portrait, before the name. */
  .cc-profile .cc-print {
    -webkit-mask-image: linear-gradient(180deg, #000 0, #000 20%, rgba(0, 0, 0, .35) 42%, transparent 60%);
    mask-image: linear-gradient(180deg, #000 0, #000 20%, rgba(0, 0, 0, .35) 42%, transparent 60%);
  }
}

/* Command tables read as chapters of the scroll: the caption becomes a small heading above. */
.cc-commands { display: flex; flex-direction: column-reverse; margin: 2.25rem 0; }
.cc-commands figcaption, .cc-commands .wp-element-caption {
  margin: 0 0 .5rem; text-align: left; font-family: var(--wp--preset--font-family--heading, serif);
  font-size: 1.15rem; color: var(--cc-purple);
}
.cc-commands table { table-layout: fixed; background: rgba(245, 233, 211, .45); border: 1px solid rgba(107, 74, 42, .35); }
.cc-commands td:first-child, .cc-commands th:first-child { width: 32%; }
.cc-commands thead th { background: #3a2a1c; color: var(--cc-gold-pale); font-family: "CC Spectral", serif; letter-spacing: .08em; font-size: .8rem; text-transform: uppercase; }
@media (max-width: 782px) { .cc-commands td:first-child, .cc-commands th:first-child { width: 40%; } }

/* ------------------------------------------------------------ section contents */

/* The leaves of a section: parchment cards whose torn edge is their shape. */
.cc-leaves {
  list-style: none; margin: 2rem 0; padding: 0;
  display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.cc-leaf a {
  position: relative; display: flex; flex-direction: column; height: 100%; box-sizing: border-box;
  padding: 1.4rem 1.4rem 1.5rem; text-decoration: none; color: var(--cc-ink);
  background: url("/wp-content/uploads/2026/06/parchment.png") center / 100% 100%;
  transition: transform .2s ease, filter .2s ease;
}
.cc-leaf a:hover, .cc-leaf a:focus-visible { transform: translateY(-4px); filter: drop-shadow(5px 5px 10px rgba(0, 0, 0, 0.5)); }
.cc-leaf a:focus-visible { outline: 2px dashed var(--cc-rust); outline-offset: -10px; }
.cc-leaf__print {
  display: block; height: 130px; margin: 0 0 1rem; background: center / cover no-repeat;
  filter: sepia(.7) saturate(.75) contrast(.85) brightness(1.05); mix-blend-mode: multiply; opacity: .85;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 55%, transparent 100%);
}
.cc-leaf__figure { display: flex; justify-content: center; align-items: flex-end; height: 150px; margin: 0 0 .75rem; overflow: hidden; }
.cc-leaf__sprite { display: inline-block; flex: none; height: 200px; width: auto; aspect-ratio: 1 / 1; filter: drop-shadow(0 4px 3px rgba(43, 33, 24, .35)); }
.cc-leaf__title { font-family: var(--wp--preset--font-family--heading, serif); font-size: 1.2rem; line-height: 1.25; color: var(--cc-purple); text-align: center; }
.cc-leaf__text { margin-top: .5rem; font-size: .98rem; font-style: italic; line-height: 1.5; color: var(--cc-ink-soft); text-align: center; }
.cc-leaf .cc-badge { align-self: center; }

/* ------------------------------------------------------------ specimens */

/* Creatures, props and relics, drawn as they move in the game, on a dark ground. */
.cc-specimens {
  clear: both; display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem 1.5rem;
  margin: 2rem 0 2.5rem;
}
.cc-specimens > * { margin: 0 !important; flex: 0 1 245px; }
.cc-specimens > .cc-specimen--large { flex-basis: 360px; }
.cc-specimen { margin: 1.5rem auto; text-align: center; max-width: 22rem; }
.cc-specimen__ground {
  position: relative; display: flex; align-items: flex-end; justify-content: center; height: 160px; padding: 6px; box-sizing: border-box;
  background: radial-gradient(ellipse 70% 45% at 50% 88%, rgba(212, 164, 67, .2), transparent 70%), radial-gradient(ellipse at 50% 35%, #2a1d22, var(--cc-night) 75%);
  border: 4px double var(--cc-gold); border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(107, 74, 42, .5), 0 8px 20px rgba(43, 33, 24, .3);
  overflow: hidden;
}
/* Game frames carry empty space around the figure, so the strip is drawn larger than its ground and cropped. */
.cc-specimen__ground { height: 200px; }
.cc-specimen__sprite { display: inline-block; flex: none; height: 230px; width: auto; aspect-ratio: 1 / 1; margin-bottom: -6px; }
.cc-specimen--small .cc-specimen__ground { height: 130px; }
.cc-specimen--small .cc-specimen__sprite { height: 140px; }
.cc-specimen--large { max-width: 34rem; }
.cc-specimen--large .cc-specimen__ground { height: 280px; }
.cc-specimen--large .cc-specimen__sprite { height: 330px; }
.cc-specimen figcaption { margin-top: .8rem; line-height: 1.45; }
.cc-specimen__name { display: block; font-family: var(--wp--preset--font-family--heading, serif); font-size: 1.08rem; color: var(--cc-purple); }
.cc-specimen__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .4rem; margin: .4rem 0 .1rem; font-size: .8rem; color: var(--cc-sepia); }
.cc-specimen__line { flex-basis: 100%; font-size: .82rem; }
.cc-specimen__note { display: block; margin-top: .45rem; font-size: .97rem; font-style: italic; color: var(--cc-ink-soft); }
.cc-tag {
  display: inline-block; padding: .05rem .45rem; border: 1px solid rgba(107, 74, 42, .5); border-radius: 2px;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cc-ink);
}
.cc-tag--rank { background: var(--cc-purple); border-color: var(--cc-gold); color: var(--cc-gold-pale); }

/* ------------------------------------------------------------ codex of conditions */

.cc-codex { clear: both; display: grid; gap: 0 2rem; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.cc-codex > h2 { margin-top: 3rem; grid-column: 1 / -1; }
.cc-condition { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0 1.1rem; border-bottom: 1px solid rgba(107, 74, 42, .3); }
.cc-condition__icon {
  flex: none; width: 48px; height: 48px; padding: 6px; box-sizing: content-box; image-rendering: pixelated;
  background: var(--cc-night); border: 3px double var(--cc-gold); border-radius: 2px;
}
.cc-condition__body { min-width: 0; }
.cc-condition__name { margin: 0 0 .25rem !important; font-size: 1.15rem !important; color: var(--cc-purple) !important; }
.cc-condition__aka { display: block; font-family: "CC Spectral", serif; font-size: .82rem; font-style: italic; color: var(--cc-ink-soft); }
.cc-codex--affliction .cc-condition__name { color: var(--cc-rust) !important; }
.cc-condition__does { margin: 0 0 .45rem; font-size: 1rem; line-height: 1.55; }
.cc-condition__facts { margin: 0; font-size: .9rem; line-height: 1.45; color: var(--cc-ink-soft); }
.cc-condition__facts div { display: grid; grid-template-columns: 6.5rem 1fr; gap: .6rem; }
.cc-condition__facts dt { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cc-sepia); padding-top: .2rem; }
.cc-condition__facts dd { margin: 0; }

/* ------------------------------------------------------------ potions */

.cc-potions { list-style: none; margin: 1.5rem 0 2.5rem; padding: 0; display: grid; gap: .25rem 2rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cc-potion {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .9rem; align-items: center;
  padding: .7rem 0; border-bottom: 1px solid rgba(107, 74, 42, .3);
}
.cc-potion__icon { grid-row: span 3; width: 40px; height: 40px; padding: 4px; box-sizing: content-box; image-rendering: pixelated; background: var(--cc-night); border: 3px double var(--cc-gold); border-radius: 2px; }
.cc-potion__name { font-family: var(--wp--preset--font-family--heading, serif); color: var(--cc-purple); font-size: 1.02rem; line-height: 1.25; }
.cc-potion__rarity { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; }
.cc-potion__does { font-size: .95rem; line-height: 1.45; color: var(--cc-ink-soft); }
.cc-rarity--poor { color: #6f665c; }
.cc-rarity--common { color: var(--cc-ink); }
.cc-rarity--uncommon { color: #3f6a2a; }
.cc-rarity--rare { color: #2d5577; }
.cc-rarity--epic { color: #6a2a7a; }
.cc-rarity--legendary { color: #a45a12; }

/* Elements and enchantments read as ledgers. */
.cc-ledger td:first-child, .cc-ledger th:first-child { width: 24%; white-space: normal; }
.cc-ledger tbody th { font-weight: 600; color: var(--cc-purple); border-bottom: 1px solid rgba(43, 33, 24, .2); text-align: left; padding: .55rem .7rem; }
.cc-el-icon { font-style: normal; }

/* The Records: the game's numbers, quieter than the story above them. */
.cc-records { margin-top: 3.5rem; padding-top: .5rem; }
.cc-records .cc-kicker { margin-top: 0; }

@media (max-width: 782px) {
  .cc-leaves { grid-template-columns: 1fr; gap: 1rem; }
  .cc-specimens { gap: 1.5rem .9rem; }
  .cc-specimens > * { flex-basis: calc(50% - .5rem); }
  .cc-specimens > .cc-specimen--large { flex-basis: 100%; }
  .cc-specimen__ground { height: 150px; }
  .cc-specimen__sprite { height: 170px; }
  .cc-specimen--large .cc-specimen__ground { height: 230px; }
  .cc-specimen--large .cc-specimen__sprite { height: 270px; }
  .cc-codex { grid-template-columns: 1fr; }
  .cc-condition__facts div { grid-template-columns: 5.5rem 1fr; }
  .cc-potions { grid-template-columns: 1fr; }
  .cc-ledger table { table-layout: auto; font-size: .9rem; }
  .cc-ledger th, .cc-ledger td { padding: .45rem .4rem; }
}
@media (max-width: 420px) {
  .cc-specimens > * { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .cc-leaf a { transition: none; }
  .cc-leaf a:hover, .cc-leaf a:focus-visible { transform: none; }
}
.cc-leaf__figure--portrait { align-items: center; overflow: visible; }
.cc-leaf__portrait { width: 112px; height: 112px; }
