:root
{
    --bg: #000;
    --pattern: #151515;
    --bg-card: #141414;
    --border: #2e2e2e;
    --text: #ededed;
    --text-muted: #a3a3a3;
    --link: #8ab4ff;
    --scrollbar: #3a3a3a;
    --radius: 10px;
    --card-width: min(80vw, 460px);
    color-scheme: dark;
    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*
{
    box-sizing: border-box;
}

html
{
    background: var(--bg);
}

body
{
    margin: 0;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' shape-rendering='crispEdges'%3E%3Cpath fill='%23151515' d='M23 20h2v8h-2zM20 23h8v2h-8z'/%3E%3C/svg%3E");
    background-size: 48px 48px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.55;
}

img
{
    display: block;
    max-width: 100%;
}

a
{
    color: var(--link);
}

a:focus-visible,
.catalog:focus-visible,
.catalog-arrow:focus-visible
{
    outline: 3px solid var(--link);
    outline-offset: 3px;
}

.site-header
{
    padding: 1.5rem 1rem 0.5rem;
    text-align: center;
}

.brand
{
    margin: 0;
}

.brand img
{
    width: min(100%, 320px);
    height: auto;
    margin: 0 auto;
}

.container
{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section
{
    margin: 2rem 0;
}

h2
{
    margin: 0 0 1rem;
    font-size: 1.5rem;
}

.catalog-wrap
{
    position: relative;
}

.catalog
{
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0.5rem;
    list-style: none;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0.5rem;
    scrollbar-color: var(--scrollbar) transparent;
}

.catalog > li
{
    display: flex;
    flex: none;
    scroll-snap-align: start;
}

.card
{
    display: flex;
    flex-direction: column;
    width: var(--card-width);
    padding-bottom: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
}

a.card:hover
{
    border-color: var(--text-muted);
}

.card img
{
    width: 100%;
    height: auto;
    aspect-ratio: 460 / 215;
}

.card-name
{
    padding: 0.75rem 1rem 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-line
{
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-tag
{
    align-self: flex-start;
    margin: 0.5rem 1rem 0;
    padding: 0.125rem 0.625rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.catalog-arrow
{
    position: absolute;
    /* Centered on the capsule image, so the arrow never covers a card title. */
    top: calc(0.5rem + var(--card-width) * 215 / 920 - 22px);
    width: 44px;
    height: 44px;
    padding: 0;
    background: var(--bg);
    border: 1px solid var(--text-muted);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.catalog-arrow:disabled
{
    visibility: hidden;
}

.catalog-arrow-prev
{
    left: 0.5rem;
}

.catalog-arrow-next
{
    right: 0.5rem;
}

.panel
{
    padding: 1.25rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.panel p
{
    margin: 0 0 1rem;
    max-width: 65ch;
}

.panel p:last-child
{
    margin-bottom: 0;
}

.socials
{
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.socials a,
.panel p a
{
    display: inline-block;
    min-height: 44px;
    line-height: 44px;
}

.site-footer
{
    margin-top: 2rem;
    padding: 1.5rem 1rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    text-align: center;
}

.site-footer p
{
    margin: 0;
}

/* Touch screens drag the row directly; arrows would only cover the cards. */
@media (hover: none)
{
    .catalog-arrow
    {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce)
{
    *
    {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
