/* Shared by the shell and every mini app: the "Gabinet" look (formal, calm: serif headings, square corners, hairlines,
   forest green and brass) and its dark twin "Noc". Colour tokens live in each app.css (same names everywhere); this file
   adds what a token cannot: the display face, the corner radius, the button colours and the press feel.
   Loaded AFTER an app's own app.css. */
:root {
	--display: ui-serif, "Iowan Old Style", Charter, Georgia, serif;
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
	--r: 2px;
	--cta: #1f3a2e; --cta-ink: #f7f4ee; /* primary buttons: forest green on light, brass on dark */
	--form-radius: 2px;
}
body.darkmode, html.dark { --cta: #c3ad7a; --cta-ink: #141c18; --accent: #c3ad7a; --accent-strong: #c9b482; --ochre: #c3ad7a; }

/* Genesis' own h1/h2 rules outrank plain selectors, so repeat its selector; serif for display type only, body stays DM Sans */
.genesis-pages .page h1, .genesis-pages .page h2, .sheet h2 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; }

/* square corners: one radius for every card, chip, pill and button. Circles (dots, orb, avatars, round icon buttons) stay round. */
body .genesis-pages :is(.button, .button.big, .chip, .tabbar a, .next, .badge, .len span, .mood, .tech, .soft-cta, .helpline, .rate, .change, .hero, .cta, .link-card, .evidence, .prompt-card, .card, .summary, .habit, .habit-main, .line, .suggestion, .day, .slot, .safety, .memory-card, .habit-doodle, .pick, .call),
body :is(.help-pill, .popup .button, .tabbar a) { border-radius: var(--r); }

/* primary buttons are the only filled ones; "calm" and "ghost" are outlines, so one screen has one clear next step */
body .genesis-pages .button:not(.ghost):not(.calm):not(.call):not(.linkish), body .popup .button:not(.ghost) { background: var(--cta); color: var(--cta-ink); }
body .genesis-pages .button.calm { background: transparent; color: var(--green); border: 1.5px solid var(--accent-strong); }

/* a button must feel it was pressed; only transform and colour move, never layout */
.genesis-pages .button, .sheet .button { transition: transform 160ms var(--ease-out), background-color 200ms, border-color 200ms, color 200ms; }
.genesis-pages .button:active, .sheet .button:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .genesis-pages .button, .sheet .button { transition: none; } .genesis-pages .button:active, .sheet .button:active { transform: none; } }
