/* ---------------------------------------------------------
   GLOBAL BASE
--------------------------------------------------------- */

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', sans-serif;
    background: #fafafa;
    color: #333;
    line-height: 1.6;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 14px;
    color: #777;
}

/* ---------------------------------------------------------
   HEADER
--------------------------------------------------------- */

.site-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    padding: 60px 20px 40px;
    text-align: left;
}

.site-logo {
    width: 140px;
    height: auto;
}

.header-text h1 {
    font-size: 48px;
    font-weight: 800;
    margin: 0;
}

.tagline {
    font-size: 20px;
    font-weight: 400;
    color: #666;
    margin-top: 10px;
}

/* ---------------------------------------------------------
   NAV
--------------------------------------------------------- */

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: #f7f7f7;
  border-bottom: 1px solid #ddd;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  text-decoration: none;
  color: #333;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-links a:hover {
  color: #0077cc;
}

/* ---------------------------------------------------------
   HOMEPAGE
--------------------------------------------------------- */

.about-logic-lab {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.6;
}

.about-logic-lab h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------
   BOOK CARD LISTING (Homepage)
--------------------------------------------------------- */

.book {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 60px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.book:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.book-thumbnail,
.placeholder-cover {
    width: clamp(160px, 22vw, 220px);
    height: auto;
    flex-shrink: 0;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

.placeholder-cover {
    aspect-ratio: 3 / 4;
    border: 2px dashed #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 16px;
    background: #fff;
}

.book-content {
    flex: 1;
}

.book h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
}

.description {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
}

/* ---------------------------------------------------------
   BOOK PAGE (single book)
--------------------------------------------------------- */

.book-content {
    margin: 0 auto;
    width: 80%;
}

.intro {
    text-align: center;
    font-size: 20px;
    margin-bottom: 60px;
}

.book-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.book-cover-column {
  flex: 0 0 280px; /* same width as edition pages */
}

.book-cover-image {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.book-details-column {
  flex: 1;
}

.book-title {
  margin-top: 0;
}

.book-editions ul,
.book-concepts ul {
  margin: 0;
  padding-left: 1.2rem;
}

/* ---------------------------------------------------------
   EDITION PAGE LAYOUT (NEW)
--------------------------------------------------------- */

.edition-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 3rem;
}

.edition-cover img {
    width: 280px;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 8px;
}

.edition-details {
    flex: 1;
    max-width: 700px;
}

.edition-details h1 {
    margin-top: 0;
}

.edition-backcover img {
    width: 280px;
    height: auto;
    border: 1px solid #ddd;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-top: 1rem;
}

/* Mobile */
@media (max-width: 800px) {
    .edition-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .edition-details {
        text-align: left;
        max-width: 100%;
    }
}

/* ---------------------------------------------------------
   TLAC / PHB / ACTIVITY / TEACHER PAGES (still needed)
--------------------------------------------------------- */

.tlac-activity-page,
.tlac-phb-page,
.tlac-chapter-page,
.tlac-book-page,
.tlac-teacher-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

.tlac-activity-header,
.tlac-phb-header,
.tlac-chapter-header,
.tlac-book-header,
.tlac-teacher-header {
    margin-bottom: 40px;
}

.tlac-meta {
    color: #666;
    font-size: 16px;
    margin-top: 8px;
}

.tlac-subtext {
    color: #555;
    font-size: 18px;
    margin-top: 10px;
}

/* Buttons */
.tlac-button {
    display: inline-block;
    background: #333;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.2s ease;
}

.tlac-button:hover {
    background: #555;
}

.tlac-link {
    display: inline-block;
    margin-top: 10px;
    color: #333;
    text-decoration: underline;
    font-size: 16px;
}

/* PHB Sections */
.tlac-phb-sections {
    margin-bottom: 40px;
}

.tlac-phb-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tlac-phb-type {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tlac-phb-content {
    font-size: 18px;
    color: #555;
}

/* Activity Cards */
.tlac-activity-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tlac-activity-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.tlac-activity-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Chapter Cards */
.tlac-chapter-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tlac-chapter-card h3 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 10px;
}

.tlac-chapter-activity-list {
    margin-top: 15px;
    padding-left: 20px;
}

.tlac-chapter-activity {
    margin-bottom: 8px;
    font-size: 18px;
}

/* Teacher Page */
.tlac-teacher-section {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tlac-placeholder {
    font-size: 18px;
    color: #777;
    font-style: italic;
    margin-top: 20px;
}

/* ---------------------------------------------------------
   ABOUT PAGE LAYOUT
--------------------------------------------------------- */

.about {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.6;
}

.about__section {
  margin-bottom: 2rem;
}

.about__section h2 {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

/* ---------------------------------------------------------
   RESOURCES LAYOUT
--------------------------------------------------------- */

.resources {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  line-height: 1.6;
}

.resource-book {
  margin-bottom: 2rem;
}

.resource-book h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ---------------------------------------------------------
   NEWSLETTER SIGN UP LAYOUT
--------------------------------------------------------- */

.book-signup {
  background: #f7f7f7;
  padding: 2rem;
  margin: 2rem 0;
  border-radius: 8px;
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.book-signup h2 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.book-signup p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.5;
}

.book-signup iframe,
.book-signup form {
  margin-top: 1rem;
}

/* ---------------------------------------------------------
   SAMPLE LANDING LAYOUT
--------------------------------------------------------- */

.sample-landing {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1rem;
}

.sample-landing h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.sample-landing p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.after-signup-note {
  margin-top: 2rem;
  font-style: italic;
  text-align: center;
}

/* Responsive */
@media (max-width: 700px) {
    .tlac-activity-card,
    .tlac-chapter-card,
    .tlac-phb-section,
    .tlac-teacher-section {
        text-align: center;
    }
}