/* App, category and directory pages (written by seo.js). Same tokens as the landing page,
   no scripts and no motion: these pages are for reading and for search engines. */
:root {
  color-scheme: dark;
  --bg: #07090d; --core: #0d1016; --core-2: #12161e;
  --hair: rgba(255, 255, 255, 0.09); --hair-strong: rgba(255, 255, 255, 0.17);
  --fg: #f5f7fa; --muted: #8b94a3; --brand: #4da3ff; --warn: #fbbf24;
  --focus: rgba(77, 163, 255, 0.75);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --wrap: 1040px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
h1, h2, p, ul, ol, dl, dd, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2 { letter-spacing: -0.03em; line-height: 1.1; font-weight: 600; text-wrap: balance; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--core-2); padding: 10px 14px; border-radius: 10px; }

.bar, main, .foot { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--fg); font-weight: 600; }
.brand:hover { text-decoration: none; }
.bar nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.bar nav a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; }
.bar nav a:hover { color: var(--fg); text-decoration: none; }
.bar nav .get { color: #06101d; background: var(--fg); padding: 0 16px; border-radius: 999px; font-weight: 600; }
.bar nav .get:hover { color: #06101d; background: #fff; }

main { padding-top: 12px; padding-bottom: 72px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--fg); }
.crumbs [aria-current] { color: var(--fg); }

.app-head { display: grid; grid-template-columns: 128px 1fr; gap: 28px; align-items: start; }
.app-icon { width: 128px; height: 128px; border-radius: 28px; }
h1 { font-size: clamp(34px, 5vw, 52px); }
h1 span { color: var(--muted); font-weight: 500; }
.lead { font-size: 20px; color: var(--fg); margin-top: 12px; max-width: 60ch; }
.by { color: var(--muted); font-size: 15px; margin-top: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--hair-strong); color: var(--fg); font-weight: 600; font-size: 15px; }
.btn:hover { text-decoration: none; background: var(--core-2); }
.btn.primary { background: var(--fg); color: #06101d; border-color: var(--fg); }
.btn.primary:hover { background: #fff; }
.notice { margin-top: 28px; padding: 14px 18px; border: 1px solid rgba(251, 191, 36, 0.35); border-radius: 14px; color: var(--warn); font-size: 15px; }

section { margin-top: 56px; }
h2 { font-size: 26px; margin-bottom: 18px; }
section > p { max-width: 68ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 18px; overflow: hidden; }
.facts div { background: var(--core); padding: 16px 18px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { font-size: 17px; font-weight: 500; margin-top: 2px; overflow-wrap: anywhere; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.shots img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--hair); background: var(--core); }
.steps { counter-reset: step; display: grid; gap: 14px; max-width: 68ch; }
.steps li { counter-increment: step; position: relative; padding-left: 46px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 1px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hair-strong); display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.aside { color: var(--muted); font-size: 15px; margin-top: 16px; overflow-wrap: anywhere; }
.notes { white-space: pre-wrap; overflow-wrap: anywhere; font: 400 15px/1.6 var(--font); color: var(--muted); background: var(--core); border: 1px solid var(--hair); border-radius: 18px; padding: 20px 22px; max-width: 76ch; }

.list header { margin-bottom: 8px; }
.list .lead { color: var(--muted); font-size: 18px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.card { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; padding: 14px; min-height: 84px; border: 1px solid var(--hair); border-radius: 18px; background: var(--core); color: var(--fg); }
.card:hover { text-decoration: none; border-color: var(--hair-strong); background: var(--core-2); }
.card img { width: 56px; height: 56px; border-radius: 13px; }
.card strong { display: block; font-weight: 600; line-height: 1.25; }
.card small { display: block; color: var(--muted); font-size: 14px; line-height: 1.35; margin-top: 3px; }
.card.pinned { border-color: rgba(255, 154, 74, 0.45); background: linear-gradient(135deg, rgba(255, 154, 74, 0.10), var(--core) 60%); }
.card.pinned:hover { border-color: rgba(255, 154, 74, 0.75); }
.card .tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font: 600 11px/1.4 var(--font); font-style: normal; letter-spacing: 0.02em; vertical-align: 2px; color: #FFB27A; background: rgba(255, 154, 74, 0.14); }

.foot { border-top: 1px solid var(--hair); padding-top: 40px; padding-bottom: 64px; display: grid; gap: 12px; color: var(--muted); font-size: 15px; }
.foot p { max-width: 70ch; }
.foot .fine { font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; }
.foot nav a { color: var(--fg); min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 640px) {
  .bar, main, .foot { padding-left: 16px; padding-right: 16px; }
  .bar nav { gap: 14px; }
  .bar nav a:not(.get) { display: none; }
  .app-head { grid-template-columns: 88px 1fr; gap: 18px; }
  .app-icon { width: 88px; height: 88px; border-radius: 20px; }
  .lead { font-size: 18px; }
  section { margin-top: 44px; }
  h2 { font-size: 22px; }
  .cards, .shots { grid-template-columns: 1fr; }
}

/* Blog */
.post { max-width: 760px; }
.post > header { margin-bottom: 28px; }
.post > p, .post section > p { margin-top: 16px; }
.post h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.post h3 span { color: var(--muted); font-weight: 500; }
.code { margin-top: 16px; padding: 16px 18px; background: var(--core); border: 1px solid var(--hair); border-radius: 14px; overflow-x: auto; font: 400 15px/1.5 ui-monospace, "SF Mono", Menlo, monospace; }
.picks { display: grid; gap: 14px; }
.pick { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 18px; border: 1px solid var(--hair); border-radius: 18px; background: var(--core); }
.pick img { width: 64px; height: 64px; border-radius: 15px; }
.pick p { margin-top: 6px; }
.pick .meta { color: var(--muted); font-size: 14px; }
.cta { padding: 26px; border: 1px solid var(--hair-strong); border-radius: 22px; background: var(--core); }
.cta h2 { margin-bottom: 8px; }
.posts { display: grid; gap: 12px; margin-top: 28px; max-width: 820px; }
.posts a { display: block; padding: 20px 22px; border: 1px solid var(--hair); border-radius: 18px; background: var(--core); color: var(--fg); }
.posts a:hover { text-decoration: none; border-color: var(--hair-strong); background: var(--core-2); }
.posts strong { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; }
.posts small { display: block; color: var(--muted); font-size: 15px; margin-top: 6px; }
@media (max-width: 640px) {
  .pick { grid-template-columns: 48px 1fr; gap: 14px; padding: 14px; }
  .pick img { width: 48px; height: 48px; border-radius: 11px; }
}
