@font-face {
    font-family: "Roboto Glint";
    src: url("/Roboto-Medium.ttf") format("truetype");
    font-weight: 500;
    font-display: swap;
}

/* glint-launcher's own colors */
:root {
    color-scheme: dark;
    --window: #141416;
    --page: #1e1e21;
    --raised: #2a2a2e;
    --raised-hot: #333338;
    --line: #3a3a40;
    --line-soft: #313136;
    --text: #e4e4e7;
    --muted: #95959d;
    --accent: #f5c04a;
    --accent-hot: #f8ce6e;
    --on-accent: #1c1500;
    --round: 4px;
    --mono: ui-monospace, "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; }
body {
    background: var(--page);
    color: var(--text);
    font: 500 16px/1.55 "Roboto Glint", Roboto, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hot); }
::selection { background: rgba(245, 192, 74, .3); }
.mono, code, pre { font-family: var(--mono); font-size: .9em; }
.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(20, 20, 22, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 20px; }
.brand:hover { color: var(--text); }
.brand img { border-radius: 6px; }
.links { display: flex; align-items: center; gap: 2px; }
.links a { color: var(--muted); padding: 6px 10px; border-radius: var(--round); font-size: 15px; }
.links a:hover { color: var(--text); background: var(--raised); }
.links .discord { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; }
.links .discord:hover { background: #5865f2; color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: var(--round); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); white-space: nowrap; transition: background-color .15s, transform .15s; }
.btn:hover { background: var(--raised-hot); color: var(--text); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); box-shadow: none; color: var(--on-accent); font-weight: 700; }
.btn.primary:hover { background: var(--accent-hot); color: var(--on-accent); }
.btn.big { height: 48px; padding: 0 22px; font-size: 17px; }
.btn.wide { width: 100%; }
.hint { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

/* hero */
.hero { padding: 44px 0 36px; border-bottom: 1px solid var(--line-soft); }
.hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.title { font-size: clamp(34px, 5vw, 48px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; margin: 0 0 12px; }
.logo { flex: none; width: 168px; height: 168px; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 6px; }
.meta { color: var(--muted); font-size: 14px; margin: 0 0 24px; }
.get { display: flex; flex-wrap: wrap; gap: 10px; }

/* sections */
.section { padding: 32px 24px 0; }
.section h2 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; margin: 0 0 12px; }
.about p { margin: 0 0 12px; line-height: 1.6; }
.about p:last-child { margin-bottom: 0; }
.features { margin: 0; padding-left: 20px; }
.features li + li { margin-top: 8px; }
.system { background: var(--window); border: 1px solid var(--line-soft); border-radius: var(--round); padding: 20px; }
.system h3 { font-size: 16px; font-weight: 500; margin: 0 0 6px; }
.system p { margin: 0; color: var(--muted); font-size: 15px; }

.systems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.system { display: flex; flex-direction: column; gap: 14px; }
.system p { flex: 1; }
.system.mine { border-color: var(--accent); }
.system.mine .btn { background: var(--accent); box-shadow: none; color: var(--on-accent); font-weight: 700; }
code { background: var(--raised); padding: 1px 5px; border-radius: 3px; color: var(--text); }
pre { margin: 0; padding: 10px 12px; background: var(--page); border: 1px solid var(--line-soft); border-radius: var(--round); overflow-x: auto; color: var(--text); }
pre code { background: none; padding: 0; }

/* changelog */
.releases { display: grid; gap: 10px; }
.release { background: var(--window); border: 1px solid var(--line-soft); border-radius: var(--round); padding: 20px 22px; }
.release-head { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.tag { font-family: var(--mono); color: var(--accent); font-size: 18px; }
.release p { color: var(--muted); margin: 0 0 10px; }
.release h4 { font-size: 15px; font-weight: 500; margin: 16px 0 6px; }
.release ul { margin: 0; padding-left: 20px; color: color-mix(in srgb, var(--text) 88%, transparent); }
.release li + li { margin-top: 4px; }
details.release { padding: 0 22px; }
details.release summary { cursor: pointer; padding: 14px 0; list-style: none; }
details.release summary::-webkit-details-marker { display: none; }
details.release[open] { padding-bottom: 18px; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 48px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

@media (max-width: 900px) {
    .hero { padding: 40px 0; }
    .logo { width: 120px; height: 120px; margin-right: 0; border-radius: 22px; }
    .systems { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .links a:not(.discord) { display: none; }
}
@media (max-width: 560px) { .logo { display: none; } }
