/*
Theme Name: Bharatpurana
Theme URI: https://bharatpurana.example
Author: Bharatpurana
Description: The civilisational voice of Bharat. An editorial, book-like, mobile-first theme for long-form essays — with per-essay audio, "The floor is yours" responses, and The Seam continuous-reading block.
Version: 1.0.8
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bharatpurana
*/

/* ===================== Tokens ===================== */
:root {
  --paper: #f3ede1;
  --paper-deep: #ece3d1;
  --card: #faf6ec;
  --media: #e7ddc8;
  --ink: #1f1a14;
  --body-ink: #2a241c;
  --soft-ink: #3a342b;
  --quiet: #4a4236;
  --muted: #6b6253;
  --faded: #8a7f6e;
  --faint: #9c917d;
  --accent: #9a3522;
  --dark: #1d1813;
  --dark-fg: #efe6d4;
  --dark-fg-dim: rgba(239, 230, 212, 0.66);
  --gold: #cf9b54;
  --line: rgba(31, 26, 20, 0.12);
  --line-strong: rgba(31, 26, 20, 0.2);
  --serif: 'Spectral', Georgia, serif;
  --display: 'Newsreader', Georgia, serif;
  --devanagari: 'Tiro Devanagari Hindi', serif;
}

/* ===================== Base ===================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: rgba(154, 53, 34, 0.18); }
img { max-width: 100%; height: auto; }
a { color: inherit; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }
@media (min-width: 900px) { .wrap { padding-left: 48px; padding-right: 48px; } }

.eyebrow {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
.danda { font-family: var(--devanagari); color: var(--accent); }

.danda-divider { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 26px 0; }
.danda-divider::before, .danda-divider::after { content: ''; height: 1px; width: 50px; background: var(--line-strong); }
.danda-divider .danda { font-size: 22px; }

/* ===================== Masthead ===================== */
.masthead {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 237, 225, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1240px; margin: 0 auto; padding: 13px 22px;
}
@media (min-width: 900px) { .masthead-inner { padding: 15px 48px; } }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img, .brand .custom-logo, .brand .custom-logo-link img {
  height: 32px !important; width: auto !important; max-height: 32px; display: block;
}
.brand .custom-logo-link { display: block; line-height: 0; }
@media (min-width: 900px) {
  .brand img, .brand .custom-logo, .brand .custom-logo-link img { height: 38px !important; max-height: 38px; }
}
.brand-name {
  font-family: var(--display); font-weight: 500; font-size: 15px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink);
}
@media (min-width: 900px) { .brand-name { font-size: 17px; letter-spacing: 0.26em; } }
.site-nav { display: none; }
@media (min-width: 900px) {
  .site-nav { display: flex; align-items: center; gap: 30px; }
  .site-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
  .site-nav a {
    font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase;
    color: #5c5346; text-decoration: none;
  }
  .site-nav a:hover { color: var(--accent); }
}
.nav-toggle {
  display: inline-flex; background: none; border: none; font-size: 19px; color: #5c5346;
  cursor: pointer; padding: 4px 0 4px 12px;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.mobile-nav { display: none; border-top: 1px solid var(--line); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 22px 16px; }
.mobile-nav a {
  display: block; padding: 11px 0; text-decoration: none;
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: #5c5346;
  border-bottom: 1px solid var(--line);
}

/* Reading progress */
.progress { height: 2px; background: rgba(31, 26, 20, 0.07); }
.progress-bar { height: 2px; width: 0; background: var(--accent); }

/* ===================== Credo (home) ===================== */
.credo { text-align: center; padding: 46px 22px 40px; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .credo { padding: 72px 48px 56px; border-bottom: none; } }
.credo .danda { font-size: 30px; }
@media (min-width: 900px) { .credo .danda { font-size: 34px; } }
.credo h1 {
  font-family: var(--display); font-weight: 400; font-size: 30px; line-height: 1.32;
  letter-spacing: -0.005em; margin: 20px auto 0; color: var(--ink); max-width: 780px;
}
@media (min-width: 900px) { .credo h1 { font-size: 44px; line-height: 1.28; letter-spacing: -0.01em; } }
.credo h1 em { font-style: italic; color: var(--accent); }

/* ===================== Media placeholder ===================== */
.media-ph, .card-media {
  background-color: var(--media);
  background-image: repeating-linear-gradient(135deg, rgba(31, 26, 20, 0.045) 0 2px, transparent 2px 12px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-media img, .media-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===================== Lead essay (home) ===================== */
.lead-link { text-decoration: none; color: inherit; display: block; }
.lead {
  padding: 34px 22px 36px; border-bottom: 1px solid var(--line);
  max-width: 1120px; margin: 0 auto;
}
.lead .card-media { height: 220px; margin-bottom: 22px; }
@media (min-width: 900px) {
  .lead {
    padding: 0 48px 56px; display: grid; grid-template-columns: 1.05fr 0.95fr;
    gap: 48px; align-items: center;
  }
  .lead .card-media { height: 420px; margin-bottom: 0; }
}
.kicker-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.kicker-listen { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.lead h2 {
  font-family: var(--display); font-weight: 500; font-size: 33px; line-height: 1.1;
  letter-spacing: -0.012em; margin: 0 0 14px; color: var(--ink);
}
@media (min-width: 900px) { .lead h2 { font-size: 44px; line-height: 1.06; } }
.lead .dek {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 19px; line-height: 1.5; color: var(--quiet); margin: 0 0 16px;
}
@media (min-width: 900px) { .lead .dek { font-size: 22px; } }
.meta-line { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faded); }

/* ===================== Section rule ===================== */
.section-rule { display: flex; align-items: center; gap: 14px; padding: 30px 22px 10px; max-width: 1120px; margin: 0 auto; }
@media (min-width: 900px) { .section-rule { padding: 46px 48px 10px; gap: 16px; } }
.section-rule::after { content: ''; flex: 1; height: 1px; background: rgba(31, 26, 20, 0.14); }

/* ===================== Recent essays ===================== */
.post-list { max-width: 1120px; margin: 0 auto; }
.post-row {
  display: flex; gap: 16px; align-items: flex-start; text-decoration: none; color: inherit;
  padding: 24px 22px; border-bottom: 1px solid rgba(31, 26, 20, 0.1);
}
.post-row .row-body { flex: 1; min-width: 0; }
.post-row .card-media { width: 84px; height: 84px; flex: none; }
.post-row h3 { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.18; margin: 0 0 8px; color: var(--ink); }
.post-row p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0 0 9px; }
.card-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.card-kicker .cat { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; text-decoration: none; }
.card-kicker .len { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.post-row .meta-line, .post-card .meta-line { font-size: 11.5px; letter-spacing: 0.1em; }

@media (min-width: 900px) {
  .post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 36px; padding: 14px 48px 0; }
  .post-row { display: block; padding: 0; border-bottom: none; }
  .post-row .card-media { width: 100%; height: 190px; margin-bottom: 16px; }
  .post-row h3 { font-size: 24px; line-height: 1.16; margin-bottom: 10px; }
  .post-row p { font-size: 15.5px; line-height: 1.58; margin-bottom: 11px; }
}

/* ===================== Follow / newsletter block ===================== */
.follow-block { background: var(--dark); color: var(--dark-fg); margin: 34px 22px 0; padding: 34px 24px; text-align: center; }
@media (min-width: 900px) {
  .follow-block { max-width: 1024px; margin: 64px auto 0; padding: 52px 48px; }
}
.follow-block .danda { color: var(--gold); font-size: 24px; }
.follow-block h2 { font-family: var(--display); font-weight: 500; font-size: 25px; line-height: 1.2; margin: 14px 0 10px; color: var(--dark-fg); }
@media (min-width: 900px) { .follow-block h2 { font-size: 32px; } }
.follow-block .lede { font-family: var(--display); font-style: italic; font-weight: 300; font-size: 17px; line-height: 1.5; color: var(--dark-fg-dim); margin: 0 0 22px; }
@media (min-width: 900px) { .follow-block .lede { font-size: 19px; } }
.nl-form { display: flex; max-width: 430px; margin: 0 auto 20px; }
.nl-form input[type="email"] {
  flex: 1; min-width: 0; background: transparent;
  border: 1px solid rgba(239, 230, 212, 0.32); border-right: none;
  color: var(--dark-fg); font-family: var(--serif); font-size: 14.5px; padding: 12px 14px; outline: none;
}
.nl-form input::placeholder { color: rgba(239, 230, 212, 0.45); }
.nl-form button {
  background: var(--gold); color: var(--dark); border: none; font-family: var(--serif);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 12px 16px; cursor: pointer; flex: none;
}
.social-row { display: flex; justify-content: center; gap: 10px; }
.social-round {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(239, 230, 212, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--dark-fg); text-decoration: none; letter-spacing: 0.04em;
}
@media (min-width: 900px) { .social-round { width: 50px; height: 50px; font-size: 12px; } }

/* ===================== Footer ===================== */
.site-footer { padding: 34px 22px 40px; text-align: center; }
.site-footer .foot-nav { display: flex; justify-content: center; gap: 22px; margin-bottom: 18px; flex-wrap: wrap; }
.site-footer .foot-nav a { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faded); text-decoration: none; }
.site-footer .colophon { font-size: 11.5px; letter-spacing: 0.08em; color: var(--faint); }
.site-footer .foot-contact { margin-bottom: 12px; }
.site-footer .foot-contact a { font-size: 12.5px; letter-spacing: 0.1em; color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(154,53,34,0.3); padding-bottom: 2px; }

/* ===================== Article (single) ===================== */
.article-head { max-width: 680px; margin: 0 auto; padding: 36px 22px 0; }
@media (min-width: 900px) { .article-head { padding: 72px 24px 0; } }
.article-head .eyebrow { margin-bottom: 18px; font-size: 11.5px; }
@media (min-width: 900px) { .article-head .eyebrow { margin-bottom: 24px; font-size: 12px; } }
.article-title {
  font-family: var(--display); font-weight: 500; font-size: 36px; line-height: 1.08;
  letter-spacing: -0.015em; margin: 0 0 20px; color: var(--ink);
}
@media (min-width: 900px) { .article-title { font-size: 54px; line-height: 1.06; margin-bottom: 26px; } }
.article-dek {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 20px; line-height: 1.46; color: var(--quiet); margin: 0 0 24px; max-width: 600px;
}
@media (min-width: 900px) { .article-dek { font-size: 25px; margin-bottom: 30px; } }
.byline { font-size: 12px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faded); }
@media (min-width: 900px) { .byline { font-size: 12.5px; } }

