:root{
  --bg:#0d0b0a; --bg-2:#141110; --panel:#191514; --line:rgba(255,255,255,.08);
  --ink:#efe8e0; --muted:#9c948c; --gold:#c9a227; --gold-soft:rgba(201,162,39,.14);
  --rose:#e0576b; --radius:16px;
  --serif:'Cormorant Garamond','Noto Serif Devanagari',Georgia,serif;
  --sans:'Inter',system-ui,sans-serif;
}
*{box-sizing:border-box}
body.wotl{background:var(--bg);color:var(--ink);font-family:var(--sans);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
a:hover{color:var(--gold)}
.text-muted{color:var(--muted)!important}

/* ------------------------------------------------------------ nav */
.wotl-nav{background:rgba(13,11,10,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.wotl-nav .nav-link{color:var(--ink);opacity:.8;font-size:.9rem}
.wotl-nav .nav-link:hover{opacity:1;color:var(--gold)}
.navbar-brand{display:flex;align-items:center;gap:.5rem;font-family:var(--serif);font-size:1.4rem;font-weight:600}
.brand-mark{color:var(--gold);font-size:1.5rem}
.badge-count{background:var(--gold-soft);color:var(--gold);border-radius:99px;padding:0 .45rem;font-size:.68rem;margin-left:.3rem}
.search-input{background:var(--bg-2);border:1px solid var(--line);color:var(--ink);width:190px}
.search-input:focus{background:var(--bg-2);color:var(--ink);border-color:var(--gold);box-shadow:none}

/* ----------------------------------------------------------- hero */
.hero{padding:4rem 0 2rem;border-bottom:1px solid var(--line)}
.hero-kicker{letter-spacing:.28em;text-transform:uppercase;font-size:.7rem;color:var(--gold);margin-bottom:1rem}
.hero-title{font-family:var(--serif);font-size:clamp(2.6rem,7vw,5rem);font-weight:600;line-height:1.05;margin:0}
.hero-tagline{font-family:var(--serif);font-style:italic;font-size:1.3rem;color:var(--muted);margin-top:.6rem}

.section-title{font-family:var(--serif);font-size:1.7rem;font-weight:600;margin-bottom:1.2rem;position:relative;padding-bottom:.5rem}
.section-title::after{content:'';position:absolute;left:0;bottom:0;width:46px;height:2px;background:var(--gold)}

/* ----------------------------------------------------------- chips */
.chip{display:inline-block;padding:.3rem .8rem;border-radius:99px;border:1px solid var(--line);
      font-size:.78rem;color:var(--muted);margin:.15rem;transition:.2s}
.chip:hover,.chip.active{background:var(--gold-soft);color:var(--gold);border-color:var(--gold)}
.lang-chip{position:absolute;top:.75rem;left:.75rem;background:rgba(0,0,0,.65);color:var(--ink);
           padding:.2rem .6rem;border-radius:99px;font-size:.7rem;backdrop-filter:blur(6px)}
.lang-chip.solid{position:static;background:var(--gold-soft);color:var(--gold);border:1px solid rgba(201,162,39,.3)}
.lang-chip.sm{font-size:.65rem;padding:.1rem .45rem}

/* ----------------------------------------------------- poem cards */
.poem-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
           overflow:hidden;display:flex;flex-direction:column;transition:.25s}
.poem-card:hover{transform:translateY(-4px);border-color:rgba(201,162,39,.35);box-shadow:0 18px 40px rgba(0,0,0,.4)}
.poem-card-media{position:relative;display:block;aspect-ratio:4/3;overflow:hidden;background:var(--bg-2)}
.poem-card-media img{width:100%;height:100%;object-fit:cover;transition:.5s}
.poem-card:hover .poem-card-media img{transform:scale(1.05)}
.poem-card-body{padding:1.1rem 1.2rem .6rem;flex:1}
.poem-card-title{font-family:var(--serif);font-size:1.35rem;font-weight:600;margin:0 0 .5rem;line-height:1.25}
.poem-card-excerpt{color:var(--muted);font-size:.88rem;line-height:1.55;margin:0 0 .8rem}
.poem-card-meta{display:flex;align-items:center;gap:.4rem;font-size:.76rem;color:var(--muted);flex-wrap:wrap}
.poem-card-actions{display:flex;align-items:center;gap:.4rem;padding:.7rem 1.1rem;border-top:1px solid var(--line)}
.act{display:inline-flex;align-items:center;gap:.32rem;background:none;border:0;color:var(--muted);
     font-size:.8rem;padding:.3rem .5rem;border-radius:8px;transition:.2s}
.act:hover{background:rgba(255,255,255,.05);color:var(--ink)}
.act.is-liked{color:var(--rose)}
.act .heart{transition:.25s}
.act.is-liked .heart{transform:scale(1.18)}
.pop{animation:pop .32s ease}
@keyframes pop{0%{transform:scale(1)}45%{transform:scale(1.28)}100%{transform:scale(1)}}
.avatar-xs,.avatar-sm{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;
  background:var(--gold-soft);color:var(--gold);font-weight:600}
.avatar-xs{width:20px;height:20px;font-size:.68rem}
.avatar-sm{width:30px;height:30px;font-size:.82rem}
.dot{opacity:.4}

/* ------------------------------------------------------ reading */
.poem-read{max-width:780px}
.poem-head{margin-bottom:2.2rem}
.poem-title{font-family:var(--serif);font-size:clamp(2rem,5vw,3.2rem);font-weight:600;margin:.9rem 0 .7rem;line-height:1.15}
.poem-byline{color:var(--muted);font-size:.88rem;display:flex;align-items:center;justify-content:center;gap:.5rem;flex-wrap:wrap}
.poem-cover{margin:0 0 2.4rem;border-radius:var(--radius);overflow:hidden;border:1px solid var(--line)}
.poem-cover img{width:100%;display:block}
.poem-cover figcaption{padding:.7rem 1rem;font-size:.78rem;color:var(--muted);background:var(--panel);text-align:center}
.poem-body {
    font-family: var(--serif);
    font-size: 1.25rem;
    line-height: 1.65;           /* default — overridden per script below */
    color: #e6ded4;
    margin: 0;
}
.poem-text {
    /* The wrapper exists so we can control spacing without fighting the
       header/footer margins around it. */
    margin: 0;
}
/* ---------------------------------------------------------------- stanzas */
.poem-stanza {
    margin: 0 0 1.4rem;          /* was 1.9rem — tighter */
    line-height: 1.62;           /* was 2.05 — much tighter */
    white-space: normal;
    /* Poetry shouldn't be hyphenated or justified */
    hyphens: none;
    text-align: start;
    letter-spacing: .002em;
}

.poem-stanza:last-child {
    margin-bottom: 0;
}

/* Remove any inherited paragraph margin that Bootstrap or the reset adds */
.poem-text p {
    margin-top: 0;
}

/* ---------------------------------------------------------- centered line */
.poem-center {
    display: block;
    text-align: center;
    margin: .4rem 0;
}

.poem-center{display:block;text-align:center}
/* --------------------------------------------------------------- divider */
.poem-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
    margin: 2rem auto;
    max-width: 60%;
    opacity: .7;
}

/* ==========================================================================
   SCRIPT-SPECIFIC TUNING
   Devanagari needs more line-height (matras + conjuncts sit on two levels).
   Latin reads best tighter. We detect script via the parent element's `lang`.
   ========================================================================== */

/* Hindi, Marathi, Nepali — Devanagari */
.poem-read[lang="hi"] .poem-body,
.poem-read[lang="mr"] .poem-body,
.poem-read[lang="ne"] .poem-body,
.poem-read.lang-hi .poem-body {
    font-size: 1.32rem;
    line-height: 1.85;           /* generous — Devanagari needs headroom */
    letter-spacing: -.002em;
}
.poem-read[lang="hi"] .poem-stanza,
.poem-read.lang-hi .poem-stanza {
    line-height: 1.85;
    margin-bottom: 1.6rem;
}

/* Urdu / Arabic — RTL, taller glyph forms */
.poem-read[lang="ur"] .poem-body,
.poem-read.lang-ur .poem-body {
    font-size: 1.35rem;
    line-height: 2;
    font-family: 'Noto Nastaliq Urdu', var(--serif);
}
.poem-read[lang="ur"] .poem-stanza { line-height: 2; margin-bottom: 1.8rem; }

/* English and other Latin-script languages — tighter */
.poem-read[lang="en"] .poem-body,
.poem-read.lang-en .poem-body {
    line-height: 1.6;
    font-size: 1.22rem;
}
.poem-read[lang="en"] .poem-stanza { line-height: 1.6; }

/* Mobile — collapse everything a little */
@media (max-width: 575.98px) {
    .poem-body                    { font-size: 1.15rem; }
    .poem-read[lang="hi"] .poem-body { font-size: 1.22rem; line-height: 1.75; }
    .poem-stanza                  { margin-bottom: 1.15rem; }
}


.poem-tags{margin:2rem 0}
.engage-bar{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:1rem 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.engage{display:inline-flex;align-items:center;gap:.4rem;background:none;border:0;color:var(--muted);font-size:.88rem;padding:.45rem .8rem;border-radius:10px}
.engage:hover{background:rgba(255,255,255,.05);color:var(--ink)}
.engage.is-liked{color:var(--rose)}

/* -------------------------------------------------------- share */
.share-bar{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin:1.4rem 0}
.share-label{font-size:.74rem;text-transform:uppercase;letter-spacing:.16em;color:var(--muted);margin-right:.3rem}
.share-pill{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .85rem;border-radius:99px;
  border:1px solid var(--line);font-size:.8rem;color:var(--ink);transition:.2s;background:none}
.share-pill:hover{border-color:var(--gold);color:var(--gold);transform:translateY(-2px)}
.share-stats{margin-bottom:1.4rem}
.stat-chip{font-size:.7rem;color:var(--muted);border:1px solid var(--line);border-radius:99px;padding:.2rem .6rem;margin-right:.35rem}
.share-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.6rem}
.share-tile{padding:.75rem;border:1px solid var(--line);border-radius:12px;text-align:center;font-size:.86rem;transition:.2s}
.share-tile:hover{background:var(--gold-soft);border-color:var(--gold);color:var(--gold)}

/* ----------------------------------------------------- comments */
.comments-wrap{margin-top:3rem}
.comment-form{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:1.2rem}
.comment{display:flex;gap:.9rem;padding:1rem 0;border-bottom:1px solid var(--line);margin-left:calc(var(--depth,0) * 1.6rem)}
.comment-avatar{flex:0 0 38px;height:38px;border-radius:50%;background:var(--gold-soft);color:var(--gold);
  display:flex;align-items:center;justify-content:center;font-weight:600}
.comment-body{flex:1;min-width:0}
.comment-head{display:flex;align-items:center;gap:.6rem;font-size:.85rem;flex-wrap:wrap}
.comment-head time{color:var(--muted);font-size:.74rem}
.comment-text{margin:.4rem 0;color:#ddd4ca;font-size:.92rem;line-height:1.7;word-break:break-word}
.comment-actions{display:flex;gap:.4rem}
.mini{background:none;border:0;color:var(--muted);font-size:.76rem;padding:.15rem .4rem;border-radius:6px}
.mini:hover{color:var(--gold);background:rgba(255,255,255,.05)}
.mini.is-liked{color:var(--rose)}
.comment-children{margin-top:.4rem}

/* ---------------------------------------------------- dashboard */
.admin .panel{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:1.3rem}
.panel-title{font-family:var(--serif);font-size:1.15rem;font-weight:600;margin-bottom:.9rem}
.stat-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);
  padding:1.1rem;display:flex;flex-direction:column;gap:.2rem;position:relative;overflow:hidden}
