/*
Theme Name: Lealos Author
Theme URI: https://shawnlealos.com
Description: A clean, editorial child theme for author and film critic Shawn S. Lealos. Built on GeneratePress. Warm-toned, literary, text-forward.
Author: Built for Shawn S. Lealos
Template: generatepress
Version: 1.0
*/

/* =========================================================================
   LEALOS AUTHOR — DESIGN SYSTEM
   Stage 1: foundation (colors, fonts, spacing, base elements)
   Later stages add page-specific styles below this block.
   ========================================================================= */

/* ---- 1. Fonts ---------------------------------------------------------- */
/* Fraunces = warm, literary display serif for headings.
   Source Serif 4 = comfortable reading serif for body text.
   Loaded from Google Fonts. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600&display=swap');

/* ---- 2. Color palette & tokens ---------------------------------------- */
:root {
  /* Warm, minimal palette */
  --ink:        #2b2622;   /* near-black warm brown for text */
  --ink-soft:   #5a534c;   /* muted brown for secondary text */
  --paper:      #faf6f0;   /* warm off-white page background */
  --paper-2:    #f3ece2;   /* slightly deeper warm panel */
  --accent:     #9c4221;   /* burnt terracotta accent */
  --accent-2:   #c2703f;   /* lighter terracotta for hovers */
  --line:       #e3d9cb;   /* warm hairline borders */
  --gold:       #b8923f;   /* subtle gold for small flourishes */

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;

  /* Reading width */
  --measure: 42rem;
}

/* ---- 3. Base typography & body ---------------------------------------- */
body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-size: 1.075rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6,
.site-title {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin-bottom: var(--space-sm); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: var(--space-lg); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin-top: var(--space-md); }

p { margin-bottom: var(--space-sm); }

/* keep long-form reading comfortable */
.entry-content {
  max-width: var(--measure);
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.18s ease;
}
a:hover, a:focus {
  color: var(--accent-2);
}

/* ---- 4. Header / site title ------------------------------------------- */
.site-header {
  background-color: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-title a {
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.main-navigation {
  background-color: transparent;
}
.main-navigation .main-nav ul li a {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item a {
  color: var(--accent);
}

/* ---- 5. Buttons -------------------------------------------------------- */
.button,
button,
input[type="submit"],
.wp-block-button__link {
  background-color: var(--accent);
  color: #fff;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 3px;
  padding: 0.7em 1.4em;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background-color: var(--accent-2);
  transform: translateY(-1px);
}

/* ---- 6. Footer --------------------------------------------------------- */
.site-footer {
  background-color: var(--ink);
  color: var(--paper);
}
.site-footer a { color: var(--gold); }
.site-info { font-size: 0.92rem; }

/* ---- 7. Small flourishes ---------------------------------------------- */
/* A thin gold rule you can use to separate sections */
.lealos-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  border: none;
  margin: var(--space-md) 0;
}

/* Selection color */
::selection {
  background: var(--accent);
  color: #fff;
}

/* =========================================================================
   STAGE 2 — HOMEPAGE & ABOUT
   ========================================================================= */

/* ---- Homepage hero ----------------------------------------------------- */
.lealos-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.lealos-hero .kicker {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}
.lealos-hero h1 {
  margin: 0 auto var(--space-sm);
  max-width: 18ch;
}
.lealos-hero .lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 32rem;
  margin: 0 auto var(--space-md);
}
.lealos-hero .hero-actions a {
  display: inline-block;
  margin: 0 0.4rem 0.6rem;
}

/* ---- Generic section spacing on homepage ------------------------------- */
.lealos-section {
  padding: var(--space-lg) 0;
}
.lealos-section h2 {
  margin-top: 0;
  text-align: center;
}
.lealos-section .section-intro {
  text-align: center;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 auto var(--space-md);
}

/* ---- Featured book block ----------------------------------------------- */
.lealos-book {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  max-width: 50rem;
  margin: 0 auto;
  padding: var(--space-md);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.lealos-book img {
  width: 200px;
  height: auto;
  flex-shrink: 0;
  border-radius: 3px;
  box-shadow: 0 8px 24px rgba(43, 38, 34, 0.18);
}
.lealos-book .book-body { flex: 1; }
.lealos-book h3 { margin-top: 0; }
.lealos-book .buy-row { margin-top: var(--space-sm); }
.lealos-book .buy-row a {
  display: inline-block;
  margin: 0 0.4rem 0.5rem 0;
}

/* Stack the book block on narrow screens */
@media (max-width: 600px) {
  .lealos-book {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .lealos-book img { width: 170px; }
}

/* ---- About page layout ------------------------------------------------- */
.lealos-about {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}
.lealos-about .about-photo {
  flex-shrink: 0;
  width: 260px;
}
.lealos-about .about-photo img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(43, 38, 34, 0.15);
}
.lealos-about .about-text {
  flex: 1;
  max-width: var(--measure);
}
.lealos-about .about-text h1 { margin-top: 0; }

@media (max-width: 700px) {
  .lealos-about { flex-direction: column; }
  .lealos-about .about-photo { width: 200px; margin: 0 auto; }
}

/* ---- Credentials list (About) ------------------------------------------ */
.lealos-creds {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
  border-top: 1px solid var(--line);
}
.lealos-creds li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.8rem;
}
.lealos-creds li strong {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--accent);
  min-width: 7rem;
  flex-shrink: 0;
}

/* =========================================================================
   STAGE 4 — REVIEWS & INTERVIEWS
   ========================================================================= */

/* ---- Post list (Reviews / Interviews / Blog archives) ------------------ */
.lealos-archive-intro {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto var(--space-lg);
  color: var(--ink-soft);
}

/* GeneratePress post entries on archive pages */
.blog .site-main article,
.archive .site-main article,
.category .site-main article {
  border-bottom: 1px solid var(--line);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}
.entry-title a {
  text-decoration: none;
  color: var(--ink);
}
.entry-title a:hover { color: var(--accent); }

.entry-meta {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-family: 'Fraunces', Georgia, serif;
}

/* "Read full review" / continue links */
.read-more-container a,
.more-link {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
}

/* ---- Selected Published Work (linked list of outside articles) --------- */
.lealos-published {
  max-width: var(--measure);
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-md);
  border-top: 2px solid var(--line);
}
.lealos-published h2 { margin-top: 0; }
.lealos-published .pubwork-note {
  color: var(--ink-soft);
  margin-bottom: var(--space-md);
}
.lealos-published ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lealos-published li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line);
}
.lealos-published li .outlet {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.2rem;
}
.lealos-published li a {
  font-size: 1.05rem;
  text-decoration: none;
}
.lealos-published li a:hover { text-decoration: underline; }

/* ---- Alphabetical index lists (Option A) ------------------------------- */
.lealos-az {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
  columns: 2;
  column-gap: var(--space-lg);
  max-width: 50rem;
}
.lealos-az li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  break-inside: avoid;
}
.lealos-az li a {
  text-decoration: none;
}
.lealos-az li a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .lealos-az { columns: 1; }
}