.listen-pill {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 15px 0; margin-top: 26px; background: none; text-align: left;
  border: none; border-top: 1px solid rgba(31, 26, 20, 0.14); border-bottom: 1px solid rgba(31, 26, 20, 0.14);
  cursor: pointer; font-family: var(--serif);
}
.listen-pill .pp {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.listen-pill .pp::after { content: '▶'; color: var(--paper); font-size: 12px; margin-left: 2px; }
.listen-pill .label { font-family: var(--display); font-size: 17px; color: var(--ink); }
.listen-pill .dur { margin-left: auto; font-size: 13px; letter-spacing: 0.08em; color: var(--faded); }

.article-figure { max-width: 900px; margin: 34px auto 8px; padding: 0 22px; }
@media (min-width: 900px) { .article-figure { margin-top: 40px; padding: 0 24px; } }
.article-figure .media-ph, .article-figure img { width: 100%; height: 240px; object-fit: cover; }
@media (min-width: 900px) { .article-figure .media-ph, .article-figure img { height: 420px; } }
.article-figure figcaption {
  font-style: italic; font-size: 14px; line-height: 1.5; color: var(--faded);
  padding: 11px 0 0; max-width: 680px; margin: 0 auto;
}

/* --- Body typography --- */
.article-body { max-width: 680px; margin: 0 auto; padding: 28px 22px 0; }
@media (min-width: 900px) { .article-body { padding: 32px 24px 0; } }
.article-body p { font-size: 18px; line-height: 1.82; color: var(--body-ink); margin: 0 0 1.2em; letter-spacing: 0.002em; }
@media (min-width: 900px) { .article-body p { font-size: 20px; line-height: 1.86; } }
.article-body > p:first-child::first-letter {
  float: left; font-family: var(--display); font-weight: 500; font-size: 64px;
  line-height: 0.78; padding: 9px 12px 0 0; color: var(--accent);
}
@media (min-width: 900px) { .article-body > p:first-child::first-letter { font-size: 76px; padding: 10px 13px 0 0; } }
.article-body h2 {
  font-family: var(--display); font-weight: 500; font-size: 25px; line-height: 1.25;
  margin: 40px 0 16px; color: var(--ink);
}
@media (min-width: 900px) { .article-body h2 { font-size: 28px; margin: 44px 0 18px; } }
.article-body h3 { font-family: var(--display); font-weight: 500; font-size: 21px; margin: 32px 0 12px; color: var(--ink); }
.article-body blockquote { margin: 26px 0 32px; padding: 0; text-align: center; }
@media (min-width: 900px) { .article-body blockquote { margin: 26px -36px 32px; } }
.article-body blockquote p {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: 25px; line-height: 1.36; color: var(--accent); margin: 0;
}
@media (min-width: 900px) { .article-body blockquote p { font-size: 30px; } }
.article-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(154, 53, 34, 0.35); }
.article-body img { display: block; margin: 28px auto; }
.article-body figure { margin: 28px 0; }
.article-body figcaption { font-style: italic; font-size: 14px; color: var(--faded); padding-top: 10px; }
.article-body hr {
  border: none; height: 23px; margin: 34px 0 10px; position: relative;
}
.article-body hr::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 160px; height: 1px;
  background: linear-gradient(to right,
    var(--line-strong) 0 50px,
    transparent 50px 110px,
    var(--line-strong) 110px 160px);
}
.article-body hr::after {
  content: '॥'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  font-family: var(--devanagari); color: var(--accent); font-size: 23px;
  line-height: 1; background: var(--paper); padding: 0 8px;
}
.article-body ul, .article-body ol { font-size: 18px; line-height: 1.8; color: var(--body-ink); padding-left: 1.3em; margin: 0 0 1.2em; }
@media (min-width: 900px) { .article-body ul, .article-body ol { font-size: 20px; } }

