/* Shared by the landing page (style.css) and every post (posts/post.css):
   the reset, the body, and the site masthead + footer that appear on every
   page. Page-specific styles live in style.css and posts/post.css. */

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #b0c4de;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  padding: 0 1.5rem;
  min-height: 100vh;
}

a {
  color: #1a1a1a;
}

/* --- Masthead (the banner landmark, same on every page) --- */

.masthead {
  max-width: 44rem;
  margin: 0 auto;
}

.masthead .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.wordmark {
  font-family: "Roboto Mono", monospace;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  color: #1a1a1a;
  text-decoration: none;
}

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

.wordmark:hover,
.wordmark a:hover {
  text-decoration: underline;
}

.bar-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.bar-nav a {
  font-family: "Roboto Mono", monospace;
  font-size: 0.8rem;
  color: #333;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.bar-nav a:hover {
  text-decoration: underline;
}

.gh {
  width: 44px;
  height: 44px;
  display: block;
  border-radius: 100px;
  transition: 1.5s;
}

.bar-nav a:hover .gh {
  transform: translateY(-5px);
  background-color: azure;
}

/* --- Tagline (home page only) --- */

.tagline {
  max-width: 44rem;
  margin: 1rem auto 2rem;
  color: #333;
  font-size: 0.92rem;
}

/* --- Site footer (the contentinfo landmark, same on every page) --- */

.sitefoot {
  max-width: 44rem;
  margin: 3rem auto 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: "Roboto Mono", monospace;
  font-size: 0.78rem;
  color: #444;
}

.sitefoot .bar-nav a {
  font-size: 0.78rem;
}

.sitefoot p {
  margin: 0;
}

.sitefoot a {
  color: #333;
}