.stat-card::before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:var(--gold);opacity:.6}
.stat-card.pink::before{background:var(--rose)}
.stat-card.warn::before{background:#e0a020}
.stat-icon{font-size:1.1rem;opacity:.8}
.stat-value{font-family:var(--serif);font-size:2rem;font-weight:600;line-height:1}
.stat-label{font-size:.75rem;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}
.stat-list{list-style:none;padding:0;margin:0}
.stat-list li{display:flex;justify-content:space-between;padding:.45rem 0;border-bottom:1px dashed var(--line);font-size:.86rem}
.stat-list li:last-child{border:0}
.badge-status{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;padding:.16rem .5rem;border-radius:99px;
  background:rgba(255,255,255,.07);color:var(--muted)}
.badge-status.published,.badge-status.approved{background:rgba(76,201,120,.15);color:#4cc978}
.badge-status.draft,.badge-status.pending{background:rgba(224,160,32,.15);color:#e0a020}
.badge-status.archived,.badge-status.spam{background:rgba(224,87,107,.15);color:var(--rose)}
.mini-comment{padding:.6rem 0;border-bottom:1px solid var(--line);font-size:.82rem}
.mini-comment p{margin:.25rem 0;color:var(--muted)}
.table-dark{--bs-table-bg:transparent;--bs-table-border-color:var(--line)}

/* ------------------------------------------------------- editor */
.title-input{background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;
  font-family:var(--serif);font-size:1.8rem;color:var(--ink);padding:.4rem 0;margin-bottom:1rem}
.title-input:focus{background:transparent;color:var(--ink);box-shadow:none;border-color:var(--gold)}
.editor-toolbar{display:flex;align-items:center;gap:.3rem;flex-wrap:wrap;padding:.5rem;background:var(--bg-2);
  border:1px solid var(--line);border-bottom:0;border-radius:12px 12px 0 0}
.editor-toolbar button{background:none;border:1px solid transparent;color:var(--ink);width:34px;height:32px;
  border-radius:8px;font-size:.9rem;transition:.15s}
.editor-toolbar button:hover{background:var(--gold-soft);border-color:rgba(201,162,39,.4);color:var(--gold)}
.tb-sep{width:1px;height:20px;background:var(--line);margin:0 .35rem}
.tb-hint{font-size:.7rem;color:var(--muted);margin-left:auto}
.poem-textarea{background:var(--bg-2);border:1px solid var(--line);border-top-left-radius:0;border-top-right-radius:0;
  color:var(--ink);font-family:var(--serif);font-size:1.15rem;line-height:1.9;padding:1rem;resize:vertical}
.poem-textarea:focus{background:var(--bg-2);color:var(--ink);border-color:var(--gold);box-shadow:none}
.editor-foot{font-size:.72rem;color:var(--muted);margin-top:.5rem}
.poem-preview{font-family:var(--serif);font-size:1.15rem;line-height:1.95;color:#e6ded4;max-height:420px;overflow:auto}

.cover-drop{position:relative;border:1.5px dashed var(--line);border-radius:12px;aspect-ratio:16/10;
  display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;transition:.2s;background:var(--bg-2)}
.cover-drop:hover,.cover-drop.dragging{border-color:var(--gold);background:var(--gold-soft)}
.cover-drop img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:none}
.cover-drop-hint{text-align:center;font-size:.8rem;color:var(--muted);z-index:2;pointer-events:none}
.cover-drop-hint small{display:block;font-size:.68rem;opacity:.7}
.cover-drop img[src*="placeholder"]{display:none}

/* ------------------------------------------------------- buttons */
.btn-gold{background:linear-gradient(135deg,#d8b23a,#b8912a);border:0;color:#141110;font-weight:600;
  border-radius:99px;padding:.55rem 1.4rem;transition:.2s}
.btn-gold:hover{filter:brightness(1.1);transform:translateY(-1px);color:#141110}
.form-control,.form-select{background:var(--bg-2);border:1px solid var(--line);color:var(--ink);border-radius:10px}
.form-control:focus,.form-select:focus{background:var(--bg-2);color:var(--ink);border-color:var(--gold);box-shadow:0 0 0 3px var(--gold-soft)}
.form-control::placeholder{color:#6b645e}
.modal-content{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);color:var(--ink)}
.alert{border-radius:12px;border:1px solid var(--line)}

/* -------------------------------------------------- responsive */
@media (max-width:768px){
  .hero{padding:2.5rem 0 1rem}
  .poem-body{font-size:1.15rem;line-height:1.95}
  .poem-read{padding-inline:1rem}
  .comment{margin-left:calc(var(--depth,0) * .7rem)}
  .search-input{width:100%;margin-bottom:.5rem}
}






/* ==========================================================================
   HOMEPAGE — Editorial layout
   ========================================================================== */

/* ---------------------------------------------------- global spacing */
.hp-hero,
.hp-featured,
.hp-latest {
    position: relative;
}

.hp-featured { padding: 5rem 0 3rem; }
.hp-latest   { padding: 3rem 0 5rem; }

.hp-section-head {
    text-align: center;
    margin-bottom: 3rem;
}

.hp-eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
    position: relative;
    padding: 0 1.6rem;
}
.hp-eyebrow::before,
.hp-eyebrow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1rem;
    height: 1px;
    background: var(--gold);
    opacity: .5;
}
.hp-eyebrow::before { left: 0; }
.hp-eyebrow::after  { right: 0; }

.hp-section-title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 500;
    font-style: italic;
    letter-spacing: -.01em;
    margin: 0;
    line-height: 1.2;
    color: var(--ink);
}

/* ------------------------------------------------------------ hero */
.hp-hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hp-hero::before {
    /* Subtle radial glow behind the title */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 60% 45% at 50% 40%,
        rgba(201, 162, 39, .07) 0%,
        transparent 70%
    );
    pointer-events: none;
}
.hp-hero::after {
    /* Hairline rule at bottom */
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(120px, 20%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    transform: translateX(-50%);
}

.hp-hero-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.hp-hero-ornament {
    display: block;
    font-family: var(--serif);
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 1.6rem;
    opacity: .9;
}

.hp-hero-kicker {
    font-family: var(--sans);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 1.4rem;
}

.hp-hero-title {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 6.5vw, 4.4rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -.02em;
    margin: 0;
    color: var(--ink);
    /* The title is the star — keep it from wrapping badly on narrow screens */
    text-wrap: balance;
}

.hp-hero-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: var(--muted);
    margin: 1.2rem 0 2.4rem;
    line-height: 1.5;
    text-wrap: balance;
}

.hp-hero-cta {
    display: flex;
    gap: .8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------- button variants */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 99px;
    background: transparent;
    color: var(--ink);
    font-size: .86rem;
    font-weight: 500;
    letter-spacing: .04em;
    transition: all .25s ease;
}
.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-soft);
}

