/* Story time: the book that opens over the page while Carly reads. */
.cc-story__open{display:inline-flex;align-items:center;gap:.5em}
.cc-story__open .cc-story__glyph{width:1.25em;height:1.25em;flex:none}
.cc-story__solo{margin:0 0 1.25rem}
.cc-story__lead{margin:.7rem 0 0;max-width:36em;font-size:.95rem;line-height:1.5;color:var(--base-600)}
.hero__half .cc-story__lead{margin-top:.8rem}

.cc-story{--cc-paper:#fbf5e8;--cc-ink:#232f3d;--cc-book-serif:'Iowan Old Style','Palatino Linotype',Palatino,'Book Antiqua',Georgia,serif;--cc-book-sans:var(--headline-font,'Red Hat Display',sans-serif);position:fixed;inset:0;z-index:100500;display:flex;align-items:center;justify-content:center;padding:max(14px,env(safe-area-inset-top)) 14px max(14px,env(safe-area-inset-bottom));opacity:0;transition:opacity .35s ease}
.cc-story[hidden]{display:none!important}
.cc-story.is-open{opacity:1}
.cc-story:focus{outline:none}
.cc-story__dim{position:absolute;inset:0;background:rgba(2,24,40,.78);backdrop-filter:blur(7px) saturate(120%);-webkit-backdrop-filter:blur(7px) saturate(120%)}

/* The theme styles every <button> (padding 10px 20px, grey fill). Inside the book each button starts from nothing. */
.cc-story button{-webkit-appearance:none;appearance:none;box-sizing:border-box;margin:0;padding:0;min-width:0;min-height:0;border:0;border-radius:0;background:none;box-shadow:none;color:inherit;font:inherit;line-height:1;letter-spacing:normal;text-transform:none;text-decoration:none;cursor:pointer}

.cc-story__book{position:relative;display:flex;flex-direction:column;width:min(100%,760px);height:min(100%,880px);color:#1d2733;background:var(--cc-paper);border-radius:14px;box-shadow:0 40px 90px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.08),inset 0 0 0 1px rgba(120,92,48,.18);overflow:hidden;transform:translateY(22px) scale(.985);transition:transform .45s cubic-bezier(.2,.8,.2,1)}
.cc-story.is-spread .cc-story__book{width:min(100%,1180px);height:min(100%,800px)}
.cc-story.is-open .cc-story__book{transform:none}

.cc-story__top{position:relative;z-index:7;display:flex;align-items:center;gap:.6rem;padding:.7rem .9rem .7rem 1.6rem;border-bottom:1px solid rgba(74,52,24,.16);background:rgba(255,253,247,.6);font-family:var(--cc-book-sans)}
.cc-story__eyebrow{display:inline-flex;align-items:center;gap:.45em;font-weight:700;letter-spacing:.02em;color:var(--primary,#1565a8);font-size:.95rem;line-height:1.2}
.cc-story__eyebrow .cc-story__glyph{display:block;flex:none;width:1.3em;height:1.3em}
.cc-story__meta{margin-left:auto;font-size:.78rem;color:#6b7280;white-space:nowrap}

/* Icon buttons: a fixed square, the icon a fixed square inside it, centered by flex on both axes. */
.cc-story .cc-story__ib{display:flex;align-items:center;justify-content:center;flex:none;width:40px;height:40px;border-radius:50%;background:rgba(29,39,51,.07);color:#1d2733;transition:background .15s ease,transform .15s ease}
.cc-story .cc-story__ib svg{display:block;flex:none;width:20px;height:20px;margin:0;padding:0;overflow:visible}
.cc-story .cc-story__ib:is(:hover,:focus-visible){background:rgba(29,39,51,.15);color:#1d2733}
.cc-story .cc-story__ib:focus-visible{outline:2px solid var(--primary,#1565a8);outline-offset:2px}
.cc-story .cc-story__ib:disabled{opacity:.3;cursor:default}
.cc-story .cc-story__nav{width:44px;height:44px}
.cc-story .cc-story__nav svg{width:22px;height:22px}
.cc-story .cc-story__play{width:54px;height:54px;background:var(--primary,#1565a8);color:#fff;box-shadow:0 8px 22px rgba(21,101,168,.38)}
.cc-story .cc-story__play:is(:hover,:focus-visible){background:var(--primary,#1565a8);color:#fff;transform:scale(1.06)}
.cc-story .cc-story__play svg{width:26px;height:26px;display:none}
.cc-story .cc-story__play .cc-story__ico-play{display:block}
.cc-story .cc-story__play[aria-pressed="true"] svg{display:none}
.cc-story .cc-story__play[aria-pressed="true"] .cc-story__ico-pause{display:block}
.cc-story .cc-story__play.is-ended svg{display:none}
.cc-story .cc-story__play.is-ended .cc-story__ico-again{display:block}
.cc-story .cc-story__sound .cc-story__ico-off{display:none}
.cc-story .cc-story__sound[aria-pressed="false"] .cc-story__ico-on{display:none}
.cc-story .cc-story__sound[aria-pressed="false"] .cc-story__ico-off{display:block}
.cc-story .cc-story__sound[aria-pressed="false"]{color:#6b7280}

/* The stage: one page on a phone, a two-page spread when there is room. */
.cc-story__stage{position:relative;flex:1;min-height:0;overflow:hidden;background:var(--cc-paper)}
.cc-story__spread{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);perspective:2400px;perspective-origin:50% 42%}
.cc-story.is-spread .cc-story__spread{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.cc-story:not(.is-spread) .cc-story__spread>.cc-story__verso{display:none}
/* Paper grain over everything on the stage. */
.cc-story__stage::after{content:"";position:absolute;inset:0;z-index:6;pointer-events:none;mix-blend-mode:multiply;opacity:.55;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .32 0 0 0 0 .18 0 0 0 .16 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E")}
/* Binding: a shadow down the left edge of a single page, a gutter down the middle of a spread. */
.cc-story__gutter{position:absolute;top:0;bottom:0;left:0;width:26px;z-index:4;pointer-events:none;background:linear-gradient(90deg,rgba(60,40,15,.2),rgba(60,40,15,.06) 45%,rgba(255,255,255,.28) 72%,transparent)}
.cc-story.is-spread .cc-story__gutter{left:50%;width:84px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(60,40,15,.07) 30%,rgba(60,40,15,.24) 49.5%,rgba(60,40,15,.3) 50%,rgba(60,40,15,.1) 62%,transparent)}

.cc-story__pg{position:relative;box-sizing:border-box;min-width:0;min-height:0;height:100%;overflow:auto;-webkit-overflow-scrolling:touch;padding:1.6rem 2.2rem 2.2rem 2.6rem;background:var(--cc-paper);font-family:var(--text-font,'Red Hat Display',sans-serif);color:var(--cc-ink)}
.cc-story.is-spread .cc-story__pg{padding:2.2rem 2.6rem 2rem 3rem}
.cc-story__kicker{display:block;font-family:var(--cc-book-sans);font-size:.74rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-700,#8a6a1f);margin:0 0 .6rem}
.cc-story__pg h2,.cc-story__pg h3{font-family:var(--cc-book-sans);color:var(--primary-900,#033e5e);margin:0 0 .9rem;line-height:1.12}
.cc-story__pg h2{font-size:clamp(1.9rem,1.4rem + 1.6vw,2.5rem);letter-spacing:-.01em;text-wrap:balance}
.cc-story__pg h3{font-size:clamp(1.35rem,1.1rem + .9vw,1.75rem);text-wrap:balance}
.cc-story__pg p,.cc-story__pg li{font-size:clamp(1.06rem,1rem + .25vw,1.2rem);line-height:1.68;margin:0 0 1em;color:var(--cc-ink);text-wrap:pretty}
.cc-story__pg ul,.cc-story__pg ol{padding-left:1.3em;margin:0 0 1em}
.cc-story__pg li{margin-bottom:.35em}
.cc-story__pg a{color:var(--primary,#1565a8)}
.cc-story__pg.is-first p:first-of-type::first-letter{float:left;font-family:var(--cc-book-sans);font-weight:800;font-size:3.5em;line-height:.8;padding:.08em .1em 0 0;color:var(--primary-900,#033e5e)}
.cc-story__folio{display:block;text-align:center;margin-top:1.4rem;font-family:var(--cc-book-serif);font-style:italic;font-size:.82rem;color:#7b6f5c}
.cc-story__chapter{display:block;font-family:var(--cc-book-sans);font-size:.72rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:#7b6f5c;margin:0 0 1rem;padding-bottom:.6rem;border-bottom:1px solid rgba(74,52,24,.18)}

.cc-story__pg.is-cover{display:flex;flex-direction:column;justify-content:center;text-align:center}
.cc-story__pg.is-cover p{max-width:34em;margin:0 auto}
.cc-story__pg.is-cover .cc-story__kicker{margin-bottom:.8rem}
.cc-story__pg.is-cover .cc-story__plate{margin:0 auto 1.4rem;width:min(100%,400px)}

/* The plate page: the chapter's picture facing its text. */
.cc-story__pg.is-plate{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2rem 3rem 2rem 2.6rem}
.cc-story__pg.is-plate .cc-story__plate{width:min(100%,460px)}
.cc-story__plate-no{display:block;margin:1.3rem 0 .25rem;font-family:var(--cc-book-sans);font-size:.72rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--accent-700,#8a6a1f)}
.cc-story__plate-title{display:block;max-width:22em;font-family:var(--cc-book-serif);font-style:italic;font-size:1.12rem;line-height:1.35;color:var(--primary-900,#033e5e);text-wrap:balance}
.cc-story__pg.is-blank{overflow:hidden}

/* Printed pictures: ink on the page's own paper, a fine halftone screen, grain, and an edge that feathers out instead of a hard crop. */
.cc-story__plate{position:relative;margin:0 0 1.2rem;width:min(100%,560px);padding:9px 9px 0;box-sizing:border-box;border:1px solid rgba(74,52,24,.26);box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),inset 0 0 22px rgba(120,92,48,.1);background:#f6eeda}
.cc-story__plate-ink{position:relative;display:block;overflow:hidden;background:#f3e8cf;-webkit-mask-image:linear-gradient(90deg,transparent,#000 7px,#000 calc(100% - 7px),transparent),linear-gradient(180deg,transparent,#000 7px,#000 calc(100% - 7px),transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 7px,#000 calc(100% - 7px),transparent),linear-gradient(180deg,transparent,#000 7px,#000 calc(100% - 7px),transparent);mask-composite:intersect}
.cc-story__plate-ink img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;margin:0;border:0;border-radius:0;box-shadow:none;mix-blend-mode:multiply;filter:sepia(.28) saturate(.82) contrast(1.06) brightness(1.03)}
.cc-story__plate-ink::before{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;mix-blend-mode:multiply;opacity:.13;background-image:radial-gradient(circle at 25% 25%,rgba(52,36,16,.9) 0,rgba(52,36,16,.9) 17%,transparent 20%),radial-gradient(circle at 75% 75%,rgba(52,36,16,.9) 0,rgba(52,36,16,.9) 17%,transparent 20%);background-size:4px 4px}
.cc-story__plate-ink::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;mix-blend-mode:multiply;opacity:.5;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .34 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E")}
.cc-story__plate figcaption{display:block;margin:0;padding:.5rem .2rem .55rem;font-family:var(--cc-book-serif);font-style:italic;font-size:.8rem;line-height:1.3;color:#6a5c45;text-align:center}
.cc-story__plate.is-bare{padding-bottom:9px}

/* The turning leaf. Its front carries the page that is leaving, its back the page that arrives on the other side. */
.cc-story__leaf{position:absolute;top:0;bottom:0;left:0;width:100%;z-index:5;pointer-events:none;transform-origin:0 50%;transform-style:preserve-3d;will-change:transform}
.cc-story.is-spread .cc-story__leaf{left:50%;width:50%}
.cc-story__leaf[hidden],.cc-story__cast[hidden]{display:none}
.cc-story__face{position:absolute;inset:0;overflow:hidden;background:var(--cc-paper);-webkit-backface-visibility:hidden;backface-visibility:hidden;box-shadow:0 0 0 1px rgba(74,52,24,.12)}
.cc-story__face--back{transform:rotateY(180deg)}
.cc-story__face .cc-story__pg{overflow:hidden}
.cc-story__shade{position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0}
.cc-story__face--front .cc-story__shade{background:linear-gradient(90deg,rgba(40,26,8,.34),rgba(40,26,8,.12) 40%,rgba(255,255,255,.14) 85%,rgba(40,26,8,.1))}
.cc-story__face--back .cc-story__shade{background:linear-gradient(270deg,rgba(40,26,8,.34),rgba(40,26,8,.12) 40%,rgba(255,255,255,.14) 85%,rgba(40,26,8,.1))}
.cc-story__cast{position:absolute;top:0;bottom:0;left:0;width:100%;z-index:4;pointer-events:none;opacity:0;background:linear-gradient(90deg,rgba(40,26,8,.36),rgba(40,26,8,.1) 45%,transparent 80%)}
.cc-story.is-spread .cc-story__cast{left:50%;width:50%}

.cc-story__bar{position:relative;display:grid;grid-template-columns:1fr auto 1fr;grid-template-areas:"track track track" "where ctl chap";align-items:center;column-gap:.8rem;row-gap:.55rem;padding:.7rem 1.4rem .9rem;border-top:1px solid rgba(74,52,24,.16);background:rgba(255,253,247,.85);z-index:7}
.cc-story__ctl{grid-area:ctl;display:flex;align-items:center;justify-content:center;gap:.6rem}
.cc-story__track{grid-area:track;min-width:0}
.cc-story__progress{position:relative;height:6px;border-radius:3px;background:rgba(29,39,51,.12);cursor:pointer;outline-offset:6px}
.cc-story__progress::before{content:"";position:absolute;inset:-10px 0}
.cc-story__fill{height:100%;width:0;border-radius:3px;background:linear-gradient(90deg,var(--primary,#1565a8),var(--accent,#e0a823));transition:width .25s linear}
.cc-story__where{grid-area:where;justify-self:start;min-width:0;max-width:100%;box-sizing:border-box;border:1px solid rgba(29,39,51,.18);border-radius:999px;padding:.45rem .9rem;font:600 .8rem var(--cc-book-sans);line-height:normal;color:#1d2733;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cc-story .cc-story__chapters{grid-area:chap;justify-self:end;border:1px solid rgba(29,39,51,.18);background:transparent;color:#1d2733;border-radius:999px;padding:.45rem .9rem;font:600 .8rem var(--cc-book-sans);line-height:normal}
.cc-story .cc-story__chapters[aria-expanded="true"],.cc-story .cc-story__chapters:is(:hover,:focus-visible){background:#1d2733;color:#fff;border-color:#1d2733}

.cc-story__toc{position:absolute;left:0;right:0;bottom:0;max-height:70%;overflow:auto;background:#fffdf7;border-top:1px solid rgba(74,52,24,.18);box-shadow:0 -20px 50px rgba(0,0,0,.18);z-index:6;padding:.6rem .6rem calc(96px + .6rem)}
.cc-story__toc[hidden]{display:none}
.cc-story__toc ol{list-style:none;margin:0;padding:0;columns:2;column-gap:.5rem}
.cc-story__toc li{break-inside:avoid}
.cc-story .cc-story__toc button{display:flex;align-items:baseline;gap:.7rem;width:100%;text-align:left;background:transparent;padding:.55rem .8rem;border-radius:10px;font:500 .95rem/1.3 var(--cc-book-sans);color:#1d2733}
.cc-story .cc-story__toc button:is(:hover,:focus-visible){background:rgba(21,101,168,.08);color:#1d2733}
.cc-story .cc-story__toc button.is-current{font-weight:700;color:var(--primary,#1565a8)}
.cc-story__toc-n{font-family:var(--cc-book-sans);font-size:.72rem;font-weight:700;color:var(--accent-700,#8a6a1f);min-width:1.2em}

@media (max-width:640px){
	.cc-story{padding:0}
	.cc-story__book{width:100%;height:100%;border-radius:0}
	.cc-story__gutter{width:14px}
	.cc-story__top{padding:calc(.6rem + env(safe-area-inset-top)) .7rem .6rem 1.1rem}
	.cc-story__meta{display:none}
	.cc-story__eyebrow{margin-right:auto}
	.cc-story__pg{padding:1.1rem 1.1rem 1.6rem 1.5rem}
	.cc-story__pg p,.cc-story__pg li{font-size:1.04rem;line-height:1.6}
	.cc-story__pg h3{font-size:1.3rem}
	.cc-story__pg.is-cover .cc-story__plate{width:min(100%,300px)}
	.cc-story__bar{padding:.6rem 1rem calc(.8rem + env(safe-area-inset-bottom));column-gap:.5rem}
	.cc-story .cc-story__nav{width:40px;height:40px}
	.cc-story .cc-story__nav svg{width:20px;height:20px}
	.cc-story .cc-story__play{width:50px;height:50px}
	.cc-story .cc-story__play svg{width:24px;height:24px}
	.cc-story__toc{padding-bottom:calc(120px + env(safe-area-inset-bottom))}
	.cc-story__toc ol{columns:1}
}
@media (prefers-reduced-motion:reduce){
	.cc-story,.cc-story__book,.cc-story__fill,.cc-story .cc-story__ib{transition:none}
	.cc-story .cc-story__play:is(:hover,:focus-visible){transform:none}
}
body.cc-story-open{overflow:hidden}