/* Marginalia (aside via blockquote class or manual) */
.marginalia { margin: 34px 0 36px; padding: 20px 0; border-top: 1px solid rgba(31, 26, 20, 0.15); border-bottom: 1px solid rgba(31, 26, 20, 0.15); text-align: left; }
.marginalia .m-label { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.marginalia p { font-style: italic; font-size: 16.5px; line-height: 1.62; color: var(--quiet); margin: 0; font-family: var(--serif); }

/* Author credit (guest essays) */
.author-credit { max-width: 680px; margin: 8px auto 0; padding: 18px 22px 0; }
.author-credit p { font-style: italic; font-size: 15.5px; line-height: 1.6; color: var(--muted); margin: 0; border-top: 1px solid var(--line); padding-top: 16px; }

/* Share row */
.share-row { display: flex; align-items: center; gap: 14px; max-width: 680px; margin: 0 auto; padding: 20px 22px 6px; flex-wrap: wrap; }
.share-row .share-label { font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--faded); }
.share-row .rule { flex: 1; height: 1px; background: rgba(31, 26, 20, 0.14); min-width: 40px; }
.share-row .btns { display: flex; gap: 8px; }
.share-row button, .share-row a {
  padding: 9px 16px; border: 1px solid var(--line-strong); background: none;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft-ink);
  cursor: pointer; font-family: var(--serif); text-decoration: none; display: inline-block;
}

