/* The Flourishing Library (/library/) */
.library-page { --earth: #5E7A3A; --ink: #111; --paper: #fbf8f2; overflow-x: hidden; }
.library-main { position: relative; z-index: 1; }
.library-main p, .library-main li { font-size: 1.08rem; line-height: 1.6; }
.library-h1 {
  font-family: var(--font-display), "Source Serif 4", "Source Serif", serif;
  font-size: clamp(2.3rem, 7vw, 4.4rem);
  line-height: 1.02;
  margin: 0.4rem 0 0;
  overflow-wrap: anywhere;
}
.library-lede {
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  max-width: 44rem;
  border-top: 2px solid var(--ink, #111);
  padding-top: 1rem;
  margin-top: 1rem;
  position: relative;
}
.library-intro { margin-top: 1.6rem; max-width: 44rem; }
.library-intro p + p { margin-top: 0.9rem; }
.library-margin-line {
  font-style: italic;
  font-size: 1.15rem !important;
  margin-top: 1.2rem !important;
}
.library-section { margin-top: 3rem; max-width: 62rem; }
.library-h2 {
  font-family: var(--font-display), "Source Serif 4", "Source Serif", serif;
  font-size: clamp(1.7rem, 4.6vw, 3rem);
  line-height: 1.08;
  margin: 0.3rem 0 1rem;
}
.library-layout { padding-left: 1.1rem; margin: 0 0 0; }
.library-layout li { margin: 0.35rem 0; }
.library-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.library-card {
  border: 2px solid var(--ink, #111);
  border-radius: 1rem;
  padding: 1.15rem 1.25rem 1.2rem;
  background: var(--paper, #fbf8f2);
}
.library-card-kicker {
  font-family: var(--font-grotesk), "Archivo", sans-serif;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-foreground, #4a463f);
  margin: 0 0 0.35rem;
}
.library-card h3 {
  font-family: var(--font-display), "Source Serif 4", "Source Serif", serif;
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  line-height: 1.15;
  margin: 0 0 0.35rem;
}
.library-book { margin: 0 0 0.7rem; font-size: 1.02rem !important; }
.library-takeaway { margin: 0; }
.library-takeaway strong {
  font-family: var(--font-grotesk), "Archivo", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.25rem;
}
.library-links {
  list-style: none;
  margin: 0.9rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}
.library-links a,
.library-next a,
.library-breathe-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink, #111);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}
.library-next { list-style: none; margin: 0; padding: 0; }
.library-next li { margin: 0.2rem 0; }
.library-next-note { font-style: italic; margin-top: 1rem !important; max-width: 40rem; }

/* Stop for a second and breathe — earth, same language as Kaizen Flow */
.library-breathe {
  margin: 3rem 0 0;
  padding: 1.2rem 1.3rem;
  border: 2px dashed currentColor;
  border-radius: 1rem;
  background: color-mix(in srgb, currentColor 5%, var(--paper, #fbf8f2));
  position: relative;
  color: var(--earth);
  max-width: 42rem;
  --el: url("/images/el-earth.svg");
}
.library-breathe > * { color: var(--ink, #111); }
.library-breathe::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  background: currentColor;
  -webkit-mask: var(--el) center / contain no-repeat;
  mask: var(--el) center / contain no-repeat;
  opacity: 0.8;
}
.library-breathe-title {
  font-family: var(--font-display), "Source Serif 4", "Source Serif", serif;
  font-size: 1.35rem !important;
  margin: 0 3rem 0.4rem 0;
}

/* Hidden eye in the margin where the hero rule meets the first intro line. */
.library-eye {
  position: absolute;
  left: -1.15rem;
  top: -0.55rem;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent url("/images/marks/mark-01-plain.svg") center / contain no-repeat;
  opacity: 0.2;
  cursor: default;
}
.library-eye:hover,
.library-eye:focus-visible { opacity: 0.7; }
@media (max-width: 639px) {
  .library-eye { left: -0.15rem; top: -0.7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .library-eye, .find-us-eye { transition: none; }
}

.library-watch { margin-top: 1.4rem; }
.library-watch-link,
.library-watch-next a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-grotesk), "Archivo", sans-serif;
  font-weight: 800;
  color: var(--ink, #111);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.library-watch-link {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.library-watch-next { margin-top: 1rem; }

.library-banner-strip {
  margin: 0 0 1.5rem;
  max-width: 56rem;
}
.library-banner-strip img {
  display: block;
  width: 100%;
  height: auto;
}

.library-rereading { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; align-items: center; }
