/* GeekMatter homepage — "Game Night" brand (see BRAND.md).
   Tokens and shared components come from css/brand.css, linked first.
   Deliberately a SEPARATE file from css/styles.css: that one sits at the
   server root and may be linked by other root-level pages, so it is left
   untouched. Only index.html loads this. */

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

html { font-size: 16px; }
body {
    font-family: var(--gm-font-body); background: var(--gm-paper);
    color: var(--gm-ink); line-height: 1.6;
    min-height: 100vh; display: flex; flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--gm-teal-deep); }

.wrap { width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }

/* ---- Header ---- */
.site-header { position: relative; text-align: center; padding: 2.75rem 0 0.75rem; overflow: hidden; }
.confetti i { position: absolute; width: 9px; height: 9px; border-radius: 2px; opacity: 0.55; }
.site-robot { width: 150px; height: auto; }
.site-logo {
    font-family: var(--gm-font-display); font-weight: 400;
    font-size: clamp(2.6rem, 8vw, 3.8rem); line-height: 1; margin-top: 0.35rem;
    letter-spacing: 0.02em;
}
.site-logo__geek { color: var(--gm-teal); }
.site-logo__matter { color: var(--gm-orange); }
.site-tagline { color: var(--gm-ink-soft); margin-top: 0.5rem; font-weight: 600; font-size: 1.05rem; }

/* ---- App cards ----
   .gm-card supplies surface, shadow and the tilt/straighten hover;
   .gm-band supplies the colored header strip (ink text — see BRAND.md rule 4).
   Each card sets --ac (band), --ac-text (link color) and --tilt inline. */
.apps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.35rem; padding-top: 1.75rem;
}
.app { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.app .gm-band { text-align: left; }
.app__emoji { margin-left: auto; font-size: 1.15rem; }
.gm-band .gm-chip { flex-shrink: 0; }
.app__desc {
    display: block; flex: 1; padding: 0.85rem 1.1rem 0;
    font-size: 0.9rem; color: var(--gm-ink-soft); line-height: 1.55;
}
.app__go {
    display: block; padding: 0.7rem 1.1rem 1rem;
    font-family: var(--gm-font-round); font-weight: 800; font-size: 0.86rem;
    color: var(--ac-text, var(--gm-teal-deep));
}

/* ---- Developer tools: collapsed, no fake password gate ---- */
.dev { margin-top: 3rem; text-align: center; }
.dev > summary { list-style: none; }
.dev > summary::-webkit-details-marker { display: none; }
.dev__note {
    margin: 1.1rem auto 1.25rem; font-size: 0.88rem; color: var(--gm-ink-soft);
    max-width: 62ch;
}
.tools {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.8rem; text-align: left;
}
.tool {
    display: block; padding: 0.9rem 1rem; text-decoration: none; color: inherit;
    background: var(--gm-card); border: 1px solid #EDE4D6;
    border-radius: var(--gm-radius-sm);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tool:hover { border-color: var(--gm-teal); box-shadow: var(--gm-shadow); }
.tool:focus-visible { outline: 3px solid var(--gm-orange); outline-offset: 2px; }
/* display:block — these are spans inside a block anchor, so without it the
   name and description run together on one line. */
.tool__name { display: block; font-family: var(--gm-font-round); font-weight: 700; font-size: 0.95rem; }
.tool__desc { display: block; font-size: 0.82rem; color: var(--gm-ink-soft); margin-top: 0.25rem; line-height: 1.45; }

/* ---- Footer ---- */
.site-footer {
    margin-top: 3.5rem; padding: 1.1rem 0;
    background: var(--gm-teal); color: #FFFFFF;
    text-align: center; font-weight: 700; font-size: 0.85rem;
}

@media (max-width: 600px) {
    .site-header { padding-top: 2rem; }
    .site-robot { width: 116px; }
    .apps { padding-top: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
    .tool { transition: none; }
}
