/* ZIC Tech — minimal, semantic, fast */

:root {
  --text: #ffffffd6;
  --bg: #1d1e20;
  --accent: #81a1c1;
  --accent-hover: #88c0d0;
  --muted: #9ca3af;
  --border: #3a3a3d;
  --surface: #2e2e33;
  --max-width: 48rem;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Menlo', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

/* Navigation */
header[role="banner"] nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.site-title {
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}
nav a:hover, nav a[aria-current] {
  color: var(--accent);
}

/* Main content */
main { min-height: 60vh; }

h1 { font-size: 1.8rem; line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 0.75rem; font-weight: 700; }
h2 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.3px; margin-top: 2.5rem; margin-bottom: 0.75rem; font-weight: 600; }
h3 { font-size: 1.1rem; line-height: 1.4; margin-top: 2rem; margin-bottom: 0.5rem; font-weight: 600; }

p { margin-bottom: 1rem; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

time {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.description {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

/* Hero */
.hero {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.hero h1 { font-size: 2rem; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }

.cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
}
.cta:hover { background: var(--accent-hover); color: #fff; }

/* Value propositions */
.value-props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.prop h2 { font-size: 1.1rem; margin-top: 0; color: var(--accent); }

/* Summaries */
.summary {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.summary h2, .summary h3 { margin-top: 0; }
.summary a { text-decoration: none; }
.summary a:hover { text-decoration: underline; }

.recent { margin-bottom: 2rem; }

/* Article content */
article section ul, article section ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}
article section li { margin-bottom: 0.3rem; }

article section blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  color: var(--muted);
  margin: 1rem 0;
}

article section code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: #2e2e33;
  padding: 0.15em 0.3em;
  border-radius: 3px;
  color: var(--text);
}

article section pre {
  background: #161618;
  color: #d4d4d4;
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
}
article section pre code {
  background: none;
  padding: 0;
  color: inherit;
}

/* Tags */
.tags {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin-top: 2rem;
}
.tags li {
  font-size: 0.8rem;
  background: #2e2e33;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  color: var(--muted);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}
footer a { color: var(--muted); }

/* Contact form */
form { max-width: 30rem; }
form label {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
}
form input, form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--bg-entry);
  color: var(--text);
}
form textarea { min-height: 8rem; resize: vertical; }
form button {
  margin-top: 1rem;
  padding: 0.6rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
}
form button:hover { background: var(--accent-hover); }

@media (max-width: 600px) {
  body { padding: 0.75rem 1rem; }
  .hero h1 { font-size: 1.5rem; }
  nav ul { gap: 0.75rem; }
  .value-props { grid-template-columns: 1fr; }
}
