/* LuciApps identity system, shared by both homepage versions.
   Type: Fredoka (rounded, chunky, reads like clay letters) for display; Inter for reading.
   Color: taken straight from the logo. Blue #0187fe, green #24bc4c, red #f8352c, yellow #feb102, navy #000e27.
          Each of the four practices owns one logo color and keeps it everywhere (pin, chip, button, sign).
   Material: pressed clay (soft inner highlight, a thick lower edge, a faint fingerprint grain) and painted wood signs.
   Motion: small, stop-motion pops on threes. Everything stops for reduced motion. */

:root {
  --navy: #0a1530; --navy-2: #2b3652; --sub: #5d6680;
  --blue: #0187fe; --blue-btn: #0b63d9; --blue-deep: #07418f; --blue-wash: #d6eaff;
  --green: #24bc4c; --green-btn: #178a37; --green-deep: #0e5f25; --green-wash: #d8f3df;
  --red: #f8352c; --red-btn: #d4251c; --red-deep: #8e1711; --red-wash: #ffdcd9;
  --yellow: #feb102; --yellow-deep: #a97200; --yellow-wash: #fff0c2;
  --paper: #fbf4e8; --cream: #fffaf0; --edge: #dcc6a4; --wood: #8b5a35; --wood-deep: #5b3a20; --wood-light: #b98355;
  --display: "Fredoka", "Nunito", system-ui, sans-serif; --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n' x='0' y='0' width='100%25' height='100%25'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .36  0 0 0 0 .24  0 0 0 0 .12  0 0 0 .5 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  --stones: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='132' height='30' viewBox='0 0 132 30'><g fill='%23efe3cf' stroke='%23d6c0a0' stroke-width='1.6'><ellipse cx='20' cy='15' rx='17' ry='7.5'/><ellipse cx='66' cy='13' rx='15' ry='7'/><ellipse cx='110' cy='16' rx='15' ry='6.8'/></g><g fill='%23d6c0a0' opacity='.45'><ellipse cx='20' cy='20.5' rx='15' ry='2'/><ellipse cx='66' cy='18.5' rx='13' ry='2'/><ellipse cx='110' cy='21.5' rx='13' ry='2'/></g></svg>");
}

@view-transition { navigation: auto; }               /* real pages, with a smooth camera-style crossfade where supported */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--navy); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.012em; line-height: 1.04; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }
.grain { position: relative; isolation: isolate; }
.grain::after { content: ""; position: absolute; inset: 0; background: var(--grain); mix-blend-mode: multiply; opacity: .12; pointer-events: none; border-radius: inherit; z-index: 1; }

/* ---------- buttons: pressed clay, one per logo color ---------- */
.btn { --c: var(--blue-btn); --d: var(--blue-deep); --t: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 15px 28px; border: 0; border-radius: 999px; cursor: pointer; position: relative; top: 0;
  font: 600 17px/1 var(--display); letter-spacing: .005em; color: var(--t); background: var(--c);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.34), inset 0 -3px 0 rgba(0,0,0,.14), 0 6px 0 var(--d), 0 16px 24px rgba(10,21,48,.24);
  transition: top .12s, box-shadow .12s, filter .12s; }
