/* ============================================
   The Unwavering Quill — radhikanair.me
   Design system
   ============================================ */

:root {
  /* Color tokens — sampled directly from the live radhikanair.me screenshots */
  --cream: #E9F1F0;         /* header/footer sage-mint band */
  --charcoal: #142E36;      /* heading/body dark navy text */
  --pink: #ED6C67;          /* coral accent (testimonial links, quote marks) */
  --pink-soft: #FBE1DF;
  --amber: #ED6C67;         /* site has no amber — reuse coral for badges */
  --amber-soft: #FBE1DF;
  --teal: #5198AA;          /* button teal (Subscribe Now, price tags) */
  --teal-soft: #8EBCC6;     /* "What Readers Say" band background */
  --navy-card: #264B6F;     /* overlay cards (testimonials, podcast items, about box) */
  --navy-btn: #383B4C;      /* dark buttons (Send Message, Learn More) */
  --white: #FFFFFF;

  /* Type — Roboto Slab for headings (matches the real site's slab-serif), Nunito for body */
  --font-display: "Roboto Slab", serif;
  --font-body: "Nunito", sans-serif;

  /* Layout */
  --max-width: 1120px;
  --radius: 18px;
  --radius-sm: 10px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--charcoal);
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover { color: var(--pink); }

img { max-width: 100%; display: block; }

.badge-pill {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 0.9em;
}

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

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   Crayon-tip list marker (signature element, small scale)
   ============================================ */
ul.crayon-list {
  list-style: none;
  margin: 0 0 1.2em;
  padding: 0;
}

ul.crayon-list li {
  position: relative;
  padding-left: 1.9em;
  margin-bottom: 0.55em;
}

ul.crayon-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.1em;
  height: 1.1em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 20 L15 9 L18 12 L7 23 Z' fill='%23EE6F8E'/%3E%3Cpath d='M15 9 L18 6 L21 9 L18 12 Z' fill='%23223A5E'/%3E%3Cpath d='M4 20 L6 22 L4 23 Z' fill='%23223A5E' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ============================================
   Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid rgba(20, 46, 54, 0.15);
}

.header-title-row {
  text-align: center;
  padding: 34px 24px 26px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.1rem;
  color: var(--charcoal);
  white-space: nowrap;
}

.wordmark span { color: var(--charcoal); }

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(20, 46, 54, 0.15);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 34px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.nav-links a {
  display: inline-block;
  padding: 4px 2px;
  color: var(--charcoal);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--pink);
}

.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav-wrap { padding: 10px 16px; }
  .nav-links { justify-content: flex-start; gap: 6px 14px; }
  .nav-links a { font-size: 0.85rem; }
  .wordmark { font-size: 1.5rem; }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 2px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--navy-btn);
  color: var(--white);
}
.btn-primary:hover {
  background: #4a4e63;
  color: var(--white);
  box-shadow: 0 8px 18px rgba(56, 59, 76, 0.35);
}

.btn-outline {
  background: transparent;
  border-color: var(--charcoal);
  color: var(--charcoal);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-radius: 999px;
}
.btn-teal:hover {
  background: #3f7c8b;
  color: var(--white);
  box-shadow: 0 8px 18px rgba(81, 152, 170, 0.35);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.6em;
}

/* ============================================
   Squiggle divider (signature element)
   ============================================ */
