/* MacHUD site. No build step: edited by hand, served as-is by GitHub Pages. */
:root {
  --bg: #0d0f13;
  --bg-raised: #151922;
  --bg-sunken: #0a0c10;
  --line: #262c38;
  --text: #e8ebf1;
  --muted: #98a1b3;
  --accent: #5b9dff;
  --accent-strong: #3d86ff;
  --accent-ink: #ffffff;
  --glass: rgba(255, 255, 255, 0.06);
  --good: #3ecf8e;
  --radius: 14px;
  --maxw: 1080px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7f9;
    --bg-raised: #ffffff;
    --bg-sunken: #eceef2;
    --line: #dde1e8;
    --text: #151922;
    --muted: #5b6475;
    --accent: #1f6fff;
    --accent-strong: #0f5ce8;
    --glass: rgba(0, 0, 0, 0.04);
    --good: #13985e;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 0.9em ui-monospace, "SF Mono", Menlo, monospace; background: var(--glass); padding: 0.1em 0.35em; border-radius: 5px; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 1.6rem; margin-bottom: 0.4rem; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; border-top: 1px solid var(--line); }
.lede { color: var(--muted); margin: 0 0 24px; max-width: 62ch; }

/* Header */
header.top { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img, .brand .mono { width: 26px; height: 26px; border-radius: 7px; }
nav.links { margin-left: auto; display: flex; gap: 18px; font-size: 0.92rem; }
nav.links a { color: var(--muted); }
nav.links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 56px; border-top: 0; }
.hero .wrap { max-width: 760px; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); font-weight: 750; }
.hero h1 .accent { color: var(--accent); }
.hero p.what { color: var(--muted); font-size: 1.1rem; margin: 18px 0 26px; max-width: 46ch; }
.hero ul.points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.hero ul.points li { padding-left: 22px; position: relative; }
.hero ul.points li::before { content: ""; position: absolute; left: 2px; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; font-weight: 600;
  border: 1px solid var(--line); color: var(--text); background: var(--bg-raised); cursor: pointer; font-size: 0.97rem; }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent-strong); border-color: transparent; color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent); }
.btn.small { padding: 7px 12px; font-size: 0.88rem; border-radius: 8px; }
.meta { color: var(--muted); font-size: 0.86rem; }

/* App grid */
.grid-apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card .head { display: flex; gap: 12px; align-items: center; min-width: 0; }
.card img.icon, .card .mono { width: 52px; height: 52px; border-radius: 12px; flex: none; }
.mono { display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--accent), #8a5bff); }
.card h3 { font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; flex: 1; }
.card .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 0.7rem; font-weight: 650; text-transform: uppercase; letter-spacing: 0.05em; padding: 2px 7px; border-radius: 999px;
  background: var(--glass); color: var(--muted); border: 1px solid var(--line); vertical-align: 2px; margin-left: 6px; }
.badge.bundled { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); }
.empty, .error { color: var(--muted); padding: 28px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Build your own + notes */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.note { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.note h3 { font-size: 1.02rem; margin-bottom: 6px; }
.note p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.note p + p { margin-top: 8px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.88rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }

@media (max-width: 820px) {
  .hero { padding-top: 44px; }
  nav.links a.hide-sm { display: none; }
}
