/* Ziron — minimal black & white theme */

:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --card-bg: #fafafa;
  --invert: #ffffff;
}

:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --fg: #f5f5f5;
  --muted: #9a9a9a;
  --line: #262626;
  --card-bg: #131313;
  --invert: #0a0a0a;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  transition: background .2s ease, color .2s ease;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

/* Top bar */
.topbar {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

.topbar-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.wordmark {
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 15px;
}

.nav {
  display: flex;
  gap: 22px;
  flex: 1;
}

.nav a {
  font-size: 14px;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a.active {
  color: var(--fg);
  border-bottom-color: var(--fg);
}

#theme-toggle {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 2px;
  display: flex;
  align-items: center;
}

#theme-toggle .dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fg);
  transition: transform .2s ease;
}

:root[data-theme="dark"] #theme-toggle .dot {
  transform: translateX(16px);
}

/* Hero */
.hero {
  padding: 24px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.hero h1 {
  font-size: 40px;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.hero .tagline {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 20px;
  max-width: 560px;
  line-height: 1.5;
}

.hero .bio {
  font-size: 15px;
  line-height: 1.7;
  max-width: 560px;
  margin: 0;
}

/* Section headers */
h2.section-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin: 0 0 20px;
}

/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 48px;
}

.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  background: var(--card-bg);
  transition: border-color .15s ease, transform .15s ease;
}

.card:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}

.card .status {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 10px;
}

.card .title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.card .description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* Socials list */
.social-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.social-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.social-list a .handle {
  color: var(--muted);
  font-size: 14px;
}

.social-list a:hover .handle {
  color: var(--fg);
}

/* Footer */
.site-footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 24px 48px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
}

@media (max-width: 600px) {
  .topbar-inner { gap: 16px; }
  .nav { gap: 14px; }
  .hero h1 { font-size: 32px; }
}
