/* ==================================================================
   Pages & components added on top of main.css
   (home extras, generic page header, full letter, lines, footer, tools)
================================================================== */

.skip { position: fixed; left: 12px; top: -60px; z-index: 100000; padding: .5rem 1rem; border-radius: 8px; background: var(--bg1); color: var(--ink); border: 1px solid var(--accent); font-size: .9rem; transition: top .2s ease; }
.skip:focus { top: 10px; }

/* ---------- font scale (A− / A+) ---------- */
:root { --fs: 1; }
.prose { font-size: calc(clamp(1.05rem, 1rem + .3vw, 1.18rem) * var(--fs)); }
.letter.is-final .prose { font-size: calc(clamp(1.15rem, 4.4vw, 1.7rem) * var(--fs)); }
.ask { font-size: calc(clamp(1.25rem, 4.2vw, 1.65rem) * var(--fs)); }

.fs-ctl { display: inline-flex; border: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 99px; overflow: hidden; }
.fs-ctl button { min-width: 42px; height: 32px; padding: 0 .7rem; background: transparent; border: 0; cursor: pointer; font: 400 .82rem/1 var(--ui); color: color-mix(in srgb, var(--ink) 70%, transparent); transition: color .3s ease, background .3s ease; }
.fs-ctl button + button { border-left: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.fs-ctl button:hover { color: var(--ink); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.fs-ctl button[disabled] { opacity: .3; pointer-events: none; }
.fs-center { margin-top: 18px; }
.reader-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 4px; }
.tool-link { font-size: .85rem; color: color-mix(in srgb, var(--ink) 60%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); padding-bottom: 1px; transition: color .3s ease, border-color .3s ease; }
.tool-link:hover { color: var(--ink); border-color: var(--accent); }
.meta { margin: -14px 0 26px; font-size: .84rem; color: color-mix(in srgb, var(--ink) 48%, transparent); }

/* ---------- generic page header ---------- */
.pg { max-width: 46rem; margin: 0 auto; padding: 64px 20px 56px; }
.pg-wide { max-width: 68rem; }
.pg-head { text-align: center; margin-bottom: 44px; }
.pg-head h2 { margin: 0; font-weight: 400; font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.4; }
.pg-sub { margin: 10px 0 0; font-size: .95rem; color: color-mix(in srgb, var(--ink) 56%, transparent); }
.pg-head .hero-eyebrow { margin-bottom: 14px; }

/* ---------- home: quote band ---------- */
.qband { position: relative; max-width: 54rem; margin: 0 auto; padding: 56px 24px 64px; text-align: center; }
.qband::before, .qband::after { content: ''; position: absolute; left: 50%; width: 1px; height: 36px; background: linear-gradient(transparent, color-mix(in srgb, var(--accent) 50%, transparent)); transform: translateX(-50%); }
.qband::before { top: 0; }
.qband::after { bottom: 0; transform: translateX(-50%) rotate(180deg); }
.qband-in { margin: 0; min-height: 9.5rem; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity .9s ease; }
.qband-in.is-swap { opacity: 0; }
.qband-text { margin: 0; font-weight: 300; font-size: clamp(1.4rem, 4.6vw, 2.2rem); line-height: 1.75; max-width: 34rem; color: color-mix(in srgb, var(--ink) 94%, transparent); }
.qband-src { margin-top: 16px; font-size: .84rem; }
.qband-src a { color: var(--accent); }
.qband-more { display: inline-block; margin-top: 22px; font-size: .85rem; color: color-mix(in srgb, var(--ink) 60%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); padding-bottom: 1px; }
.qband-more:hover { color: var(--ink); border-color: var(--accent); }

/* ---------- home: closing ---------- */
.home-cta { max-width: 40rem; margin: 0 auto; padding: 30px 24px 90px; text-align: center; }
.home-cta h3 { margin: 0; font-weight: 400; font-size: clamp(1.4rem, 4.6vw, 2rem); line-height: 1.6; }
.home-cta p { margin: 8px 0 28px; color: color-mix(in srgb, var(--ink) 56%, transparent); }

/* ---------- before you read ---------- */
.begin-list { list-style: none; counter-reset: b; margin: 0 0 42px; padding: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.begin-list li { counter-increment: b; position: relative; padding: 24px 0 24px 52px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); }
.begin-list li::before { content: counter(b, bengali); position: absolute; left: 0; top: 24px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .95rem; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.begin-list h3 { margin: 0 0 6px; font-weight: 400; font-size: 1.15rem; line-height: 1.6; }
.begin-list p { margin: 0; line-height: 1.95; font-size: .98rem; color: color-mix(in srgb, var(--ink) 66%, transparent); }
#page-begin .hero-actions { justify-content: center; }

/* ---------- full letter ---------- */
.f-chap { padding: 70px 0 20px; max-width: 40rem; margin: 0 auto; }
.f-chap + .f-chap { border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.f-chap .chip { margin-bottom: 10px; }
.f-chap h3 { margin: 0 0 8px; font-weight: 400; line-height: 1.45; font-size: clamp(1.5rem, 5vw, 2.1rem); }
.f-chap .meta { margin: 0 0 24px; }
.f-chap .prose { max-width: none; }
.f-chap .ask { margin: 30px 0 18px; }
.f-chap .f-reply { display: inline-block; margin-top: 8px; font-size: .88rem; color: var(--accent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); padding-bottom: 1px; }
.f-chap.is-final { text-align: center; }
.f-chap.is-final .prose { font-size: calc(clamp(1.15rem, 4.2vw, 1.55rem) * var(--fs)); }
.f-chap.is-final .line { display: block; margin-bottom: .4rem; }
.f-chap.is-final .prose p { margin-bottom: 2rem; }
.full-end { text-align: center; padding: 70px 0 20px; }
.full-end p { margin: 0 0 24px; font-size: 1.25rem; font-weight: 400; }

/* ---------- lines wall ---------- */
.lines-grid { columns: 1; column-gap: 18px; }
@media (min-width: 820px) { .lines-grid { columns: 2; column-gap: 22px; } }
.q-card { break-inside: avoid; margin: 0 0 18px; padding: 28px 26px 22px; border-radius: var(--radius-sm); position: relative; background: color-mix(in srgb, var(--bg1) 70%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 9%, transparent); border-top: 1px solid color-mix(in srgb, var(--q) 70%, transparent); transition: border-color .4s ease, transform .5s var(--ease); }
.q-card:hover { border-color: color-mix(in srgb, var(--q) 55%, transparent); transform: translateY(-2px); }
.q-card::before { content: '“'; position: absolute; top: 4px; left: 20px; font: 400 3.6rem/1 var(--serif); color: var(--q); opacity: .35; }
.q-card blockquote { margin: 18px 0 20px; font-weight: 300; font-size: 1.28rem; line-height: 1.85; }
.q-card figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .82rem; }
.q-card figcaption a { color: var(--q); }
.q-copy { background: none; border: 0; padding: 4px 0; cursor: pointer; font: 300 .82rem var(--serif); color: color-mix(in srgb, var(--ink) 52%, transparent); }
.q-copy:hover { color: var(--ink); }

/* ---------- footer ---------- */
.site-foot { padding: 0; text-align: left; letter-spacing: normal; font-size: .9rem; color: color-mix(in srgb, var(--ink) 60%, transparent); border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); margin-top: 20px; background: color-mix(in srgb, var(--bg1) 60%, transparent); }
.foot-in { max-width: 68rem; margin: 0 auto; padding: 46px 24px 96px; display: grid; gap: 34px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; }
.foot-logo { display: block; font-size: 2rem; line-height: 1; color: var(--ink); margin-bottom: 8px; }
.foot-brand p { margin: 0; font-size: .88rem; }
.foot-col h4 { margin: 0 0 12px; font-weight: 400; font-size: .8rem; color: var(--accent); }
.foot-col a { display: block; padding: 5px 0; color: color-mix(in srgb, var(--ink) 66%, transparent); transition: color .3s ease; }
.foot-col a:hover { color: var(--ink); }
@media (min-width: 720px) { .foot-in { grid-template-columns: 2fr 1fr 1fr; padding-bottom: 80px; } .foot-brand { grid-column: auto; } }

@media (prefers-reduced-motion: reduce) { .qband-in, .q-card { transition: none; } }

@counter-style bengali { system: numeric; symbols: '০' '১' '২' '৩' '৪' '৫' '৬' '৭' '৮' '৯'; }