/* ===================== The floor is yours ===================== */
.floor { background: var(--paper-deep); border-top: 1px solid rgba(31, 26, 20, 0.1); margin-top: 48px; }
.floor-inner { max-width: 680px; margin: 0 auto; padding: 52px 22px 56px; }
@media (min-width: 900px) { .floor-inner { padding: 60px 24px 56px; } }
.floor-head { text-align: center; margin-bottom: 8px; }
.floor-head .danda { font-size: 26px; }
.floor-head h2 { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1.16; margin: 14px 0; color: var(--ink); }
@media (min-width: 900px) { .floor-head h2 { font-size: 34px; } }
.floor-head .prompt {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 20px; line-height: 1.5; color: var(--quiet); margin: 0 auto; max-width: 540px;
}
@media (min-width: 900px) { .floor-head .prompt { font-size: 22px; } }

/* ----- Collapsed compose pill (image 1) ----- */
.floor-compose { margin: 30px 0 8px; }
.compose-pill {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--card); border: 1px solid var(--line-strong);
  padding: 15px 18px; cursor: text; text-align: left; font-family: var(--serif);
}
.compose-ava {
  width: 34px; height: 34px; border-radius: 50%; background: var(--dark); color: var(--gold);
  display: flex; align-items: center; justify-content: center; flex: none; font-size: 15px;
}
.compose-pill-text { flex: 1; font-size: 16px; color: var(--faded); font-style: italic; }
.compose-pill-meta { font-size: 12px; letter-spacing: 0.08em; color: var(--faint); white-space: nowrap; }

