/* Andy Howden theme. Mobile first; one breakpoint at 900px. Tokens and measurements: DESIGN.md. */
@font-face { font-family: "Libre Franklin"; src: url(fonts/libre-franklin-latin-wght-normal.woff2) format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Franklin"; src: url(fonts/libre-franklin-latin-wght-italic.woff2) format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: Poppins; src: url(fonts/poppins-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --blue: #1278BA; --pale: #F0F4FF; --white: #fff; --text: #2B2B2B;
  --sans: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --btn: Poppins, system-ui, sans-serif;
  --cond: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", sans-serif; /* stands in for fave-condensed-pro */
  --gutter: 23px; --head: 154px;
  --fs-body: 17.95px; --fs-lead: 19.9px; --fs-h1: 45.2px; --fs-h2: 33.5px; --fs-h4: 20.9px; --fs-title: 35.5px;
  --wide: calc(100% - 2 * var(--gutter)); --narrow: calc(100% - 2 * var(--gutter));
  --band-top: 71px; --band-bottom: 70px;
}
@media (min-width: 900px) {
  :root {
    --gutter: 51px; --head: 151px;
    --fs-body: 19.07px; --fs-lead: 22.14px; --fs-h1: 62.08px; --fs-h2: 43.65px; --fs-h4: 23.68px; --fs-title: 46.72px;
    --wide: min(1178px, 100% - 102px); --narrow: min(883px, 69%);
    --band-top: 84px; --band-bottom: 102px;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 300 var(--fs-body)/1.98 var(--sans); color: var(--text); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3, h4 { font-weight: 800; }
h1, .h1 { font-size: var(--fs-h1); line-height: 1.355; }
h2 { font-size: var(--fs-h2); line-height: 1.43; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 50; background: var(--white); color: var(--blue); padding: 12px 20px; font-family: var(--btn); }
.skip-link:focus { top: 8px; }
.wide { width: var(--wide); margin-inline: auto; }
.narrow { width: var(--narrow); margin-inline: auto; }
.lead { font-size: var(--fs-lead); }
.lead p + p, .prose p + p { margin-top: 16px; }

/* Buttons */
.btn { display: inline-block; font: 500 16px/normal var(--btn); letter-spacing: .02em; padding: 19.2px 32.06px; background: var(--blue); color: var(--pale); border: 0; border-radius: 0; text-decoration: none; text-align: center; cursor: pointer; transition: opacity .15s; max-width: 100%; }
.btn:hover { opacity: .85; }
.btn--inv { background: var(--white); color: var(--blue); }

/* Header */
.site-header { position: absolute; inset: 0 0 auto; z-index: 20; --h-title: var(--blue); --h-nav: var(--blue); --h-cta-bg: var(--blue); --h-cta: var(--pale); }
.site-header--blue { --h-title: var(--pale); --h-nav: var(--white); --h-cta-bg: var(--white); --h-cta: var(--blue); }
.site-header--white { --h-nav: #000; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--head); padding-inline: var(--gutter); }
.site-title { font-size: var(--fs-title); font-weight: 800; line-height: 1.54; color: var(--h-title); text-decoration: none; position: relative; z-index: 2; max-width: 190px; }
@media (min-width: 900px) { .site-title { max-width: none; } }
.nav-toggle { position: relative; z-index: 2; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; color: var(--h-nav); }
.nav-toggle span { position: absolute; left: 9px; width: 26px; height: 1px; background: currentColor; top: 17px; transition: transform .2s; }
.nav-toggle span + span { top: 27px; }
.nav-toggle[aria-expanded="true"] { color: var(--white); }
.nav-toggle[aria-expanded="true"] span { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span + span { transform: rotate(-45deg); }
.site-menu { display: none; position: fixed; inset: 0; z-index: 1; background: var(--blue); color: var(--white); flex-direction: column; align-items: center; justify-content: center; }
.site-menu.is-open { display: flex; }
.nav-open { overflow: hidden; }
.nav-open .site-title { color: var(--pale); }
.site-menu__list { display: flex; flex-direction: column; align-items: center; gap: 22.7px; }
.site-menu__link { font: 400 31.9px/1 var(--sans); letter-spacing: .02em; color: var(--white); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.site-menu__chev { margin-left: 10px; transition: transform .2s; }
.is-expanded .site-menu__chev { transform: rotate(90deg); }
.site-submenu { display: none; flex-direction: column; align-items: center; gap: 12px; margin-top: 18px; }
.is-expanded .site-submenu { display: flex; }
.site-submenu__link { font-size: 24px; color: var(--white); text-decoration: none; }
.site-menu__link.is-active, .site-submenu__link.is-active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.site-cta { position: absolute; bottom: 22px; left: 50%; translate: -50% 0; width: 210px; height: 64px; display: grid; place-items: center; background: var(--white); color: var(--blue); font: 400 22.14px/1 var(--cond); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-menu, .site-menu.is-open { display: flex; position: static; background: none; flex-direction: row; justify-content: flex-end; width: auto; color: var(--h-nav); }
  .nav-open { overflow: visible; }
  .site-menu__list { flex-direction: row; gap: 16px; margin-right: 44px; }
  .site-menu__link { display: inline-block; font-size: 19.07px; line-height: 37.76px; padding: 1.9px 0; color: var(--h-nav); }
  .site-menu__chev { display: none; }
  .site-menu__item { position: relative; }
  .site-submenu { display: none; position: absolute; left: -16px; top: 100%; min-width: 280px; padding: 10px 16px; background: var(--pale); text-align: left; align-items: stretch; gap: 0; margin: 0; }
  .has-menu:hover .site-submenu, .has-menu:focus-within .site-submenu, .is-expanded .site-submenu { display: flex; }
  .site-submenu__link { display: block; padding: 6px 0; font-size: 19.07px; color: var(--blue); }
  .site-cta { position: static; translate: none; width: auto; width: 131px; height: 75px; padding: 0; background: var(--h-cta-bg); color: var(--h-cta); }
  .nav-open .site-title { color: var(--h-title); }
}
.site-menu__link:hover, .site-submenu__link:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }

/* Bands */
.band { padding-block: var(--band-top) var(--band-bottom); }
.band--blue { background: var(--blue); color: var(--white); }
.band--pale { background: var(--pale); }
.band--white { background: var(--white); color: #000; }
.band--pale :is(h1, .h1), .band--pale h2, .band--white :is(h1, .h1), .band--white h2 { color: var(--blue); }
.band--head { padding-top: calc(var(--head) + 43px); padding-bottom: 59px; }
.page-title { text-align: center; }
.page-title--sm { font-size: var(--fs-h2); line-height: 1.43; }
.page-title--sm + .prose { margin-top: 32px; }
.band--blue .page-title { color: var(--pale); }
.band__more { text-align: center; margin-top: 35px; }
@media (min-width: 900px) { .band__more { margin-top: 102px; } }
.band--book, .band--other { padding-block: var(--band-top) 70px; }
@media (min-width: 900px) { .band--book, .band--other { padding-bottom: var(--band-bottom); } }

/* Two column feature: text and cover */
.feature { display: grid; gap: 36px; }
.feature__img { order: -1; }
.feature__text .h1 { margin-bottom: 29px; }
.feature__text .lead { margin-bottom: 31px; }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; column-gap: 89px; align-items: center; }
  .feature__img { order: 0; }
  .feature--rev .feature__img { order: -1; }
}

/* Home hero */
.band--hero { padding-top: calc(var(--head) + 65px); padding-bottom: 71px; }
.hero { display: grid; gap: 51px; align-items: start; }
.hero__covers { display: flex; gap: 20px; align-items: center; }
.hero__covers img { width: calc(50% - 10px); }
.hero__text { color: var(--pale); font-size: var(--fs-h2); line-height: 1.43; }
.hero__text em::before { content: ""; display: block; }
@media (min-width: 900px) {
  .band--hero { padding: 225px 0 119px; }
  .hero { grid-template-columns: 572px 1fr; column-gap: 34px; }
  .hero__covers img { width: 276px; }
  .hero__text { margin-top: 11px; }
}

/* Home quote, author */
.band--quote { padding-block: 43px 95px; }
.quote { text-align: center; }
.quote h2 { color: var(--blue); }
.quote .lead, .quote figcaption { margin-top: 32px; }
.quote--book h2, .quote--book figcaption, .band--praise h2 { color: inherit; }
.band--author { padding-block: var(--band-top); }
.author { display: grid; gap: 36px; }
.author__text h2 { margin-bottom: 24px; }
.author__body { font-weight: 800; font-size: var(--fs-h4); line-height: 1.51; color: var(--text); margin-bottom: 42px; }
.author__body p + p { margin-top: 32px; }
@media (min-width: 900px) {
  .author { grid-template-columns: 530px 1fr; column-gap: 118px; align-items: center; }
}

/* Home blog carousel */
.band--blogs { padding-block: 42px 95px; }
.blogs__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 67px; }
.blogs__head h2 { color: var(--white); }
.blogs__arrows { display: flex; gap: 6px; padding-top: 10px; }
.arrow { width: 32px; height: 32px; padding: 0; border: 0; background: none; color: var(--white); font: 300 26px/1 var(--sans); cursor: pointer; }
.carousel { display: flex; gap: 17px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.card { flex: 0 0 100%; scroll-snap-align: start; text-align: center; color: var(--pale); }
.card__img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card__title { font-size: 30px; font-weight: 300; line-height: 1.2; margin-top: 4px; }
.card__title a { text-decoration: none; }
.card__excerpt { font-size: 14px; line-height: 1.4; margin-top: 10px; }
.card__more { display: inline-block; font-size: 14px; line-height: 1.4; margin-top: 8px; text-decoration: none; }
@media (min-width: 700px) { .card { flex-basis: calc(50% - 8.5px); } }
@media (prefers-reduced-motion: no-preference) { .carousel { scroll-behavior: smooth; } }

/* Book pages */
.book { display: flow-root; margin-top: 102px; }
.book__cover { float: right; width: 100%; margin: 0 0 32px; }
.book__body { color: inherit; }
.book__body h3, .book__body h4 { font-size: var(--fs-h4); line-height: 1.51; margin-bottom: 30px; color: inherit; }
.band--pale .book__body h3, .band--pale .book__body h4, .band--pale .book__body > :last-child { color: var(--blue); }
.book__body p, .book__body ol { margin-bottom: 16px; }
/* ponytail: the Coming Clean blurb starts "2015. Veselina...", which Markdown reads as a numbered list. Show it as the run-in text it is until the content escapes the full stop (2015\.). */
.book__body > ol { list-style: decimal inside; }
.book__body > :last-child { clear: both; font-size: var(--fs-lead); margin-top: 34px; }
.book__body strong { font-weight: 800; }
.band--pale .book__body { color: var(--text); }
.quote--book { margin-top: 101px; }
.quote--book figcaption { margin-top: 32px; color: var(--blue); }
.band--head.band--pale .quote--book h2 { color: var(--blue); }
@media (min-width: 900px) {
  .book__cover { width: 397px; margin: 0 0 0 89px; }
  .book__body > :not(:last-child) { max-width: 397px; }
}
.band--order { padding-block: 84px 102px; text-align: center; }
.band--order.band--blue h2, .band--order.band--blue .order__body { color: var(--pale); }
.band--order.band--white h2, .band--order.band--white .order__body { color: var(--blue); }
.order__body { font-size: var(--fs-h4); font-weight: 800; line-height: 1.51; margin-top: 33px; }
.order__body p + p { margin-top: 32px; }
.order__buttons { display: grid; gap: 20px; justify-items: center; margin-top: 102px; }
@media (min-width: 900px) { .order__buttons { grid-template-columns: repeat(4, 1fr); } }
.other__intro { text-align: center; color: var(--pale); margin-bottom: 36px; }
.band--white .other__intro { color: var(--blue); }
.band--white .feature__text .lead { color: #000; }
.band--other.band--white .h1 { color: var(--blue); }
.band--other.band--blue .h1 { color: var(--white); }

/* About, generic pages, posts: Markdown text */
.prose { display: flow-root; margin-top: 34px; }
.prose h2, .prose h3, .prose h4 { font-size: var(--fs-h4); line-height: 1.51; color: var(--blue); margin: 30px 0 16px; }
.prose a { color: var(--blue); }
.band--white .prose h2 { margin: 16px 0; }
.prose img { width: 100%; }
.prose > p:has(> img:only-child) { margin: 0 0 20px; }
.about__photo { margin-bottom: 24px; }
.band--head .prose { color: #000; }
@media (min-width: 900px) {
  .prose > p:has(> img:only-child), .about__photo { float: right; width: 425px; margin: 0 0 16px 32px; }
}
.band--books { padding-block: 42px 80px; }
.books__intro { text-align: center; color: #000; margin-top: 32px; }
.books__covers { display: flex; flex-wrap: wrap; justify-content: center; gap: 36px; margin-top: 34px; }
.books__covers img { width: min(330px, 100%); }
@media (min-width: 900px) { .books__covers img { width: auto; height: 647px; } }
.band--praise { padding-block: 42px 42px; }
.quote--about { width: min(966px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.quote--about .quote__intro { color: var(--pale); }
.quote--about blockquote { margin-top: 32px; }
.quote--about blockquote h2 { color: var(--pale); }
.quote--about figcaption { color: var(--pale); }

/* Blog index */
.blog__intro { text-align: center; color: var(--blue); margin-top: 16px; }
.band--list { padding-block: 49px 15px; }
.blog__list { display: grid; gap: 33px 46px; }
.blog__img img { width: calc(100% + 6px); max-width: none; margin-inline: -3px; aspect-ratio: 3 / 2; object-fit: cover; }
.blog__date { display: block; font-size: 16px; font-weight: 400; line-height: 21px; margin-top: 42px; color: #000; }
.blog__title { font-size: 34.43px; line-height: 1.54; margin-top: 33px; }
.blog__title a { color: var(--blue); text-decoration: none; }
.blog__excerpt { font-size: 16px; margin-top: 30px; }
.blog__more { display: block; font-size: 16px; line-height: 31.68px; margin-top: 40px; padding-bottom: 41px; color: var(--blue); text-decoration: none; }
.blog__more:hover, .blog__title a:hover { text-decoration: underline; }
@media (min-width: 900px) { .blog__list { grid-template-columns: 1fr 1fr; } }

/* Post */
.post.band { padding-top: calc(var(--head) + 52px); padding-bottom: 38px; }
.post__meta { font-size: 16px; line-height: 21px; display: flex; gap: 12px; align-items: center; color: #000; }
.post__title { color: var(--blue); line-height: 1.54; margin-top: 32px; }
.post__body { margin-top: 67px; color: #000; }
.post__body h2, .post__body h3, .post__body h4 { margin: 0 0 32px; }
.post__pager { display: flex; justify-content: space-between; gap: 40px; width: calc(100% - 2 * var(--gutter)); margin: 130px auto 0; }
.post__link { display: flex; align-items: center; gap: 24px; color: #000; text-decoration: none; font-size: 24px; font-weight: 800; line-height: 1; max-width: 48%; }
.post__link--next { text-align: right; margin-left: auto; }
@media (min-width: 900px) { .post__link { font-size: 34.43px; } .post__link > span { max-width: 546px; } }

/* Contact form (placeholder, not wired) */
.contact { margin-top: 34px; color: var(--white); }
.contact fieldset { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.contact legend { padding: 0; line-height: 42px; }
.contact__row { display: grid; gap: 20px; }
.field { margin-bottom: 0; }
.contact > .field { margin-bottom: 20px; }
.contact > .field label { padding-bottom: 4px; }
.field label { display: block; line-height: 1.98; }
.field label span { font-size: 16px; }
.contact input, .contact textarea { display: block; width: 100%; font: 300 var(--fs-body)/1.98 var(--sans); padding: 10px; background: #FAFAFA; color: #000; border: 1px solid #000; border-radius: 0; }
.contact input { height: 60px; }
.contact textarea { height: 100px; resize: vertical; }
.contact__submit { text-align: center; margin-top: 20px; }
.contact .btn { height: 62px; }
.form-status { text-align: center; font-size: 16px; }
.form-status:empty { display: none; }
@media (min-width: 900px) { .contact__row { grid-template-columns: 1fr 1fr; gap: 10px; } }
.band--head.band--blue form + * { margin: 0; }
.band--404 .notfound { text-align: center; margin-top: 16px; }

/* Footer */
.site-footer { background: var(--pale); text-align: center; padding-block: 35px 68px; color: var(--text); }
.site-footer__social { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-inline: auto; color: var(--blue); }
.site-footer__title { font-size: 34.43px; line-height: 1.2; color: var(--blue); margin: 18px 0 16px; }
.site-footer__intro { margin: 0; }
.newsletter { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 40px; }
.newsletter input { width: 280px; max-width: 100%; height: 70px; padding: 22.4px 32px; font: 300 var(--fs-body)/1 var(--sans); background: var(--white); border: 1px solid rgba(0, 0, 0, .12); border-radius: 0; color: #000; }
.newsletter__btn { height: 64px; padding-block: 0; }
.newsletter .form-status { flex-basis: 100%; }
.site-footer__note { font-size: 16px; margin-top: 40px; }
.site-footer__rule { border: 0; border-top: 1px solid rgba(43, 43, 43, .75); margin: 43px 0 44px; }
.site-footer__legal { font-size: 16px; line-height: 1.98; color: var(--blue); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
