The Open Standard for Generative UI
.section {
width: 100%;
}
.headerContainer {
max-width: var(--home-container-max);
margin-inline: auto;
padding-inline: var(--home-section-padding-inline);
}
.header {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.75rem;
width: 100%;
margin-bottom: 2rem;
}
.subtitle {
margin: 0;
max-width: 42rem;
text-align: center;
font-family: var(--home-font-text);
font-size: var(--home-lead-size);
font-weight: var(--home-lead-weight);
line-height: var(--home-lead-leading);
color: var(--openui-text-neutral-secondary);
text-wrap: balance;
}
.cardsContainer {
max-width: var(--home-container-max);
margin-inline: auto;
}
.mobileCarouselViewport {
overflow: hidden;
/* Vertical breathing room so the card shadow isn't clipped by overflow:hidden;
the matching negative margin keeps the surrounding layout unchanged. */
padding-block: 1.75rem;
margin-block: -1.75rem;
padding-inline: var(--home-section-padding-inline);
-webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.mobileCarouselTrack {
display: flex;
width: max-content;
gap: 1rem;
will-change: transform;
}
/* Backstop for reduced-motion: even if a transform was set before the JS guard
ran, freeze the track for users who asked the OS to reduce motion. */
@media (prefers-reduced-motion: reduce) {
.mobileCarouselTrack {
transform: none !important;
}
}
.card {
position: relative;
width: 100%;
max-width: calc((100vw - 3.5rem) / 1.2);
flex: 0 0 calc((100vw - 3.5rem) / 1.2);
border-radius: var(--openui-radius-4xl);
background: var(--openui-foreground);
}
.cardLink {
display: block;
color: inherit;
text-decoration: none;
cursor: pointer;
}
.cardLink:focus-visible {
outline: 2px solid var(--openui-border-accent);
outline-offset: 4px;
}
.cardLink:focus-visible .cardOverlay {
border-color: var(--openui-border-accent);
}
.cardInner {
display: flex;
flex-direction: column;
gap: 0.625rem;
padding: 0.5rem;
border-radius: inherit;
}
/* Media container: the screenshot fills it inside a subtle stroke, and the whole
container fades out toward the bottom so it dissolves into the card. */
.cardMedia {
width: 100%;
overflow: hidden;
border: 1px solid var(--home-hairline);
border-radius: 10px;
background: var(--openui-foreground);
-webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}
.cardImage {
display: block;
width: 100%;
aspect-ratio: 3 / 2;
object-fit: cover;
/* Crop ~5% off the top: scale up anchored to the bottom so the top edge is
clipped by the container (the bottom is faded by the mask anyway). */
transform: scale(1.05);
transform-origin: 50% 100%;
}
/* Per-theme artwork: render both variants, reveal the one matching the theme. */
.cardImageDark {
display: none;
}
[data-theme="dark"] .cardImageLight {
display: none;
}
[data-theme="dark"] .cardImageDark {
display: block;
}
.cardImagePlaceholder {
background: var(--openui-highlight-strong);
}
.cardBody {
width: 100%;
padding: 0.5rem 0.375rem 0.25rem;
}
.cardTitle {
font-family: var(--home-font-text);
font-size: 14px;
font-weight: 500;
line-height: 1.4;
color: var(--openui-text-neutral-primary);
}
.cardTitlePrefix {
display: block;
font-weight: 400;
color: var(--openui-text-neutral-secondary);
}
.cardOverlay {
position: absolute;
inset: 0;
pointer-events: none;
border: 1px solid var(--home-hairline);
border-radius: inherit;
box-shadow: var(--home-card-lift);
}
@media (min-width: 1024px) {
.cardsContainer {
max-width: var(--home-container-wide);
padding-inline: var(--home-section-padding-inline);
}
.mobileCarouselTrack {
gap: 1.25rem;
}
.card {
flex: 0 0 30rem;
max-width: 30rem;
}
.cardBody {
padding: 0.75rem 0.5rem 0.375rem;
}
.cardTitle {
font-family: var(--home-font-display);
font-size: 18px;
}
.cardLink {
transition:
transform 160ms ease,
box-shadow 160ms ease;
}
.cardLink:hover {
transform: translateY(-2px);
}
.cardLink:hover .cardOverlay {
border-color: var(--openui-border-accent);
box-shadow: var(--openui-shadow-l);
}
}