/* ============================================================
   2026 Clean, Readable Design System
   Single unified stylesheet for all GWOE Star Arts pages
   Warm, minimal, typography-first
   ============================================================ */

:root {
  --book-ink: #1b1916;
  --book-accent: #8b4a2f;
  --book-accent-strong: #a35b34;
  --book-paper: #fffaf2;
  --book-cloth: #f3ede4;
  --book-rule: #e4dccf;
  --book-shadow: 0 22px 55px rgba(28, 20, 12, 0.16);
  --book-serif: "Literata", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --book-sans: "Literata", "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

/* --- Reset / Base --- */
*, *::before, *::after { box-sizing: border-box; }

body:not(.tailwind-home) {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: clamp(16px, 1.2vw + 4px, 19px);
  line-height: 1.7;
  color: #1a1a1a;
  background: #fcfaf5;
  margin: 0;
  padding: 0;
  max-width: 100%;
  min-height: 100vh;
}

body:not(.tailwind-home) > *:not(.gwo-beta-banner):not(.gwo-footer):not(.gwo-footer-wrapper) {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

body.book-page {
  font-family: var(--book-serif) !important;
  font-optical-sizing: auto;
  font-size: clamp(16px, 0.55vw + 13px, 19px) !important;
  line-height: 1.65 !important;
  color: var(--book-ink) !important;
  background: var(--book-cloth) !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
}

body.book-page,
body.book-page p,
body.book-page div,
body.book-page span,
body.book-page table,
body.book-page td,
body.book-page th,
body.book-page li {
  font-family: var(--book-serif) !important;
  text-align: left;
}

body.book-page > *:not(.gwo-beta-banner):not(.gwo-footer):not(.gwo-footer-wrapper) {
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ── Star Art page layout wrapper ─────────────────────────────────────────
   All pages with body_class: book-page get a centered readable column.
   Content is constrained to ~760px, centered on screen.
────────────────────────────────────────────────────────────────────────── */
body.book-page > div:not(.gwo-beta-banner):not(.gwo-footer):not(.gwo-footer-wrapper):not(.gwo-book),
body.book-page > p:not(.gwo-beta-banner),
body.book-page > blockquote,
body.book-page > section {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 4vw, 2.5rem);
  padding-right: clamp(1rem, 4vw, 2.5rem);
}

/* ── Center Star Art poetry: any direct div or p containing <br> tags ─── */
body.book-page div:has(> br),
body.book-page p:has(> br),
body.book-page div:has(> p > br) {
  text-align: center !important;
}

/* ── Centered prose helpers ─────────────────────────────────────────────── */
body.book-page .copyright,
body.book-page .last-updated,
body.book-page .last_updated,
body.book-page .credit,
body.book-page .credits,
body.book-page .rights {
  text-align: center !important;
  font-size: 0.95em;
  color: #5a544a;
}

body.book-page .gwo-book {
  width: min(780px, calc(100% - 2rem));
  margin: clamp(1.25rem, 2.2vw, 2.25rem) auto 2.25rem;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  background: var(--book-paper);
  border: 1px solid var(--book-rule);
  border-radius: 18px;
  box-shadow: var(--book-shadow);
  text-align: left;
}

body.book-page .gwo-book .copyright,
body.book-page .gwo-book .last-updated,
body.book-page .gwo-book .last_updated,
body.book-page .gwo-book .credit,
body.book-page .gwo-book .credits,
body.book-page .gwo-book .rights {
  text-align: center !important;
  font-size: 0.95em;
  color: #5a544a;
}

body.book-page .gwo-book div:has(> br),
body.book-page .gwo-book p:has(> br),
body.book-page .gwo-book div:has(> p > br) {
  text-align: center !important;
}

body.book-page .gwo-book h1,
body.book-page .gwo-book h2,
body.book-page .gwo-book h3,
body.book-page .gwo-book h4 {
  font-family: var(--book-serif);
  text-align: left;
  letter-spacing: 0.01em;
  color: var(--book-ink);
}

body.book-page .gwo-book h1 {
  font-size: clamp(1.9rem, 1.2vw + 1.5rem, 2.5rem);
  margin: 0 0 0.75rem;
}

body.book-page .gwo-book h2 {
  font-size: clamp(1.3rem, 0.7vw + 1.1rem, 1.7rem);
  margin: 1.6rem 0 0.7rem;
}

body.book-page .gwo-book p {
  margin: 0 0 0.9em;
}

body.book-page .gwo-book a {
  color: var(--book-accent);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 0.09em;
}

body.book-page .gwo-book a:hover {
  color: var(--book-accent-strong);
}

body.book-page .gwo-book blockquote {
  margin: 1.1em 0;
  padding: 0.3em 0 0.3em 1.2em;
  border-left: 3px solid var(--book-rule);
  color: #2a2621;
  font-style: italic;
  background: rgba(255, 250, 242, 0.6);
}

body.book-page .gwo-book ul,
body.book-page .gwo-book ol {
  padding-left: 1.4em;
  margin: 0 0 0.9em;
}

body.book-page .gwo-book p:has(> br),
body.book-page .gwo-book div:has(> br) {
  text-align: center !important;
}

body.book-page .gwo-book hr {
  border: 0;
  border-top: 1px solid var(--book-rule);
  margin: 1.4em 0;
}

body.book-page .gwo-book img {
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(33, 24, 15, 0.12);
}

body.book-page .gwo-book .caption,
body.book-page .gwo-book .last-updated {
  font-family: var(--book-sans);
}

body:not(.tailwind-home) br {
  content: "";
  display: block;
}

/* --- Typography --- */
body:not(.tailwind-home) h1,
body:not(.tailwind-home) h2,
body:not(.tailwind-home) h3,
body:not(.tailwind-home) h4 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: #1a1a1a;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
  text-align: center;
}
body:not(.tailwind-home) h1 { font-size: 1.6rem; }
body:not(.tailwind-home) h2 { font-size: 1.3rem; }
body:not(.tailwind-home) h3 { font-size: 1.15rem; }

body:not(.tailwind-home) p {
  margin: 0 0 1.25em;
  line-height: 1.7;
}

body:not(.tailwind-home) a {
  color: #8b3a5a;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 0.08em;
  transition: color 0.2s;
}
body:not(.tailwind-home) a:hover {
  color: #b84a6a;
}

body:not(.tailwind-home) blockquote {
  margin: 1.5em auto;
  padding: 0.5em 0 0.5em 1.25em;
  border-left: 3px solid #d4a0b0;
  color: #333;
  font-style: italic;
  line-height: 1.7;
}

body:not(.tailwind-home) img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
  border-radius: 8px;
}

