/* Layout: a calm white reading page under a warm dawn glow, light geometric headings, rounded image cards,
   and one deep kumkum band for events. Outfit (UI, headings) + Source Serif 4 (letters, quotes). */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --cream: #fdf5ec;        /* soft section ground */
  --ink: #111111;
  --body: #3a3a3a;
  --muted: #7c7a77;
  --line: #ece7e1;
  --accent: #a8721c;       /* marigold for text links */
  --gold: #dca54c;         /* buttons, eyebrow labels */
  --gold-ink: #2a1c05;
  --glow-1: #fde4cf;       /* dawn glow behind the header */
  --glow-2: #fff3e6;
  --kumkum: #5b1915;       /* events band */
  --kumkum-ink: #fbeee0;
  --pm: #8c3b2a;           /* postmark ink */
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 12px 32px -18px rgba(60, 40, 20, .25);
  --f-ui: "Outfit", "Helvetica Neue", system-ui, sans-serif;
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-display: var(--f-ui);
  --f-letter: var(--f-serif);
  --r: 14px;
  --step-0: 1rem; --step-1: 1.2rem; --step-2: 1.45rem; --step-3: clamp(1.7rem, 3.2vw, 2.2rem); --step-4: clamp(2.1rem, 4.6vw, 3rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0e0d; --surface: #181614; --cream: #1c1814; --ink: #f2eee8; --body: #cfc9c1; --muted: #948d84; --line: #2c2824;
    --accent: #e3b062; --glow-1: #3a2617; --glow-2: #1a1410; --kumkum: #4a1411; --pm: #e0876f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.6); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0e0d; --surface: #181614; --cream: #1c1814; --ink: #f2eee8; --body: #cfc9c1; --muted: #948d84; --line: #2c2824;
  --accent: #e3b062; --glow-1: #3a2617; --glow-2: #1a1410; --kumkum: #4a1411; --pm: #e0876f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -18px rgba(0,0,0,.6); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-ui); font-weight: 300; font-size: 17px; line-height: 1.65; }
body::before { content: ""; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 100% at 50% 0%, var(--glow-1) 0%, var(--glow-2) 55%, transparent 100%); }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--f-ui); font-weight: 300; line-height: 1.2; text-wrap: balance; margin: 0; color: var(--ink); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-weight: 400; }
p { margin: 0; }
strong { font-weight: 500; }
.wrap { max-width: 1140px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.label { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.eyebrow { display: flex; align-items: center; justify-content: center; gap: .9rem; color: var(--gold); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.eyebrow::before, .eyebrow::after { content: ""; width: 2.2rem; height: 1px; background: currentColor; opacity: .7; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.arr { font-size: .85em; }
.dot { opacity: .5; padding-inline: .45rem; }

/* header: floats on the dawn glow */
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9; background: color-mix(in srgb, var(--glow-2) 70%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .75rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; line-height: 1.05; }
.brand-om { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; font-size: 1.15rem; color: #fff; background: linear-gradient(135deg, #e7a04a, #c2562e); flex: none; }
.brand-name { display: grid; }
.brand-name b { font-weight: 400; font-size: 1.12rem; letter-spacing: .01em; }
.brand-name small { font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.site-head nav { display: flex; gap: .3rem 1.4rem; flex-wrap: wrap; align-items: center; }
.site-head nav a { color: var(--body); text-decoration: none; font-weight: 400; font-size: .95rem; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { color: var(--ink); }
.site-head nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 6px; }
.site-head nav a.nav-pill { border: 1px solid var(--line); background: var(--surface); padding: .25rem .9rem; border-radius: 999px; font-size: .85rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1.35rem; border-radius: 999px; font-family: var(--f-ui); font-weight: 400; font-size: .95rem; text-decoration: none; border: 1px solid transparent; }
.btn-solid { background: var(--gold); color: var(--gold-ink); }
.btn-solid:hover { filter: brightness(1.06); }
.btn-line, .btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-line:hover, .btn-ghost:hover { border-color: var(--gold); }
.link-arrow { color: var(--body); text-decoration: none; font-weight: 400; display: inline-flex; gap: .4rem; align-items: center; }
.link-arrow:hover { color: var(--ink); }

/* featured letter (home hero) */
.feature { padding-block: 3.5rem 3rem; }
.feature-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.feature-text { display: grid; gap: 1rem; min-width: 0; }
.feature h1 { font-size: var(--step-4); }
.feature h1 a { color: inherit; text-decoration: none; }
.feature .excerpt { color: var(--body); font-size: 1.12rem; max-width: 46ch; }
.meta { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.intro { display: grid; gap: .5rem; padding-block: 2.5rem .5rem; text-align: center; justify-items: center; }
.intro h1 { font-size: var(--step-4); }
.intro .lede { color: var(--body); max-width: 58ch; font-size: 1.08rem; }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } .feature-media { order: -1; } }

/* image frames; letters without a photo get a painted dawn tile with their postmark */
.frame { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); max-width: 100%; }
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame-wide { aspect-ratio: 16 / 10; }
.wash { display: grid; place-items: center; background:
  radial-gradient(45% 55% at 25% 30%, rgba(236, 170, 96, .55), transparent 70%),
  radial-gradient(50% 60% at 78% 70%, rgba(126, 170, 196, .45), transparent 70%),
  radial-gradient(40% 40% at 70% 20%, rgba(214, 120, 96, .35), transparent 70%),
  linear-gradient(160deg, #fbf1e4, #f3e6da); }
.wash .postmark { background: rgba(255,255,255,.35); }

/* postmark: this site's own mark */
.postmark { flex: none; width: 96px; height: 96px; border-radius: 50%; border: 2px solid var(--pm); color: var(--pm); display: grid; place-content: center; text-align: center; transform: rotate(-9deg); position: relative; font-family: var(--f-ui); }
.postmark::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px dashed var(--pm); opacity: .6; }
.wash .postmark { color: #8c3b2a; border-color: #8c3b2a; }
.wash .postmark::after { border-color: #8c3b2a; }
.pm-no { font-size: 1.8rem; line-height: 1; font-weight: 300; }
.pm-date { font-size: .6rem; letter-spacing: .08em; font-weight: 500; font-variant-numeric: tabular-nums; }
.pm-place { font-size: .54rem; letter-spacing: .14em; }
.frame .postmark { width: clamp(110px, 22%, 150px); height: auto; aspect-ratio: 1; }
.frame .pm-no { font-size: clamp(2rem, 4vw, 2.8rem); }

/* sections */
.band { padding-block: 3rem; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.sec-head h2 { font-size: var(--step-2); font-weight: 400; }
.sec-note { margin: -1rem 0 1.6rem; color: var(--muted); max-width: 62ch; }
.sheet { background: var(--bg); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 30px -24px rgba(60,40,20,.35); position: relative; }
.page-head { padding-block: 3rem 1.5rem; text-align: center; }
.page-head .wrap { display: grid; gap: .7rem; justify-items: center; }
.page-head h1 { font-size: var(--step-4); }
.page-head .lede { color: var(--body); font-size: 1.08rem; }

/* letter cards: image on top, title, date */
.card-grid, .letter-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 2.2rem 1.6rem; }
.letter-card { position: relative; display: grid; gap: .7rem; align-content: start; }
.letter-card .frame { aspect-ratio: 3 / 2; }
.letter-card .frame .postmark { width: 96px; }
.letter-card .frame .pm-no { font-size: 1.8rem; }
.letter-card h3 { font-size: 1.15rem; font-weight: 400; }
.letter-card h3 a { color: var(--ink); text-decoration: none; }
.letter-card h3 a::after { content: ""; position: absolute; inset: 0; }
.letter-card:hover h3 a { color: var(--accent); }
.letter-card .excerpt { color: var(--body); font-size: .95rem; }
.lc-body { display: grid; gap: .35rem; min-width: 0; }
.tags { display: flex; gap: .4rem; flex-wrap: wrap; }
.tag { font-size: .75rem; padding: .1rem .65rem; border-radius: 999px; background: var(--cream); color: var(--body); border: 1px solid var(--line); }

/* library: a shelf that scrolls sideways, and a filterable grid */
.lib-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.shelf { list-style: none; margin: 0; padding: 0 0 1rem; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 250px); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; }
.shelf > li { scroll-snap-align: start; }
.lib-card { position: relative; display: grid; gap: .5rem; align-content: start; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); transition: box-shadow .2s, transform .2s; }
.lib-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.lib-card h3 { font-size: 1.1rem; }
.lib-card h3 a { color: var(--ink); text-decoration: none; }
.lib-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r); }
.lib-card p { color: var(--body); font-size: .92rem; }
.src { font-size: .8rem; color: var(--accent); font-weight: 400; }
.pill { justify-self: start; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; padding: .12rem .6rem; border-radius: 999px; background: var(--cream); color: var(--muted); }
.pill-app { color: var(--accent); }
.pill-youtube { color: var(--pm); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; }
.chip { font: inherit; font-weight: 400; font-size: .9rem; padding: .35rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.lib-grid + .small { margin-top: 1.2rem; }

/* events: deep kumkum banners */
.event-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.event { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 1.6rem 1.8rem; border-radius: 20px; background: var(--kumkum); color: var(--kumkum-ink); box-shadow: var(--shadow); }
.event .label { color: var(--gold); }
.event h3 { color: var(--kumkum-ink); font-family: var(--f-serif); font-size: var(--step-2); font-weight: 400; }
.event .ev-main { display: grid; gap: .3rem; min-width: 0; }
.event .when { font-size: .92rem; opacity: .9; }
.event .btn { background: var(--gold); color: var(--gold-ink); border: 0; }
.note { border: 1px dashed var(--line); background: var(--cream); color: var(--body); border-radius: var(--r); padding: .9rem 1.1rem; font-size: .95rem; }

/* soft cream panels with centred text (why these letters, subscribe) */
.panel { background: linear-gradient(180deg, var(--cream), var(--bg)); border: 1px solid var(--line); border-radius: 28px; padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 5vw, 4rem); text-align: center; display: grid; gap: 1.1rem; justify-items: center; }
.panel h2 { font-family: var(--f-serif); font-weight: 400; font-size: var(--step-3); }
.panel p { max-width: 58ch; color: var(--body); }
.why { font-family: var(--f-serif); font-size: 1.2rem; line-height: 1.6; font-style: italic; }
.sig { font-family: var(--f-serif); font-size: 1.3rem; color: var(--accent); font-style: italic; }

/* letter page: a quiet centred reading column */
.letter-page { padding-block: 2.5rem 4rem; }
.letter-page .wrap { max-width: 820px; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1.6rem; }
.crumbs a { color: var(--muted); }
.paper { display: grid; gap: 1.8rem; }
.paper-top { display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; flex-wrap: wrap-reverse; }
.paper-top > div:not(.postmark) { min-width: 0; flex: 1 1 18rem; display: grid; gap: .8rem; }
.paper h1 { font-size: var(--step-4); }
.paper-top .postmark { width: 84px; height: 84px; }
.paper-top .pm-no { font-size: 1.5rem; }
.letter-body { font-family: var(--f-serif); font-size: 1.2rem; line-height: 1.85; color: var(--body); display: grid; gap: 1.2rem; }
.letter-body p:first-child { font-style: italic; color: var(--ink); }
.letter-body h2, .letter-body h3 { font-family: var(--f-ui); color: var(--ink); }
.letter-body blockquote { margin: 0; padding-left: 1.1rem; border-left: 2px solid var(--gold); font-style: italic; }
.closing { margin-top: .6rem; font-style: italic; margin-bottom: -.6rem; }
.letter-body .sig { margin-top: 0; }
.letter-img { margin: 0; display: grid; gap: .6rem; }
.letter-img img { width: 100%; border-radius: var(--r); aspect-ratio: 16 / 9; object-fit: cover; box-shadow: var(--shadow); }
.letter-img figcaption { font-size: .8rem; color: var(--muted); }
.teachings { margin-top: 2.5rem; padding: 1.4rem 1.6rem; border-radius: var(--r); background: var(--cream); border: 1px solid var(--line); display: grid; gap: .6rem; }
.letter-nav { margin-top: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.letter-nav a { display: grid; gap: .2rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-size: 1.05rem; font-weight: 400; }
.letter-nav a.next { text-align: right; }
.letter-nav a:hover { border-color: var(--gold); }

/* prose (about) */
.prose { max-width: 68ch; display: grid; gap: 1rem; font-family: var(--f-serif); font-size: 1.12rem; color: var(--body); }
.prose h2 { font-family: var(--f-ui); font-size: var(--step-2); margin-top: 1.2rem; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 3rem 2.5rem; font-size: .92rem; margin-top: 3rem; }
.site-foot a { color: var(--body); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }
.site-foot .label { margin-bottom: .6rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.foot-brand { font-size: 1.15rem; color: var(--ink); margin-bottom: .5rem; font-weight: 400; }
.tribute { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) {
  .feature-text, .feature-media { animation: rise .7s ease-out both; }
  .feature-media { animation-delay: .08s; }
  @keyframes rise { from { transform: translateY(8px); } to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { .lib-card { transition: none; } }

/* videos */
.ch-jump { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; margin: 0 0 1rem; font-weight: 400; }
.channel { padding-block: 2rem; border-top: 1px solid var(--line); }
.channel.empty, .more[hidden] { display: none; }
.ch-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.ch-head > div { flex: 1 1 14rem; min-width: 0; }
.ch-head h3 { font-size: var(--step-2); font-weight: 300; }
.ch-logo { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.label.sub { margin: 1.4rem 0 .7rem; }
.vid-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.6rem 1.2rem; }
.vid-grid-shorts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); }
.vid-card { position: relative; display: flex; flex-direction: column; gap: .2rem; }
.vid-card[hidden], .vid-grid[hidden], .label[hidden] { display: none; }
.vid-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--cream); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.vid-card:hover .vid-thumb img { transform: scale(1.03); }
.vid-len { position: absolute; right: .5rem; bottom: .5rem; font-size: .72rem; font-weight: 500; padding: .1rem .55rem; border-radius: 999px; background: rgba(20, 16, 12, .72); color: #fff; }
.vid-body { display: grid; gap: .3rem; padding: .7rem .1rem 0; align-content: start; }
.vid-body .label { font-size: .66rem; }
.vid-card h4 { margin: 0; font-size: 1rem; font-weight: 400; line-height: 1.35; overflow-wrap: anywhere; }
.vid-card h4 a { color: var(--ink); text-decoration: none; }
.vid-card h4 a::after { content: ""; position: absolute; inset: 0; }
.vid-card:hover h4 a { color: var(--accent); }
.vid-card p:not(.label) { margin: 0; color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vid-short .vid-thumb { aspect-ratio: 9 / 14; }
.vid-short h4 { font-size: .88rem; }
.more { margin-top: 1rem; }
.more summary { cursor: pointer; font-weight: 400; color: var(--accent); margin-bottom: 1rem; }
@media (prefers-reduced-motion: reduce) { .vid-thumb img { transition: none; } }

/* event cards: the official picture on top, deep kumkum below; the whole card opens the official page */
.event-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.4rem; }
.event { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border-radius: 20px; }
.event:hover { box-shadow: 0 1px 2px rgba(60,40,20,.08), 0 22px 44px -20px rgba(60,40,20,.45); }
.ev-img { position: relative; display: block; flex: none; aspect-ratio: 16 / 9; background: linear-gradient(160deg, #6e241c, #3c0f0d); }
.ev-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-now { position: absolute; left: .8rem; top: .8rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; padding: .2rem .7rem; border-radius: 999px; background: var(--gold); color: var(--gold-ink); }
.event .ev-main { padding: 1.2rem 1.4rem 1.4rem; gap: .45rem; flex: 1; align-content: start; }
.event h3 a { color: var(--kumkum-ink); text-decoration: none; }
.event h3 a::after { content: ""; position: absolute; inset: 0; }
.ev-link { margin-top: .4rem; font-size: .85rem; color: var(--gold); }
.event-list + .small { margin-top: 1.4rem; }

/* books: covers on a shelf (home) and a grid (library) */
.book-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 2rem 1.4rem; }
.book-shelf { grid-auto-columns: minmax(140px, 160px); }
.book { position: relative; display: grid; gap: .45rem; align-content: start; }
.book-cover { position: relative; display: block; aspect-ratio: 2 / 3; border-radius: 6px 10px 10px 6px; overflow: hidden; background: var(--cream); box-shadow: var(--shadow), inset 4px 0 6px -4px rgba(0,0,0,.25); transition: transform .25s; }
.book-cover img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.book-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: .8rem; text-align: center; font-family: var(--f-serif); font-size: .95rem; line-height: 1.25; color: #f7e8c8; background: linear-gradient(160deg, #6e241c, #3c0f0d); }
.book:hover .book-cover { transform: translateY(-3px); }
.book h3 { font-size: .95rem; font-weight: 400; line-height: 1.3; margin-top: .2rem; }
.book h3 a { color: var(--ink); text-decoration: none; }
.book h3 a::after { content: ""; position: absolute; inset: 0; }
.book:hover h3 a { color: var(--accent); }
.book-by { font-size: .78rem; color: var(--muted); }
.book-meta { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.book-meta .dot { padding-inline: .3rem; }
.book-grid + .small { margin-top: 1.4rem; }
@media (prefers-reduced-motion: reduce) { .book-cover { transition: none; } }

/* Letters from devotees and the "Write to Swamiji" form */
.site-head nav a.nav-pill { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.meta.by { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--line); background: var(--cream); }
.avatar-sm { width: 28px; height: 28px; font-size: .8rem !important; }
.avatar-blank { display: inline-grid; place-items: center; color: var(--pm); font-family: var(--f-serif); font-size: 1.2rem; }
.panel-write { margin-top: 2.4rem; }
.community-body p { white-space: normal; overflow-wrap: anywhere; }
.c-gallery { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.c-gallery figure { margin: 0; display: grid; gap: .4rem; }
.c-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); box-shadow: var(--shadow); display: block; }
.c-gallery-1 img { aspect-ratio: auto; max-height: 70vh; object-fit: contain; background: var(--cream); }
.c-gallery figcaption { font-size: .85rem; color: var(--muted); }

.write-wrap { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .write-wrap { grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); align-items: start; } .rules { position: sticky; top: 1.5rem; } .thanks { grid-column: 2; } }
.card-soft { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.5rem; display: grid; gap: .8rem; }
.rules h2 { font-family: var(--f-serif); font-weight: 400; font-size: var(--step-2); }
.rules ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; color: var(--body); font-size: .95rem; }
.write-form { display: grid; gap: 1.6rem; min-width: 0; }
.write-form fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.4rem 1.5rem; margin: 0; display: grid; gap: 1.1rem; min-width: 0; }
.write-form legend { font-family: var(--f-serif); font-size: var(--step-1); padding-inline: .4rem; }
.write-form .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.1rem; }
.write-form label:not(.check):not(.btn) { display: grid; gap: .35rem; font-weight: 500; font-size: .93rem; }
.write-form .flabel { font-weight: 500; font-size: .93rem; }
.write-form input:not([type="checkbox"]), .write-form textarea { font: inherit; font-weight: 400; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; }
.write-form input:focus, .write-form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
.write-form textarea { font-family: var(--f-letter); font-size: 1.08rem; line-height: 1.75; min-height: 18rem; resize: vertical; }
.write-form .check { display: flex; gap: .6rem; align-items: flex-start; font-size: .93rem; color: var(--body); }
.write-form .check input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; accent-color: var(--pm); flex: none; }
.write-form .agree { background: var(--cream); border-radius: 10px; padding: .9rem 1rem; }
.write-form .btn { cursor: pointer; justify-self: start; }
.write-form .btn:disabled { opacity: .6; cursor: wait; }
.hint { font-weight: 400; font-size: .82rem; color: var(--muted); }
.hint.err, .msg.err { color: var(--pm); }
.msg { min-height: 1.4em; font-size: .95rem; color: var(--accent); }
.pick { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.pick .avatar { width: 64px; height: 64px; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: .88rem; color: var(--pm); text-decoration: underline; cursor: pointer; }
.pics { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.pics:empty { display: none; }
.pic { display: grid; gap: .45rem; }
.pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.pic input { font-size: .85rem !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.privacy-note { border-top: 1px solid var(--line); padding-top: .9rem; display: grid; gap: .5rem; font-size: .92rem; color: var(--body); }
.letter-img img { object-position: center 62%; }
.letter-gallery { margin-top: .4rem; }
.letter-gallery.c-gallery-1 { max-width: 26rem; }
.letter-gallery.c-gallery-1 img { aspect-ratio: 3 / 4; max-height: none; object-fit: cover; background: none; }
.writer { display: grid; gap: 1.4rem; align-items: start; }
@media (min-width: 700px) { .writer { grid-template-columns: 11rem minmax(0, 1fr); gap: 2rem; } }
.about-photo { margin: 0; display: grid; gap: .5rem; max-width: 22rem; }
.about-photo img { width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--shadow); display: block; }
.about-photo figcaption { font-size: .85rem; color: var(--muted); }
.sig-who { display: inline-flex; align-items: center; gap: .8rem; }
.sig-who .avatar { width: 56px; height: 56px; }
.about-photo img { aspect-ratio: 1; object-fit: cover; }
.about-wide { margin: .6rem 0 0; display: grid; gap: .5rem; }
.about-wide img { width: 100%; height: auto; border-radius: var(--r); box-shadow: var(--shadow); display: block; }
.about-wide figcaption { font-size: .85rem; color: var(--muted); }

/* Live event spotlight at the top of the home page */
.spotlight { padding-block: 1.6rem .4rem; }
.spot { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); background: var(--kumkum); color: var(--kumkum-ink); border-radius: 24px; overflow: hidden; box-shadow: 0 1px 2px rgba(60,40,20,.08), 0 22px 44px -22px rgba(60,40,20,.5); }
@media (min-width: 820px) { .spot { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.spot-img { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #6e241c, #3c0f0d); }
@media (min-width: 820px) { .spot-img { aspect-ratio: auto; min-height: 100%; } }
.spot-img img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
/* The whole picture is always shown; a soft, blurred copy of it fills the space around it. */
.spot-img { overflow: hidden; }
.spot-img .spot-main { object-fit: contain; }
.spot-img .spot-bg { object-fit: cover; filter: blur(22px) brightness(.55) saturate(1.2); transform: scale(1.15); }
@media (min-width: 820px) { .spot-img { min-height: clamp(320px, 34vw, 440px); } }
.spot-text { padding: clamp(1.4rem, 4vw, 2.6rem); display: grid; gap: .7rem; align-content: center; }
.spot-text .label { color: var(--gold); }
.spot-text h2 { font-family: var(--f-serif); font-weight: 400; font-size: var(--step-4); line-height: 1.1; }
.spot-text h2 a { color: var(--kumkum-ink); text-decoration: none; }
.spot-text h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.spot-text .when { font-size: 1.05rem; }
.spot-tag { opacity: .85; font-size: .95rem; max-width: 46ch; }
.spot .btns { display: flex; gap: 1.2rem; flex-wrap: wrap; align-items: center; margin-top: .4rem; }
.spot .link-arrow { color: var(--kumkum-ink); }
.spotlight + .spotlight { padding-top: .6rem; }
.writer-text { display: grid; gap: 1rem; min-width: 0; }
.writer-text p:has(> strong:only-child) { font-family: var(--f-serif); font-size: var(--step-2); color: var(--ink); margin-block: .6rem; }
.writer-text .closing { margin-bottom: -.8rem; }
@media (min-width: 700px) { .writer .about-photo { position: sticky; top: 5.5rem; } }

/* Letter editor and the formatting it allows (also used on approved letters) */
.rte-field { display: grid; gap: .35rem; }
.rte-bar { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: .4rem; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--cream); }
.rte-bar button, .rte-bar select { font: inherit; font-size: .9rem; min-width: 2.2rem; height: 2.2rem; padding: 0 .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
.rte-bar button:hover, .rte-bar select:hover { border-color: var(--gold); }
.rte-bar mark { padding: 0 .2rem; }
.write-form .rte { position: relative; min-height: 18rem; max-height: 70vh; overflow: auto; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 0 0 10px 10px; background: var(--surface); color: var(--ink); font-family: var(--f-letter); font-size: 1.08rem; line-height: 1.75; overflow-wrap: anywhere; }
.write-form .rte:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.rte p { margin: 0 0 .9rem; }
.rte.empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; position: absolute; }
mark, .community-body mark { background: #fde68a; color: inherit; padding: 0 .15em; border-radius: 3px; }
.f-serif { font-family: var(--f-serif); } .f-sans { font-family: var(--f-ui); } .f-hand { font-family: "Caveat", "Segoe Print", cursive; font-size: 1.3em; line-height: 1.4; }
.s-sm { font-size: .85em; } .s-lg { font-size: 1.25em; } .s-xl { font-size: 1.55em; line-height: 1.35; }
.f-hand.s-lg { font-size: 1.6em; } .f-hand.s-xl { font-size: 1.95em; }
.rte-bar b { font-weight: 700; } .rte-bar i { font-style: italic; font-family: var(--f-serif); }
/* Library card pictures: official homepage screenshots and channel videos */
.lib-card.has-pic { padding-top: 0; overflow: hidden; }
.lib-pic { position: relative; margin: 0 -1.2rem .4rem; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); border-bottom: 1px solid var(--line); }
.lib-pic img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .5s ease; }
.lib-card:hover .lib-pic img { transform: scale(1.04); }
.lib-pic-yt img { object-position: center; }
.lib-pic .lib-logo { position: absolute; left: .7rem; bottom: .7rem; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); transform: none !important; }
.lib-play { position: absolute; inset: 50% auto auto 50%; width: 52px; height: 36px; margin: -18px 0 0 -26px; border-radius: 10px; background: rgba(200, 0, 0, .88); }
.lib-play::after { content: ""; position: absolute; left: 21px; top: 10px; border-left: 14px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
@media (prefers-reduced-motion: reduce) { .lib-pic img { transition: none; } .lib-card:hover .lib-pic img { transform: none; } }
.lib-pic-yt { background: linear-gradient(135deg, #2b1d14, #5a3a22); }
.lib-pic img { color: transparent; font-size: 0; } /* if a picture can't load, don't spill its description over the card */
