:root {
  --wrap: 1000px;
  --accent: #0b66c3;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --card: #f9f9fb;
  --radius: 8px;
}

/* Global reset / base */
* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  margin: 0;
  color: #222;
  background: var(--bg);
  line-height: 1.55;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px;
}

/* Header / nav */
.site-header {
  background: #f2f4f7;
  border-bottom: 1px solid #e2e6eb;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
}

.brand h1 {
  font-size: 1.1rem;
  margin: 0;
}

.brand a {
  text-decoration: none;
  color: inherit;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  align-items: center;
}

.site-nav a {
  color: #1c1c1c;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-nav .has-sub {
  position: relative;
}

.sub-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: white;
  padding: 8px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}

.has-sub .sub-menu a {
  display: block;
  padding: 6px 10px;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid transparent;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 1rem;
}

/* Hero / buttons / poem */
.hero {
  padding: 28px 0;
}

.lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 8px;
}

.cta-row {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}

.btn.outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  padding: 8px 12px;
  font-weight: 700;
}

.poem {
  margin-top: 22px;
  background: var(--card);
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid #eee;
}

.poem blockquote {
  margin: 0;
  font-style: italic;
}

/* Chapter list cards */
.chapter-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}

.chapter-list li {
  background: #fff;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #eee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Footer */
.site-footer {
  margin-top: -25px;
  padding: 18px 0;
  border-top: 1px solid #eee;
  color: var(--muted);
  font-size: 0.95rem;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

/* Responsive nav / layout */
@media (max-width: 880px) {
  .header-inner {
    flex-direction: row;
    gap: 12px;
  }

  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .wrap {
    padding: 12px;
  }
}

/* === COMIC STRIP: ABSOLUTE-POSITION LAYOUT === */


/* The comic-strip is a "canvas" for the four panels */
.comic-strip {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin-top: 2rem;
  margin-bottom: -3rem;   /* ← adjust this until it looks perfect */
  aspect-ratio: 5/ 1;     /* keeps a wide strip shape as it scales */
  overflow: visible;       /* let images extend if needed */
}

/* Each panel is an absolutely positioned box inside the strip */
.panel {
  position: absolute;
  overflow: visible;
}

/* Base rule: image fills its panel box */
.panel img {
  display: block;
  width: 100%;
  height: auto;
}

/* Initial relative positions for the four panels (tweak as needed) */
.panel-a {
  left: 0%;
  top: -6%;
  width: 33%;
  z-index: 3;  
}

.panel-b {
  left: 32%;
  top: -25%;
  width: 40%;
  transform: translateX(-2%);
  z-index: 4;  
}

.panel-c {
  left: 67%;
  top: 1%;
  width: 28%;
  z-index: 1;  
}

.panel-d {
  clip-path: inset(0 0 0 10%);
  left: 88%;
  top: 1%;
  width: 27%;
  z-index: 2;  
}

/* === Poem + Photo Layout on Home Page === */
.poem-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  margin-top: 22px;
}

.poem-row .poem {
  flex: 2 1 0;
}

.poem-row .poem-photo {
  flex: 1 1 0;
}

.poem-row .poem-photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

/* Mobile layout: stack poem above image */
@media (max-width: 700px) {
  .poem-row {
    flex-direction: column;
  }

  .poem-row .poem-photo img {
    max-width: 100%;
  }
}




/* === ABOUT PAGE: vertical links + comic beside them === */

.about-page .about-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

/* Left column: title + vertical nav */
.about-page .header-left {
  flex: 1 1 auto;
}

/* Make nav links stack vertically under the title */
.about-page .header-left .site-nav ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

/* Optional: slightly smaller header links on About page */
.about-page .header-left .site-nav a {
  font-size: 0.9rem;
}

/* Right column: comic strip */
.about-page .header-comic {
  flex: 0 0 auto;
}

/* Resize the comic image to fit header height */
.about-page .header-comic img {
  max-height: 150px;   /* adjust: 80–120px as you like */
  width: auto;
  display: block;
}

.chapters-page .button-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


