/* comic.anshulsaxena.com: Virya lotus brand (Sora; ivory / night / ember). */
:root {
  --night: #14173A; --night-2: #1E2250; --ivory: #FBF6EC; --sand: #EDE3CF;
  --saffron: #F2A93B; --ember-deep: #C8431F; --ink: #14173A; --ink-soft: #4A4F6E;
  --on-night: #FBF6EC; --on-night-soft: rgba(251, 246, 236, .74); --line: rgba(20, 23, 58, .1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: Sora, system-ui, sans-serif; line-height: 1.5; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ember-deep); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 20; background: var(--night); color: var(--on-night); padding: 10px 14px; border-radius: 10px; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 246, 236, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand img { width: 26px; height: 24px; }
.top__links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.top__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: .92rem; font-weight: 500; color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.top__links a:hover { color: var(--ink); background: rgba(20, 23, 58, .05); }

.hero { background: var(--night); color: var(--on-night); padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 80px); }
.kicker { margin: 0 0 12px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--saffron); }
h1 { margin: 0; font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; }
.lead { max-width: 60ch; margin: 22px 0 0; font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.7; color: var(--on-night-soft); }
.fine { margin: 18px 0 0; font-size: .88rem; color: var(--on-night-soft); }

.foot { background: var(--night); color: var(--on-night-soft); padding: 36px 0; font-size: .88rem; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.foot p { margin: 0; }
.brand--light { color: var(--on-night); }

/* Carousel: native horizontal scroll with snap (swipe on touch, arrow keys when focused); comic.js adds
   the buttons, dots and counter. */
.stage { padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 88px); }
/* Width follows the viewport height so a whole card (3:4) fits on screen with its caption. */
.stage { --card-w: min(600px, calc((100vh - 240px) * .75)); }
.stage__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; max-width: var(--card-w); margin: 0 auto 18px; }
.stage h2 { margin: 0; font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: -.01em; }
.stage__count { margin: 0; font-size: .9rem; font-weight: 600; color: var(--ember-deep); font-variant-numeric: tabular-nums; }
.carousel { position: relative; max-width: var(--card-w); margin: 0 auto; }
.track { display: flex; margin: 0; padding: 0; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: 16px; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.slide figure { margin: 0; }
.slide img { width: 100%; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(20, 23, 58, .08), 0 10px 30px rgba(20, 23, 58, .12);
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
.slide figcaption { padding: 14px 4px 0; text-align: center; }
.slide figcaption strong { display: block; font-weight: 600; }
.slide figcaption span { display: block; margin-top: 2px; font-size: .85rem; color: var(--ink-soft); }
.nav-btn { position: absolute; top: calc(50% - 44px); width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--night); color: var(--on-night); font: inherit; font-size: 1.15rem; cursor: pointer; box-shadow: 0 6px 18px rgba(20, 23, 58, .25); }
.nav-btn:hover { background: var(--night-2); }
.nav-btn:disabled { opacity: .3; cursor: default; }
.nav-btn--prev { left: -68px; }
.nav-btn--next { right: -68px; }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 18px; }
.dot { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.dot::before { content: ""; display: block; width: 10px; height: 10px; margin: auto; border-radius: 50%; background: rgba(20, 23, 58, .22); transition: background .15s, transform .15s; }
.dot[aria-current="true"]::before { background: var(--ember-deep); transform: scale(1.25); }
.hint { display: none; margin: 6px 0 0; text-align: center; font-size: .85rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .dot::before { transition: none; } }
@media (max-width: 760px) {
  .stage { --card-w: 600px; }
  .nav-btn { display: none; }
  .hint { display: block; }
}
