/* Meadow Cafe x Bear Blog Clean Theme
   Unified for a seamless iframe experience 
*/

:root {
  --width: 920px;
  --font-main: Verdana, sans-serif;
  --font-secondary: Verdana, sans-serif;
  --font-scale: 1em;
  /* Colors matched to your specific blog settings */
  --background-color: transparent; 
  --heading-color: #555;
  --text-color: #5b5656;
  --link-color: #db9292;
  --visited-color: #a386e3;
  --code-background-color: #f2f2f2;
  --code-color: #222;
  --em-color: #5b5656c4;
}

/* Dark mode support for the guestbook interior */
@media (prefers-color-scheme: dark) {
  :root {
    --background-color: transparent;
    --heading-color: #f4f4f4;
    --text-color: #fbfafa;
    --link-color: #f4b690;
    --visited-color: #c1a6ff;
    --code-background-color: #000;
    --code-color: #ddd;
    --em-color: #fbfafac7;
  }
}

body {
  font-family: var(--font-secondary);
  font-size: var(--font-scale);
  margin: 0;
  padding: 10px 0; /* Reduced padding for iframe fit */
  max-width: 100%;
  background-color: var(--background-color);
  color: var(--text-color);
  line-height: 1.5;
}

/* Hide the main title and border to prevent "double titles" on your blog */
h1#title, h1, .sr-only {
  display: none;
}

main {
  line-height: 1.6;
  border-bottom: none; /* Removed to keep it clean */
}

a, .button-link {
  color: var(--link-color);
  text-decoration: underline;
  cursor: pointer;
}

a:hover, .button-link:hover {
  text-decoration: wavy underline;
}

/* Form styling to match your architectural aesthetic */
input[type="text"], 
input[type="email"], 
input[type="url"], 
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #ffffff;
  font-family: inherit;
  margin-bottom: 10px;
  box-sizing: border-box;
}

button[type="submit"] {
  background-color: var(--link-color);
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

/* Guestbook specific message styling */
.guestbook-message {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed #eee;
}

.guestbook-message-reply {
  margin-left: 1.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--link-color);
  opacity: 0.9;
}

/* Clean up footer */
footer {
  font-size: 0.8em;
  opacity: 0.6;
  padding: 20px 0;
}