/* ----- Expanded compose box (image 3) ----- */
.compose-slot { display: none; }
.floor-compose.open .compose-slot { display: block; }
.floor-compose.open .compose-pill { display: none; }

.floor #respond, .floor .comment-respond { background: var(--card); border: 1px solid var(--line-strong); margin: 0; padding: 0; }
.floor .comment-form { margin: 0; }
.compose-slot .comment-reply-title { display: none; }
.floor .comment-reply-title { font-family: var(--display); font-weight: 500; font-size: 17px; margin: 0; color: var(--ink); padding: 16px 18px 0; }
.floor .comment-reply-title small { margin-left: 10px; font-size: 12px; }
.floor .comment-reply-title small a { color: var(--faded); text-decoration: none; letter-spacing: 0.06em; }
.floor textarea {
  width: 100%; min-height: 150px; border: none; outline: none; background: transparent;
  resize: vertical; padding: 18px 18px 10px; font-family: var(--display); font-weight: 300;
  font-size: 19px; line-height: 1.6; color: var(--ink);
}
.floor textarea::placeholder { color: var(--faint); }
.floor .comment-form-comment { margin: 0; }
.floor .comment-form-author input, .floor .comment-form-email input, .floor .comment-form-url input {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line);
  padding: 9px 0; font-family: var(--serif); font-size: 15px; color: var(--ink); outline: none;
}
.floor .comment-form-author, .floor .comment-form-email { margin: 0; padding: 0 18px; }
.floor .comment-form-author { padding-top: 4px; }
.floor .comment-form-url, .floor .comment-form-cookies-consent { display: none; }
.floor label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faded); display: block; margin-bottom: 2px; }
.floor .form-submit {
  margin: 10px 0 0; display: flex; align-items: center; gap: 16px;
  padding: 12px 16px; border-top: 1px solid var(--line);
}
.floor .form-submit .draft-status { font-size: 12.5px; color: var(--faded); }
.floor .form-submit .word-count { font-size: 12.5px; color: var(--faint); }
.floor .form-submit .word-count:not(:empty)::before { content: '\00b7\00a0'; }
.floor .form-submit #cancel-comment-reply-link { margin-left: auto; font-size: 12px; letter-spacing: 0.08em; color: var(--faded); text-decoration: none; }
.floor .form-submit input[type="submit"] {
  background: var(--accent); border: none; color: #f6eee0; font-size: 12px;
  letter-spacing: 0.1em; text-transform: uppercase; padding: 11px 20px; cursor: pointer; font-family: var(--serif);
}
.floor .logged-in-as, .floor .comment-notes, .floor .must-log-in { display: none; }

