/* ketantendulkar.com: yellow-led, cover-led. Ink on yellow everywhere text sits on colour (ratio ~14:1). */
:root {
  --y: #FFD21F;        /* main yellow */
  --y-deep: #F2A900;   /* amber, decoration only */
  --y-soft: #FFF1A8;
  --cream: #FFFBEA;
  --ink: #1C1A12;
  --ink-soft: #4A4636; /* on cream ~9:1 */
  --paper: #FFFFFF;
  --radius: 16px;
  --shadow: 0 10px 28px rgba(28, 26, 18, .22);
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 18px/1.65 var(--serif); color: var(--ink); background: var(--cream); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--y-deep); }
a:hover { background: var(--y); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--sans); line-height: 1.15; letter-spacing: -.01em; }
.wrap { width: min(1120px, 92vw); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--y); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--y); border-bottom: 4px solid var(--ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
.brand { font: 800 1.25rem/1 var(--sans); text-decoration: none; letter-spacing: -.02em; display: flex; align-items: center; gap: .5rem; padding: .3rem .4rem; }
.brand:hover { background: transparent; }
.brand .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); display: inline-block; }
.nav { display: flex; flex-wrap: wrap; gap: .15rem .25rem; font: 600 .92rem var(--sans); }
.nav a { text-decoration: none; padding: .4rem .65rem; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--ink); color: var(--y); }
.menu-btn { display: none; font: 700 .95rem var(--sans); background: var(--ink); color: var(--y); border: 0; border-radius: 999px; padding: .5rem 1rem; cursor: pointer; }
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--y); padding: .75rem 4vw 1rem; border-bottom: 4px solid var(--ink); flex-direction: column; }
  .nav.open { display: flex; }
}

