/* wefav.com: the games portal. Bright, chunky, friendly. */
@font-face {
    font-family: "Fredoka";
    font-style: normal;
    font-weight: 500 700;
    font-display: swap;
    src: url(/_site/fonts/fredoka-latin.woff2) format("woff2");
}

:root {
    --bg: #eef0ff;
    --dots: #dcdffb;
    --card: #ffffff;
    --ink: #1d1a3a;
    --muted: #5f5b80;
    --line: #dcdcf2;
    --violet: #5b3df5;
    --violet-ink: #ffffff;
    --pink: #ff4d6d;
    --yellow: #ffc233;
    --teal: #19b9a8;
    --blue: #3a86ff;
    --shadow: 0 4px 0 #cfd2f5, 0 10px 24px rgba(39, 30, 120, 0.10);
    --shadow-hi: 0 7px 0 #bcc0f2, 0 18px 36px rgba(39, 30, 120, 0.18);
    --round: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
    --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #15122e;
        --dots: #221e45;
        --card: #211c45;
        --ink: #f1efff;
        --muted: #aca6d6;
        --line: #322c63;
        --violet: #7c66ff;
        --shadow: 0 4px 0 #0c0a1f, 0 10px 24px rgba(0, 0, 0, 0.35);
        --shadow-hi: 0 7px 0 #0c0a1f, 0 18px 36px rgba(0, 0, 0, 0.5);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
    margin: 0;
    background-color: var(--bg);
    background-image: radial-gradient(var(--dots) 1.5px, transparent 1.6px);
    background-size: 22px 22px;
    color: var(--ink);
    font: 17px/1.55 var(--sans);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--round); font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
img, video { display: block; }

/* ------------------------------------------------------------------ header / footer */

