/* Teixeira Networks — dark tech theme */
:root {
  --bg: #0d1117;
  --bg-alt: #161b22;
  --border: #30363d;
  --text: #c9d1d9;
  --text-muted: #8b949e;
  --accent: #58d68d;
  --accent-2: #58a6ff;
  --danger: #f85149;
  --mono: "Cascadia Code", "Fira Code", Consolas, "SF Mono", monospace;
  --sans: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
}
.site-brand {
  font-family: var(--mono);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}
.site-brand:hover { text-decoration: none; color: var(--accent); }
.brand-prompt { color: var(--accent); }
.site-nav a {
  margin-left: 1.25rem;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: .95rem;
}
.site-nav a:hover { color: var(--accent); text-decoration: none; }

/* Content */
main { padding: 2.5rem 1.25rem 4rem; }

h1, h2, h3, h4 { color: #e6edf3; line-height: 1.3; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: .3rem; margin-top: 2.2rem; }
h3 { font-size: 1.2rem; margin-top: 1.8rem; }

/* Post list (home) */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.post-list h2 {
  margin: 0 0 .25rem;
  border: none;
  padding: 0;
  font-size: 1.35rem;
}
.post-list h2 a { color: #e6edf3; }
.post-list h2 a:hover { color: var(--accent); text-decoration: none; }
.post-list .post-meta { margin: 0 0 .4rem; }
.post-list .excerpt { margin: 0; color: var(--text-muted); }

.post-meta {
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: .85rem;
}
.tag {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 .5rem;
  margin-right: .35rem;
  font-size: .8rem;
  color: var(--accent);
}

/* Post body */
.post-content img, .page-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: block;
  margin: 1.5rem auto;
}
.post-content blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: .25rem 1rem;
  color: var(--text-muted);
  background: var(--bg-alt);
}
code {
  font-family: var(--mono);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .1em .35em;
  font-size: .9em;
}
pre {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem;
  overflow-x: auto;
}
pre code { border: none; background: none; padding: 0; }

table { border-collapse: collapse; width: 100%; margin: 1.5rem 0; }
th, td { border: 1px solid var(--border); padding: .5rem .75rem; text-align: left; }
th { background: var(--bg-alt); }

.post-footer { margin-top: 3rem; font-family: var(--mono); font-size: .9rem; }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 560px;
  margin-top: 1.5rem;
}
.contact-form label {
  font-family: var(--mono);
  font-size: .9rem;
  color: var(--accent);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: .65rem .75rem;
  font-size: 1rem;
  font-family: var(--sans);
  margin-top: .3rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form button {
  align-self: flex-start;
  background: var(--accent);
  color: #0d1117;
  border: none;
  border-radius: 6px;
  padding: .7rem 1.6rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--mono);
  cursor: pointer;
}
.contact-form button:hover { filter: brightness(1.15); }
.contact-form button:disabled { opacity: .5; cursor: not-allowed; }
.form-status { font-family: var(--mono); font-size: .9rem; min-height: 1.4em; }
.form-status.error { color: var(--danger); }
.form-status.ok { color: var(--accent); }
.hidden { display: none !important; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 1rem 0;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: .85rem;
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 1.6rem; }
  .site-nav a { margin-left: .9rem; }
}