.responses-rule { display: flex; align-items: center; gap: 14px; margin: 26px 0 4px; }
.responses-rule .count { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faded); }
.responses-rule::after { content: ''; flex: 1; height: 1px; background: rgba(31, 26, 20, 0.14); }

.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list > li { padding: 20px 0; border-top: 1px solid var(--line); }
.comment-list > li:first-child { border-top: none; }
.comment-meta-row { display: flex; align-items: baseline; gap: 11px; margin-bottom: 9px; flex-wrap: wrap; }
.comment-meta-row .c-name { font-family: var(--display); font-size: 17px; color: var(--ink); font-style: normal; font-weight: 500; }
.comment-meta-row .c-when { font-size: 12px; color: var(--faint); text-decoration: none; }
.comment-body-text p { font-size: 16.5px; line-height: 1.68; color: var(--soft-ink); margin: 0 0 11px; }
.comment-actions { display: flex; align-items: center; gap: 18px; font-size: 12px; letter-spacing: 0.06em; }
.comment-actions a { color: var(--faded); text-decoration: none; }
.comment-actions a:hover { color: var(--accent); }
.c-appreciate {
  display: inline-flex; align-items: center; gap: 6px; background: none; border: none; padding: 0;
  font-family: var(--serif); font-size: 12px; letter-spacing: 0.06em; color: var(--faded); cursor: pointer;
}
.c-appreciate:hover { color: var(--accent); }
.c-appreciate.appreciated { color: var(--accent); cursor: default; }
.c-appreciate.appreciated .c-appreciate-label::before { content: '\2713\00a0'; }
.c-appreciate-count:not(:empty)::before { content: '\00b7\00a0'; }
.c-featured-tag {
  display: inline-block; font-size: 10.5px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); background: var(--dark); padding: 5px 12px; margin-bottom: 12px;
}
.comment-list > li.is-featured { background: var(--dark); color: var(--dark-fg); padding: 22px 22px; margin: 8px 0; border-top: none; }
.comment-list > li.is-featured .c-name { color: var(--dark-fg); }
.comment-list > li.is-featured .comment-body-text p { color: var(--dark-fg); font-family: var(--display); font-weight: 300; font-size: 18px; }
.comment-list > li.is-featured .c-when, .comment-list > li.is-featured .comment-actions a, .comment-list > li.is-featured .c-appreciate { color: rgba(239,230,212,0.6); }
.comment-list .children { list-style: none; margin: 16px 0 0 10px; padding: 0 0 0 18px; border-left: 2px solid rgba(154, 53, 34, 0.3); }
.comment-list .children li { padding: 10px 0 4px; }
.comment-list .children .c-name { color: var(--accent); font-size: 16px; }
.comment-list .children p { font-size: 16px; }
.comment-awaiting-moderation { display: block; font-size: 12.5px; font-style: italic; color: var(--faded); margin-bottom: 6px; }
.bypostauthor .c-name::after { content: ' · Editors'; font-size: 11px; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; }

