:root { color-scheme: light dark; }
body { max-width: 760px; margin: 48px auto; padding: 0 18px; font: 18px/1.65 system-ui, -apple-system, "Noto Sans Devanagari", "Noto Serif Devanagari", serif; }
h1,h2,h3 { line-height: 1.2; }
nav a { margin-right: 14px; }
meta, .meta { opacity: 0.75; }
blockquote { border-left: 3px solid currentColor; padding-left: 14px; margin-left: 0; opacity: 0.9; }
a { text-underline-offset: 3px; }
hr { opacity: 0.25; }

.hero {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin: 1rem 0 1.5rem;
}

.hero-text { flex: 1 1 420px; }
.hero-media { flex: 0 0 auto; }

.hero-media img {
  width: 200px;
  max-width: 40vw;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

@media (max-width: 700px) {
  .hero { flex-direction: column; }
  .hero-media img { width: 220px; max-width: 80vw; margin: 0 auto; display: block; }
}


/* Venue lists */
.venue-list { list-style: none; padding-left: 0; margin: 0.75rem 0 1.25rem; }
.venue-item { margin: 0.3rem 0; }

/* Badge for Fiction/Nonfiction etc */
.badge {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border: 1px solid #999;
  border-radius: 999px;
  font-size: 0.85em;
  margin-right: 0.45rem;
  opacity: 0.85;
}

/* Optional: differentiate fiction/nonfiction (adjust to taste) */
.badge--fiction { font-style: italic; }
.badge--nonfiction { font-weight: 600; }

.venue-item__when { opacity: 0.7; margin-left: 0.35rem; font-size: 0.95em; }

/* “Online” link styling */
.venue-item__online { margin-left: 0.6rem; font-size: 0.95em; }
.venue-item__online::before { content: "["; opacity: 0.7; }

.venue-item__badges { margin-left: 0.6rem; white-space: nowrap; }
/* Badge base: inherits theme text color */
.badge {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 0.82em;
  line-height: 1.4;
  opacity: 0.85;
  margin-left: 0.35rem;
  white-space: nowrap;
}

/* Group at end of row */
.venue-item__badges { margin-left: 0.6rem; white-space: nowrap; }

/* Kind badges (Fiction / Non-fiction) */
.badge--kind-fiction { font-style: italic; }
.badge--kind-non-fiction,
.badge--kind-nonfiction { font-weight: 650; }

/* Subtype badges: subtle distinction without color */
.badge--subtype { letter-spacing: 0.01em; }

/* Optional: differentiate subtype vs kind by border style */
.badge--subtype { border-style: dashed; }
.badge--kind { border-style: solid; }

/* Optional: make subtype slightly smaller than kind */
.badge--subtype { font-size: 0.80em; opacity: 0.80; }
.badge--kind { font-size: 0.82em; opacity: 0.88; }

.work-hero {
  margin: 1rem 0 1.5rem;
  text-align: center;
}

.work-hero {
  margin: 1rem 0 0.5rem;
  text-align: center;
}

.work-hero + p {
  font-size: 0.9em;
  opacity: 0.8;
  text-align: center;
  margin-bottom: 1.5rem;
}

.work-hero img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  opacity: 0.95;
}

.work-hero img {
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}

/* Contact section spacing */
#contact, .contact {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0,0,0,0.15);
}

/* Form layout */
.contact-form,
form.contact-form {
  max-width: 42rem;
  margin: 1rem 0 2rem;
  padding-left: 1rem;               /* “margin” feel */
  border-left: 3px solid rgba(0,0,0,0.12);
}

.contact-form label {
  display: block;
  margin: 0.9rem 0 0.25rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0.35rem;
  padding: 0.55rem 0.6rem;
  border: 1px solid rgba(0,0,0,0.25);
  border-radius: 8px;
  background: transparent;          /* theme-friendly */
  color: inherit;                   /* theme-friendly */
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 1rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  opacity: 0.9;
}

.contact-form button:hover {
  opacity: 1;
}

.contact-form,
form.contact-form {
  max-width: 42rem;
  margin: 1rem 0 2rem;
  padding: 0.9rem 0 0.9rem 1rem;
  border-left: 3px solid currentColor;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid currentColor;
  background: rgba(127,127,127,0.08);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.year-item__count { opacity: 0.7; margin-left: 0.25rem; }
.year-item__badges { margin-left: 0.5rem; }
.row-badges { margin-left: 0.5rem; }
.tag-item__count { opacity: 0.7; }

.venue-index__item,
.year-item {
  display: inline-block;
  margin: 0.15rem 0;
}

.venue-index__meta,
.year-item__count,
.tag-item__count {
  opacity: 0.7;
  margin-left: 0.25rem;
}

.venue-index__badges,
.year-item__badges,
.row-badges {
  margin-left: 0.5rem;
  white-space: nowrap;
}

.badge--meta {
  border-style: dotted;
  font-size: 0.78em;
  opacity: 0.75;
}

.buy-links {
  margin-top: 0.6rem;
  font-size: 0.95em;
  opacity: 0.9;
  text-align: center;  /* or left if you prefer */
}
.buy-links a { text-decoration: none; }
.buy-links a:hover { text-decoration: underline; }

.hero-media {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.venue-common-badges {
  margin: 0.5rem 0 0.8rem 0;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  margin: 1rem 0 0.5rem;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 10px;
}

.video-caption {
  font-size: 0.92em;
  opacity: 0.85;
  margin: 0 0 1.5rem;
}

.buy-links { text-align: center; margin-top: 0.6rem; }

.hero-media {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-media img {
  display: block;
  margin: 0 auto;
}

.testimonial-photo {
  display: block;
  max-width: 520px;
  width: 100%;
  margin: 0.75rem auto 0.25rem;
  border-radius: 12px;
}

details {
  margin: 0.75rem 0 1.25rem;
}

details summary {
  cursor: pointer;
  opacity: 0.85;
}

.book-cta {
  margin: 0.6rem 0 1.1rem;
  font-weight: 500;
  text-align: center;
}

.book-cta a {
  text-decoration: none;
}

.book-cta a:hover {
  text-decoration: underline;
}

.testimonial-photo {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 1.25rem auto 0.25rem;
  border-radius: 12px;
}

.testimonial-photo--small {
  max-width: 380px;   /* smaller, quieter */
  opacity: 0.95;
}

.testimonial-caption {
  text-align: center;
  font-size: 0.9em;
  opacity: 0.75;
  margin-bottom: 1.5rem;
}

.hero-media--press img {
  max-width: 400px;
}

.hero-media.hero-media--press img {
  max-width: 400px;
  width: 100%;
}

.hero-media.hero-media--press img {
  display: block;
  margin: 0.6rem auto;
}

.nav-active {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.nav-active {
  font-weight: 700;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

nav a {
  opacity: 0.75;
}

nav a.nav-active {
  opacity: 1;
  font-weight: 700;
}

nav a.navlink {
  opacity: 0.75;
  text-decoration: none; /* optional: makes nav cleaner */
}

nav a.navlink.nav-active {
  opacity: 1;
  font-weight: 700;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

