/* =========================================
   GooseBear — Minimal, Organized Styles
   ========================================= */

/* ----------------------
   1) Design Tokens
   ---------------------- */
   :root {
    /* Colors */
    --bg: #FFF7EB;          /* cream */
    --card: #fffaf3;        /* soft paper */
    --text: #1f2937;        /* dark text */
    --muted: #4b5563;       /* muted text */
    --brand: #D7793D;       /* orange */
    --brand-2: #EAB149;     /* mustard */
    --accent: #838E66;      /* olive */
  
    /* Borders & Effects */
    --border: #EBD5B3;
    --radius-sm: 8px;
    --radius: 10px;
    --radius-lg: 12px;
    --radius-xl: 14px;
  
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 10px 24px rgba(0,0,0,0.12);
    --shadow-lg: 0 26px 60px rgba(0,0,0,0.22);
  
    /* Layout */
    --container: 1000px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
  }
  
  /* ----------------------
     2) Base / Reset
     ---------------------- */
  * { box-sizing: border-box; }
  
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
  }
  
  body {
    background: rgb(255, 248, 234);
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.6;
  }
  
  /* A11y */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  
  /* ----------------------
     3) Layout Primitives
     ---------------------- */
  .container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-top: var(--space-6);
    padding-bottom: var(--space-1);
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-4);
  }
  
  .hidden { display: none; }
  
  /* ----------------------
     4) Global Regions
     ---------------------- */
  header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(6px);
    background-color: var(--bg);
    z-index: 10;
  }
  
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none;
    color: inherit;
  }
  
  .brand:hover {
    text-decoration: none;
    color: inherit;
  }
  
  .brand-mark {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow:
      0 6px 22px rgba(224, 122, 63, 0.20),
      0 2px 8px rgba(240, 192, 74, 0.18);
  }
  
  /* Replaceable inline image logo */
  .logo {
    display: block;
    height: 42px;
    width: auto;
  }
  
  header .brand span {
    /* FIXED clamp order (min, preferred, max) */
    font-size: clamp(24px, 2.2vw, 36px);
    line-height: 1.2;
  }
  
  nav a {
    color: var(--text);
    text-decoration: none;
    margin-left: var(--space-4);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
  }
  nav a:hover { background: rgba(0, 0, 0, 0.06); }
  
  main { padding-top: var(--space-1); }
  
  .hero {
    text-align: center;
    padding: var(--space-16) 0;
  }
  .hero.container { padding-top: 20px; } /* specific compound rule */
  
  .illustration svg {
    width: 100%;
    height: auto;
    display: block;
  }
  
  footer {
    margin-top: var(--space-16);
    padding: var(--space-2) 0 var(--space-4);
    color: var(--muted);
  }
  
  /* ----------------------
     5) Typography & UI
     ---------------------- */
  .title {
    font-size: clamp(32px, 6vw, 56px);
    line-height: 1.15;
    margin: 0 0 var(--space-4) 0;
  }
  
  .subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--muted);
    margin: 0 0 var(--space-2) 0;
  }
  
  .microtitle {
    font-size: clamp(12px, 1.2vw, 14px);
    color: var(--muted);
    margin-top: -16px;
  }
  
  .lp-title {
    font-size: clamp(32px, 6.5vw, 56px);
    line-height: 1.1;
    margin: 0 0 6px 0;
  }
  
  .lp-h2 {
    font-size: clamp(32px, 6.5vw, 36px);
    line-height: 1.1;
    text-align: center;
    margin: 24px 0 32px; /* consolidated */
  }
  
  .lp-subtitle {
    font-size: clamp(16px, 2.2vw, 19px);
    margin: 10px 0 16px 0;
    color: var(--muted);
  }
  
  .lp-meta { margin-top: 10px; }
  .lp-meta li { font-weight: 600; }
  .lp-meta li .lp-meta-normal { font-weight: 400; color: var(--muted); }
  
  /* Buttons */
  .cta { display: inline-flex; gap: var(--space-3); }
  
  .button {
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #1f2937;
    font-weight: 700;
    border: none;
    padding: 12px 18px;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
  }
  .button.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
  }
  
  .contact-btn {
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.625rem;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    color: #1f2937;
    font-weight: 700;
    cursor: pointer;
    box-shadow:
      0 6px 16px rgba(224, 122, 63, 0.18),
      0 2px 6px rgba(240, 192, 74, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.2s ease;
  }
  .contact-btn:hover {
    transform: translateY(-1px);
    box-shadow:
      0 10px 22px rgba(224, 122, 63, 0.22),
      0 4px 10px rgba(240, 192, 74, 0.18);
  }
  .contact-btn:active {
    transform: translateY(0);
    box-shadow:
      0 4px 12px rgba(224, 122, 63, 0.15),
      0 1px 4px rgba(240, 192, 74, 0.14);
  }
  .contact-btn:focus-visible {
    outline: 2px solid rgba(224, 122, 63, 0.55);
    outline-offset: 2px;
  }
  
  /* Cards & Media */
  .card {
    background: linear-gradient(180deg, rgba(255,255,255,0.70), rgba(255,255,255,0.60));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
  }
  
  .lp-cover {
    max-width: 340px;
    width: 80%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
  }
  @media (min-width: 1200px) {
    .lp-cover { max-width: 380px; }
  }
  
  /* ----------------------
     6) Page: Book
     ---------------------- */
  .book-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: var(--space-7);
    padding-top: var(--space-10);
  }
  
  .book-hero__copy .microtitle {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    background: rgba(255,255,255,0.5);
  }
  
  .book-hero__meta {
    display: flex;
    gap: var(--space-4);
    padding: 0;
    margin: 16px 0 0 0;
    list-style: none;
    color: var(--muted);
  }
  
  .book-hero__byline {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    margin: 6px 0;
  }
  
  .book-rating { display: inline-flex; align-items: center; gap: 8px; }
  .book-rating .stars { display: inline-flex; gap: 2px; }
  .book-rating .star {
    width: 16px; height: 16px; fill: #EAB149;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
  }
  .book-rating .rating-text { color: var(--muted); font-size: 14px; }
  
  .book-hero__cover { display: flex; justify-content: center; }
  
  .book-hero__mock {
    width: 280px;
    height: 400px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #373b2f, #212418);
    border: 6px solid #cdb47a;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  }
  
  .book-hero__image {
    max-width: 360px;
    width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
  }
  
  .book-about .section-title,
  .book-features .section-title,
  .book-reviews .section-title,
  .book-cta .section-title {
    text-align: center;
    margin-bottom: 18px;
  }
  
  .book-about__grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
  }
  
  .checklist { padding-left: 1rem; }
  .checklist li { margin: 6px 0; }
  
  .feature h3 { margin-top: 0; }
  
  /* Reviews (merged + compact) */
  .lp-reviews { margin-top: var(--space-2); }
  .lp-reviews .lp-stats { margin-bottom: var(--space-2); }
  
  .reviews {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 4px;
  }
  
  .card.review {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
  }
  .card.review .book-hero__byline { margin: 0 0 6px; gap: 8px; }
  .card.review .star { width: 14px; height: 14px; }
  .card.review h5 { margin: 2px 0 6px; font-size: 1rem; line-height: 1.25; }
  
  .review-text {
    --lines: 4;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: var(--lines);
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.45;
  }
  .review-text.expanded {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
  }
  
  .read-more-btn {
    align-self: flex-start;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 0.9rem;
    padding: 0;
    cursor: pointer;
  }
  .read-more-btn:hover { text-decoration: underline; }
  
  .card.review footer {
    margin-top: auto;
    color: var(--muted);
    font-size: .92rem;
  }
  
  .book-reviews .lp-h2 { margin: 8px 0 16px; }
  
  /* CTA */
  .book-cta { text-align: center; }
  .book-cta__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-top: 16px;
  }
  
  /* Responsive (Book) */
  @media (max-width: 900px) {
    .book-hero { grid-template-columns: 1fr; }
    .book-about__grid { grid-template-columns: 1fr; }
    .book-hero__cover { order: -1; }
  }
  
  /* ----------------------
     7) Page: Landing
     ---------------------- */
  .lp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
    align-items: center;
    gap: 24px;
    padding-top: 20px;
  }
  
  .lp-reviews .lp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 12px;
  }
  .lp-stat { text-align: center; padding: 8px 6px; }
  .lp-stat__value { font-weight: 800; font-size: clamp(18px, 3.6vw, 28px); }
  .lp-stat__label { color: var(--muted); font-weight: 600; }
  .lp-stat__sub { color: var(--muted); font-size: 12px; }
  
  @media (max-width: 960px) {
    .lp-hero { grid-template-columns: 1fr; }
    .lp-cover { max-width: 320px; margin: 0 auto; }
  }
  @media (max-width: 900px) {
    .lp-reviews .lp-stats { grid-template-columns: repeat(2, 1fr); }
  }
  
