/* THE WONDER-WORKING SISTERS OF KOZHIKODE
   Warm, literary, self-contained styling. No CDN, no external fonts. */

:root {
  --paper: #fbf3e6;        /* warm sun-bleached paper */
  --paper-deep: #f4e7d0;
  --ink: #2a2018;          /* dark coconut-husk brown */
  --ink-soft: #5a4a38;
  --accent: #b5562a;       /* terracotta / brick-dust */
  --accent-deep: #8a3d1c;
  --gold: #c8923a;         /* turmeric / brass */
  --rule: #d8c4a0;
  --shadow: rgba(70, 45, 20, 0.16);
  --maxread: 38rem;        /* comfortable reading measure */
}

* { box-sizing: border-box; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(200, 146, 58, 0.10), transparent 42%),
    radial-gradient(circle at 86% 78%, rgba(181, 86, 42, 0.08), transparent 46%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ---------- shared layout ---------- */

.wrap {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.reading {
  max-width: var(--maxread);
  margin: 0 auto;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
  border-bottom: 1px solid rgba(138, 61, 28, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- hero ---------- */

.hero {
  text-align: center;
  padding: 5rem 1.5rem 3.5rem;
  border-bottom: 1px solid var(--rule);
}

.hero .kicker {
  font-family: Georgia, serif;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  line-height: 1.08;
  margin: 0 auto 0.6rem;
  max-width: 18ch;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.hero .anovel {
  font-style: italic;
  color: var(--accent-deep);
  font-size: 1.15rem;
  margin: 0.25rem 0 1.75rem;
}

.logline {
  max-width: 34rem;
  margin: 0 auto;
  font-size: 1.18rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.ornament {
  width: 100%;
  max-width: 9rem;
  margin: 2rem auto 0;
  text-align: center;
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 0.5rem;
}

/* ---------- sections ---------- */

section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--rule);
}
section:last-of-type { border-bottom: none; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--accent-deep);
  font-family: Georgia, serif;
  text-align: center;
  margin: 0 0 1.5rem;
}

h2.section-title {
  font-size: 1.7rem;
  text-align: center;
  margin: 0 0 1.75rem;
  font-weight: 700;
}

p { margin: 0 0 1.15rem; }

.blurb p { font-size: 1.08rem; }
.blurb .lead {
  font-size: 1.22rem;
  color: var(--ink);
}
.blurb em { color: var(--accent-deep); font-style: italic; }

/* epigraph */
.epigraph {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* comps */
.comps {
  background: var(--paper-deep);
}
.comps .reading { text-align: center; }
.comp-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 0;
  max-width: 30rem;
}
.comp-list li {
  padding: 0.7rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 1.05rem;
}
.comp-list li:last-child { border-bottom: none; }
.comp-list .title { font-style: italic; color: var(--ink); font-weight: 600; }
.comp-list .author { color: var(--ink-soft); }

/* about */
.about p { font-size: 1.06rem; }

/* call to action */
.cta {
  text-align: center;
}
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.85rem 2.2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-bottom: none;
  border-radius: 2px;
  font-size: 1.05rem;
  font-family: Georgia, serif;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 14px var(--shadow);
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:hover {
  background: var(--accent-deep);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
}
.cta .note {
  margin-top: 1rem;
  font-size: 0.92rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ---------- footer ---------- */

footer {
  text-align: center;
  padding: 2.5rem 1.5rem 3rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
footer .title-mark { font-style: italic; }

/* ---------- reading page (manuscript.html) ---------- */

.read-header {
  text-align: center;
  padding: 3rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.read-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin: 0 0 0.4rem;
}
.read-header .anovel {
  font-style: italic;
  color: var(--accent-deep);
}
.read-header .back {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.sample-note {
  max-width: var(--maxread);
  margin: 2rem auto 0;
  padding: 1rem 1.25rem;
  background: var(--paper-deep);
  border-left: 3px solid var(--gold);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.manuscript-body {
  padding: 2.5rem 1.5rem 4rem;
}

.chapter { margin: 0 auto 3.5rem; max-width: var(--maxread); }

.sample-chapter-number {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--accent-deep);
  text-align: center;
  margin: 3rem 0 0.4rem;
  font-weight: 700;
}
.sample-chapter-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 0 0 0.3rem;
  font-weight: 700;
}
.sample-pov {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 2rem;
}

.chapter p {
  font-size: 1.08rem;
  text-align: justify;
  hyphens: auto;
}
/* first paragraph after a heading: no indent; subsequent get a drop-style feel */
.chapter p + p { text-indent: 1.4rem; }

.chapter em { font-style: italic; }

hr.scene-break {
  border: none;
  text-align: center;
  margin: 2.25rem auto;
  max-width: 12rem;
}
hr.scene-break::before {
  content: "\2766";        /* floral heart ornament */
  color: var(--gold);
  font-size: 1.3rem;
  letter-spacing: 0.4rem;
}

.read-footer {
  text-align: center;
  padding: 2rem 1.5rem 3.5rem;
  border-top: 1px solid var(--rule);
}

/* ---------- responsive ---------- */

@media (max-width: 600px) {
  html { font-size: 17px; }
  .hero { padding: 3.5rem 1.25rem 2.5rem; }
  .chapter p { text-align: left; }
}