body:not(.tailwind-home) ul,
body:not(.tailwind-home) ol {
  padding-left: 1.5em;
  line-height: 1.7;
}

body:not(.tailwind-home) table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
}
body:not(.tailwind-home) td,
body:not(.tailwind-home) th {
  padding: 0.5em;
  border: 1px solid #ddd;
  text-align: left;
}

/* --- Shared Layout Classes --- */
.centered {
  text-align: center;
  margin: 2em auto;
  max-width: 100%;
}

.left {
  text-align: left;
  margin: 1.5em auto;
}

/* Star Art typography */
.stararts {
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
  margin: 2.5em auto;
  line-height: 2;
  max-width: 100%;
}

span.names {
  font-size: 1.8rem;
  font-weight: 700;
  font-family: Georgia, serif;
  letter-spacing: 0.08em;
  display: block;
  margin: 1.5em 0 0.25em;
}

span.letters {
  font-size: 0.85rem;
  color: #777;
  display: block;
  margin: 0.25em 0;
}

span.sequences {
  font-size: 1.35rem;
  font-family: Georgia, serif;
  letter-spacing: 0.15em;
  display: block;
  margin: 0.25em 0;
}

span.revealings {
  font-size: 0.85rem;
  color: #777;
  display: block;
  margin: 0.25em 0 1.5em;
}

/* Copyright block */
.copyright {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  margin: 2.5em auto;
  line-height: 1.7;
}

/* Heartlings link */
.heartlings {
  text-align: center;
  font-size: 1.2rem;
  margin: 1.5em 0;
}
.heartlings a {
  color: #8b3a5a;
  font-weight: 600;
}

/* Updated block */
.last-updated,
.last-updated {
  text-align: center;
  font-size: 0.8rem;
  color: #999;
  margin: 2em auto;
  line-height: 1.5;
}

/* Blessings block */
.blessings {
  text-align: center;
  font-style: italic;
  font-size: 0.95rem;
  color: #555;
  margin: 2em auto;
  line-height: 1.6;
}

.signature {
  font-weight: 600;
  color: #555;
}

/* Legacy style classes */
.style2, .style3, .style4 {
  font-weight: 600;
}

.style12 {
  color: #4a8;
  font-weight: 700;
}

.style10 {
  text-align: center;
  margin: 1.5em auto;
}

/* --- Page-specific wrapper classes --- */
/* Alcoholism */
.alcoholism-breaking-chains { margin: 2em auto; }
.alcoholism-intro-card,
.alcoholism-chaos-card,
.alcoholism-question-card,
.alcoholism-image-card,
.alcoholism-transition-card,
.alcoholism-healing-card {
  text-align: center;
  margin: 2em auto;
  line-height: 2;
  font-family: Georgia, serif;
}
.alcoholism-question-card p { margin: 0.6em 0; }
.alcoholism-healing-card p { margin: 0.6em 0; }
#ahchoo { max-width: 200px; }

/* Allowings */
.allowings-solar-wings { margin: 2em auto; }
.allowings-image-card,
.allowings-heartlings-card,
.allowings-intro-card,
.allowings-lexigram-card,
.allowings-copyright-card,
.allowings-links-card,
.allowings-blessings-card {
  text-align: center;
  margin: 2em auto;
  line-height: 2;
  font-family: Georgia, serif;
}
.allowings-heartlings-card a {
  font-size: 1.3rem;
  font-weight: 700;
  color: #8b3a5a;
}
.allowings-blessings-card .signature {
  font-weight: 600;
  color: #555;
}
.allowings-blessings-card .organization {
  font-style: italic;
}

/* Alexisspatterson */
.alexis-gentle-archive { margin: 2em auto; }
.alexis-archive-card,
.alexis-info-card {
  text-align: center;
  margin: 2em auto;
  padding: 1.5em;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
}

/* Alphabet */
.alphabet-sacred-letters { margin: 2em auto; }
.alphabet-quote-card {
  text-align: center;
  margin: 2em auto;
  line-height: 1.8;
}

/* Americans Hearts */
.americans-hearts-unity { margin: 2em auto; }
.americans-hearts-archive-card {
  text-align: center;
  margin: 2em auto;
  padding: 1.5em;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
}

/* --- Amerians Voicings page wrapper --- */
.americans-voicings-page {
  max-width: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Albert Einstein --- */
/* No specific wrapper, uses default */

/* --- Responsive --- */
@media (max-width: 640px) {
  body:not(.tailwind-home) > *:not(.gwo-beta-banner):not(.gwo-footer):not(.gwo-footer-wrapper) {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  span.names { font-size: 1.4rem; }
  span.sequences { font-size: 1.1rem; }
}