.squiggle-divider {
  width: 100%;
  max-width: 260px;
  height: 20px;
  margin: 0 auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 20'%3E%3Cpath d='M2 12 C 20 2, 34 20, 52 10 S 82 0, 98 12 S 128 20, 146 8 S 176 0, 194 12 S 224 20, 258 6' stroke='%23EE6F8E' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.squiggle-divider.amber {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 20'%3E%3Cpath d='M2 12 C 20 2, 34 20, 52 10 S 82 0, 98 12 S 128 20, 146 8 S 176 0, 194 12 S 224 20, 258 6' stroke='%23F2B84B' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.squiggle-divider.teal {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 20'%3E%3Cpath d='M2 12 C 20 2, 34 20, 52 10 S 82 0, 98 12 S 128 20, 146 8 S 176 0, 194 12 S 224 20, 258 6' stroke='%235FBCC4' stroke-width='4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-heading .squiggle-divider {
  margin-top: 14px;
}

.heading-loud {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--charcoal);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: 64px 0 72px;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero .container {
    grid-template-columns: 1fr;
  }
  .hero-art { order: -1; }
}

.hero h1 { margin-bottom: 0.45em; }

.hero-lede {
  font-size: 1.12rem;
  color: #3A4E63;
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.book-cover-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
}

.book-cover-frame .squiggle-bg {
  position: absolute;
  inset: -18px -22px auto auto;
  width: 140px;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 60'%3E%3Cpath d='M4 30 C 20 5, 40 55, 60 28 S 100 2, 136 32' stroke='%23F2B84B' stroke-width='7' fill='none' stroke-linecap='round' opacity='0.85'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  z-index: 0;
}

.book-cover-placeholder,
.book-cover-frame img {
  position: relative;
  z-index: 1;
  transform: rotate(-3deg);
  border-radius: var(--radius-sm);
  box-shadow: 0 22px 40px rgba(58, 46, 42, 0.22);
}

.book-cover-placeholder {
  aspect-ratio: 3 / 4;
  width: 100%;
  background: linear-gradient(155deg, var(--pink-soft), var(--amber-soft));
  border: 2px dashed rgba(58, 46, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: #41576e;
}

/* ============================================
   Cards
   ============================================ */
.card-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 860px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 26px rgba(58, 46, 42, 0.08);
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testimonial-card {
  position: relative;
  background: var(--navy-card);
  color: var(--white);
  padding: 32px 24px;
  min-height: 320px;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: none;
}

.testimonial-thumb {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
}

.testimonial-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-quote {
  position: relative;
  z-index: 1;
  font-style: italic;
  color: var(--white);
  flex-grow: 1;
}

.testimonial-source {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.testimonial-source a,
.testimonial-source {
  color: var(--pink);
}

.testimonial-quote::after {
  content: "\201D";
  position: relative;
  z-index: 1;
  display: block;
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--pink);
  margin-top: 10px;
}

/* ============================================
   Product card
   ============================================ */
.product-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 10px 30px rgba(58, 46, 42, 0.08);
}

@media (max-width: 760px) {
  .product-card { grid-template-columns: 1fr; }
}

.simple-product {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.simple-product-img {
  width: 100%;
  max-width: 620px;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(20, 46, 54, 0.15);
}

.simple-product-title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-top: 20px;
  margin-bottom: 4px;
}

.price-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--teal);
  font-size: 1.15rem;
  margin: 0.4em 0 1em;
}

.price-tag .was {
  color: #8996a5;
  text-decoration: line-through;
  font-weight: 500;
  font-size: 0.95rem;
  margin-right: 8px;
}

/* ============================================
   Banded sections
   ============================================ */
.band {
  padding: 60px 0;
}

.band.cream { background: var(--cream); }
.band.pink-soft { background: var(--pink-soft); }
.band.amber-soft { background: var(--amber-soft); }
.band.teal-soft { background: var(--teal-soft); }
.band.white { background: var(--white); }

/* ============================================
   Mailing list / forms
   ============================================ */
.mailing-list-box {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
}

input[type="text"],
input[type="email"],
textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border-radius: 999px;
  border: 2px solid rgba(58, 46, 42, 0.18);
  background: var(--white);
  color: var(--charcoal);
  flex: 1 1 220px;
}

textarea {
  border-radius: var(--radius-sm);
  min-height: 140px;
  resize: vertical;
  width: 100%;
}

.form-note {
  font-size: 0.85rem;
  color: #6b7c8f;
  margin-top: 10px;
}

