/*
Theme Name: Pens & Cribs
Theme URI: https://pensandcribs.com
Author: Pens & Cribs
Author URI: https://pensandcribs.com
Description: A warm, colourful, accessible writing-focused WordPress theme for children, teens, and adults. Includes editable service pages, a WPForms-ready contact page, an Amazon book slideshow, and a daily writing blog.
Version: 1.2.0
Requires at least: 6.2
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: pens-and-cribs
Tags: blog, education, portfolio, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks, block-styles
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --pc-sage: #a7bd9a;
  --pc-sage-deep: #55705a;
  --pc-paper: #fffdf7;
  --pc-cream: #f7f1e5;
  --pc-ink: #20242d;
  --pc-muted: #626875;
  --pc-plum: #6e4c7a;
  --pc-coral: #df6e61;
  --pc-gold: #eabf4b;
  --pc-sky: #5d9fc1;
  --pc-white: #ffffff;
  --pc-border: rgba(32, 36, 45, 0.12);
  --pc-shadow: 0 18px 45px rgba(52, 61, 49, 0.12);
  --pc-radius-sm: 14px;
  --pc-radius: 24px;
  --pc-radius-lg: 40px;
  --pc-content: 760px;
  --pc-wide: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pc-paper);
  color: var(--pc-ink);
  font-family: "Nunito", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--pc-plum); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pc-coral); }
button, input, textarea, select { font: inherit; }
:focus-visible { outline: 3px solid var(--pc-gold); outline-offset: 3px; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px;
}
.screen-reader-text:focus {
  background: var(--pc-white); clip: auto !important; clip-path: none; color: var(--pc-ink);
  display: block; font-size: 14px; font-weight: 800; height: auto; left: 12px; line-height: normal;
  padding: 14px 18px; top: 12px; width: auto; z-index: 100000;
}

.pc-container { width: min(calc(100% - 36px), var(--pc-wide)); margin-inline: auto; }
.pc-narrow { width: min(calc(100% - 36px), var(--pc-content)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--pc-paper) 94%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--pc-border);
}
.admin-bar .site-header { top: 32px; }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-branding { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.custom-logo-link { display: inline-flex; }
.custom-logo { max-height: 58px; width: auto; }
.site-title { margin: 0; font-size: clamp(1.35rem, 2vw, 1.65rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1; }
.site-title a { color: var(--pc-ink); text-decoration: none; }
.site-description { margin: 7px 0 0; font-size: 0.75rem; color: var(--pc-muted); line-height: 1.3; }
.site-mark {
  display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto;
  border-radius: 16px 16px 16px 5px; background: var(--pc-sage); color: var(--pc-ink); font-size: 24px;
  box-shadow: 5px 5px 0 var(--pc-gold);
}

.primary-navigation ul { list-style: none; display: flex; align-items: center; gap: 7px; padding: 0; margin: 0; }
.primary-navigation a { display: block; padding: 10px 12px; border-radius: 999px; color: var(--pc-ink); text-decoration: none; font-size: 0.84rem; font-weight: 800; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a, .primary-navigation .current_page_item > a { background: var(--pc-sage); color: var(--pc-ink); }
.menu-toggle { display: none; border: 0; border-radius: 14px; background: var(--pc-sage); color: var(--pc-ink); padding: 11px 14px; font-weight: 900; cursor: pointer; }

.site-main { min-height: 55vh; }
.pc-hero {
  position: relative; overflow: hidden; padding: clamp(78px, 10vw, 132px) 0 clamp(68px, 9vw, 110px);
  background:
    radial-gradient(circle at 8% 16%, rgba(234, 191, 75, .33) 0 80px, transparent 81px),
    radial-gradient(circle at 93% 26%, rgba(110, 76, 122, .16) 0 115px, transparent 116px),
    linear-gradient(135deg, var(--pc-sage) 0%, #cbd8bf 68%, #e8dfc5 100%);
}
.pc-hero::after {
  content: "✎"; position: absolute; right: 7%; bottom: -72px; font-size: clamp(170px, 22vw, 320px); line-height: 1;
  color: rgba(255,255,255,.36); transform: rotate(-11deg); pointer-events: none;
}
.pc-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(270px, .75fr); gap: clamp(36px, 7vw, 90px); align-items: center; }
.pc-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.58); font-size: .78rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.pc-kicker::before { content: "✦"; color: var(--pc-plum); }
.pc-hero h1, .page-hero h1 { margin: 0; max-width: 850px; font-size: clamp(3rem, 7.2vw, 6.45rem); line-height: .93; letter-spacing: -.065em; font-weight: 900; }
.pc-hero h1 em { color: var(--pc-plum); font-style: normal; }
.pc-hero-lead { max-width: 700px; margin: 28px 0 0; font-size: clamp(1.08rem, 2vw, 1.35rem); color: #333a37; }
.pc-button-row { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }
.pc-button, .wp-block-button__link, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 13px 22px; border: 2px solid transparent; border-radius: 999px;
  background: var(--pc-ink); color: var(--pc-white); text-decoration: none; font-weight: 900; line-height: 1.2;
  box-shadow: 0 8px 0 rgba(32,36,45,.13); transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.pc-button:hover, .wp-block-button__link:hover, input[type="submit"]:hover { color: var(--pc-white); background: var(--pc-plum); transform: translateY(-2px); box-shadow: 0 11px 0 rgba(32,36,45,.11); }
.pc-button.is-light { background: rgba(255,255,255,.72); color: var(--pc-ink); border-color: rgba(32,36,45,.18); }
.pc-button.is-light:hover { background: var(--pc-white); color: var(--pc-ink); }

.pc-notebook {
  position: relative; padding: 35px 30px 30px 55px; min-height: 350px; border-radius: 28px 28px 28px 8px;
  background: repeating-linear-gradient(#fffef9 0 37px, #dbe7ed 38px 39px);
  box-shadow: 16px 18px 0 rgba(110,76,122,.18), var(--pc-shadow); transform: rotate(2deg);
}
.pc-notebook::before { content: ""; position: absolute; left: 33px; top: 0; bottom: 0; width: 2px; background: rgba(223,110,97,.5); }
.pc-notebook::after { content: ""; position: absolute; inset: 16px auto 16px -10px; width: 22px; background: radial-gradient(circle, #5e6268 0 3px, transparent 4px) center top / 22px 38px repeat-y; }
.pc-notebook h2 { margin: 0 0 20px; font-family: Georgia, serif; font-size: 1.7rem; line-height: 1.25; color: var(--pc-plum); }
.pc-notebook ul { margin: 0; padding: 0; list-style: none; }
.pc-notebook li { position: relative; padding-left: 29px; margin: 0 0 13px; font-weight: 800; }
.pc-notebook li::before { content: "✓"; position: absolute; left: 0; color: var(--pc-sage-deep); font-weight: 900; }

.pc-section { padding: clamp(66px, 8vw, 108px) 0; }
.pc-section.is-cream { background: var(--pc-cream); }
.pc-section.is-sage { background: #dbe5d5; }
.pc-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .65fr); gap: 40px; align-items: end; margin-bottom: 42px; }
.pc-eyebrow { margin: 0 0 10px; color: var(--pc-coral); font-size: .75rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.pc-section h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -.055em; }
.pc-section-intro { margin: 0; color: var(--pc-muted); font-size: 1.05rem; }

.pc-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pc-card {
  position: relative; display: flex; flex-direction: column; min-height: 330px; overflow: hidden;
  padding: 30px; border: 1px solid var(--pc-border); border-radius: var(--pc-radius); background: var(--pc-white);
  box-shadow: 0 12px 28px rgba(42,51,42,.07); transition: transform .22s ease, box-shadow .22s ease;
}
.pc-card:hover { transform: translateY(-6px) rotate(-.25deg); box-shadow: var(--pc-shadow); }
.pc-card:nth-child(3n+2) { transform: rotate(.45deg); }
.pc-card:nth-child(3n+2):hover { transform: translateY(-6px) rotate(0deg); }
.pc-card-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 26px; border-radius: 20px 20px 20px 6px; font-size: 28px; background: var(--pc-sage); }
.pc-card:nth-child(6n+2) .pc-card-icon { background: #eadcf0; }
.pc-card:nth-child(6n+3) .pc-card-icon { background: #f8dcd5; }
.pc-card:nth-child(6n+4) .pc-card-icon { background: #f9e7ab; }
.pc-card:nth-child(6n+5) .pc-card-icon { background: #d9eaf1; }
.pc-card:nth-child(6n+6) .pc-card-icon { background: #e3d9c9; }
.pc-card h3 { margin: 0 0 12px; font-size: 1.45rem; line-height: 1.15; letter-spacing: -.03em; }
.pc-card p { margin: 0 0 22px; color: var(--pc-muted); font-size: .95rem; }
.pc-card-link { margin-top: auto; color: var(--pc-ink); font-weight: 900; text-decoration: none; }
.pc-card-link::after { content: " →"; color: var(--pc-coral); }

.pc-two-column { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(35px, 7vw, 86px); align-items: center; }
.pc-story-board { position: relative; padding: 38px; border-radius: var(--pc-radius-lg); background: var(--pc-plum); color: var(--pc-white); box-shadow: 14px 14px 0 var(--pc-gold); }
.pc-story-board::before { content: "“"; position: absolute; right: 24px; top: -7px; font-family: Georgia, serif; font-size: 105px; color: rgba(255,255,255,.16); line-height: 1; }
.pc-story-board h3 { margin-top: 0; font-size: 2rem; line-height: 1.1; }
.pc-story-board p { color: rgba(255,255,255,.84); }
.pc-list { list-style: none; padding: 0; margin: 24px 0 0; }
.pc-list li { position: relative; padding: 12px 0 12px 38px; border-bottom: 1px dashed rgba(32,36,45,.18); }
.pc-list li::before { content: "✦"; position: absolute; left: 5px; color: var(--pc-coral); font-weight: 900; }

.page-hero { padding: clamp(62px, 8vw, 100px) 0; background: linear-gradient(135deg, var(--pc-sage) 0%, #dce5d6 100%); border-bottom: 1px solid var(--pc-border); }
.page-hero .pc-kicker { margin-bottom: 15px; }
.page-hero h1 { font-size: clamp(3rem, 6.5vw, 5.75rem); }
.page-hero p { max-width: 760px; margin: 22px 0 0; font-size: 1.15rem; color: #394039; }

.entry-content { width: min(calc(100% - 36px), var(--pc-content)); margin: clamp(56px, 7vw, 90px) auto; }
.entry-content > * { max-width: 100%; }
.entry-content > .alignwide { width: min(100vw - 36px, var(--pc-wide)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content > .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content h2 { margin: 2em 0 .65em; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.04; letter-spacing: -.045em; }
.entry-content h3 { margin: 1.8em 0 .55em; font-size: 1.55rem; line-height: 1.2; }
.entry-content p, .entry-content li { color: #3b414b; }
.entry-content .wp-block-group { border-radius: var(--pc-radius); }
.entry-content .wp-block-quote { margin: 40px 0; padding: 26px 30px; border-left: 7px solid var(--pc-coral); border-radius: 0 var(--pc-radius) var(--pc-radius) 0; background: var(--pc-cream); }
.entry-content .wp-block-quote p { font-family: Georgia, serif; font-size: 1.35rem; color: var(--pc-ink); }
.entry-content .wp-block-columns { gap: 25px; }
.entry-content .wp-block-column { border-radius: var(--pc-radius); }
.entry-content .wp-block-separator { margin-block: 60px; border: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--pc-sage), transparent); }
.entry-content .has-pc-sage-background-color,
.entry-content .has-sage-background-color { background: var(--pc-sage); }

.pc-feature-boxes { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin: 34px 0; }
.pc-feature-box { padding: 26px; border-radius: var(--pc-radius); border: 1px solid var(--pc-border); background: var(--pc-white); box-shadow: 0 10px 24px rgba(42,51,42,.06); }
.pc-feature-box h3 { margin-top: 0; }
.pc-step-list { counter-reset: pcstep; list-style: none; padding: 0; }
.pc-step-list li { counter-increment: pcstep; position: relative; padding: 6px 0 25px 65px; min-height: 60px; }
.pc-step-list li::before { content: counter(pcstep); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--pc-gold); color: var(--pc-ink); font-weight: 900; }

.pc-cta { position: relative; overflow: hidden; padding: clamp(54px, 8vw, 90px) 0; background: var(--pc-ink); color: var(--pc-white); }
.pc-cta::after { content: "abc"; position: absolute; right: 4%; bottom: -35px; color: rgba(255,255,255,.06); font-family: Georgia, serif; font-size: clamp(130px, 22vw, 280px); font-style: italic; line-height: 1; }
.pc-cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.pc-cta h2 { margin: 0; max-width: 780px; font-size: clamp(2.3rem, 5vw, 4.3rem); line-height: 1; letter-spacing: -.055em; }
.pc-cta p { margin: 15px 0 0; max-width: 680px; color: rgba(255,255,255,.72); }
.pc-cta .pc-button { background: var(--pc-gold); color: var(--pc-ink); white-space: nowrap; }
.pc-cta .pc-button:hover { background: var(--pc-white); color: var(--pc-ink); }

.blog-hero { padding: 70px 0 55px; background: var(--pc-sage); }
.blog-hero h1 { margin: 0; font-size: clamp(3rem, 7vw, 5.9rem); line-height: .96; letter-spacing: -.06em; }
.blog-hero p { max-width: 720px; margin: 20px 0 0; font-size: 1.13rem; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; padding: 55px 0 90px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--pc-radius); background: var(--pc-white); border: 1px solid var(--pc-border); box-shadow: 0 12px 28px rgba(42,51,42,.07); }
.post-card-image { aspect-ratio: 16/10; display: grid; place-items: center; background: linear-gradient(135deg, var(--pc-sage), #e7dec5); font-size: 64px; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 25px; }
.post-card-meta { color: var(--pc-coral); font-size: .75rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.post-card h2 { margin: 10px 0 12px; font-size: 1.45rem; line-height: 1.17; letter-spacing: -.03em; }
.post-card h2 a { color: var(--pc-ink); text-decoration: none; }
.post-card p { margin: 0 0 20px; color: var(--pc-muted); font-size: .93rem; }
.post-card .pc-card-link { margin-top: auto; }
.navigation.pagination { grid-column: 1 / -1; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers { padding: 8px 14px; border-radius: 999px; background: var(--pc-cream); text-decoration: none; font-weight: 800; }
.page-numbers.current { background: var(--pc-plum); color: var(--pc-white); }

.single-post .entry-header { padding: 70px 0 40px; background: var(--pc-cream); }
.single-post .entry-header h1 { max-width: 920px; margin: 0; font-size: clamp(2.75rem, 6vw, 5.3rem); line-height: 1; letter-spacing: -.055em; }
.entry-meta { margin-top: 18px; color: var(--pc-muted); font-size: .9rem; }
.post-navigation { width: min(calc(100% - 36px), var(--pc-content)); margin: 0 auto 70px; }
.post-navigation .nav-links { justify-content: space-between; }
.comments-area { width: min(calc(100% - 36px), var(--pc-content)); margin: 0 auto 80px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { padding: 22px; margin-bottom: 18px; border-radius: var(--pc-radius); background: var(--pc-cream); }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
  width: 100%; padding: 13px 15px; border: 2px solid var(--pc-border); border-radius: 12px; background: var(--pc-white); color: var(--pc-ink);
}

.site-footer { background: #dfe7da; border-top: 1px solid var(--pc-border); }
.footer-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; padding: 58px 0 32px; }
.footer-brand h2 { margin: 0 0 10px; font-size: 2rem; letter-spacing: -.04em; }
.footer-brand p { max-width: 580px; margin: 0; color: var(--pc-muted); }
.footer-menu { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px 20px; list-style: none; padding: 0; margin: 0; }
.footer-menu a { color: var(--pc-ink); font-weight: 800; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid var(--pc-border); color: var(--pc-muted); font-size: .82rem; }
.footer-bottom a { color: inherit; }

.error-404, .no-results { padding: 90px 0; text-align: center; }
.error-404 h1, .no-results h1 { font-size: clamp(3rem, 7vw, 6rem); line-height: 1; }


/* Homepage book slideshow */
.pc-book-showcase { overflow: hidden; }
.pc-book-slider {
  position: relative; overflow: hidden; padding: clamp(28px, 5vw, 58px); border-radius: var(--pc-radius-lg);
  background:
    radial-gradient(circle at 92% 15%, rgba(234,191,75,.22) 0 95px, transparent 96px),
    radial-gradient(circle at 8% 88%, rgba(167,189,154,.18) 0 130px, transparent 131px),
    var(--pc-ink);
  color: var(--pc-white); box-shadow: var(--pc-shadow);
}
.pc-book-slides { min-height: 510px; }
.pc-book-slide { display: none; grid-template-columns: minmax(230px, .78fr) minmax(0, 1.22fr); gap: clamp(34px, 7vw, 88px); align-items: center; min-height: 510px; }
.pc-book-slide.is-active { display: grid; animation: pcBookReveal .42s ease both; }
@keyframes pcBookReveal { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
.pc-book-visual { display: grid; place-items: center; min-width: 0; }
.pc-book-visual img, .pc-book-cover {
  width: min(100%, 315px); aspect-ratio: 2 / 3; border-radius: 8px 18px 18px 8px; box-shadow: -12px 15px 0 rgba(255,255,255,.08), 0 28px 48px rgba(0,0,0,.32); transform: rotate(-2deg);
}
.pc-book-visual img { display: block; object-fit: cover; background: var(--pc-white); }
.pc-book-cover { position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 32px 27px; color: var(--pc-white); }
.pc-book-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(145deg, rgba(255,255,255,.25), transparent 42%, rgba(0,0,0,.22)); pointer-events: none; }
.pc-book-cover::after { content: "✦"; position: absolute; right: -18px; top: 16px; font-size: 110px; line-height: 1; opacity: .16; transform: rotate(12deg); }
.pc-book-cover-1 { background: linear-gradient(145deg, #7c5078, #bd776e 58%, #e1aa72); }
.pc-book-cover-2 { background: linear-gradient(145deg, #52735d, #8eaf86 58%, #d8c279); }
.pc-book-cover-3 { background: linear-gradient(145deg, #337aa0, #62a7bd 55%, #f0ba63); }
.pc-book-cover-4 { background: linear-gradient(145deg, #6a4b7d, #9d73a1 54%, #e6bd59); }
.pc-book-cover-5 { background: linear-gradient(145deg, #8a5a44, #c07a5c 55%, #efc782); }
.pc-book-cover-6 { background: linear-gradient(145deg, #315f6f, #5d9a9f 55%, #d7bd79); }
.pc-book-cover-7 { background: linear-gradient(145deg, #704657, #aa6b7c 55%, #edb987); }
.pc-book-cover-8 { background: linear-gradient(145deg, #4c5f83, #718bb0 55%, #e3c56f); }
.pc-book-cover-9 { background: linear-gradient(145deg, #536342, #87966a 55%, #e8c876); }
.pc-book-cover-10 { background: linear-gradient(145deg, #6b486c, #a16f91 55%, #eabf7c); }
.pc-book-cover-mark { position: absolute; top: 22px; left: 23px; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: rgba(255,255,255,.14); font-size: .72rem; font-weight: 900; letter-spacing: .05em; }
.pc-book-cover strong, .pc-book-cover small { position: relative; z-index: 1; }
.pc-book-cover strong { font-family: Georgia, serif; font-size: clamp(1.8rem, 3.1vw, 2.7rem); line-height: 1.02; text-wrap: balance; }
.pc-book-cover small { margin-top: 20px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.45); font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.pc-book-copy { max-width: 610px; }
.pc-book-number { margin: 0 0 13px; color: var(--pc-gold); font-size: .76rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.pc-book-copy h3 { margin: 0; font-size: clamp(2.5rem, 5.6vw, 5.2rem); line-height: .94; letter-spacing: -.06em; text-wrap: balance; }
.pc-book-subtitle { max-width: 550px; margin: 22px 0 8px; color: rgba(255,255,255,.82); font-family: Georgia, serif; font-size: clamp(1.15rem, 2vw, 1.48rem); font-style: italic; }
.pc-book-author { margin: 0 0 29px; color: rgba(255,255,255,.62); font-size: .9rem; font-weight: 800; }
.pc-book-copy .pc-button { background: var(--pc-gold); color: var(--pc-ink); }
.pc-book-copy .pc-button:hover { background: var(--pc-white); color: var(--pc-ink); }
.pc-book-copy .pc-button.is-disabled { cursor: default; opacity: .68; background: rgba(255,255,255,.18); color: var(--pc-white); }
.pc-book-controls { display: flex; align-items: center; justify-content: center; gap: 11px; margin-top: 24px; }
.pc-slider-arrow, .pc-slider-toggle, .pc-slider-dots button {
  display: inline-grid; place-items: center; border: 0; cursor: pointer;
}
.pc-slider-arrow, .pc-slider-toggle { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--pc-white); font-weight: 900; transition: background .2s ease, transform .2s ease; }
.pc-slider-arrow:hover, .pc-slider-toggle:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }
.pc-slider-dots { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; max-width: 340px; }
.pc-slider-dots button { width: 26px; height: 26px; padding: 0; border-radius: 50%; background: transparent; }
.pc-slider-dots button span { width: 9px; height: 9px; border-radius: 999px; background: rgba(255,255,255,.38); transition: width .2s ease, background .2s ease; }
.pc-slider-dots button[aria-selected="true"] span { width: 22px; background: var(--pc-gold); }
.pc-book-edit-note { margin: 18px auto 0; max-width: 780px; padding: 10px 15px; border-radius: 10px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.72); font-size: .77rem; text-align: center; }

/* Contact page and WPForms integration */
.pc-contact-section { padding: clamp(62px, 8vw, 105px) 0; background: linear-gradient(180deg, var(--pc-paper), #f7f2e8); }
.pc-contact-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(38px, 6vw, 76px); align-items: start; }
.pc-contact-copy > h2:first-child { margin-top: 0; font-size: clamp(2.2rem, 4.4vw, 3.7rem); line-height: 1; letter-spacing: -.05em; }
.pc-contact-copy p { color: #3b414b; }
.pc-contact-copy .pc-feature-boxes { grid-template-columns: repeat(2, minmax(0,1fr)); }
.pc-contact-copy .pc-feature-box { padding: 22px; }
.pc-contact-copy .pc-feature-box h3 { margin-bottom: 8px; font-size: 1.18rem; }
.pc-contact-details { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 34px; }
.pc-contact-card { display: flex; align-items: flex-start; gap: 15px; min-width: 0; padding: 21px; border: 1px solid var(--pc-border); border-radius: 20px; background: var(--pc-white); box-shadow: 0 10px 25px rgba(42,51,42,.06); }
.pc-contact-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px; border-radius: 15px 15px 15px 5px; background: var(--pc-sage); color: var(--pc-ink); font-weight: 900; }
.pc-contact-card:nth-child(2) .pc-contact-icon { background: #eadcf0; }
.pc-contact-card:nth-child(3) .pc-contact-icon { background: #f8dcd5; }
.pc-contact-card:nth-child(4) .pc-contact-icon { background: #f9e7ab; }
.pc-contact-card h2 { margin: 1px 0 5px; font-size: .79rem; letter-spacing: .07em; text-transform: uppercase; }
.pc-contact-card p { margin: 0; color: var(--pc-muted); font-size: .92rem; line-height: 1.45; overflow-wrap: anywhere; }
.pc-contact-card a { color: var(--pc-ink); font-weight: 850; text-decoration: none; }
.pc-contact-card a:hover { color: var(--pc-plum); text-decoration: underline; }
.pc-form-panel { position: sticky; top: 116px; padding: clamp(28px, 4vw, 43px); border: 1px solid var(--pc-border); border-radius: var(--pc-radius-lg); background: var(--pc-white); box-shadow: var(--pc-shadow); }
.pc-form-panel::before { content: "✎"; position: absolute; right: 25px; top: 7px; color: rgba(110,76,122,.08); font-size: 90px; line-height: 1; transform: rotate(-12deg); pointer-events: none; }
.pc-form-panel > * { position: relative; z-index: 1; }
.pc-form-panel h2 { margin: 0; font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: .98; letter-spacing: -.05em; }
.pc-form-intro { margin: 17px 0 26px; color: var(--pc-muted); font-size: .96rem; }
.pc-form-setup, .pc-form-fallback { padding: 27px; border: 2px dashed rgba(110,76,122,.3); border-radius: 20px; background: #f8f3fa; text-align: center; }
.pc-form-setup > span { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 13px; border-radius: 50%; background: var(--pc-plum); color: var(--pc-white); font-size: 26px; }
.pc-form-setup h3, .pc-form-fallback h3 { margin: 0 0 9px; font-size: 1.35rem; }
.pc-form-setup p, .pc-form-fallback p { margin: 0; color: var(--pc-muted); font-size: .9rem; }
.pc-form-fallback .pc-button-row { justify-content: center; }
.pc-form-fallback .pc-button.is-light { background: var(--pc-cream); }

.pc-form-panel .wpforms-container { margin: 0; }
.pc-form-panel .wpforms-container .wpforms-field { padding: 0 0 18px; }
.pc-form-panel .wpforms-container .wpforms-field-label { margin-bottom: 7px; color: var(--pc-ink); font-size: .9rem; font-weight: 900; }
.pc-form-panel .wpforms-container .wpforms-required-label { color: var(--pc-coral); }
.pc-form-panel .wpforms-container input[type="text"],
.pc-form-panel .wpforms-container input[type="email"],
.pc-form-panel .wpforms-container input[type="tel"],
.pc-form-panel .wpforms-container input[type="url"],
.pc-form-panel .wpforms-container input[type="number"],
.pc-form-panel .wpforms-container select,
.pc-form-panel .wpforms-container textarea {
  width: 100% !important; max-width: none !important; min-height: 50px; padding: 13px 15px !important; border: 2px solid var(--pc-border) !important; border-radius: 12px !important; background: var(--pc-paper) !important; color: var(--pc-ink) !important; box-shadow: none !important;
}
.pc-form-panel .wpforms-container textarea { min-height: 145px; resize: vertical; }
.pc-form-panel .wpforms-container input:focus,
.pc-form-panel .wpforms-container select:focus,
.pc-form-panel .wpforms-container textarea:focus { border-color: var(--pc-plum) !important; outline: 3px solid rgba(110,76,122,.14) !important; }
.pc-form-panel .wpforms-container .wpforms-submit-container { padding-top: 4px; }
.pc-form-panel .wpforms-container button[type="submit"],
.pc-form-panel .wpforms-container input[type="submit"] {
  width: auto; min-height: 50px; padding: 13px 24px !important; border: 2px solid transparent !important; border-radius: 999px !important; background: var(--pc-ink) !important; color: var(--pc-white) !important; font-weight: 900 !important; box-shadow: 0 8px 0 rgba(32,36,45,.13) !important;
}
.pc-form-panel .wpforms-container button[type="submit"]:hover,
.pc-form-panel .wpforms-container input[type="submit"]:hover { background: var(--pc-plum) !important; transform: translateY(-2px); }
.pc-form-panel .wpforms-container label.wpforms-error, .pc-form-panel .wpforms-container em.wpforms-error { color: #a43e35 !important; font-size: .8rem !important; }
.pc-form-panel .wpforms-confirmation-container-full { padding: 22px; border: 1px solid #8eaf86; border-radius: 18px; background: #e8f2e5; color: var(--pc-ink); }

@media (max-width: 1020px) {
  .menu-toggle { display: inline-flex; }
  .primary-navigation { position: absolute; left: 18px; right: 18px; top: calc(100% + 8px); display: none; padding: 14px; border-radius: 20px; background: var(--pc-white); box-shadow: var(--pc-shadow); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { align-items: stretch; flex-direction: column; }
  .primary-navigation a { padding: 12px 15px; }
  .pc-hero-grid, .pc-section-heading, .pc-two-column, .footer-inner, .pc-contact-grid { grid-template-columns: 1fr; }
  .pc-card-grid, .post-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pc-notebook { max-width: 560px; }
  .pc-cta-inner { align-items: flex-start; flex-direction: column; }
  .pc-form-panel { position: relative; top: auto; }
  .pc-book-slide { grid-template-columns: minmax(210px, .7fr) minmax(0, 1.3fr); gap: 42px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 680px) {
  body { font-size: 17px; }
  .pc-container, .pc-narrow, .entry-content { width: min(calc(100% - 26px), var(--pc-wide)); }
  .header-inner { min-height: 74px; }
  .site-description { display: none; }
  .site-mark { width: 41px; height: 41px; }
  .pc-hero { padding-top: 64px; }
  .pc-hero h1, .page-hero h1 { font-size: clamp(2.75rem, 15vw, 4.3rem); }
  .pc-notebook { padding: 30px 20px 25px 45px; }
  .pc-card-grid, .post-grid, .pc-feature-boxes, .pc-contact-copy .pc-feature-boxes, .pc-contact-details { grid-template-columns: 1fr; }
  .pc-card { min-height: 0; }
  .footer-menu { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .pc-button-row { flex-direction: column; align-items: stretch; }
  .pc-button { width: 100%; }
  .pc-book-slider { padding: 25px 18px 22px; border-radius: 28px; }
  .pc-book-slides { min-height: 0; }
  .pc-book-slide, .pc-book-slide.is-active { grid-template-columns: 1fr; min-height: 0; gap: 32px; text-align: center; }
  .pc-book-visual img, .pc-book-cover { width: min(72vw, 255px); }
  .pc-book-copy { margin-inline: auto; }
  .pc-book-copy .pc-button { width: 100%; }
  .pc-book-controls { flex-wrap: wrap; }
  .pc-contact-card { padding: 18px; }
  .pc-form-panel { padding: 27px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
