Files
CatoandClaude Sonnet 5.5 408d9d77f1 feat(home): the homepage, rebuilt ask-first (#204)
* feat(home): the homepage, rebuilt ask-first

The hero is the Ask box (chatkit composer plus four questions, one built from
the worst bottleneck); sending opens /chat with the question started. Worst
right now is one row component with a fixed gauge column; what changed falls
back to the sweep's unchecked finds or is absent, never an empty box; the
numbers are four equal linked cells; doors share one anatomy; the footer is
calm. The page is served from a 60 second cache: the shell learns its reader
from /api/me in the browser instead of reading the session while rendering.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

* fix(home): centred column, aligned worst rows, broken-word scan

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-22 23:02:26 +02:00

187 lines
3.9 KiB
CSS

/* ── Role views (/for/*) ── */
.role-tabs {
display: flex;
gap: 0.4rem;
margin: -0.5rem 0 2rem;
padding-bottom: 0.25rem;
overflow-x: auto;
scrollbar-width: none;
}
.role-tab {
flex: none;
display: inline-flex;
align-items: center;
min-height: var(--size-target);
padding: 0 0.9rem;
border: 1px solid var(--color-border-strong);
border-radius: 999px;
font-size: 0.85rem;
color: var(--color-fg-secondary);
white-space: nowrap;
}
.role-tab:hover {
border-color: var(--color-accent);
color: var(--color-fg-primary);
}
.role-tab[aria-current='page'] {
border-color: var(--color-fg-primary);
background: var(--color-fg-primary);
color: var(--color-surface-page);
}
.role-grid {
display: grid;
gap: 3rem 3rem;
}
@media (min-width: 1024px) {
.role-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.role-section.is-wide {
grid-column: 1 / -1;
}
}
.role-section {
min-width: 0;
container-type: inline-size;
}
.role-section-head {
margin-bottom: 1rem;
padding-bottom: 0.75rem;
border-bottom: 1px solid var(--color-border-strong);
}
.role-section-head h2 {
display: flex;
align-items: baseline;
gap: 0.75rem;
font: 600 1.35rem/1.25 var(--font-heading);
letter-spacing: var(--tracking-display);
color: var(--color-fg-primary);
}
.role-section-index {
font-family: var(--font-mono);
font-size: 0.72rem;
font-weight: 400;
color: var(--color-fg-muted);
}
.role-section-why {
margin-top: 0.35rem;
max-width: 40rem;
font-size: 0.85rem;
line-height: 1.5;
color: var(--color-fg-tertiary);
}
.role-section-status {
margin-top: 0.4rem;
}
.role-feed {
display: inline-flex;
flex-wrap: wrap;
align-items: center;
gap: 0.35rem;
font-size: 0.78rem;
color: var(--color-fg-muted);
}
.role-feed:hover {
color: var(--color-fg-primary);
}
.role-section-more {
margin-top: 1rem;
font-size: 0.875rem;
}
.role-section-more a {
color: var(--color-accent);
text-underline-offset: 0.2em;
}
.role-section-more a:hover {
text-decoration: underline;
}
.role-empty {
padding: 1.5rem 1rem;
border: 1px dashed var(--color-border-strong);
font-size: 0.875rem;
color: var(--color-fg-secondary);
text-align: center;
}
.role-note {
margin-top: 0.75rem;
font-size: 0.78rem;
color: var(--color-fg-muted);
}
.role-note a {
text-decoration: underline;
}
.role-rows {
border-top: 1px solid var(--color-border-subtle);
}
.role-rows li {
display: grid;
gap: 0.15rem;
padding: 0.7rem 0;
border-bottom: 1px solid var(--color-border-subtle);
}
.role-row-title {
font-weight: 500;
color: var(--color-fg-primary);
text-underline-offset: 0.2em;
}
.role-row-title:hover {
text-decoration: underline;
}
.role-row-meta {
font-size: 0.78rem;
line-height: 1.45;
color: var(--color-fg-tertiary);
}
.role-series li {
display: grid;
gap: 0.4rem 1.5rem;
padding: 0.8rem 0;
border-bottom: 1px solid var(--color-border-subtle);
}
@container (min-width: 44rem) {
.role-series li {
grid-template-columns: minmax(0, 1fr) minmax(14rem, auto);
align-items: center;
}
}
.role-series-main {
display: grid;
gap: 0.15rem;
min-width: 0;
}
.role-series-value {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.25rem 0.5rem;
font-variant-numeric: tabular-nums;
}
.role-series-trend {
display: inline-flex;
align-items: center;
gap: 0.5rem;
font-size: 0.78rem;
}
.role-holder {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.25rem 0.6rem;
}
.role-row-meta a {
text-decoration: underline;
text-decoration-color: var(--color-border-strong);
text-underline-offset: 0.2em;
}
/* The careers bars carry their own heading on /careers; inside a role section it would repeat the section's. */
.role-section-body > .careers-hiring > .careers-section-head {
display: none;
}
.role-empty a {
color: var(--color-accent);
text-decoration: underline;
text-underline-offset: 0.2em;
}