/* Homepage styles */

html { scroll-behavior: smooth; }

.home-eyebrow {
    margin-bottom: .625rem;
    color: #1e5b3d;
    font-size: .75rem;
    line-height: 1.3333;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.home-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.05;
    font-weight: 500;
    letter-spacing: -.045em;
}

.home-title-lg { font-size: clamp(36px, 5vw, 54px); }

.home-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 9999px;
    background: #ff8159;
}

/* Hero */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: 35px 0 68px;
}

.home-hero::before {
    content: "?";
    position: absolute;
    top: -130px;
    right: max(-40px, calc((100vw - 1240px) / 2));
    color: rgba(30, 91, 61, .045);
    font-family: Georgia, serif;
    font-size: 610px;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 850px;
    margin-inline: auto;
    text-align: center;
}

.home-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px .75rem 7px .5rem;
    border: 1px solid #d9dfd5;
    border-radius: 9999px;
    background: rgba(255, 253, 248, .7);
    color: #1e5b3d;
    font-size: .75rem;
    line-height: 1.3333;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-badge .home-dot { box-shadow: 0 0 0 4px rgba(255, 129, 89, .14); }

.home-hero h1 {
    margin: 23px 0 19px;
    font-family: var(--font-serif);
    font-size: clamp(50px, 16vw, 68px);
    line-height: .96;
    font-weight: 500;
    letter-spacing: -.065em;
}

.home-hero h1 em {
    color: #1e5b3d;
    font-weight: 500;
}

.home-lede {
    max-width: 620px;
    margin-inline: auto;
    color: #627069;
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.65;
}

/* Playable questions */
.home-games { padding-bottom: 68px; }

.home-games-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.home-game-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.game-card {
    position: relative;
    display: flex;
    min-height: 290px;
    overflow: hidden;
    padding: 1.75rem;
    border-radius: 26px;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 45px rgba(23, 37, 30, .14);
    outline-offset: 4px;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s cubic-bezier(.4, 0, .2, 1);
}

.game-card:focus-visible { outline: 3px solid #ff8159; }

.game-card-glyph {
    position: absolute;
    top: -4rem;
    right: -2.25rem;
    font-family: var(--font-serif);
    font-size: 260px;
    line-height: 1;
    opacity: .07;
    transition: rotate .5s cubic-bezier(.4, 0, .2, 1), scale .5s cubic-bezier(.4, 0, .2, 1);
}

.game-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(130deg, transparent 48%, rgba(0, 0, 0, .22));
}

.game-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
}

.game-card-type {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: auto;
    padding: .5rem .75rem;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 9999px;
    background: rgba(255, 255, 255, .08);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.game-card h3 {
    margin: 3rem 0 1.25rem;
    font-family: var(--font-serif);
    font-size: clamp(34px, 4.2vw, 52px);
    line-height: 1.01;
    font-weight: 500;
    letter-spacing: -.05em;
}

.game-card-action {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    font-size: .875rem;
    line-height: 1.4286;
    font-weight: 800;
}

.game-card-arrow {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border-radius: 9999px;
    color: #17251e;
    font-size: 1.125rem;
    line-height: 1.5556;
    font-style: normal;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

@media (hover: hover) {
    .game-card:hover {
        transform: translateY(-.25rem);
        box-shadow: 0 24px 55px rgba(23, 37, 30, .22);
    }

    .game-card:hover .game-card-glyph { rotate: 3deg; scale: 1.05; }
    .game-card:hover .game-card-arrow { transform: translateX(.25rem); }
}

/* How it works */
.home-how { padding: 68px 0; }

.home-how-head {
    max-width: 620px;
    margin-bottom: 2.75rem;
}

.home-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem;
}

.home-step-number {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    margin-bottom: 1.25rem;
    border: 1px solid #cbd4cc;
    border-radius: 14px;
    background: #fffdf8;
    color: #1e5b3d;
    font-family: var(--font-serif);
    font-size: 1.25rem;
    line-height: 1.4;
}

.home-steps h3 {
    margin-bottom: .625rem;
    font-size: 17px;
    font-weight: 700;
}

.home-steps p {
    margin: 0;
    color: #627069;
    font-size: .875rem;
    line-height: 1.7;
}

@media (min-width: 601px) {
    .home-hero { padding: 3rem 0 95px; }
    .home-hero h1 { font-size: clamp(54px, 7.7vw, 96px); }
    .home-games { padding-bottom: 95px; }
    .home-how { padding: 95px 0; }
    .home-steps { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 701px) {
    .home-game-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 801px) {
    .home-hero { padding-top: 65px; }
    .home-steps { gap: 2.5rem; }
}

@media (min-width: 901px) {
    .game-card { min-height: 330px; padding: 2.25rem; }
}

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