/* ----------------------
   8) Author Section
   ---------------------- */
/* ===== Landing Page: Author section (scoped) ===== */
.lp-author .author-card,
.lp-author .author-card.card { /* neutralize any global .card layout */
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;

  background: var(--card, #fffaf3);
  border: 1px solid var(--border, #EBD5B3);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

/* Media */
.lp-author .author-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Bio column: tighter rhythm & consistent measure */
.lp-author .author-bio {
  --measure: 62ch;              /* readable line length */
  display: grid;
  grid-template-rows: auto auto 1fr auto; /* name, intro, achievements, links */
  row-gap: 0.75rem;
  align-content: start;
  text-align: left;
}

.lp-author .author-name {
  margin: 0;
  font-size: clamp(1.25rem, 1.1rem + .7vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  text-align: left;
}

/* Body copy */
.lp-author .author-bio p {
  margin: 0 0 .9rem 0;
  line-height: 1.7;
  max-width: var(--measure);
  color: var(--text, #1f2937);
  font-size: 1rem;
  text-align: left;
}

/* Achievements — force native, single-column bullets */
.lp-author .author-list {
  /* nuke any global grid/columns/resets that are leaking in */
  display: block;
  column-count: 1;
  columns: auto;
  column-gap: normal;

  list-style: disc outside;
  margin: 0 0 1rem 0;
  padding-left: .25rem;   /* controls bullet indent */
  max-width: 65ch;
  text-align: left;
}

.lp-author .author-list li {
  display: list-item;      /* avoid flex/grid list items */
  margin: .35rem 0;
  line-height: 1.6;
  padding: 0;
  text-indent: 0;
}


/* Link “pills” row */
.lp-author .author-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  margin-top: .25rem;
}
.lp-author .author-links .button.secondary {
  border-radius: 999px;
  padding: .5rem .9rem;
  border: 1px solid var(--border, #EBD5B3);
  background: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
}

/* Make sure generic resets don't kill bullets here */
.lp-author .author-list,
.lp-author .author-list li {
  list-style: revert;
}

/* Responsive */
@media (max-width: 820px) {
  .lp-author .author-card,
  .lp-author .author-card.card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .lp-author .author-media img {
    aspect-ratio: 16 / 9; /* wider hero feel on mobile */
  }
  .lp-author .author-bio {
    row-gap: .6rem;
  }
}