/* ===================== The Seam ===================== */
.seam { background: var(--dark); color: var(--dark-fg); padding: 60px 22px; margin-top: 56px; text-align: center; }
@media (min-width: 900px) { .seam { padding: 72px 24px; } }
.seam-inner { max-width: 680px; margin: 0 auto; }
.seam .danda { color: var(--gold); font-size: 32px; }
.seam .seam-label { font-size: 11px; letter-spacing: 0.36em; text-transform: uppercase; margin-top: 14px; color: rgba(239, 230, 212, 0.56); }
.seam .seam-cat { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin: 30px 0 16px; }
.seam h2 { font-family: var(--display); font-weight: 500; font-size: 34px; line-height: 1.08; letter-spacing: -0.012em; margin: 0 0 20px; }
@media (min-width: 900px) { .seam h2 { font-size: 44px; } }
.seam h2 a { color: var(--dark-fg); text-decoration: none; }
.seam .seam-dek {
  font-family: var(--display); font-style: italic; font-weight: 300;
  font-size: 19px; line-height: 1.5; color: rgba(239, 230, 212, 0.56); margin: 0 auto 26px; max-width: 560px;
}
@media (min-width: 900px) { .seam .seam-dek { font-size: 21px; } }
.seam .seam-meta { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(239, 230, 212, 0.56); }
.seam .seam-meta a { color: var(--gold); text-decoration: none; }

/* Seam continuation — next essay's opening */
.seam-continue { max-width: 680px; margin: 0 auto; padding: 56px 22px 0; }
.seam-continue .article-body-preview p { font-size: 18px; line-height: 1.82; color: var(--body-ink); margin: 0 0 1.2em; }
@media (min-width: 900px) { .seam-continue .article-body-preview p { font-size: 20px; line-height: 1.86; } }
.seam-continue .article-body-preview p:first-child::first-letter {
  float: left; font-family: var(--display); font-weight: 500; font-size: 64px;
  line-height: 0.78; padding: 9px 12px 0 0; color: var(--accent);
}
.seam-continue .continue-link {
  display: inline-block; margin-top: 6px; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); text-decoration: none;
  border-bottom: 1px solid rgba(154, 53, 34, 0.4); padding-bottom: 3px;
}

/* ===================== Sticky audio player ===================== */
.audio-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; justify-content: center; pointer-events: none; }
.audio-dock.open { display: flex; }
.audio-dock-inner {
  width: 100%; max-width: 600px; margin: 0 16px 16px; background: var(--card);
  border: 1px solid rgba(31, 26, 20, 0.14); box-shadow: 0 10px 36px rgba(31, 26, 20, 0.16);
  padding: 14px 18px; pointer-events: auto;
}
.audio-row { display: flex; align-items: center; gap: 15px; }
.audio-play {
  width: 46px; height: 46px; border-radius: 50%; background: var(--accent); border: none;
  color: #f6eee0; font-size: 13px; cursor: pointer; flex: none;
  display: flex; align-items: center; justify-content: center; letter-spacing: 1px;
}
.audio-mid { flex: 1; min-width: 0; }
.audio-title { font-size: 13px; font-family: var(--display); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 8px; }
.audio-track { height: 4px; background: rgba(31, 26, 20, 0.14); cursor: pointer; position: relative; }
.audio-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); }
.audio-times { display: flex; justify-content: space-between; margin-top: 6px; font-size: 11px; letter-spacing: 0.04em; color: var(--faded); }
.audio-speed { background: none; border: 1px solid rgba(31, 26, 20, 0.22); color: var(--soft-ink); font-size: 12px; padding: 7px 9px; cursor: pointer; flex: none; min-width: 48px; font-family: var(--serif); }
.audio-close { background: none; border: none; color: var(--faded); font-size: 17px; cursor: pointer; flex: none; padding: 6px; }

/* ===================== Pages / archives ===================== */
.page-head { max-width: 740px; margin: 0 auto; padding: 54px 22px 12px; text-align: center; }
.page-head .danda { font-size: 32px; }
.page-head .eyebrow { margin: 20px 0 16px; font-size: 12px; letter-spacing: 0.3em; }
.page-head h1 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1.22; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
@media (min-width: 900px) { .page-head h1 { font-size: 42px; } }
.page-body { max-width: 660px; margin: 0 auto; padding: 30px 22px 0; }
.page-body p { font-size: 18px; line-height: 1.82; color: var(--body-ink); margin: 0 0 1.2em; }
@media (min-width: 900px) { .page-body p { font-size: 19.5px; line-height: 1.85; } }
.page-body h2 { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1.24; margin: 26px 0 16px; color: var(--ink); }

