/*
 * scotttrendell.com — the site's own CSS (child theme "Scott Trendell (Astra child)").
 *
 * Moved here 2026-11-04 from Customizer → Additional CSS (live, byte for byte, except the two
 * font changes marked below). Printed in <head> at the point WordPress printed Additional CSS
 * (functions.php, wp_head priority 101), so the cascade is unchanged.
 * The old Additional CSS is still stored with the Astra theme in WordPress; switching back to
 * Astra (Appearance → Themes, or `wp theme activate astra`) brings it back untouched.
 */

/* === Brand face, self-hosted (2026-11-04). Replaces the Google Fonts @import with the very files Google
   served for it: Libre Caslon Text v1.100 (Google Fonts v5), upright 400 and 700, italic 400 (bold italic is
   synthesized, as before), each split into Google's latin and latin-ext ranges. Not the brand-kit TTFs:
   those are a newer variable version whose italic sets narrower and draws an "st" ligature, so the pages
   re-wrapped (found on staging 2026-11-04). SIL Open Font License: fonts/OFL.txt. === */
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/libre-caslon-text-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/libre-caslon-text-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/libre-caslon-text-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Caslon Text"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/libre-caslon-text-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/libre-caslon-text-400italic-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Caslon Text"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/libre-caslon-text-400italic-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* === Size-matched fallback (2026-11-04; Q49, Scott: "Yes, fold it in"). Until Libre Caslon arrives the
   page draws in Georgia scaled to Caslon's average letter width and line metrics, so the text wraps
   the same and nothing moves when Caslon swaps in. Values computed with fontTools from the files
   above and Georgia (letter-frequency-weighted average width; hhea ascent/descent, Caslon 0.97 / 0.26 em),
   then size-adjust taken to 98% of the computed width: measured on a phone with Caslon held back 1.5 s,
   Meet Grant Monroe, Home, About, Books and the Ransom review shifted 0 at 97-98%; at 100% Meet Grant
   Monroe still shifted 0.063, at 96% 0.019.
   Phones without Georgia (Android) skip these faces and fall through to serif, as before. === */
@font-face { font-family: "Libre Caslon Fallback"; font-style: normal; font-weight: 400; src: local("Georgia"); size-adjust: 105.55%; ascent-override: 91.90%; descent-override: 24.63%; line-gap-override: 0%; }
@font-face { font-family: "Libre Caslon Fallback"; font-style: normal; font-weight: 700; src: local("Georgia Bold"), local("Georgia-Bold"); size-adjust: 99.29%; ascent-override: 97.69%; descent-override: 26.18%; line-gap-override: 0%; }
@font-face { font-family: "Libre Caslon Fallback"; font-style: italic; font-weight: 400; src: local("Georgia Italic"), local("Georgia-Italic"); size-adjust: 103.01%; ascent-override: 94.17%; descent-override: 25.24%; line-gap-override: 0%; }

/* ============================ Moved from Additional CSS ============================ */
/* === 2026-11-02 changes (Claude, tried on staging first): brand faces. The Google Fonts @import that stood here was replaced 2026-11-04 by the self-hosted faces at the top of this file. === */
.wp-block-button__link {
    min-width: 260px;
    text-align: center;
}
input[type="submit"],
button[type="submit"],
.wpforms-submit,
.uagb-forms-main-submit-button { }
/* mobile logo fix: prevent the 540px logo from overflowing small screens */
.site-logo-img .custom-logo { max-width: 100% !important; height: auto !important; }
@media (max-width: 768px) { .site-logo-img .custom-logo { max-width: 220px !important; width: auto !important; } }

/* mobile column stacking fix: stack hero columns cleanly, remove wrap gap */
@media (max-width: 768px) { .entry-content .wp-block-columns { flex-direction: column !important; } .entry-content .wp-block-columns > .wp-block-column { flex-basis: 100% !important; max-width: 100% !important; } }

/* header fit: logo + eight menu items on one line at every desktop width (2026-10-16). Tested 922-1440 px. Original CSS: website-scotttrendell/notes/Additional CSS — before 2026-10-16 menu fit.css */
@media (min-width: 1300px) {
  .site-header .site-logo-img .custom-logo { width: 440px !important; max-width: 440px !important; height: auto !important; }
  #ast-hf-menu-1 > li > .menu-link { padding-left: 11px !important; padding-right: 11px !important; font-size: 15px !important; }
}
@media (min-width: 1101px) and (max-width: 1299px) {
  .site-header .site-logo-img .custom-logo { width: 360px !important; max-width: 360px !important; height: auto !important; }
  #ast-hf-menu-1 > li > .menu-link { padding-left: 8px !important; padding-right: 8px !important; font-size: 14px !important; }
}
@media (min-width: 1000px) and (max-width: 1100px) {
  .site-header .site-logo-img .custom-logo { width: 280px !important; max-width: 280px !important; height: auto !important; }
  #ast-hf-menu-1 > li > .menu-link { padding-left: 6px !important; padding-right: 6px !important; font-size: 14px !important; }
}
@media (min-width: 922px) and (max-width: 999px) {
  .site-header .site-logo-img .custom-logo { width: 260px !important; max-width: 260px !important; height: auto !important; }
  #ast-hf-menu-1 > li > .menu-link { padding-left: 5px !important; padding-right: 5px !important; font-size: 13px !important; }
}


