/* Reusable primitives: panels, cards, buttons, tabs, pills, skeletons, and the shared blueprint vocabulary. Depends on theme.css tokens + base.css reset; loads before shell and page layers. */ /* Page-shell flex utility for routes that stack their sections vertically. */ .product-shell { display: flex; flex-direction: column; gap: 0.9rem; } /* Shared lede + eyebrow text. The mono eyebrow is for deliberate, occasional use (One-Eyebrow rule), never stacked above every section. */ .product-lede { margin: 0.7rem 0 0; color: var(--color-subtle); font-size: clamp(1rem, 2vw, 1.18rem); } .product-kicker, .eyebrow { color: var(--color-primary); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; } /* Panels and cards */ .card-surface, .blueprint-panel, .state-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-panel); box-shadow: 0 1px 0 color-mix(in srgb, var(--color-text) 8%, transparent); } .card-title { font-family: var(--font-heading); font-weight: 600; color: var(--color-text); margin: 0; text-wrap: balance; font-size: 1rem; line-height: 1.3; } .card-body { padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; gap: 0.65rem; } .card-body p { margin: 0; color: var(--color-subtle); font-size: 0.92rem; } .card-meta { color: var(--color-muted); font-family: var(--font-mono); font-size: 0.74rem; } /* Drafting-grid media wells and placeholders */ .card-media, .blueprint-media, .blueprint-preview { position: relative; overflow: hidden; background: linear-gradient(var(--color-grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--color-grid-line) 1px, transparent 1px), var(--color-overlay); background-size: 20px 20px; } .blueprint-media { min-height: 8rem; padding: 0.75rem; } .blueprint-axis, .blueprint-dimension { position: absolute; font-family: var(--font-mono); font-size: 0.72rem; color: var(--color-primary); } .blueprint-axis-x { right: 0.75rem; bottom: 0.75rem; } .blueprint-axis-y { left: 0.75rem; top: 0.75rem; } .blueprint-dimension { left: 0.75rem; bottom: 0.75rem; } /* Thing cards */ .thing-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; } .thing-card-media { aspect-ratio: 4 / 3; min-height: 10rem; } .thing-card-media-link { position: relative; display: block; width: 100%; height: 100%; color: inherit; text-decoration: none; } .thing-card-media-link::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: transparent; outline: 0 solid transparent; outline-offset: -1px; } .thing-card-media-link:hover::after { background: color-mix(in srgb, var(--color-primary) 8%, transparent); outline-width: 1px; outline-color: var(--color-primary); } .thing-card-media-link:focus-visible { outline: 2px solid color-mix(in srgb, var(--color-primary) 35%, transparent); outline-offset: -3px; } .thing-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; } .thing-card-placeholder { display: grid; min-height: 100%; align-content: start; } .thing-card-placeholder::before, .thing-card-placeholder::after { content: ""; position: absolute; inset: 20% 17%; border: 1px solid var(--color-primary); } .thing-card-placeholder::after { inset: 34% 28%; border-color: var(--color-action); } .thing-card-body { flex: 1; justify-content: flex-start; } .thing-card-heading { gap: 0.25rem; min-width: 0; } .thing-card-title { font-size: clamp(1rem, 1.8vw, 1.18rem); } .thing-card-creator { color: var(--color-subtle); font-size: 0.88rem; } .author-byline-handle { font-family: var(--font-mono); } .author-byline-handle-secondary { color: var(--color-muted); } .thing-card-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; } .thing-card-details { display: flex; flex-direction: column; gap: 0.25rem; margin-top: auto; } .thing-card-actions { align-self: stretch; display: flex; justify-content: space-between; gap: 0.65rem; } .thing-card-actions a { text-decoration: none; } .thing-card-stats { display: flex; flex-wrap: wrap; gap: 0.35rem 0.7rem; margin: 0; color: var(--color-muted); font-family: var(--font-mono); font-size: 0.72rem; } .thing-card-stats div { display: contents; } .thing-card-stats dt { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; } .thing-card-stats dd { margin: 0; } /* Visually-hidden utility: keeps a heading/label in the accessibility tree (e.g. a route's