.full-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}

.full-form label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 16px 0 6px;
}

.full-form label .req { color: var(--pink); }

.full-form input[type="text"],
.full-form input[type="email"],
.full-form textarea {
  width: 100%;
  border-radius: var(--radius-sm);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
  font-size: 0.95rem;
}

.form-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .form-two-col { grid-template-columns: 1fr; }
}

.plain-form input[type="text"],
.plain-form input[type="email"],
.plain-form textarea {
  border-radius: 2px;
  border: 1.5px solid var(--charcoal);
  padding: 12px 14px;
  font-family: var(--font-body);
}

.plain-form textarea {
  margin-top: 16px;
  min-height: 140px;
}

.checkbox-row input { width: 18px; height: 18px; accent-color: var(--pink); }

/* ============================================
   Content pages (About, generic prose)
   ============================================ */
.prose-page {
  padding: 70px 0;
}

.prose-page .container {
  max-width: 760px;
}

.about-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: start;
  max-width: 900px;
}

@media (max-width: 760px) {
  .about-layout { grid-template-columns: 1fr; }
}

.about-framed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 780px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .about-framed { grid-template-columns: 1fr; }
}

.about-bio-navy {
  background: var(--navy-card);
  color: var(--white);
  padding: 40px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-size: 0.98rem;
}

.about-bio-navy p { margin-bottom: 1.1em; }
.about-bio-navy p:last-child { margin-bottom: 0; }

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 340px;
}

.author-photo-placeholder {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(155deg, var(--teal-soft), var(--pink-soft));
  border: 2px dashed rgba(58, 46, 42, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: #41576e;
}

/* ============================================
   Podcast / interview cards (overlapping style)
   ============================================ */
.media-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}

.media-overlap-card,
.media-plain {
  position: relative;
  display: block;
  text-decoration: none;
}

.media-overlap-card img,
.media-plain img {
  display: block;
  width: 320px;
  max-width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.media-overlap-text {
  position: absolute;
  left: -60px;
  top: 20px;
  width: 220px;
  background: var(--navy-card);
  color: var(--white);
  padding: 22px 20px;
}

.media-overlap-text.bottom {
  left: auto;
  right: 0;
  top: auto;
  bottom: 0;
  width: 100%;
  box-sizing: border-box;
  background: rgba(38, 75, 111, 0.85);
}

.media-overlap-text h3 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.6em;
}

.media-cta {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
}

@media (max-width: 640px) {
  .media-overlap-text { position: static; width: 100%; margin-top: 10px; }
}

/* ============================================
   List items (legacy, kept for activity sheets)
   ============================================ */
.media-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 26px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 22px rgba(58, 46, 42, 0.07);
  margin-bottom: 22px;
}

@media (max-width: 640px) {
  .media-item { grid-template-columns: 1fr; }
}

.media-thumb-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: #a5822a;
  overflow: hidden;
}

.media-thumb-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 16px 34px rgba(58, 46, 42, 0.2);
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--cream);
  color: var(--charcoal);
  padding: 56px 0 40px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(20, 46, 54, 0.2);
}

.footer-mailing {
  text-align: center;
}

.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--charcoal);
  margin-bottom: 14px;
}

.footer-mailing .form-row {
  justify-content: center;
}

.footer-mailing input[type="email"] {
  border: none;
  border-bottom: 1.5px solid var(--teal);
  border-radius: 0;
  background: transparent;
  padding: 8px 4px;
  min-width: 260px;
}

.footer-mailing input[type="email"]::placeholder {
  color: rgba(20, 46, 54, 0.55);
}

.footer-social {
  display: flex;
  gap: 22px;
  justify-content: center;
}

.footer-social a {
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: underline;
}

.footer-social a:hover {
  color: var(--pink);
}

.footer-bottom {
  padding-top: 4px;
}
.footer-bottom nav a:hover { color: var(--pink); }