.archive-head { padding: 44px 22px 8px; text-align: center; }
.archive-head .eyebrow { font-size: 12px; letter-spacing: 0.3em; }
.archive-head h1 { font-family: var(--display); font-weight: 400; font-size: 30px; margin: 14px 0 0; color: var(--ink); }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 18px; padding: 40px 22px 0; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.pagination a, .pagination span { color: var(--faded); text-decoration: none; padding: 8px 12px; }
.pagination .current { color: var(--accent); border-bottom: 1px solid var(--accent); }

/* Utility */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===================== Marginalia (WordPress Pullquote block) ===================== */
.article-body .wp-block-pullquote {
  margin: 34px 0 36px; padding: 20px 0; border: none;
  border-top: 1px solid rgba(31,26,20,0.15); border-bottom: 1px solid rgba(31,26,20,0.15);
  text-align: left; background: none;
}
.article-body .wp-block-pullquote::before {
  content: 'In the margin'; display: block;
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.article-body .wp-block-pullquote blockquote,
.article-body .wp-block-pullquote p {
  margin: 0; font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 16.5px; line-height: 1.62; color: var(--quiet); text-align: left;
}
.article-body .wp-block-pullquote cite {
  display: block; margin-top: 10px; font-style: normal; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--faded);
}

/* ===================== Share ===================== */
.share-essay-btn {
  padding: 11px 22px; border: 1px solid var(--accent); background: none;
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); cursor: pointer; white-space: nowrap;
}
.share-essay-btn:hover { background: var(--accent); color: #f6eee0; }

.share-sheet { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; }
.share-sheet[hidden] { display: none; }
.share-sheet-scrim { position: absolute; inset: 0; background: rgba(29,24,19,0.5); }
.share-sheet-card {
  position: relative; width: 100%; background: var(--card);
  border-top-left-radius: 4px; border-top-right-radius: 4px;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(31,26,20,0.28);
  animation: bp-sheet-up 0.22s ease;
}
@keyframes bp-sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.share-sheet-head {
  text-align: center; font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--faded); padding: 14px 0 10px;
}
.share-opt {
  display: block; width: 100%; text-align: left; background: none; border: none;
  border-top: 1px solid var(--line); padding: 15px 4px;
  font-family: var(--display); font-size: 18px; color: var(--ink); cursor: pointer; text-decoration: none;
}
.share-sheet-cancel {
  display: block; width: 100%; text-align: center; margin-top: 8px; background: none;
  border: 1px solid var(--line-strong); padding: 13px; cursor: pointer;
  font-family: var(--serif); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--soft-ink);
}

/* ===================== Konark Sun Wheel motif ===================== */
@keyframes konarkSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Hero wheel — Home credo + About hero — slow continuous self-rotation */
.konark-hero {
  display: block;
  margin: 0 auto 22px;
  width: clamp(150px, 15vw, 200px);
  height: clamp(150px, 15vw, 200px);
  opacity: 0.92;
  animation: konarkSpin 90s linear infinite;
  will-change: transform;
}
.credo .konark-hero { margin-bottom: 22px; }

/* Watermark wheel — single essays — faint, turns with scroll */
.konark-mark {
  position: fixed;
  right: -8vw;
  bottom: -8vw;
  z-index: 1;
  width: min(38vw, 460px);
  height: min(38vw, 460px);
  opacity: 0.07;
  pointer-events: none;
  will-change: transform;
}

@media (max-width: 640px) {
  .konark-hero { width: 150px; height: 150px; margin-bottom: 18px; }
  .konark-mark { right: -16vw; bottom: -16vw; width: min(64vw, 300px); height: min(64vw, 300px); }
}

@media (prefers-reduced-motion: reduce) {
  .konark-hero { animation: none; }
}
