/* =============================================================
   Punjabia — article.css  ·  “Manuscript & Phulkari” reading layout
   -------------------------------------------------------------
   Long-form reading on the dark theme: article header, prose,
   timeline, lyrics (stanza grid), word study, place tables,
   examples, sources, related reading.
   Loaded in addition to style.css on article & about pages.
   Prose uses the Newsreader serif at a generous measure —
   the vivid colour lives in the components, not the body text.
   ============================================================= */

/* ---------- Article header ---------- */
.article-head {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70rem 30rem at 110% -30%, color-mix(in srgb, var(--gold-400) 20%, transparent), transparent 60%),
    radial-gradient(50rem 26rem at -20% 120%, color-mix(in srgb, var(--madder-400) 12%, transparent), transparent 55%),
    linear-gradient(170deg, var(--indigo-900), var(--indigo-800));
  border-bottom: 1px solid var(--line-dark);
  color: var(--cream);
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
}
.article-head__inner { position: relative; z-index: 1; max-width: 780px; margin-inline: auto; }
.article-head h1 { font-size: var(--step-4); margin: .3rem 0 .7rem; color: var(--cream); }
.article-head h1 .gur {
  background: linear-gradient(92deg, var(--gold-300), var(--gold-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.article-head .lede { max-width: 60ch; color: var(--cream-muted); }

.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .8rem;
  margin-top: 1.2rem; font-family: var(--font-sans);
  font-size: .85rem; color: var(--cream-muted);
}
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold-400); opacity: .9; }
/* Knowledge-type pills sit on the dark masthead — lighten them there */
.article-head .src {
  background: color-mix(in srgb, var(--c) 28%, transparent);
  color: color-mix(in srgb, var(--c) 35%, #fff);
  border-color: color-mix(in srgb, var(--c) 45%, #fff);
}
.article-head .src::before { background: color-mix(in srgb, var(--c) 35%, #fff); }

/* ---------- Article body / prose ---------- */
.article-body {
  max-width: 68ch; margin: clamp(2rem, 5vw, 3.2rem) auto 0;
  padding-inline: clamp(1.1rem, 4vw, 2.2rem);
  font-family: var(--font-serif);
  font-size: 1.14rem; line-height: 1.8;
  color: var(--ink-700); /* slightly softer than headings for long reading */
}
.article-body > p,
.article-body > ul,
.article-body > ol { margin: 0 0 1.3rem; }
.article-body h2 { font-size: var(--step-2); margin: 2.6rem 0 .9rem; padding-top: .4rem; }
.article-body h2::before {
  content: ""; display: block; width: 52px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent-theme), var(--accent-theme-2));
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent-theme) 25%, transparent);
  margin-bottom: .9rem;
}
.article-body h3 { font-size: var(--step-1); margin: 1.8rem 0 .7rem; }
.article-body a { text-decoration: underline; }
.article-body strong { color: var(--text); font-weight: 650; }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li { margin-bottom: .5rem; }
.article-body em { color: var(--text); }

