/* =========================================================
   BethLinehanAuthor.com
   Master Stylesheet: /assets/bla.css

   Section Order:
   1. VARIABLES
   2. BASE
   3. LAYOUT
   4. COMPONENTS
   5. UTILITIES
   6. PAGE SECTIONS
   7. HEADER
   8. FOOTER
   9. GENERATEPRESS OVERRIDES
   ========================================================= */


/* =========================================================
   1. VARIABLES
   ========================================================= */

:root {
  --bg: #fcf8ef;
  --bg-alt: #f7f1e4;
  --bg-card: #fffdf8;
  --bg-band: #8fa287;

  --text: #2f2a26;
  --text-soft: #5f5750;
  --text-on-dark: #fffaf2;

  --heading: #2b211b;
  --border-soft: rgba(47, 42, 38, 0.12);

  --brand: #8fa287;
  --brand-dark: #74856d;
  --accent: #c96d43;
  --accent-dark: #a95733;

  --link: #7b5d2f;
  --link-hover: #5f4723;

  --shadow-soft: 0 10px 30px rgba(47, 42, 38, 0.08);
  --shadow-card: 0 8px 24px rgba(47, 42, 38, 0.06);

  --radius-sm: 0.75rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;

  --container: 1200px;
  --container-narrow: 860px;
  --content-narrow: 720px;

  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: 5rem;

  --header-pad-y: 1rem;
  --header-pad-x: 1.25rem;
  --bla-header-h: 84px;

  --font-heading: "Baloo 2", system-ui, sans-serif;
  --font-body: "Open Sans", system-ui, sans-serif;

  --transition: 0.25s ease;
}


/* =========================================================
   2. BASE
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  padding-top: var(--bla-header-h);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition), border-color var(--transition), background-color var(--transition), transform var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

p,
ul,
ol,
blockquote {
  margin: 0 0 1.15em;
}

ul,
ol {
  padding-left: 1.25em;
}

li + li {
  margin-top: 0.35em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.5em;
  color: var(--heading);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.08;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}

h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
}

h3,
.h3 {
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

h4 {
  font-size: 1.2rem;
}

small {
  font-size: 0.875rem;
}

strong {
  font-weight: 700;
}

blockquote {
  padding-left: 1rem;
  border-left: 3px solid var(--brand);
  color: var(--text-soft);
}

hr {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: var(--space-6) 0;
}

input,
textarea,
select,
button {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}


/* =========================================================
   3. LAYOUT
   ========================================================= */

.bla-page {
  width: 100%;
  overflow: clip;
}

main[id^="bla-"] {
  width: 100%;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section-alt,
.section--alt {
  background: var(--bg-alt);
}

.band-brand {
  background: var(--bg-band);
  color: var(--text-on-dark);
}

.band-brand h1,
.band-brand h2,
.band-brand h3,
.band-brand h4,
.band-brand h5,
.band-brand h6,
.band-brand p,
.band-brand li,
.band-brand .eyebrow,
.band-brand .tagline {
  color: var(--text-on-dark);
}

.band-brand .card,
.band-brand .figure {
  color: var(--text);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2rem, var(--container-narrow));
  margin-inline: auto;
}

.content-narrow {
  width: min(100% - 2rem, var(--content-narrow));
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: var(--space-5);
}

.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.stack > * + * {
  margin-top: var(--space-4);
}

.stack-sm > * + * {
  margin-top: var(--space-2);
}

.center {
  text-align: center;
}

@media (max-width: 900px) {
  .cols-2,
  .cols-3 {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   4. COMPONENTS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff8f3;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--brand-dark);
  color: #fff8f3;
}

.btn-accent {
  background: var(--accent);
  color: #f8fff4;
  box-shadow: var(--shadow-soft);
}

.btn-accent:hover,
.btn-accent:focus-visible {
  background: var(--accent-dark);
  color: #f8fff4;
}

.btn-link {
  padding-inline: 0;
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--link);
  border-radius: 0;
  box-shadow: none;
}

.btn-link:hover,
.btn-link:focus-visible {
  color: var(--link-hover);
  transform: none;
}

