/* The Chapters look on pages Kadence lays out (old pages, posts, blog, shop): body class "ac-site".
   Kadence's colour palette and fonts are pointed at the Chapters ones, so blocks that use the palette
   follow by themselves; headings, links, buttons and the blog get the Chapters type. Content is untouched.
   Kadence uses palette 1 for overlays, labels and buttons too, so it is ink: the accent stays on link
   underlines only, as on the Chapters pages. */
body.ac-site{
  --global-palette1:var(--ac-ink); --global-palette2:#3a3936;
  --global-palette3:var(--ac-ink); --global-palette4:var(--ac-ink); --global-palette5:var(--ac-soft); --global-palette6:var(--ac-soft);
  --global-palette7:var(--ac-paper-2); --global-palette8:var(--ac-paper); --global-palette9:var(--ac-paper);
  --global-palette-highlight:var(--ac-ink); --global-palette-highlight-alt:var(--ac-accent);
  --global-palette-btn-bg:var(--ac-ink); --global-palette-btn-bg-hover:var(--ac-accent); --global-palette-btn:var(--ac-paper); --global-palette-btn-hover:var(--ac-paper);
  --global-content-edge-padding:clamp(16px,4vw,48px); --global-content-width:calc(1200px + 2 * var(--global-content-edge-padding));
  --global-body-font-family:var(--ac-sans); --global-heading-font-family:var(--ac-serif); --global-primary-nav-font-family:var(--ac-sans);
  margin:0; background:var(--ac-paper); color:var(--ac-ink); font-family:var(--ac-sans); -webkit-font-smoothing:antialiased;
}
body.ac-site ::selection{ background:var(--ac-ink); color:var(--ac-paper); }
body.ac-site :focus-visible{ outline:2px solid var(--ac-accent); outline-offset:3px; }
body.ac-site #wrapper, body.ac-site #inner-wrap{ overflow:visible; background:transparent; }

/* header and footer span the page with the same edges as the Chapters pages */
body.ac-site .ac-top, body.ac-site .ac-end{ padding-inline:max(clamp(16px,4vw,48px), calc((100% - 1200px) / 2)); }
body.ac-site .ac-ov{ padding-inline:clamp(16px,4vw,48px); }
body.ac-site .ac-end{ padding-bottom:32px; font-size:15px; line-height:1.5; }
body.ac-site .ac-top{ font-size:15px; line-height:1.5; }

/* type */
body.ac-site .site-main, body.ac-site .entry-content{ font-family:var(--ac-sans); }
body.ac-site :is(.site-main, .entry-hero) :is(h1,h2,h3){ font-family:var(--ac-serif); font-weight:400; letter-spacing:-.01em; color:var(--ac-ink); }
body.ac-site :is(.site-main, .entry-hero) :is(h4,h5,h6){ font-family:var(--ac-sans); font-weight:500; color:var(--ac-ink); }
body.ac-site :is(.entry-hero, .entry-header) .entry-title, body.ac-site .page-title, body.ac-site .archive-title{ font-family:var(--ac-serif); font-weight:400; font-size:clamp(2.6rem,6vw,4.6rem); line-height:1; letter-spacing:-.02em; }
body.ac-site .entry-content{ font-size:16px; line-height:1.6; }
body.ac-site .entry-content :is(p, li){ text-wrap:pretty; }
body.ac-site .entry-content a:not([class*="button"]):not([class*="btn"]):not(.wp-block-button__link):not(:has(img)){ color:inherit; text-decoration:underline; text-decoration-color:var(--ac-accent); text-decoration-thickness:1.5px; text-underline-offset:3px; }
body.ac-site .entry-content a:not([class*="button"]):not([class*="btn"]):not(.wp-block-button__link):hover{ color:var(--ac-accent); }

/* buttons: ink pill, like the Chapters menu button */
body.ac-site :is(.wp-block-button__link, .kb-button, .button, button[type="submit"], input[type="submit"], .wp-element-button){
  background:var(--ac-ink); color:var(--ac-paper); border:1px solid var(--ac-ink); border-radius:999px; box-shadow:none;
  font-family:var(--ac-sans); font-size:14px; font-weight:500; letter-spacing:0; text-transform:none; padding:10px 22px; text-decoration:none;
}
body.ac-site :is(.wp-block-button__link, .kb-button, .button, button[type="submit"], input[type="submit"], .wp-element-button):hover{ background:var(--ac-accent); border-color:var(--ac-accent); color:var(--ac-paper); }

/* forms */
body.ac-site :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], input[type="password"], select, textarea){
  background:#fff; color:var(--ac-ink); border:1px solid var(--ac-line); border-radius:8px; box-shadow:none; font-family:var(--ac-sans);
}

/* posts and the blog: no boxes, a line between entries, mono labels */
body.ac-site :is(.content-bg, .entry.single-entry, .loop-entry){ box-shadow:none; border-radius:0; }
body.ac-site .loop-entry{ background:transparent; }
body.ac-site .entry.single-entry{ background:var(--ac-paper); } /* covers the bottom of a post's featured image, as Kadence's box did */
body.ac-site .loop-entry{ border-top:1px solid var(--ac-line); padding-top:20px; }
body.ac-site .loop-entry .entry-title{ font-size:clamp(1.6rem,2.6vw,2.2rem); line-height:1.08; }
body.ac-site .loop-entry .entry-title a{ color:inherit; text-decoration:none; }
body.ac-site .loop-entry .entry-title a:hover{ color:var(--ac-accent); }
body.ac-site :is(.entry-taxonomies, .entry-meta, .more-link-wrap, .post-navigation .nav-subtitle, .kadence-breadcrumbs){ font-family:var(--ac-mono); font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--ac-soft); }
body.ac-site :is(.entry-taxonomies, .more-link-wrap) a{ color:inherit; }
body.ac-site .more-link-wrap a{ border-bottom:1.5px solid var(--ac-accent); text-decoration:none; }
body.ac-site .post-navigation a{ color:inherit; text-decoration:none; }
body.ac-site .post-navigation .nav-title{ font-family:var(--ac-serif); font-size:1.4rem; }