.hp-hero-cta .btn-gold {
    display: inline-flex;
    align-items: center;
    padding: .7rem 1.5rem;
    font-size: .86rem;
    letter-spacing: .04em;
}

/* --------------------------------------------------- featured lead */
.hp-lead-card {
    display: block;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    transition: all .35s ease;
    height: 100%;
}
.hp-lead-card:hover {
    transform: translateY(-3px);
    border-color: rgba(201, 162, 39, .35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.hp-lead-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-2);
}
.hp-lead-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s cubic-bezier(.22, .61, .36, 1);
}
.hp-lead-card:hover .hp-lead-media img {
    transform: scale(1.04);
}

.hp-lang {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: .35rem .85rem;
    background: rgba(13, 11, 10, .82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(201, 162, 39, .3);
    border-radius: 99px;
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold);
}
.hp-lang.sm {
    position: static;
    display: inline-block;
    padding: .22rem .6rem;
    font-size: .62rem;
    margin-bottom: .5rem;
}

.hp-lead-body {
    padding: 1.8rem 2rem 2rem;
}

.hp-lead-title {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -.01em;
    margin: 0 0 .9rem;
    color: var(--ink);
    transition: color .25s ease;
}
.hp-lead-card:hover .hp-lead-title { color: var(--gold); }