/* Drop cap on opening paragraph */
.article-body .dropcap::first-letter {
  font-family: var(--font-display); font-weight: 600;
  font-size: 3.5em; line-height: .8; float: left;
  padding: .06em .12em .02em 0;
  background: linear-gradient(160deg, var(--accent-theme), var(--accent-theme-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Article figures (historical images & artworks) ---------- */
.article-figure { margin: 2rem 0; }
.article-figure img {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
}
.article-figure figcaption {
  margin-top: .6rem; font-family: var(--font-serif); font-style: italic;
  font-size: .9rem; line-height: 1.55; color: var(--text-3);
}
.article-figure figcaption a { color: inherit; text-decoration: underline; }

/* ---------- Place / comparison tables ---------- */
.place-table {
  width: 100%; border-collapse: collapse; margin: 1.8rem 0;
  font-size: .98rem; font-family: var(--font-sans);
  background: var(--card-bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
}
.place-table caption {
  caption-side: bottom; text-align: left; margin-top: .7rem;
  font-size: .85rem; color: var(--text-3); font-style: italic; line-height: 1.5;
  font-family: var(--font-serif);
}
.place-table th {
  text-align: left; font-size: .76rem;
  letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
  color: var(--gold-300);
  background: linear-gradient(90deg, var(--indigo-800), var(--indigo-700));
  padding: .75rem .85rem; border-bottom: 1px solid color-mix(in srgb, var(--gold-500) 50%, transparent);
}
.place-table td { padding: .7rem .85rem; border-top: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.place-table tbody tr:nth-child(even) { background: rgba(38,31,18,.04); }
.place-table tbody tr:hover { background: color-mix(in srgb, var(--accent-theme) 7%, transparent); }
.place-table td.modern { font-weight: 600; color: var(--text); }
.place-table td.historic { font-style: italic; color: var(--text-2); font-family: var(--font-serif); }
.place-table .era {
  display: block; font-family: var(--font-gur); font-style: normal;
  font-size: .82rem; color: var(--text-3); margin-top: .15rem;
}
@media (max-width: 620px) {
  .place-table, .place-table thead, .place-table tbody, .place-table th, .place-table td, .place-table tr { display: block; }
  .place-table thead { display: none; }
  .place-table td { border-top: 0; }
  .place-table tr { border-top: 1px solid var(--line); padding: .5rem 0; }
}

/* ---------- Timeline ---------- */
.timeline { position: relative; margin: 2rem 0; padding-left: 1.6rem; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: .4rem; bottom: .4rem;
  width: 2px; border-radius: 2px;
  background: linear-gradient(var(--gold-500), var(--madder-500), var(--indigo-600));
}
.timeline__item { position: relative; padding: 0 0 1.6rem 1.1rem; }
.timeline__item::before {
  content: ""; position: absolute; left: -1.6rem; top: .35rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--gold-500); border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--gold-500), 0 0 12px rgba(205,140,42,.35);
}
.timeline__item:hover::before { background: var(--madder-500); box-shadow: 0 0 0 1px var(--madder-500), 0 0 14px rgba(157,43,63,.45); }
.timeline__year {
  font-family: var(--font-sans); font-weight: 700; font-size: .82rem;
  letter-spacing: .08em; color: var(--gold-600); margin: 0 0 .15rem;
}
.timeline__title { font-size: 1.14rem; margin: 0 0 .3rem; }
.timeline__item p:last-child { margin: 0; color: var(--text-2); font-size: 1rem; }

/* ---------- Lyrics / stanza ---------- */
.stanza {
  position: relative;
  background: linear-gradient(160deg, var(--khaddar-50), var(--khaddar-100));
  border: 1px solid var(--line); border-left: 3px solid var(--accent-theme);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem 1.4rem; margin: 1.7rem 0; box-shadow: var(--shadow-1);
}
.stanza__num {
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; font-weight: 600; color: var(--accent-theme); margin: 0 0 .9rem;
}
.stanza__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; }
@media (max-width: 640px) { .stanza__grid { grid-template-columns: 1fr; } }
.lyric-lane h4 {
  font-family: var(--font-sans); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--text-3); margin: 0 0 .35rem;
}
.lyric-lane p { margin: 0; }
.lyric-lane .gur  { font-size: 1.38rem; line-height: 1.8; color: var(--ink-900); }
.lyric-lane .shah { font-size: 1.3rem; line-height: 2.1; color: var(--indigo-600); direction: rtl; text-align: right; margin-top: .3rem; }
.lyric-lane .translit { font-family: var(--font-serif); font-style: italic; font-size: 1.05rem; line-height: 1.7; color: var(--text-2); }
.lyric-lane .literal  { font-family: var(--font-serif); font-size: 1rem; line-height: 1.6; color: var(--text-2); }
.lyric-lane .natural  { font-family: var(--font-serif); font-size: 1.04rem; line-height: 1.6; color: var(--text); }

.analysis { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px dashed var(--line); }
.analysis h4 {
  font-family: var(--font-sans); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--text-3); margin: 0 0 .5rem;
}
.analysis p { margin: 0 0 .7rem; color: var(--text-2); font-size: 1rem; font-family: var(--font-serif); }
.devices { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; padding: 0; margin: 0; }
.devices li {
  font-family: var(--font-sans); font-size: .76rem; font-weight: 600; color: var(--violet);
  background: color-mix(in srgb, var(--violet) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--violet) 40%, transparent);
  padding: .28rem .65rem; border-radius: 999px;
}

