/* =====================================================
   Site-wide color scheme — warm cream/sage palette
   ===================================================== */
:root {
  --theme:   #F5F0E8;
  --entry:   #EAE3D2;
  --primary: #1C1A14;
  --secondary: #4A4535;
  --tertiary:  #D6E0CC;
  --content:   #1C1A14;
  --code-bg:   #EAE3D2;
  --border:    #d8d1c0;
}
[data-theme=dark] {
  --theme:   #1C1A14;
  --entry:   #242118;
  --primary: #EDE8DC;
  --secondary: #C0B498;
  --tertiary:  #2e2b22;
  --content:   #EDE8DC;
  --code-bg:   #2a2820;
  --border:    #2e2b22;
}
/* Links use sage green */
a                        { color: #5C6B4A; }
a:hover                  { color: #8FA07A; }
[data-theme=dark] a      { color: #8FA07A; }
[data-theme=dark] a:hover{ color: #a8bc90; }

/* Gallery grid layout — 3 columns like Instagram */
.home-gallery {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 4px;
  margin: 1rem 0;
}

.home-gallery img {
  display: block !important;
  width: 100% !important;
  height: 200px !important;
  object-fit: cover !important;
  border-radius: 0;
  margin: 0 !important;
  max-width: 100% !important;
}

.home-gallery img:hover {
  opacity: 0.85;
}

@media (max-width: 600px) {
  .home-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Rover profile card */
.rover-card {
  margin: 1.25rem 0 1.5rem;
  max-width: 420px;
}

.rover-card-inner {
  border: 1.5px solid #d0e8d8;
  border-radius: 10px;
  padding: 1.1rem 1.25rem 1.2rem;
  background: #f2faf5;
}

.rover-top {
  margin-bottom: 0.6rem;
}

.rover-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #00824e;
  background: #d0f0e0;
  border-radius: 4px;
  padding: 2px 8px;
}

.rover-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a2e22;
  margin-bottom: 0.3rem;
}

.rover-tagline {
  font-size: 0.9rem;
  color: #3d5c47;
  margin-bottom: 0.75rem;
}

.rover-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 1rem;
}

.rover-details span {
  font-size: 0.78rem;
  color: #2e5c3a;
  background: #c8ecd6;
  border-radius: 4px;
  padding: 3px 9px;
}

.rover-btn {
  display: inline-block;
  background: #00AA70;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.rover-btn:hover {
  background: #00824e;
}

/* Contact / order form styling */
.post-content form {
  max-width: 500px;
  margin: 1rem 0;
}

.post-content form label {
  display: block;
  margin-bottom: 0.875rem;
}

.post-content form input[type=text],
.post-content form input[type=email],
.post-content form textarea {
  display: block !important;
  width: 100% !important;
  padding: 0.5rem 0.75rem !important;
  margin-top: 0.25rem !important;
  border: 2px solid #999 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #111 !important;
  font-size: 1rem !important;
  box-sizing: border-box !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.08) !important;
}

.post-content form input[type=text]:focus,
.post-content form input[type=email]:focus,
.post-content form textarea:focus {
  outline: none !important;
  border-color: #5C6B4A !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06), 0 0 0 3px rgba(92,107,74,0.15) !important;
}

.post-content form textarea {
  resize: vertical;
}

.post-content form button[type=submit] {
  margin-top: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: var(--primary, #555);
  color: var(--theme, #fff);
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.post-content form button[type=submit]:hover {
  opacity: 0.85;
}

/* Consistent nav font across PaperMod pages — matches static pages */
#menu a,
#menu a:visited,
#menu a span,
#menu li a span {
  font-family: 'DM Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 400 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

/* Logo: invert colors in dark mode so the dark artwork shows as white */
[data-theme=dark] .site-logo {
  filter: invert(1);
  opacity: 1;
}
@media (prefers-color-scheme: dark) {
  .site-logo { filter: invert(1); opacity: 1; }
}