.top {
    position: sticky; top: 0; z-index: 10;
    background: color-mix(in srgb, var(--card) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}
.top-in, .foot-in, .hero-in, .shelf, .games, .behind {
    max-width: 1240px; margin: 0 auto; padding-left: 20px; padding-right: 20px;
}
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { text-decoration: none; display: inline-flex; }
.logo { font: 700 34px/1 var(--round); letter-spacing: -0.02em; display: inline-flex; }
.logo span { display: inline-block; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.logo span:nth-child(1) { color: var(--pink); }
.logo span:nth-child(2) { color: var(--yellow); }
.logo span:nth-child(3) { color: var(--teal); }
.logo span:nth-child(4) { color: var(--blue); }
.logo span:nth-child(5) { color: var(--violet); }
.brand:hover .logo span { transform: translateY(-5px) rotate(-6deg); transition-delay: calc(var(--i) * 40ms); }
.nav { display: flex; gap: 6px; }
.nav a {
    font: 600 16px/1 var(--round); text-decoration: none; padding: 10px 14px; border-radius: 999px; color: var(--muted);
}
.nav a:hover { background: var(--bg); color: var(--ink); }

.foot { margin-top: 72px; background: var(--card); border-top: 1px solid var(--line); }
.foot-in { padding-top: 36px; padding-bottom: 48px; display: grid; gap: 10px; justify-items: start; }
.foot p { margin: 0; color: var(--muted); max-width: 40rem; font-size: 15px; }
.foot .logo { font-size: 28px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot .links a { font: 600 15px/1.4 var(--round); color: var(--ink); text-decoration: none; }
.foot .links a:hover { color: var(--violet); }

/* ------------------------------------------------------------------ buttons, badges */

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font: 700 18px/1 var(--round); text-decoration: none;
    padding: 14px 24px; border-radius: 999px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn.play { background: var(--violet); color: var(--violet-ink); box-shadow: 0 4px 0 #3a20c4; }
.btn.play::before {
    content: ""; width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px;
    border-color: transparent transparent transparent currentColor;
}
.btn.play:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #3a20c4; }
.btn.play:active { transform: translateY(3px); box-shadow: 0 1px 0 #3a20c4; }
.btn.ghost { color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--violet); color: var(--violet); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.hello .actions { margin-top: 28px; }

.badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; pointer-events: none; }
.badge {
    font: 700 12px/1 var(--round); letter-spacing: .06em; text-transform: uppercase;
    padding: 6px 9px; border-radius: 999px; box-shadow: 0 2px 0 rgba(0, 0, 0, .18);
}
.badge.new { background: var(--pink); color: #fff; }
.badge.daily { background: var(--yellow); color: #3a2a00; }

/* ------------------------------------------------------------------ hero */

.hero { padding: 40px 0 8px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.hello h1 { font-size: clamp(40px, 5.4vw, 68px); margin: 0 0 14px; }
.hello p { font-size: 19px; color: var(--muted); margin: 0; max-width: 30rem; }
.feature {
    background: var(--card); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden;
    transform: rotate(.6deg); transition: transform .3s ease;
}
.feature:hover { transform: rotate(0); }
.feature-art { position: relative; display: block; aspect-ratio: 1200 / 630; background: hsl(var(--h) 70% 82%); overflow: hidden; }
.feature-art img, .feature-art video { width: 100%; height: 100%; object-fit: cover; }
.feature-body { padding: 20px 26px 26px; }
.feature-body h2 { font-size: 32px; margin: 2px 0 8px; }
.feature-body p { margin: 0; color: var(--muted); }
.feature-body .actions { margin-top: 18px; }
.kicker { font: 700 13px/1 var(--round); letter-spacing: .08em; text-transform: uppercase; color: var(--pink) !important; margin: 0 0 6px !important; }
.kicker a { text-decoration: none; }

/* ------------------------------------------------------------------ shelves */

.shelf, .games, .behind { margin-top: 56px; }
.shelf-head, .games-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 18px; }
.shelf-head h2, .games-head h2 { font-size: 32px; margin: 0; }
.shelf-head p { margin: 0; color: var(--muted); flex: 1 1 18rem; }
.shelf-head .more { font: 600 16px/1 var(--round); color: var(--violet); text-decoration: none; }

.dailies {
    list-style: none; margin: 0 -20px; padding: 6px 20px 14px;
    display: grid; grid-auto-flow: column; grid-auto-columns: 220px; gap: 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.dailies li { scroll-snap-align: start; }
.dailies a { display: grid; gap: 8px; text-decoration: none; justify-items: center; text-align: center; }
.dailies .mini {
    width: 220px; aspect-ratio: 1200 / 630; border-radius: 22px; overflow: hidden; background: hsl(var(--h) 70% 82%);
    box-shadow: var(--shadow); transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), box-shadow .2s ease;
}
.dailies img { width: 100%; height: 100%; object-fit: cover; }
.dailies .name { font: 600 16px/1.2 var(--round); }
.dailies a:hover .mini { transform: translateY(-5px) rotate(-2deg); box-shadow: var(--shadow-hi); }

/* ------------------------------------------------------------------ game grid */

.games-head { align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    font: 600 15px/1 var(--round); color: var(--ink); background: var(--card);
    border: 0; border-radius: 999px; padding: 10px 14px; cursor: pointer;
    box-shadow: inset 0 0 0 2px var(--line);
}
.chip span { color: var(--muted); font-weight: 500; margin-left: 2px; }
.chip:hover { box-shadow: inset 0 0 0 2px var(--violet); }
.chip[aria-pressed="true"] { background: var(--violet); color: #fff; box-shadow: 0 3px 0 #3a20c4; }
.chip[aria-pressed="true"] span { color: rgba(255, 255, 255, .8); }

.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.tile[hidden] { display: none; }
.tile a {
    display: flex; flex-direction: column; height: 100%; text-decoration: none;
    background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow);
    transition: transform .2s cubic-bezier(.3, 1.4, .5, 1), box-shadow .2s ease;
}
.tile a:hover, .tile a:focus-visible { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-hi); }
.tile:nth-child(even) a:hover { transform: translateY(-6px) rotate(.6deg); }
.art { position: relative; display: block; aspect-ratio: 1200 / 630; background: hsl(var(--h) 70% 82%); overflow: hidden; }
.art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile a:hover .art img { transform: scale(1.04); }
.art video.hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease; }
.art.previewing video.hover { opacity: 1; }
.ph {
    display: grid; place-items: center; width: 100%; height: 100%; padding: 12px; text-align: center;
    font: 700 26px/1.1 var(--round); color: hsl(var(--h) 60% 25%);
}
.label { display: grid; gap: 4px; padding: 14px 16px 16px; }
.label .name { font: 600 20px/1.2 var(--round); }
.label .desc {
    font-size: 14px; line-height: 1.45; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.empty { color: var(--muted); }

/* ------------------------------------------------------------------ notes */

.notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.note a {
    display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; height: 100%;
    padding: 12px; text-decoration: none; background: var(--card); border-radius: 20px; box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.note a:hover { transform: translateY(-3px); box-shadow: var(--shadow-hi); }
.note-thumb { width: 96px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: hsl(var(--h) 70% 82%); }
.note-thumb img { width: 100%; height: 100%; object-fit: cover; }
.note-text { display: grid; gap: 3px; }
.note-title { font: 600 18px/1.2 var(--round); }
.note-desc { font-size: 14px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.note time { font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------------ article pages */

.page main { max-width: 1240px; margin: 0 auto; padding: 40px 20px 0; }
.article { max-width: 46rem; margin: 0 auto; background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 36px 40px 40px; }
.article.wide { max-width: 1000px; }
.article header h1 { font-size: clamp(34px, 5vw, 48px); margin: 0 0 8px; }
.article .sub { color: var(--muted); margin: 0 0 24px; }
.site-preview { margin: 0 0 20px; border-radius: 20px; overflow: hidden; background: #000; }
.site-preview video, .site-preview img, .site-preview iframe { width: 100%; max-height: 70vh; border: 0; }
.site-preview iframe { aspect-ratio: 16 / 9; }
.site-open { margin: 18px 0; }
.prose { font-size: 17.5px; line-height: 1.7; }
.prose h2 { font-size: 26px; margin: 34px 0 10px; }
.prose h3 { font-size: 21px; margin: 26px 0 8px; }
.prose a { color: var(--violet); text-underline-offset: 3px; }
.prose img, .prose video { max-width: 100%; height: auto; border-radius: 14px; }
.prose code { font: 0.88em/1 var(--mono); background: var(--bg); padding: 2px 6px; border-radius: 6px; }
.prose pre { background: var(--bg); padding: 16px; border-radius: 14px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; font-size: 14px; line-height: 1.55; }
.prose blockquote { margin: 18px 0; padding: 4px 18px; border-left: 4px solid var(--yellow); color: var(--muted); }

.lost { max-width: 34rem; margin: 40px auto; text-align: center; background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 40px 24px; }
.lost h1 { font-size: 96px; margin: 0; color: var(--violet); }
.lost p { color: var(--muted); font-size: 19px; }

/* ------------------------------------------------------------------ small screens */

@media (max-width: 860px) {
    .hero { padding-top: 24px; }
    .hero-in { grid-template-columns: 1fr; gap: 26px; }
    .feature { transform: none; }
    .hello h1 { font-size: 42px; }
}
@media (max-width: 600px) {
    .top-in, .foot-in, .hero-in, .shelf, .games, .behind { padding-left: 16px; padding-right: 16px; }
    .page main { padding: 20px 12px 0; }
    .dailies { margin: 0 -16px; padding-left: 16px; padding-right: 16px; grid-auto-columns: 168px; gap: 12px; }
    .dailies .mini { width: 168px; border-radius: 16px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .tile a { border-radius: 16px; }
    .label { padding: 10px 12px 12px; }
    .label .name { font-size: 16px; }
    .label .desc { display: none; }
    .badges { top: 6px; left: 6px; }
    .badge { font-size: 10px; padding: 5px 7px; }
    .shelf-head h2, .games-head h2 { font-size: 26px; }
    .nav a { padding: 8px 10px; font-size: 15px; }
    .logo { font-size: 30px; }
    .article { padding: 24px 20px 28px; border-radius: 22px; }
    .feature-body { padding: 16px 18px 20px; }
    .feature-body h2 { font-size: 26px; }
    .btn { font-size: 17px; padding: 13px 20px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}
