/* Age Essentials — Diwali reading experience, November 2026.
   All page-specific rules are scoped; the original site navigation/footer are reused. */
:root {
  --diwali-dark: #11161a;
  --diwali-paper: #f5f2e9;
  --diwali-forest: #243e34;
  --diwali-brass: #b99b72;
  --diwali-nav-ink: #f4f0e7;
  --reading-progress: 0;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.diwali-page {
  margin: 0;
  min-width: 320px;
  background: var(--diwali-paper);
  color: var(--diwali-forest);
  font-family: SFR, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.diwali-page button, .diwali-page input { font: inherit; }
.diwali-page a { color: inherit; }
.diwali-skip {
  position: fixed; top: -90px; left: 16px; z-index: 5000;
  background: #f5f2e9; color: #152824 !important;
  border-radius: 4px; padding: 12px 18px;
}
.diwali-skip:focus { top: 12px; }

/* Same navbar markup & behavior as the main website, with contrast for the dark story. */
.diwali-page .nav { color: var(--diwali-nav-ink); }
.diwali-page .nav.shrink {
  color: #243e34; background: rgba(249, 247, 241, .94);
  border: 1px solid rgba(32, 51, 43, .12);
}
.diwali-page .nav:not(.shrink) .logos,
.diwali-page .nav:not(.shrink) .cartico { filter: brightness(0) invert(1); }
.diwali-page.diwali-is-light .nav:not(.shrink) .logos,
.diwali-page.diwali-is-light .nav:not(.shrink) .cartico { filter: none; }
.diwali-page.diwali-is-light .nav:not(.shrink) { color: #263e35; }
.diwali-page .nav .profile-btn,
.diwali-page .nav .menu-btn { color: inherit; }
.diwali-page .site-footer { margin-top: 0; }

/* Single, viewport-height atmosphere behind uninterrupted long-form prose. */
.diwali-story {
  --story-bg: rgb(17, 22, 26);
  --story-ink: #f4f0e7;
  --story-muted: #cac9bf;
  --story-light: 0;
  position: relative;
  isolation: isolate;
  color: var(--story-ink);
  background: var(--diwali-paper);
}
.diwali-atmosphere {
  position: sticky;
  top: 0;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  background: var(--story-bg);
  pointer-events: none;
  will-change: background;
}
.diwali-atmosphere:after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 58%, rgba(227,200,149,.09), transparent 60%);
  opacity: calc(.2 + .24 * var(--story-light));
  pointer-events: none;
}
.diwali-grain {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' seed='10' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='.25'/%3E%3C/svg%3E");
}
.diwali-aura {
  position: absolute;
  left: 50%; top: 55%;
  transform: translate(-50%, -50%) scale(calc(.72 + .4 * var(--story-light)));
  width: min(88vw, 920px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(221,192,140,.17) 0%, rgba(221,192,140,.055) 32%, transparent 66%);
  filter: blur(24px);
  opacity: calc(.35 + .25 * var(--story-light));
}
.diwali-trace {
  position: absolute;
  width: min(78vw, 720px); aspect-ratio: 1;
  left: 50%; top: 55%;
  transform: translate(-50%, -50%) scale(calc(.88 + .06 * var(--story-light)));
  border: 1px solid rgba(196,174,142,.1);
  border-radius: 100%;
  opacity: .4;
}
.diwali-essay {
  position: relative;
  z-index: 3;
  margin-top: -100svh;
  padding: 0 24px 0;
}
.diwali-opening {
  min-height: 100svh;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  text-align: center;
  padding: clamp(125px, 18vh, 180px) 0 clamp(100px, 16vh, 150px);
  max-width: 1000px;
  margin: 0 auto;
}
.diwali-eyebrow {
  font-size: 10px; font-weight: 600;
  letter-spacing: .27em; line-height: 1.6;
  margin: 0 0 26px;
  color: var(--story-muted);
}
.diwali-tiny-star {
  color: var(--diwali-brass);
  font: 400 25px/1 Georgia, 'Times New Roman', serif;
  margin-bottom: 28px;
}
.diwali-opening h1 {
  font: 400 clamp(3.15rem, 6.4vw, 6.65rem)/1.14 Georgia, 'Times New Roman', serif;
  letter-spacing: -.055em;
  text-wrap: balance;
  margin: 0;
  max-width: 1040px;
}
.diwali-opening h1 em {
  font-weight: 400; font-style: italic;
  letter-spacing: -.06em;
}
.diwali-deck {
  font-size: clamp(1rem, 1.26vw, 1.13rem);
  line-height: 1.9;
  font-weight: 400;
  color: var(--story-muted);
  max-width: 510px;
  margin: 36px auto 0;
  text-wrap: pretty;
}
.diwali-reading-hint {
  margin: 46px 0 0;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .19em;
  color: var(--story-muted);
}
.diwali-reading-hint span { padding-left: 12px; }

.diwali-prose {
  width: min(100%, 690px);
  margin: 0 auto;
  padding: clamp(44px, 7vw, 95px) 0 50px;
  text-align: center;
}
.diwali-prose .story-paragraph {
  margin: 0 auto 2.1em;
  max-width: 650px;
  font-size: clamp(1rem, 1.18vw, 1.105rem);
  line-height: 1.96;
  font-weight: 400;
  letter-spacing: .008em;
  color: var(--story-ink);
  text-wrap: pretty;
}
.diwali-prose .story-short {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.23rem, 1.65vw, 1.5rem);
  line-height: 1.72;
  letter-spacing: -.018em;
  margin: 2.5em auto;
}
.diwali-prose .story-emphasis {
  font-style: italic;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.22rem, 1.7vw, 1.5rem);
  line-height: 1.7;
  letter-spacing: -.018em;
  margin: 2.45em auto;
}
.diwali-prose .story-pull {
  margin: clamp(78px, 11vw, 140px) auto;
  padding: 42px 0 10px;
  border: 0;
  position: relative;
}
.diwali-prose .story-pull:before {
  content: ''; display: block;
  height: 1px; width: 49px;
  background: var(--story-ink);
  opacity: .42;
  position: absolute; top: 0; left: calc(50% - 24.5px);
}
.diwali-prose .story-pull p {
  max-width: 790px;
  margin: 0 auto;
  font: italic 400 clamp(2.1rem, 4.15vw, 4.55rem)/1.27 Georgia, 'Times New Roman', serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.diwali-prose .story-pull--closing { padding-top: 51px; margin-bottom: 20px; }
.diwali-prose .story-pull--closing p {
  font-size: clamp(2.1rem, 3.8vw, 4.2rem);
}
.diwali-signoff {
  text-align: center;
  padding: 20px 0 clamp(135px, 20vh, 210px);
  max-width: 600px;
  margin: 0 auto;
}
.diwali-signoff-rule {
  display: block;
  height: 1px; width: 28px;
  margin: 0 auto 26px;
  background: currentColor; opacity: .38;
}
.diwali-signoff p { margin: 0 0 8px; font-size: 13px; color: var(--story-muted); }
.diwali-signoff strong { font-size: 10px; font-weight: 600; letter-spacing: .2em; }
.diwali-scroll-to-edit {
  color: var(--story-ink) !important;
  display: table; margin: 62px auto 0;
  padding-bottom: 11px;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
}
.diwali-scroll-to-edit span { padding-left: 20px; }
.diwali-progress {
  width: 2px; position: fixed; top: 0; bottom: 0; left: 0;
  z-index: 550; pointer-events: none; opacity: 0; transition: opacity .24s;
}
.diwali-progress.reading-visible { opacity: .86; }
.diwali-progress span {
  display: block; width: 100%; height: 100%;
  background: #ad9671;
  transform: scaleY(var(--reading-progress));
  transform-origin: top;
}

/* Soft transition from the now-bright story into the curated products; one neutral palette. */
.diwali-collection {
  position: relative; z-index: 4;
  color: #20352d;
  background: var(--diwali-paper);
  padding: 26px clamp(22px, 5.2vw, 90px) 30px;
}
.diwali-section-topline {
  max-width: 1400px; margin: 0 auto;
  border-top: 1px solid #c9cac1;
  border-bottom: 1px solid #d8d9cf;
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 9px; font-weight: 600; letter-spacing: .21em;
  color: #637169;
}
.diwali-collection-intro {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(84px, 10vw, 145px) 0 75px;
}
.diwali-overline {
  font-size: 10px; letter-spacing: .2em; font-weight: 600;
  color: #7b796f; margin: 0 0 25px;
}
.diwali-collection-intro h2 {
  font: 400 clamp(2.8rem, 5.3vw, 5.4rem)/1.15 Georgia, 'Times New Roman', serif;
  letter-spacing: -.055em; margin: 0;
}
.diwali-collection-intro h2 em { font-weight: 400; }
.diwali-collection-intro > p:last-child {
  font-size: 15px; line-height: 1.85;
  max-width: 520px; margin: 25px auto 0; color: #637369;
}
.diwali-products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  max-width: 1400px; margin: 0 auto 110px;
  min-height: 150px;
}
.diwali-loading, .diwali-empty, .diwali-error {
  grid-column: 1 / -1; text-align: center;
  padding: 70px 22px; border-top: 1px solid #d7d7cf;
  border-bottom: 1px solid #d7d7cf;
  color: #657367; font-size: 14px; line-height: 1.85;
}
.diwali-empty h3 {
  font: 400 clamp(1.6rem, 3vw, 2.4rem)/1.2 Georgia, serif;
  color: #2b4439; margin: 0 0 16px;
}
.diwali-empty p { max-width: 530px; margin: 0 auto; }
.diwali-product { min-width: 0; }
.diwali-product-figure {
  display: block; position: relative; overflow: hidden;
  aspect-ratio: 4/4.6;
  background: #e7e8df;
}
.diwali-product-figure img {
  width: 100%; height: 100%; object-fit: contain; padding: 12%;
  mix-blend-mode: multiply; transition: transform .6s ease;
}
.diwali-product-figure:hover img { transform: scale(1.045); }
.diwali-product-marker {
  position: absolute; top: 16px; left: 17px;
  color: #55665d; background: rgba(244,243,236,.93);
  font-size: 9px; font-weight: 600; letter-spacing: .11em;
  padding: 8px 10px;
}
.diwali-product-details {
  display: flex; align-items: start; justify-content: space-between;
  padding: 20px 0 17px; gap: 16px;
}
.diwali-product-name { font-size: 15px; font-weight: 600; line-height: 1.5; margin: 0; color: #273b33; }
.diwali-product-sub { color: #879388; font-size: 11px; line-height: 1.4; margin: 5px 0 0; }
.diwali-product-price { margin: 0; color: #324b40; white-space: nowrap; font-size: 13px; font-weight: 600; }
.diwali-product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.diwali-product-actions a, .diwali-product-actions button {
  min-height: 46px;
  display: grid; place-items: center;
  border: 1px solid #b5bdb2; background: transparent; color: #234339;
  border-radius: 2px;
  font-size: 11px; font-weight: 600; letter-spacing: .055em;
  cursor: pointer; text-align: center; text-decoration: none;
}
.diwali-product-actions button { background: #244b3e; border-color: #244b3e; color: #f6f7f0; }
.diwali-product-actions button:disabled { opacity: .5; cursor: not-allowed; }
.diwali-product-actions button.is-added { background: #e1e6dd; border-color: #d3dcd0; color: #244b3e; }
.diwali-collection-outro { max-width: 1000px; margin: 0 auto; text-align: center; border-top: 1px solid #d7d8cf; padding: 95px 0 100px; }
.diwali-outro-mark { font-size: 27px; color: #b69d79; }
.diwali-collection-outro h3 {
  font: 400 clamp(2.4rem, 4.3vw, 4.6rem)/1.23 Georgia, serif;
  letter-spacing: -.05em; margin: 25px 0 0;
}
.diwali-collection-outro p { font-size: 14px; color: #657466; margin: 26px auto 0; line-height: 1.7; }
.diwali-toast {
  position: fixed; bottom: 28px; right: 23px; z-index: 5000;
  background: #244b3e; color: white;
  padding: 14px 20px; border-radius: 4px; font-size: 13px;
  box-shadow: 0 12px 45px #11111124;
}

@media (max-width: 900px) {
  .diwali-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diwali-opening h1 { font-size: clamp(3rem, 8vw, 5rem); }
  .diwali-prose { width: min(100%, 610px); }
}
@media (max-width: 600px) {
  .diwali-essay { padding-left: 22px; padding-right: 22px; }
  .diwali-opening { min-height: 100svh; padding-top: 145px; padding-bottom: 105px; }
  .diwali-opening h1 { font-size: clamp(2.5rem, 10vw, 3.8rem); line-height: 1.21; }
  .diwali-opening h1 br { display: none; }
  .diwali-eyebrow { font-size: 9px; letter-spacing: .18em; }
  .diwali-deck { font-size: 15px; line-height: 1.9; margin-top: 29px; }
  .diwali-reading-hint { margin-top: 37px; }
  .diwali-prose { padding-top: 38px; padding-bottom: 22px; }
  .diwali-prose .story-paragraph { font-size: 15.5px; line-height: 1.93; margin-bottom: 2.3em; }
  .diwali-prose .story-short { font-size: 1.29rem; line-height: 1.7; margin: 2.25em auto; }
  .diwali-prose .story-emphasis { font-size: 1.29rem; line-height: 1.74; margin: 2.3em auto; }
  .diwali-prose .story-pull { margin: 72px auto 78px; padding-top: 36px; }
  .diwali-prose .story-pull p { font-size: clamp(2.05rem, 8.2vw, 3rem); line-height: 1.32; }
  .diwali-signoff { padding-bottom: 130px; }
  .diwali-aura { width: 120vw; }
  .diwali-products { grid-template-columns: 1fr; gap: 37px; margin-bottom: 55px; }
  .diwali-product-figure { aspect-ratio: 1/.99; }
  .diwali-section-topline { font-size: 8px; }
  .diwali-collection-intro { padding: 78px 0 49px; }
  .diwali-collection-intro h2 { font-size: clamp(2.45rem, 10.1vw, 4.1rem); }
  .diwali-collection-intro > p:last-child { font-size: 13px; }
  .diwali-collection-outro { padding: 77px 0 70px; }
  .diwali-collection-outro h3 { font-size: clamp(2rem, 8vw, 3rem); }
  .diwali-page .nav:not(.shrink) .logos { max-width: 85px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .diwali-product-figure img { transition: none; }
}
