/* Naalai kids-first site: the paper world. Tokens, fonts, reset, type and shared paper utilities.
   Shared by the marketing pages (css/sections/<page>/*) and the apps; change it additively and say so.
   The art kit (docs/ART.md) provides the textures referenced below.
   Round 2 type pass (pages agent, 3 Nov): one scale for every page. Body text is at least 17 px on phones and 18 px
   from about 1000 px; small print at least 15 px; headings in Baloo 2, text in Nunito Sans, Naalai Rounded only for
   lowercase brand words. Secondary text on a coloured paper uses that paper's own ink (--ink-on-*), never grey. */

@font-face { font-family: "Baloo 2"; src: url(/assets/fonts/baloo-2-latin-variable.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url(/assets/fonts/nunito-sans-latin-variable.woff2) format("woff2"); font-weight: 200 1000; font-stretch: 75% 125%; font-display: swap; }
@font-face { font-family: "Naalai Rounded"; src: url(/assets/fonts/naalai-rounded-bold.woff2) format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Naalai Rupee"; src: url(/assets/fonts/dm-sans-rupee-variable.woff2) format("woff2"); unicode-range: U+20B9; font-weight: 100 1000; font-display: swap; }

:root {
  /* paper */
  --paper: #FFF4E2; --paper-deep: #F8E6C6; --card: #FFFDF8; --kraft: #E9C893;
  /* ink (contrast on --paper: ink 12.6:1, ink-2 7.3:1, ink-3 5.0:1) */
  --ink: #1E2A5A; --ink-2: #48506F; --ink-3: #626984;
  /* brand */
  --sun: #FFCB3D; --sun-deep: #FF8F1F; --amber: #FFB733; --lemon: #FFE28A;
  --blue: #2346C6; --blue-deep: #1A35A0; --night: #18224D;
  /* kid accents */
  --sky: #D6E6FF; --mint: #C9EFD9; --leaf: #5BB36C; --coral: #FF8A80; --pink: #FFD2DC; --moon: #DCE4FF; --grape: #7A5CD6;
  /* paper depth: a tight contact shadow plus a soft ambient one */
  --sh-paper: 0 1px 1.5px rgba(90, 42, 0, .30), 0 10px 22px -10px rgba(90, 42, 0, .34);
  --sh-paper-lift: 0 2px 3px rgba(90, 42, 0, .26), 0 24px 44px -18px rgba(90, 42, 0, .40);
  --sh-blue: 0 1px 1.5px rgba(11, 26, 85, .34), 0 10px 22px -10px rgba(11, 26, 85, .38);
  /* shape */
  --r-sm: 10px; --r: 18px; --r-lg: 28px; --r-xl: 40px; --pill: 999px;
  /* type */
  --font-display: "Baloo 2", "Nunito Sans", "Naalai Rupee", system-ui, sans-serif;
  --font-body: "Nunito Sans", "Naalai Rupee", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-brand: "Naalai Rounded", "Baloo 2", system-ui, sans-serif;
  --t-hero: clamp(44px, 6.2vw, 96px); --t-h2: clamp(32px, 4.1vw, 60px); --t-h3: clamp(22px, 2.1vw, 30px); --t-h4: clamp(18px, 1.5vw, 21px);
  --t-lead: clamp(19px, 1.4vw, 22px); --t-body: clamp(17px, 16.5px + .12vw, 18px); --t-small: 15px; --t-tiny: 13px;
  --t-label: 15.5px; /* bold labels and captions */
  /* secondary ink on coloured paper (AA on its own paper; never a grey on colour) */
  --ink-on-sun: #5A3A06; --ink-on-kraft: #57391A; --ink-on-blue: #F0F3FF; --ink-on-night: #E3E9FF;
  /* layout */
  --gutter: clamp(16px, 4vw, 40px); --wrap: min(1200px, calc(100% - 2 * var(--gutter)));
  --sec-pad: clamp(72px, 10vw, 150px);
  /* motion (see js/lib/motion.js; paper pieces step "on twos" = 12 fps holds) */
  --ease-settle: cubic-bezier(.16, 1, .3, 1); --ease-glide: cubic-bezier(.22, 1, .36, 1); --ease-swap: cubic-bezier(.65, 0, .35, 1);
  --steps-twos: steps(1, end);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; min-height: 100vh; background-color: var(--paper); background-image: url(/assets/art/textures/paper-tile.webp); background-size: 512px 512px;
  color: var(--ink); font: 400 var(--t-body)/1.55 var(--font-body); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--blue); text-underline-offset: .18em; }
/* R5 type polish (brand lane, 9 Nov 2026): one display voice. Baloo 2 for headings in clear steps (hero 800, h2 800, h3 700,
   h4 700), tracking tightening as the size grows, leading 1.02 to 1.08 on display sizes; Nunito Sans for text at 17 to 18 px
   on 1.55. Tamil text never gets tight tracking or leading (see :lang(ta) below). */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.06; letter-spacing: -.018em; margin: 0; color: var(--ink); text-wrap: balance; font-kerning: normal; }
