/* becfaye.com blog. Design direction: the Notice the Niggle worksheet ("The Climb").
   Colours come from colors_and_type.css. --bfp-clay-ink is a darker clay for small text (readable contrast). */
:root{--bfp-clay-ink:#9C533B}

/* top of page */
.bfp-hero{background:var(--bf-cream);border-bottom:1px solid var(--bf-tan-soft);padding:48px 24px;text-align:center}
.bfp-motif{display:block;width:56px;height:72px;margin:0 auto 12px}
.bfp-hero p{font-family:var(--font-body);margin:0 auto;color:var(--bf-brown)}
.bfp-hero p.bfp-crumbs{font-size:13px;line-height:1.5;color:var(--bf-plum);margin:0 auto 24px}
.bfp-crumbs a{color:inherit;text-underline-offset:3px}
.bfp-hero p.bfp-eyebrow{font-size:12px;font-weight:600;line-height:1.5;letter-spacing:2.2px;text-transform:uppercase;color:var(--bfp-clay-ink);margin:0 auto 12px}
.bfp-hero h1{font-family:var(--font-display);font-weight:400;font-size:52px;line-height:1.12;letter-spacing:-.5px;color:var(--bf-brown-deep);max-width:780px;margin:0 auto 20px;text-wrap:balance}
.bfp-accent{font-style:italic;font-weight:400;color:var(--bf-terracotta)}
.bfp-hero p.bfp-intro{font-size:19px;line-height:1.65;color:var(--bf-brown);max-width:560px;text-wrap:balance}
.bfp-hero p.bfp-byline{display:flex;align-items:center;justify-content:center;gap:12px;font-size:14px;line-height:1.5;margin-top:24px;text-align:left}
.bfp-byline img{flex:none;width:44px;height:56px;object-fit:cover;border-radius:22px 22px 4px 4px}
.bfp-byline a{color:var(--bfp-clay-ink);text-underline-offset:3px}

/* reading column */
.bfp-in{max-width:640px;margin:0 auto;font-family:var(--font-body);font-size:18px;line-height:1.8;color:var(--bf-brown)}
.bfp-article{background:#fff;padding:64px 24px}
.bfp-in p,.bfp-in ul{margin:0 0 24px;text-wrap:pretty}
.bfp-in ul{padding-left:22px}.bfp-in li{margin-bottom:8px}
.bfp-in strong{font-weight:600;color:var(--bf-brown-deep)}
.bfp-in a{color:var(--bfp-clay-ink);text-decoration-thickness:1px;text-underline-offset:3px}
.bfp-in a:hover{color:var(--bf-brown-deep)}
.bfp-in>:last-child{margin-bottom:0}
.bfp-in h2{font-family:var(--font-display);font-weight:400;font-size:32px;line-height:1.22;letter-spacing:-.3px;color:var(--bf-brown-deep);margin:0 0 16px;text-wrap:balance}
.bfp-article h2{margin:56px 0 16px;padding-top:40px;border-top:1px solid var(--bf-tan-soft)}
.bfp-article .bfp-in>h2:first-child{margin-top:0;padding-top:0;border-top:0}
.bfp-jump{display:inline-flex;align-items:center;min-height:44px}

/* easy to scan, easy to come back to */
.bfp-time,.bfp-nowrap{white-space:nowrap}
.bfp-article h2[id]{scroll-margin-top:96px}
.bfp-article .bfp-toc details{background:var(--bf-cream);border:1px solid var(--bf-tan-soft);border-radius:12px;padding:0 20px;margin:0 0 40px}
.bfp-article .bfp-toc summary{min-height:52px;padding:10px 0;font-size:15px}
.bfp-in .bfp-toc ol{list-style:none;counter-reset:toc;margin:0;padding:0 0 8px}
.bfp-in .bfp-toc li{counter-increment:toc;margin:0;border-top:1px solid var(--bf-tan-soft)}
.bfp-in .bfp-toc a{display:flex;gap:14px;align-items:center;min-height:48px;padding:8px 0;font-size:16px;line-height:1.5;color:var(--bf-brown-deep);text-decoration:none}
.bfp-toc a::before{content:counter(toc);flex:none;width:24px;font-family:var(--font-display);font-variant-numeric:lining-nums;color:var(--bfp-clay-ink)}
.bfp-toc a:hover{text-decoration:underline}
.bfp-key{background:var(--bf-sand);color:var(--bf-brown-deep);padding:2px 5px;border-radius:4px;-webkit-box-decoration-break:clone;box-decoration-break:clone}

/* five steps, as numbered arches joined by a dotted path */
.bfp-steps{margin:24px 0 32px}
.bfp-in p.bfp-step{position:relative;min-height:72px;padding-left:72px;margin:0 0 24px}
.bfp-step strong{display:block;font-family:var(--font-display);font-weight:400;font-size:22px;line-height:1.3;margin-bottom:2px}
.bfp-step .bfp-n{position:absolute;left:0;top:0;width:48px;height:60px;border-radius:24px 24px 4px 4px;display:flex;align-items:center;justify-content:center;font:400 24px/1 var(--font-display);font-variant-numeric:lining-nums}
.bfp-step:nth-child(1) .bfp-n{background:var(--bf-blush);color:var(--bf-brown-deep)}
.bfp-step:nth-child(2) .bfp-n{background:var(--bf-terracotta);color:#fff}
.bfp-step:nth-child(3) .bfp-n{background:var(--bf-plum);color:var(--bf-cream)}
.bfp-step:nth-child(4) .bfp-n{background:var(--bf-brown);color:var(--bf-cream)}
.bfp-step:nth-child(5) .bfp-n{background:var(--bf-brown-deep);color:var(--bf-cream)}
.bfp-step:not(:last-child)::after{content:"";position:absolute;left:23px;top:60px;bottom:-24px;border-left:2px dotted var(--bf-plum)}
.bfp-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* buttons */
.bfp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:14px 28px;background:var(--bf-brown-deep);color:#fff!important;text-decoration:none!important;border:0;border-radius:8px;font-family:var(--font-body);font-size:16px;font-weight:500;line-height:1.4;letter-spacing:.4px;cursor:pointer}
.bfp-btn:hover{background:var(--bf-brown)}


/* call box: a small arched photo beside the invitation, so the words and button lead */
.bfp-card.bfp-call{display:grid;grid-template-columns:64px minmax(0,1fr);grid-template-areas:"photo title" "photo text" "photo action";column-gap:20px;align-items:start;text-align:left;background:var(--bf-cream);border:1px solid var(--bf-tan-soft);border-radius:14px;padding:24px 28px;margin:32px 0 0}
.bfp-call-photo{grid-area:photo;width:64px;height:80px;object-fit:cover;border-radius:32px 32px 4px 4px}
.bfp-in p.bfp-call-title{grid-area:title;margin:0 0 6px}
.bfp-in .bfp-call-title strong{font:400 22px/1.3 var(--font-display);color:var(--bf-brown-deep)}
.bfp-in p.bfp-call-text{grid-area:text;font-size:16px;line-height:1.65;margin:0 0 16px}
.bfp-in p.bfp-call-action{grid-area:action;margin:0}
.bfp-call .bfp-btn{min-height:48px;padding:12px 24px;font-size:15px}
.bfp-cta-band .bfp-card.bfp-call{margin:0}

/* worksheet sign-up */
#worksheet{scroll-margin-top:110px}
.bfp-dl{display:grid;grid-template-columns:180px 1fr;gap:32px;align-items:start;background:var(--bf-sand);border-radius:16px;padding:36px;margin:40px 0 0}
.bfp-dl img{width:180px;height:auto;padding:5px;border:1px solid var(--bf-tan);border-radius:4px}
.bfp-dl-body{min-width:0;font-size:16px;line-height:1.65}
.bfp-dl-body p br{display:none}
.bfp-dl-body strong{display:block;font-family:var(--font-display);font-weight:400;font-size:24px;line-height:1.3;margin-bottom:6px}
#niggle-form label{display:block;font-size:14px;font-weight:600;line-height:1.5;color:var(--bf-brown-deep);margin:0 0 4px}
#niggle-form input{display:block;width:100%;min-height:48px;font:inherit;font-size:16px;padding:10px 14px;margin:0 0 16px;border:1px solid var(--bf-plum);border-radius:8px;background:#fff;color:var(--bf-brown-deep)}
#niggle-form button{width:100%}
#niggle-form button:disabled{opacity:.6;cursor:default}
.bfp-in p.bfp-msg{font-size:15px;color:var(--bf-brown-deep);margin:10px 0 0}
.bfp-in p.bfp-msg:empty{margin:0}
.bfp-in p.bfp-small{font-size:13px;line-height:1.6;margin:8px 0 0}
.bfp-small a{display:inline-block;padding:12px 4px;margin:-12px 0}

/* questions */
.bfp-article details{border-bottom:1px solid var(--bf-tan-soft)}
.bfp-article h2+details{border-top:1px solid var(--bf-tan-soft)}
.bfp-article summary{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:56px;padding:14px 0;cursor:pointer;list-style:none;font-size:17px;font-weight:600;line-height:1.5;color:var(--bf-brown-deep)}
.bfp-article summary::-webkit-details-marker{display:none}
.bfp-article summary::after{content:"+";content:"+" / "";flex:none;font-size:24px;font-weight:300;color:var(--bf-plum)}
.bfp-article details[open] summary::after{content:"\2212";content:"\2212" / ""}
.bfp-article details p{margin:0;padding:0 40px 20px 0;font-size:17px}
.bfp-article details+p{margin-top:32px}

/* after the article */
.bfp-after{background:var(--bf-cream);border-top:1px solid var(--bf-tan-soft);padding:48px 24px}
.bfp-in h2.bfp-more-h{font-size:24px;margin:0 0 8px}
.bfp-in ul.bfp-more{list-style:none;padding:0;margin:0}
.bfp-in ul.bfp-more li{margin:0;border-bottom:1px solid var(--bf-tan-soft)}
.bfp-more a{display:flex;align-items:center;min-height:52px;padding:12px 0}
.bfp-author{display:grid;grid-template-columns:72px 1fr;gap:16px;align-items:center}
ul.bfp-more+.bfp-author{margin-top:40px}
.bfp-author img{width:72px;height:96px;object-fit:cover;border-radius:36px 36px 4px 4px}
.bfp-in .bfp-author p{margin:0;font-size:15px;line-height:1.6}

/* blog list */
.bfp-index{background:var(--bf-cream);padding:48px 24px}
.bfp-in ul.bfp-list{list-style:none;padding:0;margin:0}
.bfp-in .bfp-list li{position:relative;background:#fff;border:1px solid var(--bf-tan-soft);border-radius:14px;padding:28px 32px;margin:0 0 16px}
.bfp-in .bfp-list li:last-child{margin-bottom:0}
.bfp-in .bfp-list h2{font-size:26px;line-height:1.25;margin:0 0 8px}
.bfp-in .bfp-list h2 a{color:var(--bf-brown-deep);text-decoration:none}
.bfp-list h2 a::after{content:"";position:absolute;inset:0}
.bfp-in .bfp-list p{font-size:16px;line-height:1.65;margin:0}
.bfp-in .bfp-list p.bfp-meta{font-size:13px;color:var(--bf-plum);margin-top:12px}
.bfp-in .bfp-list li:hover{border-color:var(--bf-plum)}
.bfp-list li:hover h2 a{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
.bfp-list li:focus-within{outline:2px solid var(--bf-plum);outline-offset:3px}
.bfp-list h2 a:focus-visible{outline:0}
.bfp-cta-band{background:#fff;padding:48px 24px}

/* keyboard focus */
.bfp-hero a:focus-visible,.bfp-in a:not(.bfp-list h2 a):focus-visible,.bfp-in button:focus-visible,.bfp-in input:focus-visible,.bfp-in summary:focus-visible{outline:2px solid var(--bf-plum);outline-offset:3px}

/* phones. !important beats the site-wide phone heading sizes in site.css */
@media(max-width:680px){
.bfp-hero{padding:32px 20px 36px}
.bfp-motif{width:48px;height:60px;margin-bottom:8px}
.bfp-hero p.bfp-crumbs{margin-bottom:12px}
.bfp-crumbs a{display:inline-block;padding:12px 4px}
.bfp-hero h1{font-size:34px!important;line-height:1.16!important;letter-spacing:-.5px!important}
.bfp-hero p.bfp-intro{font-size:17px}
.bfp-in{font-size:17px;line-height:1.75}
.bfp-article{padding:40px 20px}
.bfp-in h2{font-size:26px!important;line-height:1.25!important;letter-spacing:-.3px!important}
.bfp-article h2{margin-top:40px;padding-top:32px}
.bfp-in p.bfp-step{padding-left:56px}
.bfp-step .bfp-n{width:40px;height:52px;border-radius:20px 20px 4px 4px}
.bfp-step:not(:last-child)::after{left:19px;top:52px}
.bfp-btn{width:100%;text-align:center}
.bfp-card.bfp-call{grid-template-columns:56px minmax(0,1fr);grid-template-areas:"photo title" "text text" "action action";column-gap:14px;padding:20px}
.bfp-call-photo{width:56px;height:70px;border-radius:28px 28px 4px 4px}
.bfp-in p.bfp-call-title{align-self:center;margin:0}
.bfp-in .bfp-call-title strong{font-size:19px}
.bfp-in p.bfp-call-text{margin:14px 0 16px}
.bfp-dl{grid-template-columns:1fr;gap:20px;padding:24px 20px}
.bfp-dl img{width:104px;justify-self:center}
.bfp-article summary{font-size:16px}
.bfp-article details p{padding-right:0;font-size:16px}
.bfp-index,.bfp-after{padding:32px 20px}
.bfp-after{padding-top:40px;padding-bottom:40px}
.bfp-cta-band{padding:32px 20px}
.bfp-in .bfp-list li{padding:22px 20px}
.bfp-in .bfp-list h2{font-size:22px!important;line-height:1.3!important}
}

/* plain-HTML menu and footer (shared look with the rest of the site) */
[hidden]{display:none!important}
#bf-nav{display:contents}
#bf-nav nav>div:first-child a:not(.bf-btn):hover{color:var(--bf-brown-deep)!important}
#bf-submenu a:hover{background:var(--bf-cream)}
#bf-foot footer a:hover{color:rgba(255,255,255,.95)!important}
.bf-btn:not(.bfp-btn):hover{background:#bd9970!important;transform:translateY(-1px)}