.hp-lead-excerpt {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.hp-lead-meta {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--muted);
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}
.hp-author { color: var(--ink); font-weight: 500; }
.hp-dot    { opacity: .4; }

/* ---------------------------------------------------- featured side */
.hp-side-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.hp-side-card {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 1.1rem;
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem;
    transition: all .3s ease;
    flex: 1;
}
.hp-side-card:hover {
    border-color: rgba(201, 162, 39, .35);
    transform: translateX(4px);
}

.hp-side-media {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    overflow: hidden;
    background: var(--bg-2);
}
.hp-side-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s ease;
}
.hp-side-card:hover .hp-side-media img {
    transform: scale(1.06);
}

.hp-side-body { min-width: 0; }

.hp-side-title {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.25;
    margin: 0 0 .3rem;
    color: var(--ink);
    transition: color .25s ease;
}
.hp-side-card:hover .hp-side-title { color: var(--gold); }

.hp-side-excerpt {
    font-size: .78rem;
    line-height: 1.55;
    color: var(--muted);
    margin: 0;
    /* Clamp to two lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-side-empty {
    background: var(--panel);
    border: 1px dashed var(--line);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -------------------------------------------------- language tabs */
.hp-lang-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    justify-content: center;
    margin: -1rem 0 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}
.hp-tab {
    padding: .5rem 1.1rem;
    border-radius: 99px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--muted);
    transition: all .2s ease;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.hp-tab:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, .04);
}
.hp-tab.active {
    color: var(--gold);
    background: var(--gold-soft);
    border: 1px solid rgba(201, 162, 39, .35);
}
.hp-tab-count {
    display: inline-block;
    font-size: .68rem;
    padding: 0 .38rem;
    min-width: 1.2rem;
    text-align: center;
    border-radius: 99px;
    background: rgba(255, 255, 255, .06);
    color: var(--muted);
}
.hp-tab.active .hp-tab-count {
    background: rgba(201, 162, 39, .25);
    color: var(--gold);
}

