/* Tēne palukulu · తేనె పలుకులు — kalamkari madder, iron black and turmeric, Godavari green-grey, indigo, palm green and handmade cream */
@font-face{font-family:"Noto Serif Telugu";font-style:normal;font-weight:400;font-display:swap;
  src:url("fonts/noto-serif-telugu-400.woff2") format("woff2");unicode-range:U+0C00-0C7F,U+200C-200D,U+25CC,U+0964-0965}
@font-face{font-family:"Noto Serif Telugu";font-style:normal;font-weight:600;font-display:swap;
  src:url("fonts/noto-serif-telugu-600.woff2") format("woff2");unicode-range:U+0C00-0C7F,U+200C-200D,U+25CC,U+0964-0965}
:root{
  --paper:#f3e7cf;      /* handmade cotton paper */
  --paper-hi:#f9f2e3;
  --ink:#2b2622;        /* the iron-black outline of kalamkari */
  --ink-soft:#5f564d;
  --ink-faint:#998d80;
  --indigo:#2c4a6b;
  --deep:#1f2f45;
  --soga:#a63d2a;       /* madder red (the variable name is kept from the template) */
  --soga-soft:#cf6a4c;
  --gold:#c08a26;       /* turmeric */
  --tea:#4d6e35;        /* palm green */
  --turq:#2f6467;       /* the Godavari */
  --rule:#bfae8f;
  --te:"Noto Serif Telugu",serif;
  --en:"EB Garamond","Iowan Old Style","Palatino Linotype",Palatino,"Book Antiqua",Georgia,"Noto Serif Telugu",serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{
  margin:0;color:var(--ink);font:15px/1.85 var(--en);
  background-color:var(--paper);
  /* dawn light over the paper */
  background-image:
    radial-gradient(ellipse 60% 230px at 78% 0,rgba(244,196,150,.42),rgba(244,196,150,0) 70%),
    radial-gradient(ellipse 55% 210px at 15% 0,rgba(159,190,186,.38),rgba(159,190,186,0) 70%),
    linear-gradient(to bottom,rgba(231,214,206,.6) 0,rgba(238,224,210,.34) 26px,rgba(242,232,214,.12) 90px,rgba(243,231,207,0) 180px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .36 0 0 0 0 .3 0 0 0 0 .24 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat:no-repeat,no-repeat,no-repeat,repeat;
  animation:arrive .7s ease-out both;
}
/* a Pochampally ikat border along the top of every page */
body::before{content:"";display:block;height:12px;background:url("motif/ikat.svg") repeat-x 0 0/24px 12px;opacity:.92;
  border-bottom:1px solid rgba(43,38,34,.45)}
body.leaving{animation:leave .26s ease-in both}
@keyframes arrive{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes leave{to{opacity:0;transform:translateY(-3px)}}
a{color:var(--indigo);text-decoration:none;border-bottom:1px dotted rgba(44,74,107,.35)}
a:hover,a:focus-visible{color:var(--soga);border-bottom-color:var(--soga)}
a:focus-visible{outline:1px dotted var(--soga);outline-offset:3px}
::selection{background:#f2d7a6;color:var(--deep)}

/* Telugu: never letter-space it or change case; it needs room above and below for its vowel signs and conjuncts */
.te,.te-title,.orig,[lang="te"]{font-family:var(--te);letter-spacing:0 !important;text-transform:none !important;word-break:normal;font-style:normal}

.wrap{max-width:38rem;margin:0 auto;padding:0 1.25rem}
.wrap.wide{max-width:52rem}
.wide .notes,.wide .walk,.wide hr.px:not(.short),.wide .orig{max-width:38rem;margin-left:auto;margin-right:auto}
.top{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;
  font-size:11px;letter-spacing:.14em;color:var(--ink-soft);padding:1.7rem 0 .6rem}
.top a{border:0;color:var(--ink-soft)}
.top a:hover{color:var(--soga)}
.top .home{letter-spacing:.1em;font-size:12px;color:var(--ink)}
.top .home .te{font-size:14px;margin-right:.35em;color:var(--soga)}
.crumbs span{margin:0 .35em;color:var(--rule)}

/* dividers: a pixel zig-zag, and a kalamkari vine */
.px{height:3px;border:0;margin:1.6rem auto;width:100%;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='3' shape-rendering='crispEdges'%3E%3Crect x='0' y='2' width='1' height='1' fill='%23b19c7a'/%3E%3Crect x='1' y='1' width='1' height='1' fill='%23b19c7a'/%3E%3Crect x='2' y='0' width='2' height='1' fill='%23b19c7a'/%3E%3Crect x='4' y='1' width='1' height='1' fill='%23b19c7a'/%3E%3Crect x='5' y='2' width='1' height='1' fill='%23b19c7a'/%3E%3C/svg%3E") repeat-x center}
.px.short{width:5.5rem}
hr.motif{height:16px;border:0;margin:1.9rem auto;max-width:22rem;
  background:url("motif/kalamkari.svg") repeat-x center/40px 16px;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent);mask-image:linear-gradient(90deg,transparent,#000 22%,#000 78%,transparent)}
hr.motif.short{max-width:9rem}

.small{font-size:12px;color:var(--ink-soft);letter-spacing:.04em}
h1,h2,h3{font-weight:normal;margin:0}
.label{font-size:11px;letter-spacing:.28em;text-transform:uppercase;color:var(--ink-soft);margin:0 0 .9rem}
.label .te,.notes h2 .te{font-size:15px;margin-right:.7em;color:var(--soga);vertical-align:-.05em;text-transform:none}

/* ---------- index ---------- */
.hero{margin:1.1rem 0 .2rem}
.hero-art{position:relative;margin:0}
.art{display:block;width:100%;height:auto}
.hero-art .art{aspect-ratio:600/250;border:1px solid #b9a988;box-shadow:0 1px 0 #fbf6ea,0 18px 34px -22px rgba(43,38,34,.55)}
.cartouche{position:absolute;top:12px;right:14px;margin:0;text-align:center;
  background:url("motif/ikat.svg") 0 0/20px 10px;padding:4px;
  box-shadow:0 2px 8px rgba(43,38,34,.3);line-height:1}
.cartouche .te{display:block;background:linear-gradient(to bottom,#fbf5e8,#efe2c6);color:var(--soga);
  font-size:25px;font-weight:600;padding:.45rem .9rem .35rem;border:1px solid var(--ink);line-height:1.6}
.cartouche small{display:block;background:var(--ink);color:#f3e7cf;font-size:10px;letter-spacing:.28em;padding:.25rem .4rem .3rem;text-transform:uppercase}
.intro{text-align:center;margin:1.8rem auto 0;max-width:30rem}
.intro .en-title{font-size:21px;letter-spacing:.06em;font-style:italic;color:var(--deep)}
.intro p{margin:.6rem 0;font-size:14px;color:var(--ink-soft)}
.intro .te-line{font-size:18px;color:var(--soga);margin:.2rem 0 .8rem}
.enter{display:inline-block;margin-top:.8rem;font-size:12px;letter-spacing:.3em;border:0;color:var(--soga)}
.enter:hover{color:var(--indigo)}

.toc{margin:0;padding:0;list-style:none}
.toc>li{display:grid;grid-template-columns:9.5rem 1fr;gap:.2rem 1.2rem;padding:.95rem 0;border-bottom:1px dotted rgba(170,150,120,.6)}
.toc>li:last-child{border-bottom:0}
.poet-name{line-height:1.5}
.poet-name .nm{font-size:16px;display:block;color:var(--ink);line-height:1.6}
.poet-name .nm-en{font-size:12.5px;color:var(--ink-soft);display:block;letter-spacing:.03em;font-style:italic}
.poet-name .yrs{font-size:11px;color:var(--ink-faint);letter-spacing:.08em}
.toc ol{list-style:none;margin:0;padding:0;font-size:14px;line-height:1.75}
.toc ol li{display:flex;gap:.7em;align-items:baseline}
.toc ol li::before{content:"";flex:0 0 5px;height:5px;background:var(--soga);opacity:.6;transform:translateY(-.15em) rotate(45deg)}
.toc ol a{border:0;color:var(--ink)}
.toc ol a .lt{margin-right:.55em}
.toc ol a .t{color:var(--ink-soft);font-style:italic;font-size:13.5px}
.toc ol a:hover .lt,.toc ol a:hover .t{color:var(--soga)}
.toc ol a.read .lt{color:var(--ink-soft)}
.toc ol li:has(a.read)::before{background:transparent;box-shadow:inset 0 0 0 1px var(--soga)}
#progress{color:var(--tea);letter-spacing:.06em;margin:.4rem 0 0}

.updates{list-style:none;margin:0;padding:0;font-size:12px;color:var(--ink-soft)}
.updates li{display:flex;gap:1rem}
.updates time{font-variant-numeric:tabular-nums;color:var(--ink);letter-spacing:.05em}

/* ---------- nature prints ---------- */
.banner{margin:.6rem auto 0;max-width:38rem}
.banner .art{aspect-ratio:600/200;border:1px solid #b9a988;box-shadow:0 1px 0 #fbf6ea,0 14px 26px -20px rgba(43,38,34,.5)}
.thumb{flex:0 0 auto;display:block;width:64px;height:64px;margin-bottom:.45rem}
.thumb .art{width:64px;height:64px;border:1px solid #b9a988}
.orn{display:flex;align-items:center;gap:.9rem;max-width:20rem;margin:1.5rem auto}
.orn span{flex:1;height:1px;background:repeating-linear-gradient(90deg,var(--rule) 0 1px,transparent 1px 4px)}
.orn-i{display:block;flex:0 0 auto}
.corner{float:right;width:96px;height:96px;margin:-.6rem 0 .4rem 1rem;opacity:.95}
.corner .art{width:96px;height:96px}
.plates{display:grid;gap:2rem;max-width:38rem;margin:0 auto}
.plate{margin:0}
.plate figcaption{font-size:13px;line-height:1.8;color:#3d3630;margin-top:.55rem}
.plate figcaption .te{font-size:16px;color:var(--soga);font-weight:normal}
.plate figcaption .lt{font-size:14px;color:var(--ink);margin-left:.3em}
.plate figcaption .en{font-style:italic;color:var(--ink-soft);margin-left:.4em}
.plate .small{margin:.2rem 0 0}

/* ---------- poem page ---------- */
.poem-head{text-align:center;margin:1.6rem 0 1rem}
.poem-head h1 .te-title{display:block;font-size:28px;line-height:1.75;color:var(--soga)}
.poem-head h1 .lt{display:block;font-size:20px;letter-spacing:.06em;color:var(--deep);margin-top:.15rem}
.poem-head h1 .en{display:block;font-size:15.5px;font-style:italic;letter-spacing:.04em;color:var(--ink-soft);margin-top:.25rem}
.poem-head .by{margin-top:.8rem;font-size:12px;letter-spacing:.12em;color:var(--ink-soft)}

/* the Telugu text, on a panel edged with a muggu border */
.orig{font-size:20px;line-height:2.25;color:var(--deep);text-align:center;
  margin:1.2rem auto .4rem;padding:1.1rem 2.4rem 1.2rem;
  background:url("motif/muggu.svg") left top/12px 12px repeat-y,url("motif/muggu.svg") right top/12px 12px repeat-y,
    linear-gradient(to bottom,rgba(250,244,232,.94),rgba(250,244,232,.62));
  border:1px solid rgba(170,150,120,.6);box-shadow:0 10px 24px -22px rgba(43,38,34,.6)}
.orig .l{display:block;text-wrap:balance;padding:0 .2em}
.orig .gap{display:block;height:.9em}

/* romanization and English side by side, one grid row per line so long lines stay level */
.lines{display:grid;grid-template-columns:1fr 1fr;column-gap:0;max-width:48rem;margin:1.3rem auto .6rem}
.lines .l{padding-left:1.3em;text-indent:-1.3em;line-height:1.75;padding-top:.16em;padding-bottom:.16em}
.lines .o{font-size:15px;color:var(--ink);border-right:2px solid var(--soga);padding-right:1.6rem;font-style:italic;overflow-wrap:anywhere}
.lines .e{font-size:15.5px;color:#2e2822;padding-left:calc(1.6rem + 1.3em)}
.lines .gap{height:.9em;border-right:2px solid var(--soga)}
.lines .gap + .gap{border-right:0}
.notes{font-size:13.5px;line-height:1.85;color:#3d3630}
.notes h2{font-size:11px;letter-spacing:.28em;text-transform:uppercase;color:var(--ink-soft);margin:1.6rem 0 .5rem}
.notes p{margin:.4rem 0}
.pat{font-variant-numeric:tabular-nums;white-space:nowrap;color:var(--soga);letter-spacing:.02em}
.source{font-size:12px;color:var(--ink-soft);line-height:1.75}
.source a{overflow-wrap:anywhere}

.walk{display:grid;grid-template-columns:1fr auto 1fr;gap:1rem;align-items:start;font-size:13px;margin:2rem 0 .4rem}
.walk a{border:0;display:block;line-height:1.55}
.walk .dir{display:block;font-size:10.5px;letter-spacing:.3em;color:var(--ink-faint);text-transform:uppercase}
.walk .lt{letter-spacing:.04em;color:var(--ink)}
.walk .t{display:block;font-style:italic;color:var(--ink-soft)}
.walk a:hover .lt,.walk a:hover .t{color:var(--soga)}
.walk .next{text-align:right}
.walk .mid{text-align:center;font-size:15px;padding-top:.7rem}
.walk .mid a{color:var(--soga)}
.drift{text-align:center;margin:1.6rem 0 0}
.drift a{display:inline-block;border:1px solid rgba(44,74,107,.3);padding:.4rem 1.2rem .45rem;font-size:13px;letter-spacing:.12em;color:var(--indigo);background:rgba(250,243,228,.6);transition:background .4s,color .4s,border-color .4s}
.drift a:hover{background:var(--indigo);color:var(--paper-hi);border-color:var(--indigo)}
.drift a .te,.share .te{font-size:15px;margin-right:.55em}
.share{text-align:center;margin:1.1rem 0 0;font-size:12px;letter-spacing:.1em}
.share[hidden]{display:none}
.share button{font:inherit;letter-spacing:inherit;color:var(--ink-soft);background:none;border:0;border-bottom:1px dotted var(--ink-faint);padding:0 0 1px;cursor:pointer;transition:color .3s,border-color .3s}
.share button:hover,.share button:focus-visible{color:var(--indigo);border-bottom-color:var(--indigo)}
.share .ok{display:inline-block;min-width:7.5em;margin-left:.8em;color:var(--tea);text-align:left}
.keys{text-align:center;font-size:10.5px;letter-spacing:.14em;color:var(--ink-faint);margin:.9rem 0 0}
kbd{font:inherit;border:1px solid #c9b998;border-bottom-width:2px;padding:0 .35em;background:var(--paper-hi);color:var(--ink-soft)}

/* ---------- later voices / about ---------- */
.prose{font-size:14px;line-height:1.9;color:#352e28}
.prose p{margin:.7rem 0}
.prose code{font-size:12.5px;background:rgba(170,150,120,.18);padding:0 .25em}
.voice{padding:1.2rem 0;border-bottom:1px dotted rgba(170,150,120,.6)}
.voice h3{font-size:17px}
.voice h3 .yrs{font-size:12px;color:var(--ink-faint);letter-spacing:.08em}

/* ---------- the footer: the Godavari at dusk, palmyras, a sail and egrets (WebAssembly; class name kept from the template) ---------- */
.sea{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 30%);mask-image:linear-gradient(to bottom,transparent 0,#000 30%);display:block;width:100%;height:290px;image-rendering:pixelated;image-rendering:crisp-edges;margin-top:3.2rem}
.sea.small{height:240px}
.no-wasm .sea{display:none}
.shore{position:relative;background:#2a2730;color:#d4c6b4;font-size:11px;letter-spacing:.14em;padding:1.4rem 1rem 2.2rem;text-align:center;line-height:2}
.shore::before{content:"";position:absolute;left:0;right:0;top:0;height:12px;background:url("motif/ikat.svg") repeat-x 0 0/24px 12px;opacity:.85}
.shore a{color:#f3e7cf;border-bottom-color:rgba(243,231,207,.3)}
.shore a:hover{color:#f2c46a;border-bottom-color:#f2c46a}
.shore .te{font-size:14px;color:#f2c46a}
.no-wasm .shore{border-top:6px solid var(--soga)}

/* ---------- small screens ---------- */
@media (max-width:640px){
  body{font-size:14.5px}
  .top{padding-top:1.3rem}
  .hero-art .art{aspect-ratio:600/330}
  .cartouche{top:8px;right:8px}
  .cartouche .te{font-size:20px;padding:.35rem .6rem .25rem}
  .banner .art{aspect-ratio:600/260}
  .corner{display:none}
  .poet-name{display:flex;gap:.8rem;align-items:center}
  .thumb{margin:0}
  .toc>li{grid-template-columns:1fr;gap:.35rem}
  .orig{font-size:17.5px;padding:.9rem 1.3rem 1rem;line-height:2.15}
  .lines{grid-template-columns:1fr}
  .lines .o{border-right:0;padding-right:0;padding-bottom:0}
  .lines .e{padding-left:1.3em;padding-top:0;margin-bottom:.45em;font-style:italic;color:var(--ink-soft)}
  .lines .gap{border:0;height:.5em}
  .walk{grid-template-columns:1fr 1fr}
  .walk .mid{grid-column:1/-1;grid-row:2;padding-top:0}
  .sea{height:210px}
  .sea.small{height:180px}
}
@media (prefers-reduced-motion:reduce){
  body,body.leaving{animation:none}
  .drift a,.share button{transition:none}
}
@media print{.sea,.shore,.drift,.keys,.walk,body::before{display:none}body{background:none}.orig{background:none}}
.prose .te,.voice .te{font-size:1.05em;color:var(--soga)}

/* the metre scan under the verse form */
.scan{font:12.5px/1.7 ui-monospace,"SF Mono",Menlo,Consolas,monospace;color:var(--ink-soft);margin:.5rem 0 .8rem;padding:.5rem .8rem;
  background:rgba(250,243,228,.7);border-left:2px solid var(--gold)}
.scan .sh{font-family:var(--en);font-size:12px;letter-spacing:.06em;color:var(--ink-soft);margin-bottom:.2rem}
.scan .sh .te{font-size:13.5px;color:var(--soga);font-family:var(--te)}
.scan>span{display:block;white-space:pre-wrap;word-spacing:.35em;color:var(--indigo)}
.poem-head .by [lang="te"]{font-size:13.5px}
.notes p [lang="te"],.source [lang="te"]{font-size:1.06em}
