/* Mango Magic House website. Palette and fonts follow 3 Settings/mmh-settings.yaml (Mango Summer, locked). */

@font-face { font-family: "Bricolage"; src: url(/assets/fonts/bricolage.woff2) format("woff2"); font-weight: 600 800; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(/assets/fonts/dmsans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Anek Devanagari"; src: url(/assets/fonts/anek-devanagari.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0900-097F, U+200C-200D, U+25CC, U+A8E0-A8FF; }
@font-face { font-family: "Anek Telugu"; src: url(/assets/fonts/anek-telugu.woff2) format("woff2"); font-weight: 400 800; font-display: swap; unicode-range: U+0C00-0C7F, U+200C-200D, U+25CC; }
/* Tiny fonts holding only the words हिंदी and తెలుగు, for the language switch on other-language pages */
@font-face { font-family: "MMH Hindi Label"; src: url(/assets/fonts/anek-devanagari-mini.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "MMH Telugu Label"; src: url(/assets/fonts/anek-telugu-mini.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --ink: #1A1A40; --ink-muted: #4A4A6A;
  --paper: #FFF6E6; --paper-deep: #FBE3BD; --wall: #FCE9C8;
  --mango: #FFB627; --ripe: #F2802A; --plum: #6B5BD2; --pink: #F25C7A;
  --sky-pale: #DCEBFA; --sky: #4C7BE0; --sky-lt: #8FAEF0;
  --canopy-dk: #2E6B4E; --canopy: #5C9E6B; --grass: #86C25F; --bark: #6B4A2B;
  --display: "Bricolage", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --radius: 24px;
  --shadow: 0 6px 0 rgba(26, 26, 64, .12);
}
:lang(hi) { --display: "Bricolage", "Anek Devanagari", sans-serif; --body: "DM Sans", "Anek Devanagari", sans-serif; }
:lang(te) { --display: "Bricolage", "Anek Telugu", sans-serif; --body: "DM Sans", "Anek Telugu", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.6rem; font-weight: 800; }
:lang(hi) h1, :lang(te) h1 { line-height: 1.25; }
:lang(hi) h2, :lang(te) h2, :lang(hi) h3, :lang(te) h3 { line-height: 1.3; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 246, 230, .92); backdrop-filter: blur(8px); border-bottom: 2px solid var(--paper-deep); }
.top-inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand img { width: 174px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-weight: 600; }
.nav a { text-decoration: none; padding: 6px 2px; border-bottom: 3px solid transparent; }
.nav a:hover { border-color: var(--mango); }
.langs { display: flex; background: #fff; border: 2px solid var(--paper-deep); border-radius: 999px; padding: 3px; }
.langs a { font: 600 15px/1 var(--body); color: var(--ink-muted); text-decoration: none; border-radius: 999px; padding: 8px 12px; }
.langs a:hover { color: var(--ink); }
.langs a[lang="hi"], .langline [lang="hi"], .also [lang="hi"] { font-family: "MMH Hindi Label", sans-serif; }
.langs a[lang="te"], .langline [lang="te"], .also [lang="te"] { font-family: "MMH Telugu Label", sans-serif; }
.langs a[aria-current] { background: var(--ink); color: var(--paper); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1 var(--body); text-decoration: none; padding: 16px 26px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn-primary { background: var(--ink); color: var(--paper); box-shadow: 0 5px 0 var(--ripe); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ripe); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ripe); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2.5px var(--ink); }
.btn-ghost:hover { background: var(--wall); }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow, .kicker { display: inline-block; font-weight: 700; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: var(--plum); margin: 0 0 14px; }
:lang(hi) .eyebrow, :lang(te) .eyebrow, :lang(hi) .kicker, :lang(te) .kicker { text-transform: none; letter-spacing: 0; font-size: 17px; }
.lede { font-size: 1.2rem; color: var(--ink-muted); max-width: 34em; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.langline { margin: 26px 0 0; font-weight: 600; color: var(--ink-muted); }

.hero-art { position: relative; }
.scene { position: relative; aspect-ratio: 1 / .86; border-radius: 40px; overflow: hidden; background: linear-gradient(var(--sky-pale), #EEF5FC 70%); box-shadow: var(--shadow); border: 3px solid #fff; }
.sun { position: absolute; width: 34%; aspect-ratio: 1; right: 9%; top: 9%; border-radius: 50%; background: var(--mango); box-shadow: 0 0 0 18px rgba(255, 182, 39, .22), 0 0 0 40px rgba(255, 182, 39, .1); }
.cloud { position: absolute; background: var(--paper); border-radius: 999px; height: 9%; }
.cloud::after { content: ""; position: absolute; background: inherit; border-radius: 50%; width: 46%; aspect-ratio: 1; left: 18%; bottom: 35%; }
.c1 { width: 30%; left: 7%; top: 18%; animation: drift 14s ease-in-out infinite alternate; }
.c2 { width: 20%; left: 46%; top: 36%; animation: drift 18s ease-in-out infinite alternate-reverse; }
.hill { position: absolute; left: -10%; right: -10%; bottom: -34%; height: 66%; border-radius: 50% 50% 0 0; background: var(--grass); }
.cast { position: absolute; left: -2%; bottom: 5%; width: 104%; }
.tagline { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%) rotate(-2deg); margin: 0; white-space: nowrap; background: var(--plum); color: #fff; font: 700 16px/1 "Bricolage", sans-serif; padding: 12px 20px; border-radius: 999px; box-shadow: 0 4px 0 rgba(26, 26, 64, .2); }
@keyframes drift { to { transform: translateX(14%); } }

/* Sections */
.section { padding: 80px 0; }
.section-lede { font-size: 1.15rem; color: var(--ink-muted); max-width: 40em; margin: 0 0 32px; }

.stories { background: var(--wall); border-radius: 48px 48px 0 0; }
.ep-chip { display: inline-block; vertical-align: .25em; font: 700 .42em/1 "Bricolage", sans-serif; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 10px; }
.parts { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.part { text-decoration: none; display: block; }
.thumb { position: relative; display: block; border-radius: var(--radius); overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow); transition: transform .2s ease; }
.part:hover .thumb { transform: translateY(-4px) rotate(-.5deg); }
.play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(26, 26, 64, .82); opacity: 0; transition: opacity .2s ease; }
.play::after { content: ""; position: absolute; left: 30px; top: 22px; border-left: 26px solid var(--paper); border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
.part:hover .play, .part:focus-visible .play { opacity: 1; }
.part-label { display: inline-block; margin-top: 14px; font-weight: 700; background: var(--plum); color: #fff; padding: 7px 14px; border-radius: 999px; font-size: 15px; }
.ask { display: flex; align-items: center; gap: 14px; margin: 40px 0 0; font-size: 1.15rem; font-weight: 600; }
.ask-q { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--mango); font: 800 24px/1 "Bricolage", sans-serif; }

.friends { background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border-radius: 32px; padding: 26px 26px 30px; box-shadow: var(--shadow); }
.card-art { height: 210px; display: flex; align-items: flex-end; justify-content: center; border-radius: 22px; margin-bottom: 20px; padding: 22px 22px 14px; overflow: hidden; }
.card-art img { width: 100%; height: 100%; object-fit: contain; }
.card-golu .card-art { background: #F6EBC8; }
.card-chinni .card-art { background: #FBDCC4; }
.card-laddu .card-art { background: #E3E6F4; }
.card h3 small { font-size: .62em; font-weight: 600; color: var(--ink-muted); }
.trait { display: inline-block; font-weight: 700; background: var(--mango); padding: 4px 12px; border-radius: 8px; margin: 2px 0 10px; }
.card p { margin: 0 0 6px; color: var(--ink-muted); }
.card .trait { color: var(--ink); justify-self: start; }

.together { background: var(--canopy-dk); color: var(--paper); }
.points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.points li { border-top: 4px solid var(--mango); padding-top: 18px; }
.points strong { display: block; font: 800 1.4rem/1.2 var(--display); margin-bottom: 8px; }
.points span { color: #E4EFD9; }

.updates-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.signup { background: #fff; border-radius: 32px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 8px; }
.signup label { font-weight: 700; font-size: 15px; margin-top: 8px; }
.signup input, .signup select { font: 400 18px/1.3 var(--body); color: var(--ink); padding: 14px 16px; border: 2px solid var(--paper-deep); border-radius: 14px; background: var(--paper); width: 100%; }
.signup input:focus, .signup select:focus { outline: none; border-color: var(--plum); }
.signup .btn { justify-content: center; margin-top: 16px; }
.signup .btn[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine { font-size: 14px; color: var(--ink-muted); margin: 6px 0 0; }
.status { margin: 0; font-weight: 700; min-height: 1.4em; }
.status.ok { color: var(--canopy-dk); }
.status.err { color: #B3263E; }

/* Home extras */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; z-index: 20; }
.skip:focus { left: 12px; }
.title-link { text-decoration: none; }
.title-link:hover { text-decoration: underline; text-decoration-color: var(--mango); text-underline-offset: 6px; }
.story-cta { margin: 28px 0 0; }
.more-title { margin-top: 48px; }
.more { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.more a { text-decoration: none; display: block; }
.more img { border-radius: 16px; border: 3px solid #fff; box-shadow: var(--shadow); margin-bottom: 8px; }
.about { background: var(--paper); }
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about p { color: var(--ink-muted); font-size: 1.1rem; }
.faq details { background: #fff; border-radius: 18px; padding: 16px 20px; margin-bottom: 12px; box-shadow: 0 3px 0 rgba(26, 26, 64, .08); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq details p { margin: 10px 0 0; font-size: 1rem; }
.updates { background: var(--wall); }

/* Story page */
.story { padding-top: 28px; }
.crumbs { font-size: 15px; color: var(--ink-muted); margin-bottom: 28px; }
.crumbs a { color: var(--ink-muted); }
.story-head { max-width: 46em; margin-bottom: 32px; }
.story-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.watch { margin-bottom: 56px; }
.video { margin: 0; }
.play-on { opacity: 1; }
.story-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; padding-bottom: 72px; }
.read-part h3 { font-size: 1.25rem; margin-top: 24px; }
.read-part p { font-size: 1.15rem; margin: 0 0 8px; }
.moral { margin: 32px 0 0; background: var(--mango); padding: 18px 22px; border-radius: 18px; font: 800 1.35rem/1.3 var(--display); }
.moral span { display: block; font: 700 13px/1 var(--body); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
:lang(hi) .moral span, :lang(te) .moral span { text-transform: none; letter-spacing: 0; font-size: 15px; }
.side > section { background: #fff; border-radius: 24px; padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.side h2 { font-size: 1.5rem; }
.talk ul { padding-left: 1.2em; margin: 0; }
.talk li { font-weight: 700; margin-bottom: 8px; }
.who ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.who li { display: flex; align-items: center; gap: 12px; }
.who img { width: 64px; height: 64px; object-fit: contain; background: var(--wall); border-radius: 14px; padding: 6px; }
.also { font-size: 15px; color: var(--ink-muted); }

/* Follow band */
.follow { background: var(--plum); color: #fff; }
.follow .section-lede { color: #E6E2FB; margin-bottom: 0; }
.follow-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.follow-btns { display: grid; gap: 14px; justify-items: start; }
.btn svg { width: 24px; height: 24px; flex: none; }
.btn-yt { background: #fff; color: var(--ink); box-shadow: 0 5px 0 rgba(26, 26, 64, .35); }
.btn-yt svg { color: #FF0033; }
.btn-ig { background: transparent; color: #fff; box-shadow: inset 0 0 0 2.5px #fff; }
.btn-yt:hover, .btn-ig:hover { transform: translateY(-2px); }
.handle { margin: 4px 0 0; font-weight: 700; opacity: .85; }
.video figcaption { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.yt-open { margin-top: 14px; font-weight: 700; font-size: 15px; }

/* Privacy page */
.legal .wrap { max-width: 760px; padding-bottom: 72px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.4rem; margin-top: 32px; }
.legal section p { color: var(--ink-muted); }
.contact-line { margin-top: 40px; padding: 18px 22px; background: #fff; border-radius: 18px; box-shadow: 0 3px 0 rgba(26, 26, 64, .08); }
.fine a { color: var(--ink); }
.foot p a { color: #E4E4F0; }

/* Footer */
.foot { background: var(--ink); color: var(--paper); padding: 40px 0; }
.foot-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.social { display: flex; gap: 20px; flex-wrap: wrap; font-weight: 600; }
.social a { text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.social svg { width: 20px; height: 20px; }
.social a:hover { color: var(--mango); }
.foot p { margin: 0 0 0 auto; color: #B9B9D0; font-size: 15px; }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
  .hero { padding-top: 32px; }
  .hero-inner, .updates-inner, .about-inner, .story-grid, .follow-inner { grid-template-columns: 1fr; }
  .more { grid-template-columns: 1fr 1fr; }
  .hero-art { order: -1; }
  .cards, .points { grid-template-columns: 1fr; }
  .card { display: grid; grid-template-columns: 140px 1fr; column-gap: 20px; align-items: center; }
  .card-art { grid-row: span 3; height: 150px; margin: 0; padding: 12px; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .brand img { width: 132px; }
  .langs a { padding: 7px 9px; font-size: 14px; }
  .parts { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .card { grid-template-columns: 104px 1fr; padding: 18px; }
  .card-art { height: 120px; }
  .foot p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
