/* Grapevine Studios: the company's home page. A clean, modern look of its own, apart from the game's newsprint
   (styles.css): the system's own typeface (nothing downloaded), lots of white space, grape purple and vine green.
   Light and dark follow the reader's device; no scripts, cookies or third-party requests. */

:root {
    --bg: #FFFFFF;
    --text: #17151F;
    --text-soft: #4A4658;
    --text-muted: #6E6A7C;
    --line: #E6E3EE;
    --grape: #6A3BB0;
    --grape-deep: #4E2589;
    --grape-soft: #EFE8FA;
    --vine: #3F7D3A;
    --vine-soft: #E7F2E4;
    --mark-bg: #FFF3B0;
    --shadow: 0 1px 2px rgba(23, 21, 31, 0.06), 0 8px 24px rgba(23, 21, 31, 0.06);
    --radius: 16px;
    --width: 68rem;
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121018;
        --text: #F2F0F7;
        --text-soft: #C9C4D6;
        --text-muted: #9C97AC;
        --line: #2C2838;
        --grape: #B593F0;
        --grape-deep: #D2BCF7;
        --grape-soft: #2A2140;
        --vine: #8CC97F;
        --vine-soft: #1E2B1C;
        --mark-bg: #5C5213;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    }
}

@media (prefers-contrast: more) {
    :root { --text-soft: var(--text); --text-muted: var(--text); --line: var(--text); }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
/* Links to a part of the page glide there, unless the reader asks for less motion. */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: 1.5rem; }

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

img { max-width: 100%; height: auto; }

a { color: var(--grape); text-underline-offset: 0.18em; }
a:hover { color: var(--grape-deep); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--grape); outline-offset: 3px; border-radius: 6px; }

mark { background: var(--mark-bg); color: inherit; padding: 0 0.2em; border-radius: 3px; }

.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--bg); padding: 0.5rem 1rem; z-index: 10; }

.wrap { max-width: var(--width); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40em) { .wrap { padding: 0 2rem; } }

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

.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand img { width: 2.1rem; height: 2.1rem; }
.brand__studios { font-weight: 500; color: var(--text-soft); }
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.site-nav a { color: var(--text-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: var(--text); }

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

.hero { padding: 4.5rem 0 4rem; }
@media (min-width: 48em) { .hero { padding: 7rem 0 6rem; } }
.eyebrow { display: inline-block; margin: 0 0 1.25rem; padding: 0.3rem 0.75rem; border-radius: 999px; background: var(--grape-soft); color: var(--grape-deep); font-size: 0.85rem; font-weight: 600; }
.hero h1 { margin: 0; max-width: 18ch; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.hero h1 .accent { color: var(--grape); }
.hero p.lede { margin: 1.5rem 0 0; max-width: 40rem; font-size: 1.2rem; color: var(--text-soft); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

/* The mark, large, beside the headline on wider screens; phones keep the hero to the words. */
.hero__grid { display: grid; gap: 3rem; align-items: center; }
.hero__art { display: none; }
@media (min-width: 56em) {
    .hero__grid { grid-template-columns: 1.35fr 1fr; }
    .hero__art {
        display: grid; place-items: center; aspect-ratio: 1; border-radius: 2rem; border: 1px solid var(--line);
        background: radial-gradient(circle at 30% 25%, var(--grape-soft), transparent 60%),
                    radial-gradient(circle at 75% 80%, var(--vine-soft), transparent 55%), var(--bg);
    }
    .hero__art img { width: 52%; height: auto; }
}

.button { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; border: 1px solid transparent; }
.button--primary { background: var(--grape); color: #FFFFFF; }
.button--primary:hover { background: var(--grape-deep); color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .button--primary, .button--primary:hover { color: #121018; } }
.button--ghost { border-color: var(--line); color: var(--text); background: var(--bg); }
.button--ghost:hover { border-color: var(--text-muted); color: var(--text); }

/* ------------------------------------------------------------------ sections */

.section { padding: 4rem 0; }
@media (min-width: 48em) { .section { padding: 5.5rem 0; } }
.section h2 { margin: 0; font-size: clamp(1.75rem, 3.5vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; }
.section .intro { margin: 0.9rem 0 0; max-width: 42rem; color: var(--text-soft); }
.section-label { margin: 0 0 0.75rem; color: var(--vine); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* Products */
.products { display: grid; gap: 1.25rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 52em) { .products { grid-template-columns: 1.4fr 1fr; } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card__head { display: flex; align-items: center; gap: 1rem; }
.card__icon { width: 4rem; height: 4rem; border-radius: 0.95rem; flex-shrink: 0; }
.card__icon--soon { display: grid; place-items: center; background: var(--vine-soft); color: var(--vine); font-size: 1.75rem; font-weight: 700; }
.card h3 { margin: 0; font-size: 1.35rem; letter-spacing: -0.01em; }
.card .meta { margin: 0.15rem 0 0; color: var(--text-muted); font-size: 0.92rem; }
.card p { margin: 1.1rem 0 0; color: var(--text-soft); }
.card ul.features { margin: 1.1rem 0 0; padding-left: 1.2rem; color: var(--text-soft); }
.card ul.features li { margin: 0.25rem 0; }
.card .card__links { margin-top: auto; padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; }
.card .card__links a { font-weight: 600; text-decoration: none; }
.card .card__links a:hover { text-decoration: underline; }
.badge { display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.55rem; border-radius: 999px; background: var(--vine-soft); color: var(--vine); font-size: 0.78rem; font-weight: 700; vertical-align: 0.15em; }

/* Principles */
.principles { display: grid; gap: 1.25rem; margin: 2.5rem 0 0; padding: 0; list-style: none; }
@media (min-width: 44em) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { padding: 1.5rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.principle__dot { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; display: grid; place-items: center; background: var(--grape-soft); color: var(--grape-deep); font-weight: 800; }
.principle h3 { margin: 1rem 0 0; font-size: 1.1rem; }
.principle p { margin: 0.5rem 0 0; color: var(--text-soft); font-size: 0.98rem; }

/* About and contact */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 52em) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.split p { color: var(--text-soft); }
.contact { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.contact h3 { margin: 0; font-size: 1.15rem; }
.contact dl { margin: 1rem 0 0; }
.contact dt { margin-top: 0.9rem; color: var(--text-muted); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.contact dd { margin: 0.2rem 0 0; font-weight: 500; }
@media (min-width: 40em) { .card, .contact { padding: 1.75rem; } }

/* ------------------------------------------------------------------ motion */

/* Things fade in and rise into place as they come into view, on load and as the page scrolls: motion.js reveals each
   child of a data-reveal element and each .reveal, a step apart. They are hidden only while that script runs the show
   (it adds .motion, and not for readers who ask for less motion); without it everything simply shows. */
.motion [data-reveal] > :not(.shown), .motion .reveal:not(.shown) { opacity: 0; transform: translateY(1.5rem); }
.motion .showing { transition: opacity 0.7s ease-out, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }

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

.site-footer { padding: 3rem 0; color: var(--text-muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 44em) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer .brand { font-size: 1rem; margin-bottom: 0.75rem; }
.site-footer .brand img { width: 1.6rem; height: 1.6rem; }
.site-footer h2 { margin: 0 0 0.75rem; color: var(--text); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 0.45rem; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.site-footer .brand, .site-footer .brand:hover { color: var(--text); text-decoration: none; }
.site-footer p { margin: 0 0 0.35rem; }