.btn:hover { top: -1px; filter: brightness(1.06); }
.btn:active { top: 5px; box-shadow: inset 0 2px 0 rgba(255,255,255,.28), inset 0 -2px 0 rgba(0,0,0,.14), 0 1px 0 var(--d), 0 5px 10px rgba(10,21,48,.22); }
.btn.green { --c: var(--green-btn); --d: var(--green-deep); }
.btn.red { --c: var(--red-btn); --d: var(--red-deep); }
.btn.yellow { --c: var(--yellow); --d: var(--yellow-deep); --t: var(--navy); }
.btn.alt { --c: var(--cream); --d: var(--edge); --t: var(--navy); box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 rgba(120,80,30,.07), 0 6px 0 var(--edge), 0 16px 24px rgba(10,21,48,.16); }
.btn.alt:hover { filter: none; background: #fff; }
.btn.sm { padding: 11px 20px; font-size: 15px; box-shadow: inset 0 2px 0 rgba(255,255,255,.34), inset 0 -2px 0 rgba(0,0,0,.14), 0 4px 0 var(--d), 0 10px 16px rgba(10,21,48,.2); }
.btn.sm:active { top: 3px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- chips ---------- */
.chip { --c: var(--blue); --w: var(--blue-wash); display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--cream);
  font: 600 14px/1 var(--display); letter-spacing: .02em; color: var(--navy); box-shadow: inset 0 2px 0 #fff, 0 4px 0 var(--edge), 0 10px 16px rgba(10,21,48,.14); }
.chip i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font: 600 13px/1 var(--display); font-style: normal; box-shadow: inset 0 2px 0 rgba(255,255,255,.4), 0 2px 0 rgba(0,0,0,.18); }
.chip.green { --c: var(--green); --w: var(--green-wash); } .chip.red { --c: var(--red); --w: var(--red-wash); } .chip.yellow { --c: var(--yellow); --w: var(--yellow-wash); } .chip.yellow i { color: var(--navy); }

/* ---------- the painted wooden sign: where the words live inside the world ---------- */
.sign { --c: var(--blue); --btn: var(--blue-btn); position: relative; background: var(--cream); border: 11px solid var(--wood); border-radius: 26px; padding: 34px 38px 36px; color: var(--navy);
  box-shadow: inset 0 0 0 3px var(--wood-light), inset 0 5px 0 rgba(255,255,255,.7), 0 10px 0 var(--wood-deep), 0 40px 60px rgba(30,15,0,.32); }
.sign::before, .sign::after { content: ""; position: absolute; top: 14px; width: 11px; height: 11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e9cfa6, #8b5a35 70%); box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.sign::before { left: 14px; } .sign::after { right: 14px; }
.sign.green { --c: var(--green); --btn: var(--green-btn); } .sign.red { --c: var(--red); --btn: var(--red-btn); } .sign.yellow { --c: var(--yellow); --btn: var(--yellow-deep); }
.sign h2 { font-size: clamp(36px, 4.2vw, 58px); margin-top: 16px; }
.sign p { color: var(--navy-2); margin-top: 16px; max-width: 46ch; }
.sign .row { margin-top: 26px; }
.sign h2 em { font-style: normal; color: var(--c); }

/* clay letters: cream fill, warm extruded edge, for words that sit directly on the scene */
.claytext { color: var(--cream); text-shadow: 0 2px 0 #c9805a, 0 4px 0 #a85c3b, 0 6px 0 #7e3f27, 0 8px 0 rgba(60,25,10,.35), 0 18px 26px rgba(40,15,5,.38); }
.claytext .y { color: var(--yellow); text-shadow: 0 2px 0 #e08a00, 0 4px 0 #b86a00, 0 6px 0 #7a4300, 0 8px 0 rgba(60,25,10,.35), 0 18px 26px rgba(40,15,5,.38); }

.stones { height: 30px; background: var(--stones) repeat-x center; }

/* ---------- storefront links: awnings ---------- */
.shop { --a: var(--blue); display: block; position: relative; top: 0; transition: top .14s; }
.shop:nth-child(4n+2) { --a: var(--red); } .shop:nth-child(4n+3) { --a: var(--green); } .shop:nth-child(4n+4) { --a: var(--yellow); }
.shop .awn { height: 30px; border-radius: 12px 12px 0 0; background: repeating-linear-gradient(90deg, var(--a) 0 22px, #fffaf0 22px 44px);
  -webkit-mask: linear-gradient(#000, #000) 0 0 / 100% 18px no-repeat, radial-gradient(circle at 50% 0, #000 10.5px, transparent 11px) 0 18px / 22px 12px repeat-x;
          mask: linear-gradient(#000, #000) 0 0 / 100% 18px no-repeat, radial-gradient(circle at 50% 0, #000 10.5px, transparent 11px) 0 18px / 22px 12px repeat-x;
  filter: drop-shadow(0 3px 0 rgba(0,0,0,.16)); }
.shop .body { margin-top: 2px; padding: 15px 16px 17px; border-radius: 4px 4px 18px 18px; background: var(--cream); box-shadow: inset 0 2px 0 #fff, 0 7px 0 var(--edge), 0 18px 24px rgba(30,15,0,.12); min-height: 100px; }
.shop small { display: block; font: 600 11px/1.3 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--sub); }
.shop b { display: block; font: 600 21px/1.1 var(--display); margin-top: 8px; }
.shop:hover { top: -5px; } .shop:hover .body { animation: pop .36s steps(3) 1; box-shadow: inset 0 2px 0 #fff, 0 12px 0 var(--edge), 0 26px 30px rgba(30,15,0,.16); }
.shop:active { top: 3px; }
@keyframes pop { 0% { transform: rotate(0); } 33% { transform: rotate(-.9deg); } 66% { transform: rotate(.7deg); } 100% { transform: rotate(0); } }

/* ---------- Mom Run dialog ---------- */
.runmodal { border: 0; padding: 0; border-radius: 26px; width: min(440px, 94vw); height: min(840px, 92dvh); overflow: hidden; background: #fffefd; box-shadow: 0 0 0 6px var(--cream), 0 40px 100px rgba(0,0,0,.5); }
.runmodal[open] { display: flex; flex-direction: column; }
.runmodal::backdrop { background: rgba(10, 21, 48, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.runbar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #eadfc9; font: 600 16px var(--display); flex: none; }
.runbar small { font: 400 13px var(--sans); color: var(--sub); margin-left: 6px; }
.runbar a { margin-left: auto; font: 500 12.5px var(--sans); color: var(--blue-btn); }
.runclose { border: 0; background: #f2e9d6; width: 32px; height: 32px; border-radius: 50%; font-size: 19px; line-height: 1; cursor: pointer; color: var(--navy); }
.runmodal iframe { display: block; width: 100%; flex: 1; min-height: 0; border: 0; background: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .shop:hover { top: 0; }
}
