/* ========== Base / Reset ========== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  background: #f4f4f4;
  line-height: 1.6;
  color: #111;
}

/* ========== Layout Container ========== */


.container {
  width: min(100%, 800px);
  margin: 0 auto;
  padding: 0 4px; /* 1rem => fixed px can avoid zoom jitter on some phones */
}

/* ========== Header ========== */
header {
  background: #333;
  color: #fff;
  border-bottom: #77aaff 3px solid;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
  padding: 10px 0;
}
#branding h1 {
  margin: 0;
  font-size: 1.25rem;
}
header a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.95rem;
}
header nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

/* ========== Main Content Blocks ========== */
.content,
.post {
  background: #fff;
  margin-top: 20px;
  padding: 20px;
  border-radius: 6px;
}

/* ========== Typography in Posts ========== */
.post h1, .post h2, .post h3 {
  line-height: 1.25;
  margin-top: 1.2em;
}
.post p { margin: 0.8em 0; }

/* ========== Images (scoped) ========== */
/* Full-width images only inside .post (and .content if used) */
.post img,
.content img,
.markdown-body img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 1em auto;
}

/* Optional: utility class if you want to opt-in for other places */
.img-fluid {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
  margin: 1em auto;
}

/* Row/half helpers for side-by-side images/text in posts */
.post .row { display: flex; gap: 4%; flex-wrap: wrap; }
.post img.half { max-width: 48%; width: 48%; }

/* ========== Contact Card ========== */
.contact-card {
  max-width: 400px;
  padding: 1rem 1.5rem;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  background: #fff;
  font-family: Arial, sans-serif;
}
.contact-card h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Hard override to beat post/content image rules */
.contact-card .contact-item img {
  width: 1em !important;
  height: 1em !important;
  max-width: none !important;
  display: inline-block !important;
  margin: 0 !important;
  vertical-align: -0.125em;
}
.contact-item a {
  color: #0a66c2;
  text-decoration: none;
}


.contact-item.discord a {
  color: #5865F2; /* Discord blurple */
}
.contact-item.discord a:hover {
  text-decoration: underline;
}

.contact-item.email a:hover {
  text-decoration: underline;
}

.contact-item.github a {
  color: #000; /* GitHub black */
}

.contact-item.github.old a span {
  color: #666; /* subtle "old projects" label */
  font-size: 0.9em;
}

.contact-item.pgp a {
  color: #2c7; /* green hint for security */
}

.contact-item a:hover { text-decoration: underline; }

/* ========== Footer ========== */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 10px;
  margin-top: 20px;
}

/* ========== Small Screens ========== */
@media (max-width: 600px) {
  header .container {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  header nav ul { gap: 12px; }
}