.card {
  height: 100%;
  padding: clamp(1.4rem, 2vw, 1.75rem);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.figure {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.figure img {
  width: 100%;
  height: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.38rem 0.7rem;
  background: rgba(198, 93, 52, 0.1);
  border: 1px solid rgba(198, 93, 52, 0.16);
  border-radius: 999px;
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  font-weight: 700;
}

.link-pill::after {
  content: "→";
  transition: transform var(--transition);
}

.link-pill:hover::after,
.link-pill:focus-visible::after {
  transform: translateX(2px);
}

.eyebrow {
  display: inline-block;
  color: var(--brand-dark);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.tagline {
  max-width: 42rem;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 1.7vw, 1.2rem);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}


/* =========================================================
   5. UTILITIES
   ========================================================= */

.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.cluster.center {
  justify-content: center;
}

/* =========================================================
   6. PAGE SECTIONS
   ========================================================= */

/* Home */

.page-hero {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.home-hero-grid,
.home-featured-book {
  align-items: center;
}

.home-hero-photo img,
.home-featured-book img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.home-book-tags {
  gap: var(--space-2);
}

.home-book-tags .chip {
  margin: 0;
}

@media (max-width: 900px) {
  .home-hero {
    text-align: center;
  }

  .home-hero .tagline {
    margin-inline: auto;
  }

  .home-hero .cluster,
  .section .cluster.center {
    justify-content: center;
  }
}

/* About */

.about-hero-grid,
.about-story-grid {
  align-items: center;
}

.about-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.about-values-card {
  max-width: 34rem;
}

.about-values-list {
  margin: 0;
  padding-left: 1.2em;
}

.about-books-grid {
  margin-top: var(--space-6);
}

.about-book-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.about-book-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.about-books-cta {
  margin-top: var(--space-6);
}

@media (max-width: 900px) {
  .about-hero,
  .about-story-grid {
    text-align: center;
  }

  .about-hero .cluster,
  .about-books-cta,
  .section .cluster.center {
    justify-content: center;
  }

  .about-values-card {
    max-width: none;
  }
}

/* About Hero */

.about-portrait {
  max-width: 380px;
  margin-right: auto;
}

.about-portrait img {
  width: 100%;
  height: auto;
  display: block;
}

.about-hero h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.3rem);
  line-height: 1.25;
}

/* Books */

.books-hero {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.books-hero-grid {
  align-items: center;
  gap: clamp(2rem, 4vw, 4.5rem);
}

.books-hero-copy {
  max-width: 38rem;
}

.books-hero .tagline {
  margin-inline: 0;
}

.books-hero-art {
  display: flex;
  justify-content: center;
}

.books-hero-stack {
  position: relative;
  width: min(100%, 480px);
  min-height: 440px;
}

.books-hero-thumb {
  position: absolute;
  width: clamp(130px, 26vw, 185px);
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f1e4 0%, #efe6d6 100%);
  box-shadow: 0 16px 36px rgba(47, 42, 38, 0.14);
}

.books-hero-thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.books-hero-thumb-1 {
  left: 0;
  top: 5.5rem;
  transform: rotate(-8deg);
  z-index: 1;
}

.books-hero-thumb-2 {
  left: 50%;
  top: 0;
  transform: translateX(-50%) rotate(-1deg);
  z-index: 3;
}

.books-hero-thumb-3 {
  right: 0;
  top: 6.5rem;
  transform: rotate(8deg);
  z-index: 2;
}

.books-intro-note {
  max-width: 46rem;
  margin-inline: auto;
  color: var(--text-soft);
}

.books-grid {
  align-items: start;
}

.book-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.book-cover {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(180deg, #f7f1e4 0%, #efe6d6 100%);
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-card .stack-sm {
  flex: 1 1 auto;
}

.book-card p {
  color: var(--text-soft);
}

.book-meta {
  gap: var(--space-2);
}

.book-meta .chip {
  margin: 0;
}

.book-actions {
  margin-top: auto;
  gap: var(--space-2);
  align-items: center;
}

.book-subtitle {
  color: var(--text-soft);
  font-size: 0.98rem;
  font-weight: 700;
  margin-top: -0.15rem;
}

.books-featured {
  align-items: center;
}

.books-featured-cover {
  max-width: 420px;
}

.books-featured-copy .tagline {
  max-width: 38rem;
}

.books-feature-points {
  padding-left: 1.1rem;
  color: var(--text-soft);
}

.books-feature-points li + li {
  margin-top: 0.45rem;
}

.books-cta-card {
  padding: clamp(1.5rem, 2.2vw, 2rem);
}

@media (max-width: 900px) {
  .books-hero,
  .books-featured-copy {
    text-align: center;
  }

  .books-hero-copy {
    max-width: none;
  }

  .books-hero .cluster,
  .books-featured-copy .cluster,
  .book-actions,
  .section .cluster.center {
    justify-content: center;
  }

  .books-hero-stack {
    width: min(100%, 360px);
    min-height: 360px;
    margin-inline: auto;
  }

  .books-hero-thumb {
    width: 140px;
  }

  .books-hero-thumb-1 {
    left: 0;
    top: 5rem;
  }

  .books-hero-thumb-2 {
    top: 0;
  }

  .books-hero-thumb-3 {
    right: 0;
    top: 5.75rem;
  }

  .books-featured-cover {
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .books-hero-stack {
    width: min(100%, 310px);
    min-height: 315px;
  }

  .books-hero-thumb {
    width: 118px;
  }

  .books-hero-thumb-1 {
    top: 4.75rem;
  }

  .books-hero-thumb-3 {
    top: 5.1rem;
  }
}

.books-cta {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

/* Blog */

.blog-hero {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.blog-grid {
  align-items: start;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.blog-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.blog-meta {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: -0.35rem;
}

/* Blog */

.blog-hero {
  padding-top: clamp(4rem, 8vw, 7rem);
}

.blog-featured {
  align-items: center;
}

.blog-featured-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-featured-copy .tagline {
  max-width: 38rem;
}

.blog-grid {
  align-items: start;
  margin-top: var(--space-6);
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.blog-thumbnail img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.blog-meta {
  color: var(--text-soft);
  font-size: 0.9rem;
  margin-top: -0.2rem;
}

.blog-empty-state {
  padding-top: var(--space-4);
}

.blog-signup-wrap .tagline {
  margin-inline: auto;
}

.blog-signup-card {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--bg-card);
  color: var(--text);
  text-align: left;
}

.blog-signup-card p:last-child {
  margin-bottom: 0;
}

.blog-signup-card .ff-el-group,
.blog-signup-card .ff-t-cell,
.blog-signup-card .ff_submit_btn_wrapper {
  margin-bottom: 1rem;
}

.blog-signup-card input[type="text"],
.blog-signup-card input[type="email"],
.blog-signup-card textarea,
.blog-signup-card select {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--text);
}

.blog-signup-card textarea {
  min-height: 140px;
}

.blog-signup-card input:focus,
.blog-signup-card textarea:focus,
.blog-signup-card select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-color: var(--brand);
}

.blog-signup-card .ff-btn,
.blog-signup-card .ff_submit_btn_wrapper button,
.blog-signup-card .ff_submit_btn_wrapper .ff-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #f8fff4;
  font-weight: 700;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.blog-signup-card .ff-btn:hover,
.blog-signup-card .ff-btn:focus-visible,
.blog-signup-card .ff_submit_btn_wrapper button:hover,
.blog-signup-card .ff_submit_btn_wrapper button:focus-visible,
.blog-signup-card .ff_submit_btn_wrapper .ff-btn-submit:hover,
.blog-signup-card .ff_submit_btn_wrapper .ff-btn-submit:focus-visible {
  background: var(--accent-dark);
  color: #f8fff4;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .blog-signup-card {
    text-align: left;
  }
}

/* =========================================================
   7. HEADER
   ========================================================= */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(250, 243, 224, 0.96);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--transition), background-color var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-soft);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 84px;
  padding-block: var(--header-pad-y);
}

.header-brand {
  flex: 0 0 auto;
}

.header-brand a {
  display: inline-flex;
  align-items: center;
}

.header-brand img {
  display: block;
  max-height: 88px;
  width: auto;
}

.header-nav {
  flex: 1 1 auto;
}

.header-nav .menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.8rem, 1.6vw, 1.4rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav li {
  margin: 0;
}

.header-nav a {
  color: var(--text);
  font-weight: 700;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--brand-dark);
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--heading);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
  }

  .header-nav.is-open {
    display: block;
  }

  .header-nav .menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
  }

  .header-nav a {
    display: block;
    padding: 0.85rem 0.95rem;
    border-radius: var(--radius-sm);
  }

  .header-nav a:hover,
  .header-nav a:focus-visible {
    background: rgba(198, 93, 52, 0.08);
  }
}