/* ------------------------------------------------------------ empty */
.hp-empty {
    text-align: center;
    padding: 4rem 1rem;
    background: var(--panel);
    border: 1px dashed var(--line);
    border-radius: 20px;
}

/* ------------------------------------------------------------ pager */
.hp-pager {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}
.hp-pager .pagination {
    gap: .35rem;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}
.hp-pager .page-link {
    background: var(--panel);
    border: 1px solid var(--line);
    color: var(--muted);
    border-radius: 10px;
    min-width: 40px;
    text-align: center;
    padding: .5rem .75rem;
    font-size: .84rem;
    font-weight: 500;
    transition: all .2s ease;
}
.hp-pager .page-link:hover {
    background: var(--gold-soft);
    border-color: var(--gold);
    color: var(--gold);
}
.hp-pager .page-item.active .page-link {
    background: var(--gold);
    border-color: var(--gold);
    color: #141110;
    font-weight: 600;
}
.hp-pager .page-item.disabled .page-link {
    opacity: .3;
    pointer-events: none;
}

/* ------------------------------------------------------ responsive */
@media (max-width: 991.98px) {
    .hp-hero        { padding: 4rem 0 3rem; }
    .hp-featured    { padding: 3.5rem 0 2rem; }
    .hp-side-card   { grid-template-columns: 88px 1fr; }
}