/* hero */
.hero { position: relative; background: radial-gradient(circle at 78% 30%, #FFE680 0, var(--y) 55%, #F7BE12 100%); overflow: hidden; padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(5rem, 9vw, 8rem); }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 1fr; gap: 2rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: 0 0 .5rem; font-weight: 900; }
.hero h1 span { background: var(--ink); color: var(--y); padding: 0 .25em; border-radius: 8px; display: inline-block; transform: rotate(-1.5deg); }
.hero p.lede { font-size: 1.25rem; max-width: 34em; margin: 0 0 1.4rem; }
.btn { display: inline-block; font: 700 1rem var(--sans); background: var(--ink); color: var(--y); padding: .8rem 1.4rem; border-radius: 999px; text-decoration: none; box-shadow: 0 4px 0 #000; transition: transform .15s; }
.btn:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn.alt { background: var(--paper); color: var(--ink); border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn.alt:hover { background: var(--y-soft); color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.sun { position: absolute; width: min(620px, 80vw); right: -140px; top: -170px; z-index: 1; opacity: .85; }
.sun .rays { transform-origin: 200px 200px; animation: spin 80s linear infinite; }
.bird { position: absolute; width: 54px; z-index: 3; top: 18%; left: -80px; animation: fly 26s linear infinite; }
.bird.b2 { top: 34%; width: 36px; animation-duration: 34s; animation-delay: -12s; }
.bird .wing { transform-origin: 30px 14px; animation: flap .7s ease-in-out infinite alternate; }
.ridge { position: absolute; bottom: -1px; left: 0; width: 100%; height: clamp(60px, 9vw, 130px); z-index: 2; }

/* floating cover fan in the hero */
.fan { position: relative; height: clamp(320px, 42vw, 470px); perspective: 1200px; }
.fan a { position: absolute; width: clamp(130px, 17vw, 210px); border-radius: 6px; box-shadow: var(--shadow); background: var(--paper); border: 0; transition: transform .35s cubic-bezier(.2, .8, .2, 1.2), z-index 0s; animation: bob 7s ease-in-out infinite; }
.fan a:hover { background: var(--paper); z-index: 9 !important; transform: translateY(-14px) rotate(0) scale(1.08) !important; }
.fan img { border-radius: 6px; aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.fan a:nth-child(1) { left: 2%;  top: 14%; transform: rotate(-9deg); z-index: 3; animation-delay: -1s; }
.fan a:nth-child(2) { left: 26%; top: 0;   transform: rotate(-2deg); z-index: 5; animation-delay: -3s; }
.fan a:nth-child(3) { left: 51%; top: 10%; transform: rotate(6deg);  z-index: 4; animation-delay: -5s; }
.fan a:nth-child(4) { left: 70%; top: 30%; transform: rotate(12deg); z-index: 2; animation-delay: -2s; }
@media (max-width: 800px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .fan { height: 330px; }
  .fan a:nth-child(4) { display: none; }
  .fan a:nth-child(1) { left: 0; } .fan a:nth-child(2) { left: 30%; } .fan a:nth-child(3) { left: 58%; }
}

/* cover marquee */
.marquee { background: var(--ink); padding: 1.1rem 0; overflow: hidden; border-block: 4px solid var(--ink); }
.marquee .track { display: flex; gap: 1.1rem; width: max-content; animation: scroll 60s linear infinite; }
.marquee:hover .track, .marquee:focus-within .track { animation-play-state: paused; }
.marquee a { flex: none; width: 118px; border-radius: 4px; transition: transform .25s; }
.marquee a:hover { background: transparent; transform: translateY(-6px) scale(1.06); }
.marquee img { border-radius: 4px; aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }

/* sections */
section.block { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
section.block.yellow { background: var(--y); }
section.block.soft { background: var(--y-soft); }
h2.title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 0 0 .4rem; font-weight: 900; }
h2.title::after { content: ""; display: block; width: 90px; height: 8px; background: var(--ink); border-radius: 4px; margin-top: .5rem; }
.sub { color: var(--ink-soft); max-width: 40em; margin: .6rem 0 1.8rem; }
.yellow .sub { color: var(--ink); }

/* section tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.1rem; }
.tile { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.3rem; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); text-decoration: none; box-shadow: 6px 6px 0 var(--ink); transition: transform .2s, box-shadow .2s, background .2s; overflow: hidden; }
.tile:hover { background: var(--y); transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.tile .ico { width: 54px; height: 54px; color: var(--ink); }
.tile:hover .ico .wheel { animation: spin 1.2s linear infinite; transform-box: fill-box; transform-origin: center; }
.tile:hover .ico { animation: wiggle .5s ease-in-out; }
.tile h3 { margin: .2rem 0 0; font-size: 1.2rem; }
.tile p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.tile:hover p { color: var(--ink); }
.tile .count { position: absolute; top: .8rem; right: .9rem; font: 800 .8rem var(--sans); background: var(--ink); color: var(--y); border-radius: 999px; padding: .15rem .6rem; }

/* book grid */
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.6rem 1.3rem; }
.book { position: relative; text-decoration: none; display: block; }
.book:hover { background: transparent; }
.book .cv { position: relative; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2, .8, .2, 1.3), box-shadow .3s; background: var(--ink); }
.book:hover .cv { transform: translateY(-8px) rotate(-1.5deg) scale(1.03); box-shadow: 0 20px 36px rgba(28, 26, 18, .35); }
.book .cv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); }
.book:hover .cv::after { transform: translateX(120%); transition: transform .8s; }
.book img { aspect-ratio: 2 / 3; object-fit: cover; width: 100%; }
.book h3 { font-size: 1rem; margin: .7rem 0 .1rem; }
.book small { font: 600 .82rem var(--sans); color: var(--ink-soft); }
.flag { position: absolute; top: 10px; left: -4px; z-index: 2; font: 800 .72rem var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: .25rem .6rem; background: var(--y); color: var(--ink); border: 2px solid var(--ink); border-radius: 0 6px 6px 0; }
.flag.out { background: var(--ink); color: var(--y); }
.series-h { font-size: 1.35rem; margin: 2.4rem 0 1rem; display: flex; align-items: center; gap: .6rem; }
.series-h::before { content: ""; width: 34px; height: 8px; background: var(--y-deep); border-radius: 4px; }

/* featured book */
.feature { display: grid; grid-template-columns: minmax(180px, 280px) 1fr; gap: 2.4rem; align-items: center; }
.feature .cv img { border-radius: 8px; box-shadow: var(--shadow); transform: rotate(-3deg); transition: transform .4s; }
.feature .cv:hover img { transform: rotate(0) scale(1.04); }
@media (max-width: 700px) { .feature { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* cards, lists, poems, gallery */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.4rem; }
.card { background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; box-shadow: 5px 5px 0 var(--ink); }
.card:hover { background: var(--paper); transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.card .pic { aspect-ratio: 16 / 10; background: var(--y); display: grid; place-items: center; overflow: hidden; border-bottom: 3px solid var(--ink); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .pic img { transform: scale(1.07); }
.card .pic .ico { width: 70px; height: 70px; }
.card .txt { padding: 1rem 1.1rem 1.2rem; }
.card h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.card p { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.meta { font: 600 .82rem var(--sans); color: var(--ink-soft); margin: 0 0 .4rem; }
.chip { display: inline-block; font: 700 .76rem var(--sans); background: var(--y); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: .08rem .6rem; margin-right: .3rem; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.list a { display: block; padding: 1.1rem 1.3rem; background: var(--paper); border: 3px solid var(--ink); border-left-width: 14px; border-left-color: var(--y-deep); border-radius: 10px; text-decoration: none; transition: border-left-color .2s, transform .2s; }
.list a:hover { border-left-color: var(--y); background: var(--paper); transform: translateX(6px); }
.list h3 { margin: 0 0 .2rem; font-size: 1.2rem; }
.list p { margin: 0; color: var(--ink-soft); }
.poems { columns: 2 300px; column-gap: 1.4rem; }
.poems a { break-inside: avoid; display: block; margin-bottom: 1.4rem; padding: 1.4rem; background: var(--paper); border: 3px solid var(--ink); border-radius: var(--radius); text-decoration: none; box-shadow: 5px 5px 0 var(--y-deep); }
.poems a:hover { background: var(--y-soft); }
.poems h3 { margin: 0 0 .5rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.gallery figure { margin: 0; overflow: hidden; border-radius: 10px; border: 3px solid var(--ink); background: var(--y); }
.gallery figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption { font: 600 .85rem var(--sans); padding: .5rem .7rem; background: var(--paper); border-top: 3px solid var(--ink); }
.empty { padding: 2rem; border: 3px dashed var(--ink); border-radius: var(--radius); background: var(--y-soft); text-align: center; font-family: var(--sans); }

/* entry page */
.page-head { background: var(--y); border-bottom: 4px solid var(--ink); padding: 2.2rem 0 2rem; position: relative; overflow: hidden; }
.page-head .ico-big { position: absolute; right: 4vw; top: 50%; width: 170px; height: 170px; transform: translateY(-50%) rotate(8deg); opacity: .16; color: var(--ink); stroke-width: 2.4; }
.page-head h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin: .2rem 0; font-weight: 900; }
.crumbs { font: 600 .85rem var(--sans); margin: 0; }
.entry { display: grid; grid-template-columns: 1fr; gap: 2rem; padding: 2.4rem 0 3rem; }
.entry.with-cover { grid-template-columns: minmax(200px, 320px) 1fr; align-items: start; }
@media (max-width: 760px) { .entry.with-cover { grid-template-columns: 1fr; } }
.entry .cover img { border-radius: 8px; box-shadow: var(--shadow); }
.entry .cover { position: sticky; top: 90px; }
.prose { max-width: 40em; }
.prose h2 { margin-top: 2rem; }
.prose .stanza { font-size: 1.15rem; }
.facts { margin: 1rem 0 1.4rem; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; font-family: var(--sans); }
.facts li { background: var(--y-soft); border: 2px solid var(--ink); border-radius: 10px; padding: .5rem .8rem; font-size: .9rem; }
.facts b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.prev-next { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.4rem; font-family: var(--sans); }

/* footer */
.site-foot { background: var(--ink); color: var(--y); padding: 2.4rem 0 2rem; font: 15px/1.6 var(--sans); }
.site-foot a { color: var(--y); text-decoration-color: var(--y); }
.site-foot a:hover { background: var(--y); color: var(--ink); }
.site-foot .cols { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; }
.site-foot ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 2rem; }

/* motion */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fly { from { transform: translateX(0) translateY(0); } 50% { transform: translateX(60vw) translateY(-30px); } to { transform: translateX(120vw) translateY(10px); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.45); } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes wiggle { 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
  .bird { display: none; }
}
@media print { .site-head, .hero, .marquee, .site-foot, .bird { display: none; } body { background: #fff; } }
