/* GeekMatter homepage.
   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; }

:root {
    --bg: #0d0d0d;
    --surface: #16162a;
    --surface-hi: #1e1e38;
    --border: #2b2b3d;
    --text: #e8e8e8;
    --muted: #9a9aab;
    --gold: #c9a227;
    --gold-dim: #a8871f;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --display: Georgia, 'Times New Roman', serif;
    --radius: 10px;
}

html { font-size: 16px; }
body {
    font-family: var(--font); background: var(--bg); color: var(--text);
    line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 2px solid var(--gold); outline-offset: 3px;
}

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

/* ---- Header ---- */
.site-header { text-align: center; padding: 3.5rem 0 0.5rem; }
.site-logo {
    font-family: var(--display); font-size: clamp(2.4rem, 7vw, 3.4rem);
    color: var(--gold); letter-spacing: 0.04em; font-weight: 400;
}
.site-tagline { color: var(--muted); margin-top: 0.4rem; font-size: 1.02rem; }

/* ---- Section headings ---- */
.section { padding: 2.5rem 0 0; }
.section__head {
    display: flex; align-items: baseline; gap: 0.9rem;
    margin-bottom: 1.25rem; padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--border);
}
.section__title {
    font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--gold-dim); font-weight: 600;
}
.section__note { font-size: 0.85rem; color: var(--muted); }

/* ---- App cards ----
   One consistent card. Each app keeps its identity through a thin accent bar
   rather than a differently coloured button, which is what made the old page
   read as unrelated parts. */
.apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(268px, 1fr)); gap: 1rem; }

.app {
    position: relative; display: flex; flex-direction: column;
    padding: 1.35rem 1.35rem 1.2rem; text-decoration: none; color: inherit;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.app::before {
    content: ''; position: absolute; inset: 0 auto 0 0; width: 3px;
    background: var(--accent, var(--gold));
}
.app:hover { background: var(--surface-hi); border-color: var(--accent, var(--gold)); transform: translateY(-2px); }
.app__name { display: block; font-size: 1.06rem; font-weight: 600; color: var(--text); margin-bottom: 0.35rem; }
.app__desc { display: block; font-size: 0.9rem; color: var(--muted); flex: 1; }
.app__go { display: block; margin-top: 0.9rem; font-size: 0.82rem; color: var(--accent, var(--gold)); }
.app__tag {
    display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.45rem;
    font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--muted); border: 1px solid var(--border); border-radius: 999px;
    vertical-align: middle;
}

/* ---- Developer tools: collapsed, no fake password gate ---- */
.dev { margin-top: 2.75rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.dev > summary {
    cursor: pointer; list-style: none; display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--muted); font-weight: 600;
}
.dev > summary::-webkit-details-marker { display: none; }
.dev > summary::after { content: '+'; color: var(--gold); font-size: 1.1rem; letter-spacing: 0; }
.dev[open] > summary::after { content: '\2212'; }
.dev > summary:hover { color: var(--text); }
.dev__note { margin: 0.75rem 0 1.25rem; font-size: 0.85rem; color: var(--muted); max-width: 62ch; }

.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0.75rem; }
.tool {
    display: block; padding: 0.9rem 1rem; text-decoration: none; color: inherit;
    background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
    transition: border-color .15s ease, background .15s ease;
}
.tool:hover { border-color: var(--gold-dim); background: var(--surface); }
/* 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-size: 0.94rem; font-weight: 600; color: var(--text); }
.tool__desc { display: block; font-size: 0.82rem; color: var(--muted); margin-top: 0.25rem; line-height: 1.45; }

/* ---- Footer ---- */
.site-footer {
    margin-top: 3.5rem; padding: 1.75rem 0; border-top: 1px solid var(--border);
    text-align: center; color: var(--muted); font-size: 0.85rem;
}

@media (max-width: 600px) {
    .site-header { padding-top: 2.5rem; }
    .section { padding-top: 2rem; }
}