@media (max-width: 575.98px) {
    .hp-hero              { padding: 3rem 0 2.5rem; }
    .hp-hero-cta          { flex-direction: column; align-items: stretch; }
    .hp-hero-cta > a      { width: 100%; justify-content: center; }
    .hp-lead-body         { padding: 1.4rem 1.4rem 1.6rem; }
    .hp-side-card         { grid-template-columns: 72px 1fr; gap: .85rem; }
    .hp-lang-tabs         { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 1.2rem; }
    .hp-tab               { flex: 0 0 auto; }
}








/* ==========================================================================
   POEM CARD (public grid)
   ========================================================================== */
.pcard {
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: all .35s ease;
}
.pcard:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 162, 39, .32);
    box-shadow: 0 20px 44px rgba(0, 0, 0, .45);
}

.pcard-media {
    position: relative;
    display: block;
    aspect-ratio: 5 / 4;
    overflow: hidden;
    background: var(--bg-2);
}
.pcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s cubic-bezier(.22, .61, .36, 1);
    display: block;
}
.pcard:hover .pcard-media img { transform: scale(1.05); }

.pcard-body {
    padding: 1.3rem 1.4rem .9rem;
    flex: 1;
}

.pcard-title {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -.01em;
    margin: 0 0 .55rem;
    color: var(--ink);
}
.pcard-title a { color: inherit; transition: color .2s ease; }
.pcard:hover .pcard-title a { color: var(--gold); }

.pcard-excerpt {
    font-size: .85rem;
    line-height: 1.65;
    color: var(--muted);
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pcard-meta {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .74rem;
    color: var(--muted);
}

.pcard-actions {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .7rem 1.1rem;
    border-top: 1px solid var(--line);
    background: rgba(0, 0, 0, .12);
}




.wotl-footer {
    margin-top: 6rem;
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--line);
    background: transparent;  /* was var(--bg-2) — too heavy */
}
.footer-brand { font-size: 1.3rem; }
.footer-note  { font-size: .82rem; max-width: 40ch; }
.footer-title { font-size: .68rem; }
.footer-list a { font-size: .82rem; }
.footer-divider { margin: 2rem 0 .8rem; }







/* ==========================================================================
   AUTH — split layout (brand left, form right)
   ========================================================================== */

.auth-split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: calc(100vh - 76px - 1px);   /* viewport minus nav minus its border */
    margin: 0;
}

