/*
Theme Name: The 52 Book Club Child
Description: Option 2 — Reading Journal. An editorial Astra child theme.
Template: astra
Version: 2.0.6
Text Domain: the52book-child
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/
:root {
  --bc-paper: #ffffff;
  --bc-ink: #203b50;
  --bc-muted: #526b7b;
  --bc-rule: #c4d1d9;
  --bc-blue: #305875;
  --bc-gutter: clamp(1.25rem, 5vw, 4rem);
}
body, #page, #content { background: var(--bc-paper); color: var(--bc-ink); }
#page .entry-content { color: var(--bc-ink); }
#page :is(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 3px solid #305875; outline-offset: 5px; }
#masthead .ast-primary-header-bar { background: #ffffff; border-bottom: 1px solid var(--bc-rule); }
#masthead .menu-link { color: var(--bc-ink); }
#masthead .menu-link:hover { color: #426e8b; }
/* Logo output and sizing are inherited entirely from Astra. */
.entry-content p { line-height: 1.8; }
.entry-content :is(p, li) { overflow-wrap: break-word; }
#page :is(.entry-title, .entry-content h1, .entry-content h2, .entry-content h3) { color: var(--bc-ink); letter-spacing: -.035em; text-wrap: balance; }
.entry-content :is(img, video) { max-width: 100%; }
.entry-content .wp-block-table { overflow-x: auto; }
.single-post .entry-content > :is(p, ul, ol) { max-width: 68ch; }
#page .wp-block-button__link { border-radius: 0; min-height: 48px; padding: .8rem 1.3rem; display: inline-flex; align-items: center; justify-content: center; line-height: 1.4; }
#page .wp-block-button__link:hover { text-decoration: underline; text-underline-offset: .3em; }
.bc-welcome { border-bottom: 1px solid var(--bc-rule); background: #ffffff; padding: 2rem var(--bc-gutter) 4.5rem; }
.bc-welcome-inner, .bc-start-inner { max-width: 1160px; margin: auto; }
.bc-edition { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #acbfcb; padding-bottom: 1rem; margin-bottom: 3rem; text-transform: uppercase; letter-spacing: .15em; font-size: .7rem; font-weight: 600; }
.bc-welcome-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
#page #welcome-book-friend { font-size: clamp(3rem, 6.7vw, 5.5rem); line-height: 1.02; margin: 0 0 1.75rem; max-width: 11ch; font-weight: 400; }
#page .bc-intro > p { color: #354f61; max-width: 46ch; font-size: 1.02rem; line-height: 1.8; margin-bottom: 2rem; }
.bc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
#page .bc-actions .wp-block-button__link { background: var(--bc-blue); border: 1px solid var(--bc-blue); color: #fff; font-size: .85rem; }
#page .bc-actions .wp-block-button__link + .wp-block-button__link { background: transparent; color: var(--bc-ink); }
.bc-portrait { min-width: 0; }
.bc-portrait figure { margin: 0; }
.bc-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 46% 46% 0 0; box-shadow: none; }
#page .bc-caption { font-size: .7rem; line-height: 1.5; color: var(--bc-muted); margin: 1rem 0 0; padding-top: .75rem; border-top: 1px solid #acbfcb; }
.bc-start { padding: 3.5rem var(--bc-gutter); border-bottom: 1px solid var(--bc-rule); }
.bc-start-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
#page .bc-kicker { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 .8rem; }
#page #bc-start-title { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.15; margin: 0; }
.bc-start-links > p { margin: 0 0 1rem; max-width: 40ch; }
.bc-start-row { display: flex; align-items: center; gap: 1.5rem; border-top: 1px solid var(--bc-rule); }
.bc-start-row > span { font-size: .7rem; color: var(--bc-muted); font-variant-numeric: tabular-nums; }
#page .bc-start-row .wp-block-button__link { flex: 1; justify-content: space-between; background: transparent; border: 0; color: var(--bc-ink); padding: 1rem 0; }
.bc-start-row a::after { content: '↗'; font-size: 1.25rem; }
.home .entry-content > .wp-block-spacer { height: 2rem !important; }
.home .entry-content > .wp-block-spacer:first-child, .home .entry-content > .wp-block-spacer + .wp-block-spacer { height: 0 !important; }
.home .entry-content > h2 { text-align: left; border-bottom: 1px solid var(--bc-rule); padding-block: 1rem; margin-block: 2rem 1.5rem; font-size: clamp(1.8rem, 3vw, 2.5rem); }
.home .uagb-post__inner-wrap { background: transparent; }
.home .uagb-post__title { line-height: 1.25; }
#page .uagb-faq-item { border-bottom: 1px solid var(--bc-rule); background: transparent; }
#page .uagb-faq-questions { padding: 1.2rem .75rem; min-height: 56px; }
#page .uagb-faq-questions h4 { margin: 0; line-height: 1.5; }
#colophon .site-above-footer-wrap { background: #ffffff; border-top: 1px solid var(--bc-rule); }
#colophon .site-above-footer-wrap .menu-link { color: var(--bc-ink); }
#colophon .site-primary-footer-wrap { background: var(--bc-paper); }
#colophon .menu-link { line-height: 1.6; padding-block: .75rem; }
@media (max-width: 921px) {
  #ast-mobile-header .menu-toggle { min-width: 48px; min-height: 48px; }
  #ast-mobile-header .menu-link { min-height: 48px; line-height: 1.5; padding-block: .75rem; }
  #ast-mobile-header .ast-menu-toggle { min-width: 44px; min-height: 44px; }
  #page :is(input[type=text], input[type=email], input[type=search], textarea, select) { font-size: 16px; max-width: 100%; }
  .home .cb-button-next { right: 0; }
  .home .cb-button-prev { left: 0; }
  .bc-welcome-grid { gap: 2rem; }
}
@media (max-width: 600px) {
  .bc-welcome { padding-top: 1.25rem; padding-bottom: 2.5rem; }
  .bc-edition { font-size: .6rem; letter-spacing: .1em; margin-bottom: 1.75rem; }
  .bc-welcome-grid { display: flex; flex-direction: column; align-items: stretch; }
  .bc-portrait { order: -1; width: min(78%, 280px); margin-inline: auto; }
  .bc-portrait img { aspect-ratio: 1 / 1; }
  #page .bc-caption { text-align: center; font-size: .65rem; }
  #page #welcome-book-friend { font-size: clamp(2.75rem, 12vw, 3.6rem); max-width: 12ch; }
  #page .bc-intro > p { font-size: .95rem; }
  .bc-actions { display: grid; grid-template-columns: 1fr; }
  .bc-start { padding-block: 2.5rem; }
  .bc-start-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .home .uagb-post-grid { margin-inline: 0; }
}

#page .bc-intro #welcome-book-friend, #page .bc-intro > p { color: var(--bc-ink) !important; }
#page .bc-actions .wp-block-button__link { text-decoration: none; background: var(--bc-blue) !important; color: #fff !important; }
#page .bc-actions .wp-block-button__link + .wp-block-button__link { background: transparent !important; color: var(--bc-ink) !important; }
#page .bc-start-row .wp-block-button__link { background: transparent !important; color: var(--bc-ink) !important; text-decoration: none; }
#page :is(.bc-actions, .bc-start-row) a:hover { text-decoration: underline; }
.bc-watch { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: center; margin-block: 2rem 3rem; }
.bc-watch figure { margin: 0; }
.bc-watch img { display: block; }
#page .bc-watch-copy h2 { font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; margin-block: .75rem 1.25rem; }
.bc-watch-copy > p:last-child { font-size: .95rem; color: var(--bc-muted); }
#page .home .uagb-post__title a { color: var(--bc-ink); }
@media (max-width: 600px) {
  .bc-watch { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Keep the desktop rules section compact, with the links beside its title. */
@media (min-width: 922px) {
  .bc-start { padding-block: 2.5rem; }
  .bc-start-inner { grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: center; }
  #page #bc-start-title { max-width: 14ch; font-size: clamp(2.8rem, 4.2vw, 3.6rem); line-height: 1.1; }
  .bc-start-links > p { margin-bottom: .75rem; }
}


/* Match the desktop header grid to the welcome section's content edges. */
@media (min-width: 922px) {
  #ast-desktop-header .site-primary-header-wrap.ast-container {
    width: 100%;
    max-width: calc(1160px + var(--bc-gutter) + var(--bc-gutter));
    padding-inline: var(--bc-gutter);
    margin-inline: auto;
  }
}
