mirror of
https://github.com/bitbaum/causius.git
synced 2026-12-04 05:07:50 +01:00
* wip: front page redesign, CH/LI/US markets, five locales (translations in progress) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud * i18n: German and French for the new front page; one word under budget Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud * i18n: Spanish, and the sample case in Italian and Spanish Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud * wip: Italian (in progress) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud * feat: a new front page, Switzerland, Liechtenstein and the US, five languages Front page (inspired by what Harvey and Laine do well, for a person rather than a firm): an invented letter worked through as an animation (the name hidden, the deadline with its source, a draft, the person's decision), two calendars (days without, minutes with), the anonymisation drawn, an honest comparison with a chatbot and a lawyer, markets counted from the data, the common problems linking straight into a matter. Headlines in sentence case with an italic accent (one edit in theme.css). The OrangeCat section is gone: no account elsewhere is needed, and the page no longer suggests one. Markets: Liechtenstein and the fifty states join the cantons; one grouping (JURISDICTION_GROUPS) feeds every picker; the agent keeps cantonal, state and federal law apart and Liechtenstein's own order distinct. Languages: Italian and Spanish, whole (site, accounts, mail, sample). The locale list is one SSOT; three hard-coded copies are gone. A letter can be translated into nineteen languages, the same list helpers choose from. Sign-up asks who the account is for (needs help / helps others). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018Lem7GyhyyjKhmwjG8G7Ud --------- Co-authored-by: Claude <noreply@anthropic.com>
231 lines
8.9 KiB
CSS
231 lines
8.9 KiB
CSS
@import "tailwindcss";
|
|
@config "../tailwind.config.js";
|
|
|
|
/**
|
|
* Causius owns almost no design of its own, and that is the point.
|
|
*
|
|
* Every colour, typeface, radius and measure lives in @bitbaum/design-tokens
|
|
* (imported in the layout before this file), the SSOT for OrangeCat, Loki and
|
|
* Solon. Causius used to carry its own paper-and-ink palette; it made a fleet
|
|
* product look like a different company. Do not redefine a token here.
|
|
*
|
|
* What is below is how the shared tokens compose into the few shapes Causius
|
|
* repeats. They are the same shapes Solon uses, under the same names, so a
|
|
* reader moving between the two never changes product.
|
|
*/
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
}
|
|
|
|
/* Native checkboxes and radios in the one accent. */
|
|
html {
|
|
accent-color: var(--public-accent);
|
|
}
|
|
|
|
@layer components {
|
|
/* How a headline is set is decided in theme.css (--theme-headline-*): face,
|
|
weight, case and tracking. These classes only say "this is a headline".
|
|
`.headline-caps` is the short statement a section makes; `.headline` is
|
|
for app screens. Both may break inside a word: «Verfahrensbeistand» is
|
|
wider than a phone. */
|
|
.headline,
|
|
.headline-caps,
|
|
.bp-development h1 {
|
|
font-family: var(--theme-headline-font);
|
|
font-weight: var(--theme-headline-weight);
|
|
text-transform: var(--theme-headline-case);
|
|
letter-spacing: var(--theme-headline-tracking);
|
|
line-height: var(--theme-headline-leading);
|
|
text-wrap: balance;
|
|
overflow-wrap: break-word;
|
|
hyphens: auto;
|
|
@apply text-fg-primary;
|
|
}
|
|
/* The small uppercase label above a headline. */
|
|
.kicker,
|
|
.bp-development .bp-development-name {
|
|
@apply text-xs font-semibold uppercase tracking-caps text-fg-secondary;
|
|
}
|
|
|
|
.btn-primary {
|
|
@apply inline-flex min-h-11 items-center justify-center gap-2 rounded-control bg-accent px-5 text-sm font-semibold text-on-accent transition-colors hover:bg-accent-hover disabled:cursor-not-allowed disabled:opacity-50;
|
|
}
|
|
.btn-secondary {
|
|
@apply inline-flex min-h-11 items-center justify-center gap-2 rounded-control border border-border bg-surface-base px-4 text-sm font-semibold text-fg-primary transition-colors hover:bg-surface-raised disabled:cursor-not-allowed disabled:opacity-50;
|
|
}
|
|
/* The call to action of a full-width section, framed. Case, weight and
|
|
corners come from theme.css. */
|
|
.btn-frame {
|
|
@apply inline-flex min-h-12 items-center justify-center gap-3 rounded-control px-7 text-sm transition-colors;
|
|
font-weight: var(--theme-action-weight);
|
|
text-transform: var(--theme-action-case);
|
|
letter-spacing: var(--theme-action-tracking);
|
|
color: hsl(var(--text-primary));
|
|
border: 2px solid hsl(var(--text-primary));
|
|
}
|
|
.btn-frame:hover {
|
|
color: hsl(var(--text-inverted));
|
|
background-color: hsl(var(--text-primary));
|
|
}
|
|
.btn-frame-accent {
|
|
@apply inline-flex min-h-12 items-center justify-center gap-3 rounded-control bg-accent px-7 text-sm text-on-accent transition-colors hover:bg-accent-hover;
|
|
font-weight: var(--theme-action-weight);
|
|
text-transform: var(--theme-action-case);
|
|
letter-spacing: var(--theme-action-tracking);
|
|
border: 2px solid transparent;
|
|
}
|
|
|
|
/* One text field, so every form looks the same. */
|
|
.field {
|
|
@apply block w-full min-h-12 rounded-control border border-border bg-surface-raised px-4 py-3 text-base text-fg-primary placeholder:text-fg-tertiary focus:border-accent focus:outline-none;
|
|
}
|
|
|
|
/* A plain inline link. */
|
|
.text-link {
|
|
@apply text-fg-primary underline decoration-border-strong underline-offset-4 transition-colors hover:decoration-fg-primary;
|
|
}
|
|
|
|
/* The header, translucent over whatever scrolls under it. */
|
|
.header-solid {
|
|
background-color: hsl(var(--surface-page) / 0.92);
|
|
backdrop-filter: blur(12px);
|
|
}
|
|
|
|
/* bip-kit renders the roadmap and changelog; its neutral theme reads every
|
|
colour and face from a --bp-* variable, pointed at the shared tokens here
|
|
exactly as Solon does, so those pages wear the same clothes. */
|
|
.bp-development {
|
|
--bp-font-sans: var(--font-sans);
|
|
--bp-font-mono: var(--font-mono);
|
|
--bp-radius: var(--radius-surface);
|
|
--bp-radius-sm: var(--radius-control);
|
|
--bp-development-padding: 0px;
|
|
--bp-development-title: var(--text-display-2);
|
|
--bp-bg: transparent;
|
|
--bp-surface: hsl(var(--surface-raised));
|
|
--bp-fg: hsl(var(--text-primary));
|
|
--bp-fg-muted: hsl(var(--text-secondary));
|
|
--bp-fg-faint: hsl(var(--text-tertiary));
|
|
--bp-border: hsl(var(--border-subtle));
|
|
--bp-accent: hsl(var(--text-primary));
|
|
--bp-accent-contrast: hsl(var(--text-inverted));
|
|
--bp-note: hsl(var(--text-primary));
|
|
--bp-note-bg: hsl(var(--surface-raised));
|
|
--bp-tip: hsl(var(--status-positive));
|
|
--bp-tip-bg: hsl(var(--surface-raised));
|
|
--bp-warn: hsl(var(--status-warning));
|
|
--bp-warn-bg: hsl(var(--surface-raised));
|
|
--bp-danger: hsl(var(--status-negative));
|
|
--bp-danger-bg: hsl(var(--surface-raised));
|
|
margin-inline: 0;
|
|
}
|
|
.bp-development-check {
|
|
color: hsl(var(--status-positive));
|
|
}
|
|
}
|
|
|
|
/* bip-kit's "Back to the product" link is 20px tall, under the 44px target
|
|
floor. Raised here until it is fixed in bip-kit itself. Unlayered, because
|
|
bip-kit's stylesheet is unlayered. */
|
|
.bp-development > header > a {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
min-height: 2.75rem;
|
|
}
|
|
|
|
/* One focus treatment for every interactive element. */
|
|
:where(a, button, input, textarea, select, summary):focus-visible {
|
|
outline: 2px solid var(--public-accent);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
/* The shared account menu and chat read their colours from --acct-* and
|
|
--ck-*; mapped once onto the tokens. */
|
|
:root {
|
|
--acct-panel: hsl(var(--surface-overlay));
|
|
--acct-hover: hsl(var(--surface-hover));
|
|
--acct-trigger-bg: hsl(var(--surface-raised));
|
|
--acct-fg: hsl(var(--text-primary));
|
|
--acct-muted: hsl(var(--text-secondary));
|
|
--acct-line: hsl(var(--border-default));
|
|
--acct-focus: var(--public-accent);
|
|
--acct-action: var(--public-accent);
|
|
--acct-on-action: hsl(var(--on-accent));
|
|
--acct-radius: var(--radius-surface);
|
|
--acct-radius-sm: var(--radius-control);
|
|
--acct-font: var(--font-sans);
|
|
|
|
--ck-bg: hsl(var(--surface-page));
|
|
--ck-raised: hsl(var(--surface-raised));
|
|
--ck-overlay: hsl(var(--surface-overlay));
|
|
--ck-fg: hsl(var(--text-primary));
|
|
--ck-muted: hsl(var(--text-secondary));
|
|
--ck-line: hsl(var(--border-default));
|
|
--ck-accent: var(--public-accent);
|
|
--ck-on-accent: hsl(var(--on-accent));
|
|
--ck-radius: var(--radius-surface);
|
|
--ck-radius-sm: var(--radius-control);
|
|
--ck-font: var(--font-sans);
|
|
--ck-mono: var(--font-mono);
|
|
}
|
|
|
|
/* Sections rise into place as they arrive, unless the reader asked for less motion. */
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.rise {
|
|
animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
|
|
}
|
|
@keyframes rise {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(24px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
/*
|
|
* The home page's worked example plays once through, then holds, then begins
|
|
* again: the name is hidden, the deadline appears with its source, the draft,
|
|
* then the question to the person. One 14-second loop; each step has its own
|
|
* moment in it. With reduced motion everything is simply shown, name hidden.
|
|
*/
|
|
@media (prefers-reduced-motion: no-preference) {
|
|
.demo-step {
|
|
animation: 14s ease-out infinite both;
|
|
}
|
|
.demo-step[data-step="1"] { animation-name: demo-1; }
|
|
.demo-step[data-step="2"] { animation-name: demo-2; }
|
|
.demo-step[data-step="3"] { animation-name: demo-3; }
|
|
.demo-step[data-step="4"] { animation-name: demo-4; }
|
|
.demo-real { animation: demo-real 14s ease-out infinite both; }
|
|
.demo-token { animation: demo-token 14s ease-out infinite both; }
|
|
|
|
@keyframes demo-1 { 0%, 10% { opacity: 0; transform: translateY(6px); } 16%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
|
|
@keyframes demo-2 { 0%, 26% { opacity: 0; transform: translateY(6px); } 32%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
|
|
@keyframes demo-3 { 0%, 44% { opacity: 0; transform: translateY(6px); } 50%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
|
|
@keyframes demo-4 { 0%, 60% { opacity: 0; transform: translateY(6px); } 66%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
|
|
@keyframes demo-real { 0%, 12% { opacity: 1; } 18%, 94% { opacity: 0; } 100% { opacity: 1; } }
|
|
@keyframes demo-token { 0%, 12% { opacity: 0; } 18%, 94% { opacity: 1; } 100% { opacity: 0; } }
|
|
}
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.demo-real { display: none; }
|
|
}
|
|
|
|
@layer components {
|
|
/* A placeholder where a personal detail was: the mark the whole product turns on. */
|
|
.token {
|
|
@apply rounded-control bg-accent/10 px-1 font-mono text-[0.85em] text-accent;
|
|
}
|
|
/* A headline's emphasised words: the display face's italic, in the accent. */
|
|
.headline em,
|
|
.headline-caps em {
|
|
font-style: italic;
|
|
color: var(--public-accent);
|
|
}
|
|
}
|