/* Change Cayman header and link colors */
header {
  background-color: #c51a4a;   /* Raspberry Pi red */
  color: #ffffff;
}
a, a:visited { color: #c51a4a; }
a:hover { color: #e64c76; }

/* --- heading sizes (slightly reduced for balance) --- */
h1 { font-size: 1.8em; }
h2 { font-size: 1.4em; }
h3 { font-size: 1.2em; }
h1, h2, h3 {
  font-weight: 600;
  line-height: 1.20;
}

/* --- overall body adjustments --- */
body {
  font-size: 16px;               /* a touch smaller */
  line-height: 1.2;
  color: #222;                   /* softer black for easier reading */
  background-color: #fff;
}

p, li {
  font-size: 16px;
}

/* --- Refined code block styling --- */
pre, code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14px;
  line-height: 1.45;
  color: #1a1a1a;
}

/* Inline code (within text) */
code {
  padding: 0.15em 0.35em;
  background: #f2f3f5;
  border-radius: 4px;
}

/* Block code (multiline commands) */
pre {
  background-color: #fafafa;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 0.9em 1em;
  margin: 1.4em 0;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* Optional: subtle dividers between lines */
pre code {
  display: block;
  border-bottom: 1px solid #eee;
  padding: 0.2em 0;
}

/* Remove the last divider */
pre code:last-child {
  border-bottom: none;
}

img[alt="Tailscale on Raspberry Pi"] {
  display:block; margin:0 auto 1.5rem;
  max-width:100%;
  border-radius:10px;
  box-shadow:0 6px 20px rgba(0,0,0,.15);
}

/* Keep content boxed and padded (Cayman-compatible) */
.main-content {
  max-width: 800px;       /* 64rem ≈ 1024px is Cayman’s default — tweak to taste */
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Make sure images don’t blow past the box */
.main-content img {
  max-width: 100%;
  height: auto;
}

.page-header .project-name,
.page-header .project-tagline,
.page-header .inner {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Refine Cayman's top header bar */
.page-header {
  background-color: #1f2937; /* match your site’s dark gray */
  color: #ffffff;
  border-bottom: 4px solid #c51a4a; /* subtle Raspberry Pi red accent */
  text-align: center;
  padding: 2rem 1rem;
}

/* Refine title and subtitle inside the header */
.page-header .project-name {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.page-header .project-tagline {
  color: #d1d5db;
  font-size: 1.1rem;
  font-weight: 400;
  margin-top: 0;
}