* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, tahoma, verdana, sans-serif;
}

body {
  background: #fcfdfc url(https://itinerae.neocities.org/bgs/lightgrid.gif);
  padding: 32px;
  font-size: 18px;
  color: #888;
  letter-spacing: 1px;
  line-height: 1.8rem;
}

.entry-content {
  line-height: 1.6;
  margin-left: 0;
  margin-right: auto;
}

.entry-content p {
  margin-bottom: 16px;
}

.entry-content p:last {
  margin-bottom: 0;
}

.entry-content ul, ol {
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 1.5rem;
}

.entry-content li:last {
  margin-bottom: 0;
}

.entry-content h2 {
  color: #556b2f; /* Dark Olive Green for plant subheadings */
  margin-top: 24px;
  margin-bottom: 8px;
}

/* links to other pages */
a { color: #4895de; text-decoration: underline; }
a:hover { color: #6f826f; }

p { margin-bottom: 1rem; }
p:last { margin-bottom: 0; }

p.right-side {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 4px;
}

.container {
  max-width: 1152px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  position: relative;
  background: rgba(252, 253, 252, 0.96);
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.55);
}

.header {
  position: relative;
  overflow: hidden;
  padding: 40px 10px 30px;
  text-align: center;
  border: 1px dashed #d5e0d1;
  border-radius: 4px;
  background:linear-gradient(rgba(255, 255, 255, 0.45), rgba(248, 251, 248, 0.65)), url("/assets/images/header-flowers.jpg");
  background-size: cover;
  background-position: center;
}

.header-inner .icon {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 15px; /* Adds a little breathing room before the site name */
}

.header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 70%);
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 2;
}

.site-name {
  margin-bottom: 4px;
  color: #567a52;
  letter-spacing: 2px;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
  font: italic 40px georgia, serif;
}

.sub-title {
  color: #567a52;
  letter-spacing: 2px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
  font-size: 20px;
}

/* ==========================================================================
   Navigation Grid Layout (Container)
   ========================================================================== */
.nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  list-style: none;
  padding: 0;       
  margin: 0;
}

/* ==========================================================================
   List Item (The Button Container - works for both li and buttons)
   ========================================================================== */
.nav li {
  display: block;
  padding: 0; 
  text-align: center;
  background: #567A52;
  border: 1px solid #c7d8c4;
  border-radius: 4px;
  transition: 0.2s ease;
}

/* Container Interaction */
.nav li:hover {
  background: #eef5ee;
  transform: translateY(-1px);
}

/* ==========================================================================
   Interactive Elements (Links and Buttons)
   ========================================================================== */
.nav a,
.nav button {
  display: block; 
  width: 100%;                  /* Ensures button spans full width of the grid box */
  padding: 8px 5px; 
  text-align: center;
  text-transform: lowercase;
  color: #f8fbf7;
  font: italic 15px georgia, serif;
  text-decoration: none;
  
  /* Critical browser button resets */
  background: none;             
  border: none;                 
  cursor: pointer;              
  transition: color 0.2s ease;
}

/* Universal Hover Text Color Shift */
.nav li:hover a,
.nav li:hover button {
  color: #567A52 !important; 
}

img[src*="mastodon.svg"] {
    width: 1em !important;
    height: 1em !important;
    max-width: 1em !important;
    max-height: 1em !important;
    vertical-align: -0.15em;
    margin-right: 4px;
    display: inline-block !important;
}

.intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8px;
}

.top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.note,
.now,
.box {
  padding: 8px;
  border-radius: 4px;
}

.note,
.box {
  background: #fff;
  border: 1px dashed #c7d8c4;
}

.now {
  background: #fbfcfa;
  border: 1px dashed #c7d8c4;
}

.soft {
  background: #fbfcfa;
}

.title {
  margin-bottom: 6px;
  color: #8fa18f;
  text-transform: lowercase;
  font: italic 14px georgia, serif;
}

.row {
  padding: 2px 0;
  border-bottom: 1px dotted #e5ece3;
}

.row:last-child {
  border-bottom: none;
}

.list {
  list-style: none;
}

.list li {
  padding: 2px 0;
  border-bottom: 1px dotted #e7eee5;
}

.list li:last-child {
  border-bottom: none;
}

.full {
  grid-column: span 2;
}

.quote {
  padding: 12px 10px;
  text-align: center;
  color: #8f9e8f;
  background: #fafcf9;
  border: 1px dashed #d5dfd2;
  font: italic 13px georgia, serif;
}

/* Journal Filter Styling */
.journal-filter-menu a {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.journal-filter-menu a:hover {
    background: #eef2eb;
    text-decoration: underline;
    color: #556b2f;
}

.footer {
  padding: 8px;
  text-align: center;
  color: #96a396;
  background: #f9fbf9;
  border: 1px solid #e3ebe2;
  border-radius: 4px;
}

.icon {
  opacity: 0.6;
}

/* ==========================================================================
   Responsive Design & Layout Shifts
   ========================================================================== */

/* --- Desktop Defaults (Wide open, side-by-side) --- */
.responsive-card {
  display: flex;
  flex-direction: column;
}
.card-body {
  display: block; /* Always visible on desktop */
}


/* --- Combined Mobile Rules (Screens smaller than 768px) --- */
@media (max-width: 768px) {

  /* Your Core Layout Shifts */
  .container {
    width: 100%;
    margin: 0;
  }

  /* Stack the top service cards vertically */
  .top {
    display: flex;
    flex-direction: column !important;
  }

  /* CRITICAL FIX: Ensure all primary main body containers stack flat */
  .main {
    display: flex;
    flex-direction: column !important;
  }

  /* Return standard layout boxes back to 100% block width */
  .box {
    display: block !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 10px !important;
    box-sizing: border-box; /* Prevents padding from pushing boxes offscreen */
  }

  .box.full {
    margin-bottom: 10px !important;
  }

  /* Isolate the Clean Pure-CSS Accordion Engine ONLY to the top row cards */
  .responsive-card {
    display: grid !important;
    grid-template-rows: auto 0fr;
    transition: grid-template-rows 0.3s ease-out;
    overflow: hidden;
  }

  /* When a user taps/clicks a card on mobile, smoothly animate it open */
  .responsive-card:focus-within,
  .responsive-card:active {
    grid-template-rows: auto 1fr;
  }

  .card-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 4px;
    outline: none;
  }

  /* Mobile retro plus sign indicator */
  .card-trigger::after {
    content: "＋";
    font-size: 12px;
    color: #999;
    font-weight: normal;
  }

  /* Flip indicator to minus sign when expanded */
  .responsive-card:focus-within .card-trigger::after,
  .responsive-card:active .card-trigger::after {
    content: "－";
  }

  /* Container holding the text paragraphs inside the accordion */
  .card-body {
    grid-row: 2;
    min-height: 0;
    padding-top: 4px;
  }

} /* Closing bracket for mobile media query */


/* --- Shared Keyframe Animations --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}