/* ---------- Word study ---------- */
.word-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem 2rem; align-items: center;
  background:
    radial-gradient(40rem 20rem at 85% -20%, color-mix(in srgb, var(--gold-400) 22%, transparent), transparent 60%),
    linear-gradient(150deg, var(--indigo-700), var(--indigo-800));
  border: 1px solid var(--indigo-600);
  color: var(--cream);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.4rem); margin: 0 0 1.8rem;
  box-shadow: var(--shadow-1);
}
@media (max-width: 620px) { .word-hero { grid-template-columns: 1fr; } }
.scripts-big { text-align: center; }
.scripts-big .gur  {
  font-size: clamp(3.2rem, 9vw, 5rem); line-height: 1.1; font-weight: 600;
  background: linear-gradient(160deg, var(--gold-300), var(--gold-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px color-mix(in srgb, var(--gold-400) 35%, transparent));
}
.scripts-big .shah { font-size: clamp(2.4rem, 7vw, 3.6rem); line-height: 1.5; color: var(--gold-300); direction: rtl; }
.scripts-big .translit { font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--cream-muted); margin: .3rem 0 0; }
.scripts-big .pron { font-family: var(--font-sans); font-size: .85rem; color: var(--cream-muted); margin: .2rem 0 0; }
.word-hero .gloss { font-family: var(--font-serif); font-size: 1.18rem; line-height: 1.6; color: var(--cream); margin: 0; }

.word-rows { margin: 1.6rem 0; display: grid; gap: 0; }
.word-row {
  display: grid; grid-template-columns: 210px 1fr; gap: 1rem;
  padding: .95rem 0; border-top: 1px solid var(--line);
}
.word-row:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 620px) { .word-row { grid-template-columns: 1fr; gap: .2rem; } }
.word-row dt {
  font-family: var(--font-sans); font-weight: 600; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--accent-theme);
}
.word-row dd { margin: 0; color: var(--text-2); font-family: var(--font-serif); }
.word-row dd strong { color: var(--text); }

/* Example sentences */
.example {
  background: color-mix(in srgb, var(--marigold) 7%, var(--card-bg));
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: .95rem 1.2rem; margin: 1.1rem 0;
}
.example .gur { font-size: 1.38rem; line-height: 1.75; color: var(--ink-900); margin: 0 0 .2rem; }
.example .translit { font-family: var(--font-serif); font-style: italic; color: var(--text-2); margin: 0 0 .15rem; }
.example .en { margin: 0; color: var(--text); font-family: var(--font-serif); }

/* ---------- Sources & stub note ---------- */
.sources { max-width: 68ch; margin: 2.6rem auto 0; }
.sources h2 { font-size: var(--step-1); margin: 0 0 .8rem; }
.sources ol { padding-left: 1.3rem; color: var(--text-2); font-family: var(--font-serif); }
.sources li { margin-bottom: .55rem; line-height: 1.6; }

.stub-note {
  max-width: 68ch; margin: 1.8rem auto 0;
  background: var(--bg-2); border: 1px dashed color-mix(in srgb, var(--text-3) 45%, transparent);
  border-radius: var(--radius-sm);
  padding: .9rem 1.15rem; font-size: .92rem; color: var(--text-3); font-style: italic;
  font-family: var(--font-serif);
}

/* ---------- Related reading ---------- */
.related { margin-top: clamp(2.6rem, 6vw, 4rem); border-top: 1px solid var(--line); padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: 1rem; }
.related-card {
  --pc: var(--gold-600);
  display: block; background: linear-gradient(160deg, var(--khaddar-50), var(--khaddar-100));
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.25rem; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-1); transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.related-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--pc) 60%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--pc) 40%, transparent), 0 16px 40px color-mix(in srgb, var(--pc) 20%, transparent);
}
.related-card .card__kicker { display: block; margin-bottom: .35rem; }
.related-card h3 { margin: 0; font-size: 1.12rem; }

