/* Core minimalist theme styles */
body {
  font: 17px/1.6 sans-serif;
  text-rendering: optimizeLegibility;
  padding: 2rem;
  max-width: 70ch;
  margin: 0 auto;
}

/* List styles for home page and other listings */
.home ul li, .writing ul li, main > ul > li {
  list-style-type: none;
  display: flex;
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.25rem;
}

.home ul li a, main > ul > li a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* General spacing and styles */
ul, ol {
  padding: 0;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

time {
  padding-right: 1rem;
}

a, a:visited {
  color: initial;
}

hr {
  margin: 0.75rem 0;
  border: 0;
  border-top: 1px solid #eaeaea;
}

/* Headers */
h1, h2, h3, h4, h5, h6 {
  font-size: 17px;
  font-weight: bold;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Header customization with breadcrumb support */
.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.site-title {
  margin: 0;
  text-decoration: none;
}

.breadcrumb-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.1rem;
  font-weight: normal;
  font-size: 1rem;
  margin: 0;
}

.breadcrumb-title a {
  text-decoration: none;
  color: initial;
}

.breadcrumb-title .current-page, .active-menu-item {
  font-weight: bold;
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
}

/* Keep path segments together with their slashes */
.breadcrumb-title > * {
  display: inline-flex;
  align-items: baseline;
}

/* Keep slash with the previous element */
.breadcrumb-title span + span:empty:after {
  content: "/";
  white-space: nowrap;
}

.site-nav {
  display: flex;
  gap: 20px;
}

/* Recipe styles - consolidated */
.recipe-ingredients ul {
  padding-left: 1.5rem;
  margin-top: 0.15rem;
}

.recipe-instructions ol {
  margin-top: 0.15rem;
  padding-left: 1.5rem;
}

.recipe-ingredients li {
  margin-bottom: 0.1rem;
}

.recipe-instructions ol li {
  margin-bottom: 0.25rem;
}

.recipe-ingredients strong, .ingredient-amount {
  margin-right: 0.25rem;  /* Reduced from 0.5rem */
  font-weight: bold;
}

/* Recipe meta information */
.recipe-yields, .recipe-tags, .recipe-categories {
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;
}

.recipe-ingredients, .recipe-instructions {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.recipe-ingredients h3, .recipe-instructions h3 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

/* Recipe meta section spacing */
.recipe-meta > * {
  margin-top: 0.15rem;
  margin-bottom: 0.15rem;
}

/* Tags as comma-separated list */
.recipe-tags ul, .recipe-yields ul, .recipe-categories ul {
  display: inline;
  padding: 0;
  margin: 0;
}

.recipe-tags li, .recipe-yields li, .recipe-categories li {
  display: inline;
  list-style: none;
}

/* Recipe meta labels */
.recipe-tags-title, .recipe-yields-title, .recipe-categories-title {
  display: inline-block;
  margin-right: 0.25rem;
}

/* On small screens, allow the title to take full width */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .breadcrumb-title {
    margin-bottom: 0.5rem;
  }
  
  .site-nav {
    align-self: flex-end;
  }
}