/* Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Miniver&family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
    --bg: #0b0c0d;
    --bg-2: radial-gradient(
            1200px 800px at 10% 10%,
            #131417 0%,
            rgba(19, 20, 23, 0) 60%
        ),
        radial-gradient(
            900px 600px at 90% 90%,
            #101217 0%,
            rgba(16, 18, 23, 0) 55%
        );
    --card: #121317;
    --card-2: #0f1014;
    --text: #e9e9ef;
    --muted: #b7b8c2;
    --line: #21232b;
    --ring: #2b2e38;

    --accent-william: #cc241b; /* red */
    --accent-jessica: #22c55e; /* emerald green */

    --radius-l: 18px;
    --radius-s: 10px;

    --shadow-1: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-2: 0 6px 18px rgba(0, 0, 0, 0.35);

    --maxw: 1100px;
}

* {
    box-sizing: border-box;
}
html,
body {
    height: 100%;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font: 500 16px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
        "Segoe UI Emoji";
    background-image: var(--bg-2);
    background-attachment: fixed;
}

/* Layout shell */
.landing {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 28px 20px;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}

.brand-logo {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1a1c22, #0f1116);
    box-shadow: inset 0 0 0 1px var(--ring);
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Miniver in navbar brand */
.brand-name {
    font-family: "Miniver", serif;
    font-size: 1.4rem;
    letter-spacing: 0.02em;
    line-height: 1;
}

/* Hero */
.hero {
    padding: 24px 0 10px;
    display: grid;
}

/* Miniver in "Pick a site" */
.hero-title {
    font-family: "Miniver", serif;
    font-size: clamp(1.8rem, 1.2rem + 2.6vw, 2.6rem);
    letter-spacing: 0.01em;
    margin: 0;
}

.hero-subtitle {
    margin: 8px 0 16px 0;
    color: var(--muted);
    font-weight: 400;
}

/* Selector grid */
.selector {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.profile-card {
    --accent: var(--accent-william); /* default; override per card */
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 16px;
    padding: 22px;
    border-radius: var(--radius-l);
    background: linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.02),
            rgba(255, 255, 255, 0)
        ),
        linear-gradient(180deg, var(--card), var(--card-2));
    box-shadow: var(--shadow-1);
    text-decoration: none;
    color: var(--text);
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--line);
    transform: translateZ(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease,
        border-color 0.3s ease;
}

/* Accent glow */
.profile-card::before {
    content: "";
    position: absolute;
    inset: -30%;
    background: radial-gradient(
            500px 320px at 10% 10%,
            color-mix(in oklab, var(--accent), transparent 75%),
            transparent 65%
        ),
        radial-gradient(
            420px 300px at 85% 85%,
            color-mix(in oklab, var(--accent), transparent 80%),
            transparent 70%
        );
    filter: blur(20px);
    opacity: 0.35;
    z-index: -1;
    transition: opacity 0.3s ease, transform 0.4s ease;
}

/* Subtle shine on hover */
.profile-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.06) 50%,
        transparent 70%
    );
    transform: translateX(-120%);
    transition: transform 0.6s ease;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2);
    border-color: color-mix(in oklab, var(--accent), var(--line) 60%);
}
.profile-card:hover::before {
    opacity: 0.55;
    transform: scale(1.02);
}
.profile-card:hover::after {
    transform: translateX(120%);
}

.card--william {
    --accent: var(--accent-william);
}
.card--jessica {
    --accent: var(--accent-jessica);
}

/* Card content */
.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Modern, flat avatar (no 3D/glow) */
.avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    background: color-mix(in oklab, var(--accent), transparent 92%);
    border: 2px solid var(--accent);
    color: var(--text);
    box-shadow: none;
}

.card-title {
    font-size: 1.15rem;
    margin: 0;
}
.card-kicker {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.card-body {
    color: var(--muted);
    margin-top: 4px;
}

/* CTA row */
.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}
.btn {
    --btn-bg: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    color: #0b0c0d;
    background: var(--btn-bg);
    border: 1px solid color-mix(in oklab, var(--btn-bg), #000 14%);
    box-shadow: 0 6px 16px color-mix(in oklab, var(--btn-bg), transparent 75%);
    transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.2s ease,
        color 0.2s ease;
    text-decoration: none;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}
.btn--ghost {
    color: var(--text);
    background: transparent;
    border-color: color-mix(in oklab, var(--accent), var(--line) 65%);
    box-shadow: none;
}
.btn--ghost:hover {
    background: color-mix(in oklab, var(--accent), transparent 85%);
}

/* Focus ring */
.profile-card:focus-visible,
.btn:focus-visible,
.brand:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent), #ffffff 70%);
}

/* Footer */
.site-footer {
    color: var(--muted);
    font-size: 0.92rem;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: 10px;
    text-align: center;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
    .selector {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .hero-subtitle {
        font-size: 0.98rem;
    }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
    .profile-card,
    .btn {
        transition: none;
    }
    .profile-card:hover {
        transform: none;
    }
    .profile-card::after {
        display: none;
    }
}