/* === 2026-11-02 changes (Claude, tried on staging first): header fixes + Capitol background. Delete this block to undo. === */
.ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,
.ast-builder-menu-1 .menu-item.current-menu-ancestor > .menu-link { color: #8A6B12; }
.ast-header-break-point .menu-toggle.main-header-menu-toggle { min-width: 44px; min-height: 44px; }
body, body.ast-separate-container { background-color: #1F2A44; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(255,255,255,.80), rgba(255,255,255,.80)), #1F2A44 url("/wp-content/uploads/2026/11/capitol-dusk-background-2560.webp") center / cover no-repeat;
  opacity: .95; }

/* No cards (Scott, 2026-11-02); white wash over the photo, original text colours (Scott, 2026-11-02) */
.ast-separate-container .ast-article-single, .ast-separate-container .ast-article-post,
.ast-separate-container .comments-area, .ast-separate-container .ast-archive-description,
.ast-separate-container .ast-author-box, .ast-separate-container .site-main > .ast-row,
.ast-separate-container #primary, .ast-separate-container .ast-woocommerce-container { background: transparent !important; box-shadow: none !important; }
/* Cream header bar, full width, matched to the logo's own ground #F9F5F2 (Scott, 2026-11-02) */
.site-header .ast-primary-header-bar, .site-header .main-header-bar, #ast-mobile-header .ast-primary-header-bar { background-color: #F9F5F2 !important; }
/* Brand faces, "Founding documents" (Scott, 2026-11-02: "Let's go with Founding Documents"): Libre Caslon Text everywhere; headings bold, body 20px */
body, button, input, select, textarea, .main-header-menu .menu-link, .ast-builder-menu-1 .menu-link, .site-content p, .site-content li, .site-footer, .entry-meta { font-family: "Libre Caslon Text", "Libre Caslon Fallback", Georgia, serif; }
.site-content :is(h1,h2,h3,h4,h5,h6), .entry-title, .uagb-heading-text { font-family: "Libre Caslon Text", "Libre Caslon Fallback", Georgia, serif; font-weight: 700; } /* all headings bold (Scott, 2026-11-02) */
.site-content .entry-content p, .site-content .entry-content li { font-size: 20px; line-height: 1.65; } /* body 20px (Scott, 2026-11-02: "increase the size of the body text") */
.site-content .entry-content p, .site-content .entry-content ul, .site-content .entry-content ol { max-width: 68ch; margin-left: 0 !important; }
.site-content :is(h1,h2,h3,h4) { text-wrap: balance; } .site-content .entry-content p { text-wrap: pretty; }
/* Home: book cover sized to run the full height of the bio beside it (Scott, 2026-11-02). Measured: 35.5% column = cover 484px vs text 483px at the 1000px content width */
body.home .entry-content > .wp-block-columns:first-of-type > .wp-block-column:empty { display: none; }
@media (min-width: 782px) {
  body.home .entry-content > .wp-block-columns:first-of-type > .wp-block-column:first-child { flex: 0 0 37.3% !important; max-width: 37.3%; /* +5% (Scott, 2026-11-02) */ }
  body.home .entry-content > .wp-block-columns:first-of-type > .wp-block-column:first-child img { width: 100%; height: auto; }
  body.home .entry-content > .wp-block-columns:first-of-type > .wp-block-column:nth-child(2) { flex: 1 1 0 !important; }
}
/* Header menu larger, still one row (Scott, 2026-11-02). Largest size that fits measured at the narrow end of each range; was 15/14/14/13 px */
@media (min-width: 1300px) { html body #ast-hf-menu-1 > li > .menu-link { font-size: 18px !important; padding-left: 7px !important; padding-right: 7px !important; } }
@media (min-width: 1101px) and (max-width: 1299px) { html body #ast-hf-menu-1 > li > .menu-link { font-size: 16px !important; padding-left: 7px !important; padding-right: 7px !important; } }
@media (min-width: 1000px) and (max-width: 1100px) { html body #ast-hf-menu-1 > li > .menu-link { font-size: 16px !important; padding-left: 5px !important; padding-right: 5px !important; } }
@media (min-width: 922px) and (max-width: 999px) { html body #ast-hf-menu-1 > li > .menu-link { font-size: 14px !important; padding-left: 5px !important; padding-right: 5px !important; } }
/* Home launch date in bright Senate Gold (Scott, 2026-11-02) */
.site-content .entry-content p.st-launch-date { color: #B8901C; font-weight: 400; font-size: 24px; letter-spacing: .03em; margin-bottom: 18px; } /* back to the first gold, Senate Gold #B8901C (Scott, 2026-11-02) */
/* Smaller Capitol background for phones and upright tablets/iPads (Scott, 2026-11-02); laptops, desktops and sideways iPads keep the 2560 px image */
@media (max-width: 767px) { body::before { background-image: linear-gradient(rgba(255,255,255,.80), rgba(255,255,255,.80)), url("/wp-content/uploads/2026/11/capitol-dusk-background-phone-480.webp"); } }
@media (min-width: 768px) and (orientation: portrait) { body::before { background-image: linear-gradient(rgba(255,255,255,.80), rgba(255,255,255,.80)), url("/wp-content/uploads/2026/11/capitol-dusk-background-tablet-1080x1440-1.webp"); } }
/* Main headings on About, Newsletter and Thriller Kit are H1 now; they keep the H2 sizes they had (Scott, 2026-11-02) */
.uagb-block-8c375862 h1.uagb-heading-text, .uagb-block-61a95331 h1.uagb-heading-text, .uagb-block-07c715d5 h1.uagb-heading-text { font-size: 48px; line-height: 1.3; margin: 0; }
@media (max-width: 921px) { .uagb-block-8c375862 h1.uagb-heading-text, .uagb-block-61a95331 h1.uagb-heading-text, .uagb-block-07c715d5 h1.uagb-heading-text { font-size: 34px; } }
@media (max-width: 544px) { .uagb-block-8c375862 h1.uagb-heading-text, .uagb-block-61a95331 h1.uagb-heading-text, .uagb-block-07c715d5 h1.uagb-heading-text { font-size: 28px; } }
/* Books page (1735): the book title under the cover is the page's H1 since 2026-11-28; keep it at the size it had as an H2. */
.page-id-1735 .entry-content h1.wp-block-heading { font-size: 48px; line-height: 1.3; }
@media (max-width: 921px) { .page-id-1735 .entry-content h1.wp-block-heading { font-size: 34px; } }
@media (max-width: 544px) { .page-id-1735 .entry-content h1.wp-block-heading { font-size: 28px; } }
/* Home H1 "Scott Trendell, Author of Political Thrillers" (2026-11-28): 38px is set in the block; on phones it wrapped to four lines, so phones get the site's 28px H1. */
@media (max-width: 544px) { body.home .entry-content h1.wp-block-heading { font-size: 28px !important; } }
/* Books page list: bullets sit inside the text edge (Scott, 2026-11-02) */
.page-id-1735 .entry-content ul.wp-block-list { padding-left: 1.2em; }
/* Privacy Policy page: section headings sit below the page title (Scott, 2026-11-02) */
.page-id-3 .entry-content h2 { font-size: 24px; line-height: 1.3; margin-top: 1.4em; }
@media (max-width: 544px) { .page-id-3 .entry-content h2 { font-size: 21px; } }
/* Footer copyright line: its Privacy Policy link takes the line's white and is underlined; it was black on the charcoal footer (Scott, 2026-11-03) */
.ast-footer-copyright a { color: inherit; text-decoration: underline; }
/* All buttons Capitol Navy #1F2A44 with white text, black on hover, like the theme's own buttons: Kit, Fluent Forms, red block buttons and the Thriller Kit jump button (Scott, 2026-11-03) */
.wp-block-button__link.has-vivid-red-background-color, .formkit-submit, .ff-btn-submit, .st-kit-jump__btn { background-color: #1F2A44 !important; border-color: #1F2A44 !important; color: #FFFFFF !important; }
.wp-block-button__link.has-vivid-red-background-color:hover, .wp-block-button__link.has-vivid-red-background-color:focus, .formkit-submit:hover, .formkit-submit:focus, .ff-btn-submit:hover, .ff-btn-submit:focus, .st-kit-jump__btn:hover, .st-kit-jump__btn:focus { background-color: #000000 !important; border-color: #000000 !important; color: #FFFFFF !important; }
html body .fluentform_wrapper_3 form.fluent_form_3 .ff-btn-submit.ff-btn-submit:not(.ff_x) { background-color: #1F2A44 !important; border-color: #1F2A44 !important; color: #FFFFFF !important; }
html body .fluentform_wrapper_3 form.fluent_form_3 .ff-btn-submit.ff-btn-submit:not(.ff_x):hover, html body .fluentform_wrapper_3 form.fluent_form_3 .ff-btn-submit.ff-btn-submit:not(.ff_x):focus { background-color: #000000 !important; border-color: #000000 !important; }
/* === end 2026-11-02 changes === */
