/* Pastel Dream theme styles — bakery / patisserie. * * Dual-mode via the 19 shadcn-style HSL token CSS variables (--background, * --foreground, --primary, --accent, --border, --muted, --card, ...) consumed * as hsl(var(--token)). No literal colors anywhere. Font families resolve ONLY * through the BlockNinja font variables (--font-heading, --font-body, * --font-mono) with the fallback stacks below — never hardcoded, so the admin * font picker keeps working. * * Motion tier: CSS-FIRST. Every animation is a gentle CSS drift and is disabled * under prefers-reduced-motion. No canvas, no JS showpiece. */ :root { --pd-heading-fallback: "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif; --pd-body-fallback: "Quicksand", "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --pd-hand-fallback: "Quicksand", "Comfortaa", "Segoe Print", cursive; --pd-mono-fallback: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace; --pd-radius: 1.5rem; } /* --- Watercolor wash background ----------------------------------------- */ /* The signature "morning haze": soft radial pastel washes tinted from the * active palette, drifting slowly. Reads as watercolor on cream in light mode * and as a dusk-lilac glow in dark mode — all from the same tokens. */ body.pd-paper { background-color: hsl(var(--background)); background-image: radial-gradient(60% 55% at 15% 12%, hsl(var(--primary) / 0.14) 0%, transparent 60%), radial-gradient(55% 50% at 85% 20%, hsl(var(--accent) / 0.12) 0%, transparent 58%), radial-gradient(65% 60% at 75% 85%, hsl(var(--secondary) / 0.40) 0%, transparent 62%), radial-gradient(50% 50% at 25% 90%, hsl(var(--primary) / 0.08) 0%, transparent 60%); background-attachment: fixed; background-repeat: no-repeat; /* Guard against horizontal scroll on small screens from any off-canvas * chrome (mobile drawer). `clip` does not create a scroll container, so * it will not break the sticky navbar the way `hidden` can. */ overflow-x: clip; } /* --- Type roles --------------------------------------------------------- */ .pd-display { font-family: var(--font-heading, var(--pd-heading-fallback)); font-optical-sizing: auto; font-feature-settings: "liga" 1, "dlig" 1; letter-spacing: -0.005em; } .pd-body { font-family: var(--font-body, var(--pd-body-fallback)); line-height: 1.7; } .pd-mono { font-family: var(--font-mono, var(--pd-mono-fallback)); } /* Sweet accent lettering (badges, captions, section titles). Routed through * --font-heading with a rounded fallback: unassigned it renders Quicksand; if * the admin sets a heading font the accents follow it (3-slot model intended). */ .pd-hand { font-family: var(--font-heading, var(--pd-hand-fallback)); letter-spacing: 0.005em; line-height: 1.2; } /* --- Brush underline ---------------------------------------------------- */ .pd-doodle-underline { background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 Q 22 1 44 6 T 88 6 T 118 6' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round' opacity='0.35'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: 0 100%; background-size: 100% 0.55em; padding-bottom: 0.16em; } /* --- Drop-cap ----------------------------------------------------------- */ .pd-dropcap > p:first-of-type::first-letter { font-family: var(--font-heading, var(--pd-heading-fallback)); font-size: 3.8em; line-height: 0.8; float: left; padding: 0.06em 0.14em 0 0; color: hsl(var(--primary)); } /* --- Soft pill button (icing-smooth, lifts on hover) -------------------- */ .pd-tag { position: relative; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.5rem; background-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border: none; border-radius: 9999px; font-family: var(--font-body, var(--pd-body-fallback)); font-weight: 600; letter-spacing: 0.01em; box-shadow: 0 8px 22px -8px hsl(var(--primary) / 0.45); transition: transform 220ms cubic-bezier(.22,1,.36,1), box-shadow 220ms cubic-bezier(.22,1,.36,1), background-color 220ms ease; cursor: pointer; } .pd-tag:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px hsl(var(--primary) / 0.52); background-color: hsl(var(--primary) / 0.92); } .pd-tag:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 3px; } .pd-tag--ghost { background-color: transparent; color: hsl(var(--primary)); box-shadow: none; border: 1.5px solid hsl(var(--primary) / 0.45); } .pd-tag--ghost:hover { background-color: hsl(var(--primary) / 0.08); box-shadow: none; } /* --- Scalloped edges (piped-icing / doily trim) ------------------------- */ .pd-torn-top { -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 L120 12 L0 12 Z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M0 6 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 a6 6 0 0 1 12 0 L120 12 L0 12 Z' fill='black'/%3E%3C/svg%3E"); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } .pd-torn-bottom { -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L120 0 L120 6 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 Z' fill='black'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L120 0 L120 6 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 a6 6 0 0 1 -12 0 Z' fill='black'/%3E%3C/svg%3E"); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; } /* --- Surfaces (rounded-everything) ------------------------------------- */ .pd-card { background-color: hsl(var(--card)); color: hsl(var(--card-foreground)); border: 1px solid hsl(var(--border)); border-radius: var(--pd-radius); box-shadow: 0 12px 40px -14px hsl(var(--primary) / 0.22), 0 4px 12px -6px hsl(var(--primary) / 0.10); } .pd-frame { border: 1px solid hsl(var(--border)); background-color: hsl(var(--card)); border-radius: var(--pd-radius); } /* --- Menu card (soft pastel board for the menu-list override) ---------- */ /* Not an inverted chalkboard: a soft card with a primary wash. Text inherits * card-foreground so item names and section titles stay legible in both modes. */ .pd-chalkboard { position: relative; background-color: hsl(var(--card)); background-image: radial-gradient(70% 60% at 12% 8%, hsl(var(--primary) / 0.10) 0%, transparent 60%), radial-gradient(60% 55% at 90% 92%, hsl(var(--accent) / 0.08) 0%, transparent 60%); color: hsl(var(--card-foreground)); border: 1px solid hsl(var(--border)); border-radius: var(--pd-radius); box-shadow: 0 16px 48px -18px hsl(var(--primary) / 0.28); } .pd-chalk-rule { border-color: hsl(var(--border)); border-style: solid; } .pd-chalk-muted { color: hsl(var(--muted-foreground)); } /* --- Hours: today highlight -------------------------------------------- */ .pd-hours-today { background-color: hsl(var(--accent) / 0.16); color: hsl(var(--accent-foreground)); border-left: 3px solid hsl(var(--accent)); border-radius: 0 9999px 9999px 0; padding-left: 0.75rem; } /* --- Location pin ------------------------------------------------------- */ .pd-pin { color: hsl(var(--accent)); } /* --- Soft badge (timeline markers) ------------------------------------- */ .pd-stamp { display: inline-flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border-radius: 9999px; background-color: hsl(var(--accent)); color: hsl(var(--accent-foreground)); border: 3px solid hsl(var(--card)); box-shadow: 0 8px 20px -8px hsl(var(--accent) / 0.55); font-family: var(--font-heading, var(--pd-hand-fallback)); font-size: 1.05rem; text-align: center; line-height: 1.05; transition: transform 200ms cubic-bezier(.22,1,.36,1); } .pd-stamp:hover { transform: scale(1.06); } .pd-stamp-sm { width: 2.25rem; height: 2.25rem; font-size: 0.95rem; box-shadow: none; } /* --- Brush divider draw-in --------------------------------------------- */ .pd-doodle-draw path, .pd-doodle-draw ellipse, .pd-doodle-draw circle { stroke-dasharray: 260; stroke-dashoffset: 260; animation: pd-draw 1.6s ease forwards; } @keyframes pd-draw { to { stroke-dashoffset: 0; } } /* --- Gentle atmosphere: slow wash drift (CSS-first signature) ----------- */ @keyframes pd-breathe { 0%, 100% { transform: scale(1); opacity: 0.9; } 50% { transform: scale(1.05); opacity: 1; } } .pd-breathe { animation: pd-breathe 8s ease-in-out infinite; } /* --- Motion safety: static fallback ------------------------------------ */ @media (prefers-reduced-motion: reduce) { .pd-tag, .pd-stamp { transition: none; } .pd-tag:hover, .pd-stamp:hover { transform: none; } .pd-breathe { animation: none; } .pd-doodle-draw path, .pd-doodle-draw ellipse, .pd-doodle-draw circle { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; } } /* --- Menu list rhythm (complex child-combinator selector) --------------- */ .pd-menu-list { margin-top: 1rem; } .pd-menu-list > li + li { margin-top: 1.25rem; }