@import "tailwindcss"; @theme { --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif; --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace; --color-brand-cream: #f7f2e8; --color-brand-red: #c62030; --color-brand-flame: #f04a36; /* Ash & Ember (light): the page is cleared ground — warm ash-paper surfaces and charcoal ink. Fire is rationed to a single contained ember accent; flame red stays alarm-only. */ --color-background: oklch(0.959 0.01 86); --color-foreground: oklch(0.3 0.013 75); --color-card: oklch(0.985 0.006 88); --color-card-foreground: var(--color-foreground); --color-muted: oklch(0.929 0.014 86); --color-muted-foreground: oklch(0.51 0.028 80); --color-elevated: oklch(0.94 0.013 84); --color-primary: oklch(0.52 0.15 40); --color-primary-foreground: var(--color-brand-cream); --color-primary-hover: oklch(0.45 0.135 38); --color-secondary: oklch(0.93 0.013 84); --color-secondary-hover: oklch(0.9 0.015 84); --color-secondary-foreground: var(--color-foreground); --color-border: oklch(0.881 0.02 84); --color-border-subtle: oklch(0.915 0.014 84); --color-input: oklch(0.98 0.006 88); /* Ember: the interactive/alive warm tier (contained). Flame red is alarm-only. */ --color-ember: oklch(0.52 0.15 40); --color-ring: var(--color-ember); --color-ring-muted: oklch(0.52 0.13 40 / 0.35); --color-header: oklch(0.985 0.006 88); --color-header-foreground: var(--color-foreground); /* Overlay stays dark — it vignettes the dark hero video for legibility. */ --color-overlay: oklch(0.14 0.006 260); --color-hero-ember: oklch(0.58 0.2 34 / 0.22); --color-hero-burn: var(--color-brand-flame); --color-success: oklch(0.521 0.057 135); --color-success-foreground: oklch(0.46 0.065 140); --color-warning: oklch(0.618 0.121 74); --color-warning-foreground: oklch(0.5 0.11 70); /* Danger: solid brand-red fill for destructive actions (rest state), darkening on hover. danger-foreground is the on-light text used by error messages and badge text. */ --color-danger: var(--color-brand-red); --color-danger-hover: color-mix( in oklab, var(--color-brand-red) 78%, black ); --color-danger-foreground: oklch(0.5 0.172 30); --color-danger-muted: color-mix( in oklab, var(--color-danger) 18%, transparent ); --color-expired: oklch(0.6 0.01 80); --color-expired-foreground: oklch(0.4 0.01 80); --radius-sm: 0.125rem; --radius-md: 0.25rem; --radius-lg: 0.375rem; --shadow-card: 0 1px 2px rgb(60 40 20 / 6%), 0 1px 3px rgb(60 40 20 / 7%); --shadow-elevated: 0 10px 28px rgb(50 35 20 / 12%), 0 2px 6px rgb(50 35 20 / 8%); --shadow-hero-logo: 0 14px 34px rgb(0 0 0 / 28%); --shadow-hero-text: 0 4px 18px rgb(0 0 0 / 40%); --shadow-hero-copy: 0 4px 18px rgb(0 0 0 / 62%); --glow-hero: 0 0 80px oklch(0.58 0.2 34 / 0.16); } @layer base { * { @apply border-border; } html { @apply bg-background text-foreground; color-scheme: light; font-family: var(--font-sans); } body { @apply antialiased bg-background text-foreground; letter-spacing: 0; /* "The fire is off-screen": a faint warm haze at the top edge so interior pages share the hero's light without its motion. */ background-image: radial-gradient( 60rem 32rem at 50% -14rem, oklch(0.7 0.15 45 / 0.07), transparent 65% ); background-repeat: no-repeat; background-attachment: fixed; } code { font-family: var(--font-mono); } h1, h2, h3 { @apply text-foreground; } /* Alpine utility, dont show elements until alpine.js is fetched & loaded in browser*/ [x-cloak] { display: none !important; } } @layer components { .btn { @apply inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md px-4 py-2.5 text-sm font-medium transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50; } .btn-sm { @apply px-3 py-2 text-sm; } .btn-primary { @apply border border-foreground/12 bg-primary text-primary-foreground hover:border-ember/45 hover:bg-primary-hover hover:text-primary-foreground; } /* Buttons are solid fills that darken a step on hover (the hero button's behavior), never sheer washes with colored borders. */ .btn-secondary { @apply border border-foreground/12 bg-secondary text-secondary-foreground hover:bg-secondary-hover; } .btn-danger { @apply border border-transparent bg-danger text-brand-cream hover:bg-danger-hover; } /* Destructive action at rest — quiet outline; solid red is reserved for the moment of confirmation. Flame red never burns idle on a page. */ .btn-danger-quiet { @apply border border-danger/45 bg-transparent text-danger-foreground hover:border-danger hover:bg-danger-muted; } .btn-link { @apply relative inline-flex items-center justify-center gap-2 px-0 py-1 text-sm font-medium transition bg-transparent rounded-sm text-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-4 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50; } .btn-link::after { content: ""; position: absolute; inset-inline: 0; bottom: 0.125rem; height: 1px; background: var(--color-ember); transform: scaleX(0); transform-origin: left center; transition: transform 160ms ease; } .btn-link:hover::after, .btn-link:focus-visible::after { transform: scaleX(1); } /* Current-page nav link keeps its ember underline lit. */ .btn-link[aria-current="page"]::after { transform: scaleX(1); } .btn-disabled { /* border (not just border-color) keeps disabled buttons the same height as their bordered siblings in the Actions column. */ @apply pointer-events-none border border-foreground/8 bg-foreground/6 text-foreground/35; } .notice-rail { @apply border-l-2 border-warning px-5 py-1.5; background: var(--color-card); } /* The cut rule: an ember segment, a gap, then the hairline. The gap is the point — the break the fire cannot cross. Ember sits 2px proud of the 1px hairline so the burning side reads heavier than the ground. */ .firebreak-rule { height: 2px; background: linear-gradient(var(--color-ember), var(--color-ember)) 0 0 / 2.5rem 2px no-repeat, linear-gradient(var(--color-border), var(--color-border)) 3.25rem 50% / calc(100% - 3.25rem) 1px no-repeat; } /* Share-link lifetime as a fuse: ember = remaining, ash = burned. The server sets --fuse to the remaining-lifetime percentage (style="--fuse: 62%"); omitted = a fresh, fully-lit fuse. */ .link-fuse { height: 2px; background: linear-gradient( 90deg, var(--color-ember) var(--fuse, 100%), var(--color-border-subtle) var(--fuse, 100%) ); } /* Containment status grammar — the operator voice for state reports (STATUS · CONTAINED — 0 EXPOSED). Write copy in sentence case and let the CSS shout; color comes from the call site. */ .status-line { @apply font-mono text-[0.6875rem] font-medium uppercase tracking-[0.12em]; } .table-panel { @apply overflow-hidden rounded-lg border border-border bg-card; box-shadow: var(--shadow-card); } .table-shell { @apply overflow-x-auto; } .data-table { /* Narrower floor on small screens — secondary columns are hidden there, so less width needs to scroll. Tabular numerals keep counts and dates aligned as they tick. */ @apply w-full min-w-[34rem] text-left text-sm tabular-nums md:min-w-[45rem]; } .data-table thead { @apply border-b border-border bg-elevated text-xs font-semibold uppercase tracking-[0.12em] text-foreground/75; } .data-table th { @apply px-4 py-2.5; } .data-table th:first-child, .data-table td:first-child { @apply pl-5; } .data-table th:last-child, .data-table td:last-child { @apply pr-5; } .data-table tbody { @apply divide-y divide-border-subtle; } .data-table tbody tr:not(.table-empty) { @apply transition-colors; } /* Row hover is a pass of warm light, not a gray lift. */ .data-table tbody tr:not(.table-empty):hover { background: color-mix(in oklab, var(--color-ember) 6%, transparent); } .data-table td { @apply px-4 py-2.5; } .table-empty { @apply text-center text-muted-foreground; } /* Loading/error/empty states inside a table panel share one fixed-feel height so the htmx swap to the real table doesn't shift layout (CLS). */ .table-placeholder { @apply flex min-h-40 items-center justify-center gap-2.5 px-5 py-8 text-center text-sm text-muted-foreground; } .status-icon { @apply size-4 shrink-0; } /* Loading-skeleton bar for table rows ("instrument warming up"). */ .skeleton-bar { @apply inline-block h-3.5 rounded bg-muted/80 motion-safe:animate-pulse; } /* Inline technical strings (branch names, SHAs) — brighter than muted-foreground so mono text reads as data, not chrome. */ .mono-chip { @apply inline-block rounded bg-muted px-1 py-0.5 font-mono text-xs leading-none text-foreground/85; } .form-label { @apply mb-1.5 block text-xs font-semibold uppercase tracking-[0.12em] text-muted-foreground; } .form-input { @apply block w-full rounded-md border border-border bg-input px-3 py-2.5 text-sm text-foreground transition placeholder:text-muted-foreground focus:border-ring focus:outline-none focus:ring-2 focus:ring-ring-muted; } @keyframes creep-in { from { opacity: 0; transform: translateX(100%); } to { opacity: 1; transform: translateX(0); } } @keyframes trot { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-3px) rotate(-0.6deg); } 75% { transform: translateY(-3px) rotate(0.6deg); } } @keyframes look-up { from { transform: rotate(0deg); } to { transform: rotate(3deg); } } @keyframes laser-pulse { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } } @keyframes rattle { 0%, 100% { transform: translate(0, 0); } 10% { transform: translate(-1px, 1px); } 20% { transform: translate(1px, -1px); } 30% { transform: translate(-2px, 0); } 40% { transform: translate(2px, 1px); } 50% { transform: translate(-1px, -2px); } 60% { transform: translate(2px, 2px); } 70% { transform: translate(-3px, 1px); } 80% { transform: translate(3px, -1px); } 90% { transform: translate(-2px, 2px); } } .guard-dog-wrap { animation: creep-in 6s ease-out both; animation-delay: 1.5s; } .guard-dog-trot { animation: trot 0.4s ease-in-out 15; animation-delay: 1.5s; } .guard-dog-look { animation: look-up 0.8s ease-out both; animation-delay: 7.5s; transform-origin: bottom center; } .laser-eye { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--color-brand-red); box-shadow: 0 0 8px 2px var(--color-brand-red), 0 0 24px 6px color-mix(in oklab, var(--color-brand-red) 45%, transparent); animation: laser-pulse 2s ease-in-out infinite; animation-delay: 7.5s; animation-fill-mode: both; opacity: 0; } .laser-eye-left { inset-block-start: 40px; inset-inline-start: 81px; } .laser-eye-right { inset-block-start: 39px; inset-inline-start: 100px; } .laser-beam { position: fixed; z-index: 100; height: 2px; pointer-events: none; background: linear-gradient( 90deg, var(--color-brand-red), color-mix(in oklab, var(--color-brand-red) 0%, transparent) ); box-shadow: 0 0 8px 2px color-mix(in oklab, var(--color-brand-red) 67%, transparent), 0 0 20px 4px color-mix(in oklab, var(--color-brand-red) 27%, transparent); opacity: 0; transform-origin: left center; } .laser-beam.fire { opacity: 1; transition: opacity 0.05s; } .laser-beam.fade { opacity: 0; transition: opacity 0.4s; } .btn-zapped { background: var(--color-brand-red) !important; color: var(--color-brand-cream) !important; box-shadow: 0 0 12px 4px color-mix(in oklab, var(--color-brand-red) 50%, transparent), 0 0 30px 8px color-mix(in oklab, var(--color-brand-red) 25%, transparent); animation: rattle 0.15s linear infinite; } @media (prefers-reduced-motion: reduce) { .guard-dog-wrap, .guard-dog-trot, .guard-dog-look, .laser-eye, .laser-beam, .btn-zapped { animation: none !important; transition: none !important; } .laser-eye, .laser-beam { opacity: 0 !important; } } /* One badge, one size — sizes fold back in here if a real second size ever ships. leading-none: without it, 10px caps float in the inherited line box and the slack lands below the text. */ .badge { @apply inline-block whitespace-nowrap rounded-full px-1.5 py-0.5 text-[10px] font-medium uppercase leading-none tracking-[0.06em]; } /* Live ember — heat that's already outside the break (public repos: potential fire starters). Soft wash, not alarm red; same recipe as the sibling badges so it sits flush beside them. */ .badge-ember { background: color-mix(in oklab, var(--color-ember) 42%, transparent); border: 1px solid color-mix(in oklab, var(--color-ember) 60%, transparent); color: oklch(0.4 0.13 38); } .badge-danger { background: color-mix(in oklab, var(--color-danger) 42%, transparent); border: 1px solid color-mix(in oklab, var(--color-danger) 60%, transparent); color: var(--color-danger-foreground); } .badge-expired { background: color-mix(in oklab, var(--color-expired) 38%, transparent); border: 1px solid color-mix(in oklab, var(--color-expired) 55%, transparent); color: var(--color-expired-foreground); } }