/* Ge Lab — minimal theme */
:root {
  --bg: #ffffff;
  --fg: #111418;
  --muted: #6b7280;
  --line: #e7e8ec;
  --card: #f7f8f9;
  --accent: #0f766e;
  --code-bg: #f4f5f7;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --fg: #e8eaed;
    --muted: #9399a3;
    --line: #24272c;
    --card: #15181c;
    --accent: #2dd4bf;
    --code-bg: #171a1f;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; width: 100%; }
a { color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* Back link on inner pages */
.home-link {
  display: inline-block;
  margin-top: 36px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}
.home-link:hover { color: var(--accent); }

/* Home */
.hero { padding: 48px 0 0; margin-bottom: 24px; }
.hero h1 {
  font-size: clamp(26px, 7.6vw, 60px);
  white-space: nowrap;
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0;
}
section { margin-bottom: 56px; }
.label {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 0 14px;
}

/* Tool cards */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tool {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.tool:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool-name { font-weight: 600; font-size: 17px; }
.tool-desc { color: var(--muted); font-size: 15px; }
.arrow { color: var(--muted); font-weight: 400; transition: color .15s; }
.tool:hover .arrow { color: var(--accent); }
@media (max-width: 560px) { .tools { grid-template-columns: 1fr; } }

/* Post list */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-top: 1px solid var(--line); }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 13px 0;
  text-decoration: none;
}
.post-list a:hover .post-title { color: var(--accent); }
.post-title { transition: color .15s; }
.post-list time { color: var(--muted); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.more {
  display: inline-block;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
}
.more:hover { color: var(--accent); }

/* Pages and posts */
.page, .post { padding: 32px 0 56px; }
.page-title {
  font-size: clamp(32px, 6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 28px;
}
.post header time { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.post .more { margin-top: 40px; }

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg) !important;
  font-weight: 500;
  font-size: 15px;
  text-decoration: none !important;
  transition: opacity .15s;
}
.button:hover { opacity: .85; }

/* Prose */
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose .tool, .prose .post-list a { color: inherit; text-decoration: none; }
.prose .post-list { margin: 0; }
.prose h2, .prose h3, .prose h4 { letter-spacing: -0.02em; line-height: 1.3; margin: 2em 0 .6em; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 20px; }
.prose h4 { font-size: 17px; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose pre, .prose table { margin: 0 0 1.2em; }
.prose li { margin-bottom: .35em; }
.prose img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 8px auto; }
.prose blockquote { border-left: 3px solid var(--line); padding-left: 18px; color: var(--muted); margin-left: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose code { font-family: var(--mono); font-size: .86em; background: var(--code-bg); padding: .15em .4em; border-radius: 5px; }
.prose pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; overflow-x: auto; font-size: 14px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; font-size: inherit; }
.prose .highlight { background: none; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* Syntax highlighting (Rouge) */
.highlight .c, .highlight .c1, .highlight .cm, .highlight .cs { color: var(--muted); font-style: italic; }
.highlight .k, .highlight .kd, .highlight .kn, .highlight .kr, .highlight .kc { color: var(--accent); }
.highlight .s, .highlight .s1, .highlight .s2, .highlight .sd { color: #b45309; }
.highlight .mi, .highlight .mf { color: #7c3aed; }
@media (prefers-color-scheme: dark) {
  .highlight .s, .highlight .s1, .highlight .s2, .highlight .sd { color: #fbbf24; }
  .highlight .mi, .highlight .mf { color: #c4b5fd; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 14px;
  color: var(--muted);
}
.site-footer .links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 32px 0 0; }
  .post-list a { flex-direction: column; gap: 2px; }
}
