/* Homepage — apron look, Montserrat Black, white + brown */


:root {
  --hf-brown: #5a3d28;
  --hf-brown-deep: #3d2818;
  --hf-white: #fffdf8;
  --hf-apron: #c9b7a4;
  --hf-apron-deep: #b39d87;
  --hf-ink-soft: #6b5340;
  --hf-shadow: rgba(61, 40, 24, 0.22);
  --hf-font: "Montserrat", sans-serif;
}

.hf-page {
  /* surface from apron.css */
  color: var(--ink, #3d2818);
}


.hf-wrap {
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.75rem 0 3.5rem;
}

.hf-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin: 0 0 1.15rem;
}

.hf-search {
  flex: 1 1 260px;
  min-width: 200px;
  padding: 1rem 1.25rem;
  border-radius: 999px;
  border: 4px solid var(--hf-brown);
  background: var(--hf-white);
  color: var(--hf-brown-deep);
  font-family: var(--hf-font);
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 10px 22px var(--hf-shadow);
}

.hf-search::placeholder {
  color: rgba(90, 61, 40, 0.55);
  font-weight: 900;
}

.hf-search:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(90, 61, 40, 0.25), 0 10px 22px var(--hf-shadow);
}

.hf-meta {
  margin: 0 0 1rem;
  color: var(--hf-ink-soft);
  font-size: 1rem;
  font-weight: 800;
}

.hf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.55rem 1.2rem;
}

.hf-folder {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.hf-folder:focus-visible {
  outline: 3px solid var(--hf-brown);
  outline-offset: 4px;
  border-radius: 20px;
}

.hf-folder-body {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: var(--hf-apron-deep);
  border: 4px solid var(--hf-brown);
  box-shadow: 0 14px 30px var(--hf-shadow);
  aspect-ratio: 16 / 11;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hf-folder:hover .hf-folder-body {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(61, 40, 24, 0.3);
}

.hf-folder-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hf-folder-veil {
  position: absolute;
  inset: auto 0 0 0;
  height: 48%;
  background: linear-gradient(transparent, rgba(61, 40, 24, 0.62));
  pointer-events: none;
}

.hf-folder-name {
  margin: 0.65rem 0.1rem 0;
  font-family: var(--hf-font);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.25;
  font-weight: 900;
  color: var(--hf-brown-deep);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.8em;
}

.hf-folder-sub {
  margin: 0.2rem 0.1rem 0;
  font-family: var(--hf-font);
  font-size: 0.88rem;
  line-height: 1.25;
  color: var(--hf-ink-soft);
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.hf-folder--recipes .hf-folder-body {
  background: var(--hf-apron-deep);
}

.hf-folder--recipes .hf-folder-body img {
  object-fit: contain;
  padding: 14%;
}

.hf-folder--recipes .hf-folder-name {
  color: var(--hf-white);
}

.hf-empty {
  padding: 2rem 0;
  color: var(--hf-white);
  font-weight: 900;
  font-size: 1.2rem;
  -webkit-text-stroke: 1px var(--hf-brown-deep);
  paint-order: stroke fill;
}

.hf-footer {
  margin-top: 2rem;
  padding: 1.1rem 0.25rem 0;
  border-top: 3px solid var(--hf-brown);
  color: var(--hf-ink-soft);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

.hf-footer a {
  color: var(--hf-brown-deep);
  text-decoration: none;
  font-weight: 800;
}

.hf-footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .hf-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.15rem 0.8rem;
  }

  .hf-folder-name {
    font-size: 1.05rem;
    -webkit-line-clamp: 4;
    min-height: 4.6em;
  }

}