h1 { font-size: var(--t-hero); line-height: 1.03; letter-spacing: -.024em; }
h2 { font-size: var(--t-h2); line-height: 1.06; letter-spacing: -.02em; }
h3 { font-size: var(--t-h3); font-weight: 700; line-height: 1.16; letter-spacing: -.012em; }
h4 { font-size: var(--t-h4); font-weight: 700; line-height: 1.22; letter-spacing: -.008em; }
/* prices and counts that sit side by side line up: tabular, lining figures */
.pr__price, .pr__big, .door__price, .kpr__price, .ni__price, .ni__amount, .dp__price, [data-roll], .num, table, time { font-variant-numeric: tabular-nums lining-nums; }
:lang(ta) { letter-spacing: 0; }
:lang(ta) h1, :lang(ta) h2, :lang(ta) h3, :lang(ta) h4, h1:lang(ta), h2:lang(ta), h3:lang(ta), h4:lang(ta) { letter-spacing: 0; line-height: 1.22; font-family: "Baloo Thambi 2", "Noto Sans Tamil", "Nirmala UI", "Tamil Sangam MN", "Latha", var(--font-display); }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--sun); color: var(--ink); }
input, textarea { caret-color: var(--blue); }
html { scrollbar-color: rgba(30, 42, 90, .32) transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--pill); background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: var(--wrap); margin-inline: auto; }
.sec { position: relative; padding-block: var(--sec-pad); }

/* brand word set in our own font (lowercase only: a-z . , - ') */
.brandword { font-family: var(--font-brand); font-weight: 700; letter-spacing: .005em; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 800 14px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

/* paper card: a sheet with grain and stacked shadows */
.paper { position: relative; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--sh-paper); isolation: isolate; }
.paper::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: url(/assets/art/textures/grain-tile.webp) 0 0 / 256px 256px; mix-blend-mode: multiply; opacity: .55; }

/* buttons: paper pills with press feedback on pointer-down */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: var(--pill);
  font: 800 17px/1 var(--font-body); text-decoration: none; letter-spacing: .005em; transition: transform .1s var(--ease-settle), box-shadow .2s var(--ease-settle); }
.btn:active { transform: translateY(1px) scale(.97); }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: var(--sh-paper); }
.btn--blue { background: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.btn--ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 2px rgba(30, 42, 90, .14); }
.btn:hover { box-shadow: var(--sh-paper-lift); }
/* Round 4: 15 px, the small-print floor (was 13 px); pieces that size the tag in em keep their own size */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: var(--pill); font: 800 15px/1 var(--font-body); letter-spacing: .02em; white-space: nowrap; }
.tag--soon { background: var(--pink); color: #8A2440; }
.tag--sample { background: var(--sky); color: var(--blue-deep); }
.tag--planned { background: var(--paper-deep); color: #7A4A10; }
.tag--free { background: var(--mint); color: #1F6B3A; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* R5: a mascot slot wraps the art that a product page shows today (data-mascot = suri | nila | kuru). It draws nothing and changes no layout, so the brand lane can swap the art inside it (web/assets/mascots). */
.mascot-slot { display: contents; margin: 0; }

/* R5: the clay FREE seal (replaces the green rubber stamp) */
.free-seal { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; rotate: -6deg; text-align: center; vertical-align: middle; }
.free-seal img { width: clamp(92px, 8.4vw, 124px); height: auto; filter: drop-shadow(0 8px 8px rgba(40, 70, 40, .26)); }
.free-seal__t { font: 800 14.5px/1.2 var(--font-body); color: #1F6B3A; max-width: 8em; }
.free-seal--sm img { width: 46px; filter: drop-shadow(0 3px 3px rgba(40, 70, 40, .26)); }
.free-seal--sm { rotate: -8deg; }
.free-seal--md img { width: 70px; }

/* R5: expression stickers are busts; their cut edge at the bottom fades out so it never shows as a hard stripe */
img[src*="/mascots/"][src*="/expr/"] { -webkit-mask-image: linear-gradient(#000 80%, transparent 99%); mask-image: linear-gradient(#000 80%, transparent 99%); }
.bd__ex-img img, .fam__faces img, .suri__sun img, .suri__ava, .kp__kuru img, .fq__kuru img, .pr__kuru img { -webkit-mask-image: none; mask-image: none; }

/* R6 (9 Nov 2026): a still mascot picture in a former 3D slot. No tint blob, no canvas: the cut-out and one soft shadow. */
.toy3d--still { position: relative; margin: 0; aspect-ratio: var(--toy-ar, 1 / 1); }
.toy3d--still::before, .toy3d--still::after { content: none !important; }
.toy3d--still .toy3d__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 14px 12px rgba(90, 42, 0, .2)); -webkit-mask-image: none; mask-image: none; }
@media (prefers-reduced-motion: no-preference) { .toy3d--still .toy3d__poster { transform-origin: 50% 96%; animation: toy-still-breathe 5.6s ease-in-out infinite; } }
@keyframes toy-still-breathe { 0%, 100% { transform: scale(1) translateY(0); } 50% { transform: scale(1.016, .986) translateY(1px); } }