/* ---------------------------------------------------- left / brand side */
.auth-brand {
    position: relative;
    padding: 4rem 3rem;
    background:
        radial-gradient(ellipse 80% 60% at 30% 20%, rgba(201, 162, 39, .10) 0%, transparent 60%),
        linear-gradient(160deg, #171310 0%, #0d0b0a 100%);
    border-right: 1px solid var(--line);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.auth-brand::after {
    /* Fine noise / hairline texture — optional, delete if too subtle */
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 40px,
            rgba(255, 255, 255, .012) 40px,
            rgba(255, 255, 255, .012) 41px
        );
    pointer-events: none;
}

.auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
}

.auth-ornament {
    display: block;
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 1.6rem;
    opacity: .85;
}

.auth-brand-name {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: 0 0 .8rem;
}

.auth-brand-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--muted);
    margin: 0 0 3rem;
    line-height: 1.5;
}

.auth-quote {
    margin: 0 0 3rem;
    padding: 1.4rem 0 1.4rem 1.6rem;
    border-left: 2px solid var(--gold);
    position: relative;
}
.auth-quote p {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #d7cec3;
    margin: 0 0 .7rem;
}
.auth-quote cite {
    display: block;
    font-style: normal;
    font-size: .78rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: .85;
}

.auth-brand-foot {
    color: var(--muted);
    margin: 0;
    letter-spacing: .04em;
}

/* ----------------------------------------------------- right / form side */
.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--bg);
}

.auth-panel-inner {
    width: 100%;
    max-width: 380px;
}

.auth-head {
    margin-bottom: 2rem;
}

.auth-title {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-weight: 500;
    letter-spacing: -.01em;
    margin: 0 0 .35rem;
    color: var(--ink);
}

.auth-sub {
    color: var(--muted);
    font-size: .92rem;
    margin: 0;
}

/* ---------------------------------------------------------------- flash */
.auth-flash {
    padding: .8rem 1rem;
    border-radius: 10px;
    font-size: .85rem;
    margin-bottom: 1.3rem;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
}
.auth-flash-error {
    border-color: rgba(224, 87, 107, .35);
    background: rgba(224, 87, 107, .08);
    color: #f0a3af;
}
.auth-flash-warn {
    border-color: rgba(224, 160, 32, .3);
    background: rgba(224, 160, 32, .08);
    color: #e8c36a;
}

/* ---------------------------------------------------------------- form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.auth-label {
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}

.auth-input {
    width: 100%;
    padding: .85rem 1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    font-family: var(--sans);
    font-size: .95rem;
    line-height: 1.4;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.auth-input::placeholder { color: #6b645e; }

.auth-input:hover {
    border-color: rgba(255, 255, 255, .16);
}

.auth-input:focus {
    border-color: var(--gold);
    background: var(--bg-2);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

/* Kill the ugly yellow Chrome autofill background */
.auth-input:-webkit-autofill,
.auth-input:-webkit-autofill:hover,
.auth-input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--ink);
    -webkit-box-shadow: 0 0 0 1000px var(--panel) inset;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: var(--ink);
}

.auth-hint {
    font-size: .74rem;
    color: var(--muted);
    margin-top: .1rem;
}

.auth-submit {
    margin-top: .8rem;
    padding: .9rem 1.4rem;
    font-size: .88rem;
    letter-spacing: .06em;
    border-radius: 12px;
}

/* ------------------------------------------------------------ meta link */
.auth-alt {
    margin: 1.8rem 0 0;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: .86rem;
    color: var(--muted);
}
.auth-alt a {
    color: var(--gold);
    font-weight: 500;
    transition: opacity .2s ease;
}
.auth-alt a:hover { opacity: .8; }

/* ---------------------------------------------------- responsive layout */
@media (max-width: 991.98px) {
    .auth-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .auth-brand {
        padding: 3rem 2rem 2.5rem;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        text-align: center;
    }
    .auth-brand-inner { max-width: 460px; }
    .auth-ornament { font-size: 1.6rem; margin-bottom: 1rem; }
    .auth-brand-tagline { margin-bottom: 1.6rem; }
    .auth-quote {
        padding: 1rem 0;
        border-left: 0;
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        margin-bottom: 1.6rem;
    }
    .auth-panel { padding: 3rem 1.5rem 4rem; }
}

@media (max-width: 575.98px) {
    .auth-brand       { padding: 2.4rem 1.5rem 2rem; }
    .auth-panel       { padding: 2.4rem 1.25rem 3rem; }
    .auth-title       { font-size: 1.6rem; }
    .auth-panel-inner { max-width: none; }
}