/* Shared styles for jasonmarley.dev. Plain CSS, no build step. */
:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --rule: #e5e5ea;
  --accent: #0a66d8;
  --accent-soft: rgba(10, 102, 216, 0.1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --fg: #f5f5f7;
    --muted: #98989d;
    --rule: #2c2c2e;
    --accent: #4c9bff;
    --accent-soft: rgba(76, 155, 255, 0.14);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main, .site-header, .site-footer { max-width: 720px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.site-header .name { color: var(--fg); font-weight: 600; }
.site-header nav a { color: var(--muted); margin-left: 20px; font-size: 15px; }

main { padding-top: 32px; padding-bottom: 64px; }
h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 12px; }
h2 { font-size: 22px; margin: 48px 0 12px; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 28px; max-width: 34em; }

.app-icon {
  width: 72px; height: 72px; border-radius: 16px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #3a8dff, #0a5fd0);
}
.app-icon svg { width: 40px; height: 40px; }

.badge {
  display: inline-block; padding: 10px 18px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 15px;
}

.apps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.apps a {
  display: flex; gap: 16px; align-items: center; padding: 16px;
  background: var(--surface); border-radius: 16px; color: var(--fg);
}
.apps a:hover { text-decoration: none; outline: 2px solid var(--accent-soft); }
.apps .app-icon { width: 56px; height: 56px; border-radius: 13px; margin: 0; flex: none; }
.apps .app-icon svg { width: 30px; height: 30px; }
.apps strong { display: block; font-size: 18px; }
.apps span { color: var(--muted); font-size: 15px; }

.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.features li { background: var(--surface); border-radius: 16px; padding: 18px; }
.features strong { display: block; margin-bottom: 4px; }
.features span { color: var(--muted); font-size: 15px; }

.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; margin: 24px 0; }

.site-footer { border-top: 1px solid var(--rule); padding-top: 20px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--muted); text-decoration: underline; }

@media (max-width: 480px) {
  h1 { font-size: 32px; }
  .lead { font-size: 18px; }
  .site-header nav a { margin-left: 14px; }
}