/* =========================================================
   8. FOOTER
   ========================================================= */

.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: #2f2a26;
  color: #f5ede3;
}

.site-footer a {
  color: #f8d8c6;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #ffffff;
}

.footer-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1.3fr 1fr 1fr;
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer li {
  color: inherit;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 0.55rem;
}

.footer-logo {
  display: block;
  width: auto;
  max-width: 300px;
  max-height: 96px;
}

.footer-links a {
  font-weight: 600;
}

.site-credit {
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(245, 237, 227, 0.12);
}

.site-credit p {
  color: rgba(245, 237, 227, 0.82);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  background: #2f2a26;
  color: #f5ede3;
}

/* =========================================================
   9. GENERATEPRESS OVERRIDES
   ========================================================= */

.separate-containers .inside-article,
.one-container .container,
.separate-containers .comments-area,
.separate-containers .page-header,
.separate-containers .paging-navigation,
.one-container .site-content {
  background: transparent;
}

#page {
  background: var(--bg);
}

.site-content {
  padding-top: 0;
  padding-bottom: 0;
}

.content-area,
.site-main {
  width: 100%;
}

.right-sidebar .content-area,
.left-sidebar .content-area,
.both-sidebars .content-area {
  width: 100%;
}

.right-sidebar .site-content .widget-area,
.left-sidebar .site-content .widget-area,
.both-sidebars .site-content .widget-area {
  display: none;
}

.entry-content {
  margin: 0;
}

.entry-content > [class*="wp-block-"],
.entry-content > .section,
.entry-content > .container,
.entry-content > .content-narrow {
  margin-bottom: 0;
}

.entry-content .alignwide,
.entry-content .alignfull {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.page-header,
.entry-header {
  display: none;
}

.site-main .post-navigation,
.site-main .comments-area {
  width: min(100% - 2rem, var(--content-narrow));
  margin-inline: auto;
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
}

/* Keep footer bar visible, remove only default GP credit */
.site-info {
  background: transparent;
  border-top: 0;
  padding: 0;
}

.inside-site-info {
  padding-top: 0;
  padding-bottom: 0;
}

.site-info .copyright-bar {
  display: none;
}