/* ============================================================
   Yeera creative — studio home page
   Dark, simple layout. Each game gets its own card; the card
   cover can use the game's own colours and font.
   ============================================================ */

/* Party Dungeon font, used only on the Party Dungeon card. */
@font-face {
    font-family: "MedievalSharp";
    src: url("../PartyDungeonWeb/assets/fonts/medievalsharp.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}

:root {
    --bg: #110e16;
    --bg-2: #1a1621;          /* alternate sections, cards */
    --line: #2e2838;          /* borders */
    --text: #f3eef7;
    --muted: #a69fb2;
    --accent: #f6b44b;        /* warm amber (logo gradient start) */
    --accent-2: #e2557a;      /* pink (logo gradient end) */

    --radius: 18px;
    --font: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
    --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

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

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* 16px side gutter on phones, wider on large screens. */
.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }

h1, h2, h3 { font-weight: 800; line-height: 1.1; margin: 0; }

/* "creative" part of the name in the brand gradient. */
.brand__name span {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
    color: #1a1420;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.btn--ghost { color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); }

/* ---------- Navigation ---------- */
/* Same gradient as the old hero section: pink glow top right,
   amber glow bottom left, on the page background. */
.nav {
    position: sticky; top: 0; z-index: 50;
    background:
        radial-gradient(60% 70% at 85% 10%, rgba(226, 85, 122, 0.22), transparent 70%),
        radial-gradient(55% 60% at 10% 90%, rgba(246, 180, 75, 0.16), transparent 70%),
        var(--bg);
    border-bottom: 1px solid var(--line);
}
.nav__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 0.9rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text); }
.brand__logo { width: 40px; height: 40px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-size: 1.3rem; font-weight: 600; letter-spacing: 0.2px; }
.brand__sub {
    margin-top: 0.2rem;
    text-transform: uppercase; letter-spacing: 2px;
    font-size: 0.7rem; font-weight: 600; color: var(--accent);
}
.nav__links { display: flex; gap: 1.5rem; }
.nav__links a { color: var(--muted); text-decoration: none; font-weight: 400; transition: color 0.15s ease; }
.nav__links a:hover { color: var(--text); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__title { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.6rem; }
.section__lead { color: var(--muted); margin: 0 0 2.5rem; }

/* Games section starts right under the top banner, with only a
   small space above the cards. Its title is hidden (see below). */
#games { padding-top: 1.5rem; }

/* Hidden on screen, but still read by screen readers and search
   engines, so the page keeps its main heading. */
.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap;
}

/* ---------- Game cards ---------- */
.games {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
    gap: 1.6rem;
}
.game {
    display: flex; flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.game:hover { transform: translateY(-4px); border-color: #4a4058; }
.game__cover {
    position: relative; display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.game__body { display: flex; flex-direction: column; gap: 0.8rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.game__body .btn { align-self: flex-start; margin-top: auto; }
.game__title { font-size: 1.6rem; }
.game__title a { color: inherit; text-decoration: none; }
.game__title a:hover { color: var(--accent); }
.game__text { margin: 0; color: var(--muted); }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; }
.tags li {
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.4px;
    padding: 0.2rem 0.65rem; border-radius: 999px;
    background: rgba(246, 180, 75, 0.12); color: var(--accent);
}

/* Party Dungeon card: brown and parchment colours and the
   MedievalSharp font from the game itself. */
.game--party .game__cover {
    background:
        radial-gradient(80% 90% at 50% 100%, rgba(200, 162, 74, 0.45), transparent 70%),
        linear-gradient(180deg, #6b5230, #3a2a17);
}
.game--party .game__title { font-family: "MedievalSharp", Georgia, serif; font-weight: 400; letter-spacing: 0.5px; }
.game__token {
    position: absolute; bottom: -4%;
    height: 92%; width: auto;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
    transition: transform 0.3s ease;
}
.game__token--1 { left: 6%;  transform: rotate(-6deg); }
.game__token--2 { left: 50%; translate: -50% 0; height: 100%; z-index: 2; }
.game__token--3 { right: 6%; transform: rotate(6deg); }
.game--party:hover .game__token--1 { transform: rotate(-9deg) translateY(-4px); }
.game--party:hover .game__token--3 { transform: rotate(9deg) translateY(-4px); }

/* "Coming soon" card */
.game--soon { border-style: dashed; background: transparent; }
.game--soon:hover { transform: none; border-color: var(--line); }
.game__cover--soon {
    display: grid; place-items: center;
    background: repeating-linear-gradient(135deg, #17131d 0 14px, #1c1724 14px 28px);
}
.game__cover--soon span { font-size: 4rem; font-weight: 800; color: #3a3346; }

/* ---------- About ---------- */
.about { max-width: 720px; }
.about p { color: var(--muted); margin: 0 0 1rem; }

/* ---------- Footer ---------- */
.footer { padding: 2.2rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.footer p { margin: 0; color: var(--muted); font-size: 0.95rem; }

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