/* =========================================================
   signo.one — shared stylesheet
   Palette: GitHub-inspired dark, warm amber accent.
   Change --accent if you want a different signature color.
   ========================================================= */

:root {
  --bg:            #0d1117;
  --bg-elev:       #161b22;
  --bg-elev-2:     #1c232c;
  --border:        #30363d;
  --border-muted:  #21262d;
  --text:          #e6edf3;
  --text-muted:    #8b949e;
  --text-subtle:   #6e7681;
  --accent:        #6b63ff;   /* signo indigo — matches logo */
  --accent-hover:  #857eff;
  --accent-soft:   rgba(107, 99, 255, 0.14);
  --link:          #8a83ff;   /* lighter indigo for link text */
  --success:       #3fb950;
  --danger:        #f85149;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow:    0 4px 14px rgba(0,0,0,0.4);

  --page-max: 1040px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

.container {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 56px 0; }
.section-sm { padding: 32px 0; }

.divider {
  border: 0;
  border-top: 1px solid var(--border-muted);
  margin: 48px 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(13, 17, 23, 0.72);
  border-bottom: 1px solid var(--border-muted);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}
.nav-brand:hover { text-decoration: none; }
.nav-brand .brand-mark {
  width: 26px;
  height: 26px;
  display: inline-block;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-elev);
  text-decoration: none;
}
.nav-links a.active {
  color: var(--text);
  background: var(--bg-elev);
}

.hero { padding: 72px 0 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: start;
}
.hero-avatar {
  width: 180px;
  height: 180px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elev);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 14px;
}
.hero-avatar img,
.hero-avatar svg { width: 100%; height: 100%; object-fit: contain; }
.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.hero-handle {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 18px;
  margin: 0 0 20px;
}
.hero-tagline {
  font-size: 17px;
  color: var(--text);
  margin: 0 0 20px;
  max-width: 640px;
}
.hero-tagline em {
  color: var(--accent);
  font-style: normal;
  background: var(--accent-soft);
  padding: 1px 6px;
  border-radius: 4px;
}
.hero-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 15px;
}
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta .dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex: none;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  transition: background .15s, border-color .15s;
}
.hero-cta:hover {
  background: var(--bg-elev-2);
  border-color: var(--text-subtle);
  text-decoration: none;
}
.hero-cta.primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.hero-cta.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-heading h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}
.section-heading .count {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--bg-elev);
  border: 1px solid var(--border-muted);
  padding: 1px 8px;
  border-radius: 20px;
  margin-left: 8px;
}
.section-heading .view-all {
  font-size: 13px;
  color: var(--text-muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--text);
  transition: border-color .15s, transform .15s;
}
.card:hover {
  border-color: var(--text-subtle);
  text-decoration: none;
}
.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--link);
  margin: 0 0 8px;
}
.card-title .icon { color: var(--text-muted); }
.card-desc {
  color: var(--text-muted);
  font-size: 13.5px;
  margin: 0 0 14px;
  min-height: 2.8em;
}
.card-meta {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--text-subtle);
  font-size: 12px;
}
.card-meta .lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-muted);
  background: transparent;
}

.notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.note-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-muted);
}
.note-item:last-child { border-bottom: 0; }
.note-date {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 13px;
}
.note-link {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}
.note-link:hover { color: var(--accent); text-decoration: none; }
.note-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0 80px;
}
.article-header { margin-bottom: 32px; }
.article-meta {
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 0 0 8px;
}
.article h1 {
  font-size: 32px;
  line-height: 1.2;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.article-tags { display: flex; gap: 6px; margin-top: 12px; }

.article-body {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
.article-body h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-muted);
}
.article-body h3 { font-size: 18px; margin: 32px 0 8px; }
.article-body p { margin: 0 0 16px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 16px; }
.article-body li { margin: 4px 0; }
.article-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 16px;
  margin: 16px 0;
  color: var(--text-muted);
  background: var(--accent-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-body code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--bg-elev);
  border: 1px solid var(--border-muted);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--text);
}
.article-body pre {
  background: var(--bg-elev);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.6;
}
.article-body pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
}
.article-body hr {
  border: 0;
  border-top: 1px solid var(--border-muted);
  margin: 32px 0;
}
.article-body a { color: var(--accent); }
.article-body a:hover { text-decoration: underline; }

.article-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-muted);
  color: var(--text-muted);
  font-size: 14px;
}

.footer {
  border-top: 1px solid var(--border-muted);
  padding: 28px 0;
  margin-top: 80px;
  color: var(--text-subtle);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--text); text-decoration: none; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--text-muted); }
.subtle { color: var(--text-subtle); }

@media (max-width: 720px) {
  .hero { padding: 48px 0 32px; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }
  .hero-avatar { width: 120px; height: 120px; }
  .hero-title { font-size: 26px; }
  .cards { grid-template-columns: 1fr; }
  .note-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .note-date { order: 2; }
  .nav-links a { padding: 6px 8px; font-size: 13px; }
}
