/* Shared display width for Issa illustrations; preserve each artwork's aspect ratio. */
:root{--issa-illustration-width:350px}
body .issa-illustration{display:block;width:var(--issa-illustration-width);max-width:100%;height:auto;object-fit:contain;justify-self:center;margin-left:auto;margin-right:auto}
body .issa-illust{width:var(--issa-illustration-width);max-width:100%;flex:0 1 var(--issa-illustration-width)}
body .issa-illust .issa-illustration{margin-top:0;margin-bottom:0}
/* Let the index image use the same width as article images. */
body .issa-index-hero{grid-template-columns:minmax(0,1fr) minmax(0,var(--issa-illustration-width))}
.sekki-sun-travel{transform:translateY(-42px);animation:sekki-sun-height 20s linear infinite}
.sekki-season-label{font:18px 'Yu Mincho','Hiragino Mincho ProN',serif;fill:#805326;opacity:0;animation:var(--sekki-label-animation) 20s steps(1,end) infinite}
.sekki-steam{animation:sekki-tea-steam 3.8s ease-in-out infinite}
@keyframes sekki-sun-height{0%,100%{transform:translateY(-42px)}12.5%,87.5%{transform:translateY(-25px)}25%,75%{transform:translateY(0)}37.5%,62.5%{transform:translateY(30px)}50%{transform:translateY(58px)}}

@keyframes sekki-tea-steam{0%,100%{opacity:.25;transform:translateY(3px)}50%{opacity:.8;transform:translateY(-3px)}}
@media(max-width:650px){:root{--issa-illustration-width:230px}body .issa-index-hero{grid-template-columns:minmax(0,1fr)}body .hero>img.issa-illustration{margin-top:15px}}
@media(prefers-reduced-motion:reduce){.sekki-sun-travel,.sekki-season-label,.sekki-steam{animation:none}.sekki-season-label{opacity:0}.sekki-season-label:first-of-type{opacity:1}.sekki-steam{opacity:.6}}

/* Subtle breathing-like movement for previously still artwork. No layout shifts. */
.issa-gentle-motion{transform-origin:50% 82%;animation:issa-gentle-breath 7s ease-in-out infinite;will-change:transform}
.moon-wait:nth-child(even) .issa-gentle-motion{animation-delay:-3.5s}
@keyframes issa-gentle-breath{0%,100%{transform:translateY(0) rotate(-.35deg) scale(1)}50%{transform:translateY(-3px) rotate(.35deg) scale(1.008)}}
@media(prefers-reduced-motion:reduce){.issa-gentle-motion{animation:none;transform:none;will-change:auto}}
@media print{.issa-gentle-motion{animation:none;transform:none}}

/* Labels switch around the solar positions; summer/winter solstices use +/-0.5 seconds. */
.sekki-season-label:nth-of-type(1){--sekki-label-animation:sekki-label-0}
@keyframes sekki-label-0{0%{opacity:1}2.5%{opacity:0}97.5%{opacity:1}100%{opacity:1}}
.sekki-season-label:nth-of-type(2){--sekki-label-animation:sekki-label-1}
@keyframes sekki-label-1{0%{opacity:0}2.5%{opacity:1}18.75%{opacity:0}100%{opacity:0}}
.sekki-season-label:nth-of-type(3){--sekki-label-animation:sekki-label-2}
@keyframes sekki-label-2{0%{opacity:0}18.75%{opacity:1}31.25%{opacity:0}100%{opacity:0}}
.sekki-season-label:nth-of-type(4){--sekki-label-animation:sekki-label-3}
@keyframes sekki-label-3{0%{opacity:0}31.25%{opacity:1}47.5%{opacity:0}100%{opacity:0}}
.sekki-season-label:nth-of-type(5){--sekki-label-animation:sekki-label-4}
@keyframes sekki-label-4{0%{opacity:0}47.5%{opacity:1}52.5%{opacity:0}100%{opacity:0}}
.sekki-season-label:nth-of-type(6){--sekki-label-animation:sekki-label-5}
@keyframes sekki-label-5{0%{opacity:0}52.5%{opacity:1}68.75%{opacity:0}100%{opacity:0}}
.sekki-season-label:nth-of-type(7){--sekki-label-animation:sekki-label-6}
@keyframes sekki-label-6{0%{opacity:0}68.75%{opacity:1}81.25%{opacity:0}100%{opacity:0}}
.sekki-season-label:nth-of-type(8){--sekki-label-animation:sekki-label-7}
@keyframes sekki-label-7{0%{opacity:0}81.25%{opacity:1}97.5%{opacity:0}100%{opacity:0}}

/* Cup and sun share the same 20-second seasonal clock: high sun, short shadow. */
.sekki-shadow-stretch{transform:scaleX(.22);transform-origin:0 0;animation:sekki-cup-shadow-length 20s linear infinite}
@keyframes sekki-cup-shadow-length{0%,100%{transform:scaleX(.22)}12.5%,87.5%{transform:scaleX(.33)}25%,75%{transform:scaleX(.53)}37.5%,62.5%{transform:scaleX(.80)}50%{transform:scaleX(1)}}
.sekki-limit{opacity:0}
.sekki-limit-summer{animation:sekki-label-0 20s steps(1,end) infinite}
.sekki-limit-winter{animation:sekki-label-4 20s steps(1,end) infinite}
@media(prefers-reduced-motion:reduce){.sekki-shadow-stretch,.sekki-limit{animation:none}.sekki-shadow-stretch{transform:scaleX(.22)}.sekki-limit-summer{opacity:1}.sekki-limit-winter{opacity:0}}
@media print{.sekki-sun-travel{animation:none;transform:translateY(-42px)}.sekki-season-label{animation:none;opacity:0}.sekki-season-label:first-of-type{opacity:1}.sekki-steam{animation:none;opacity:.6}.sekki-shadow-stretch{animation:none;transform:scaleX(.22)}.sekki-limit{animation:none;opacity:0}.sekki-limit-summer{opacity:1}}
