/*
Theme Name: Papa Boess
Theme URI: http://www.boess.nl/
Author: Boesschoten
Description: Replicates the sitely look of boess.nl (Lato, Bubblegum Sans, Quicksand;
             light-blue sticky nav, white content, rounded photo cards, slate footer)
             on WordPress. Classic theme, no block editor required.
Version: 1.0.0
Text Domain: papaboess
*/

:root {
  --pb-blue: #2268e5;
  --pb-slate: #52646f;
  --pb-header: #cfdef9;
  --pb-ink: #404040;
  --pb-gray: #808080;
  --pb-bg: #ffffff;
  --pb-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.35);
  --pb-radius: 20px;
  --font-ui: 'Lato', Verdana, sans-serif;
  --font-display: 'Bubblegum Sans', 'Comic Sans MS', cursive;
  --font-light: 'Quicksand', 'Segoe UI', sans-serif;
}

/* ------------------------------------------------------------- base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--pb-bg);
  color: var(--pb-ink);
  font-family: var(--font-ui);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--pb-blue); }

.layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------------------------------------- header */
.pb-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--pb-header);
  box-shadow: var(--pb-shadow);
  min-height: 63px;
}
.pb-header .layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 63px;
  gap: 16px;
}
.pb-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 6px 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--pb-shadow);
}
.pb-nav a {
  display: block;
  padding: 8px 22px;
  font-family: var(--font-ui);
  font-size: 20px;
  color: #000;
  border-radius: 10px;
  white-space: nowrap;
}
.pb-nav a:hover { color: var(--pb-blue); background: #f2f6ff; }
.pb-nav a.pb-cur { background: var(--pb-blue); color: #fff; }

/* hamburger (checkbox hack, no JS) */
.pb-burger { position: absolute; opacity: 0; pointer-events: none; }
.pb-mobile { display: none; }
.pb-burger:checked ~ .pb-nav.pb-mobile { display: block; }
.pb-burger-label {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--pb-shadow);
}
.pb-burger-label span,
.pb-burger-label span::before,
.pb-burger-label span::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: #000;
  margin: 3px 0;
  border-radius: 2px;
}

/* --------------------------------------------------------- lang switcher */
.pb-langswitch {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 6px 8px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--pb-shadow);
  flex: 0 0 auto;
}
.pb-langswitch a {
  display: block;
  padding: 8px 13px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #000;
  border-radius: 10px;
}
.pb-langswitch a:hover { color: var(--pb-blue); background: #f2f6ff; }
.pb-langswitch a.pb-cur { background: var(--pb-slate); color: #fff; }
.pb-langswitch a.pb-cur:hover { color: #fff; }

/* language offer banner (dismissible) */
.pb-langbanner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 46px;
  background: #fff6da;
  border-bottom: 1px solid #f1e2ad;
  color: #5a4a12;
  font-size: 16px;
  position: relative;
}
.pb-langbanner-btn {
  background: var(--pb-blue);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 8px 20px;
}
.pb-langbanner-btn:hover { color: #fff; background: #1a56c8; }
.pb-langbanner-x {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  color: #5a4a12;
  padding: 6px;
}
.pb-langbanner-x:hover { color: #000; }

/* ------------------------------------------------------------- footer */
.pb-footer {
  margin-top: 72px;
  background: var(--pb-slate);
  color: #fff;
}
.pb-footer .layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 18px;
  padding-bottom: 18px;
}
.pb-footer .pb-footnav { display: flex; gap: 22px; }
.pb-footer .pb-footnav a { font-size: 16px; }
.pb-footer .pb-footnav a:hover { color: var(--pb-header); }
.pb-footer .pb-brand { font-family: var(--font-display); font-size: 18px; }
.pb-footer .pb-ctx { font-size: 14px; color: #cfd8dd; letter-spacing: 0.05em; text-transform: uppercase; }
.pb-footer .pb-footlang { display: flex; gap: 12px; }
.pb-footer .pb-footlang a {
  font-size: 15px;
  font-weight: 700;
  color: #cfd8dd;
}
.pb-footer .pb-footlang a:hover { color: #fff; }
.pb-footer .pb-footlang a.pb-cur { color: #fff; border-bottom: 2px solid var(--pb-header); }
.pb-footer .pb-copy { width: 100%; font-size: 13px; color: #cfd8dd; }

/* ------------------------------------------------------------- titles */
.entry-title,
.pb-page-title {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--pb-ink);
  line-height: 1.15;
  margin: 0 0 8px;
  font-size: clamp(36px, 6vw, 61px);
}

/* page header bar (blog index / category archive) */
.pb-pagehead {
  background: var(--pb-slate);
  color: #fff;
  box-shadow: var(--pb-shadow);
}
.pb-pagehead .layout {
  display: flex;
  align-items: center;
  min-height: 79px;
  flex-wrap: wrap;
  gap: 10px;
}
.pb-pagehead .pb-pill {
  background: var(--pb-blue);
  border-radius: 10px;
  padding: 12px 30px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(20px, 3.4vw, 34px);
  color: #fff;
}

/* ------------------------------------------------------------- content */
.main {
  padding-top: 40px;
}
.entry-content > p:first-of-type {
  font-family: var(--font-light);
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--pb-gray);
}
.entry-content p { margin: 0 0 1.1em; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.3em; }
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--pb-radius);
  margin: 16px 6px;
  box-shadow: var(--pb-shadow);
}
.entry-content a img { border-radius: 0; }
.entry-content h1,
.entry-content h2,
.entry-content h3 {
  font-family: var(--font-ui);
  font-weight: 700;
  margin: 1.4em 0 0.5em;
}
.entry-content strong { font-weight: 700; }

/* sitely hero: display headline + soft lead lines (front page only) */
.pb-hero .entry-content > h1 {
	font-family: var(--font-display);
	font-weight: 400;
	color: var(--pb-ink);
	font-size: clamp(36px, 6vw, 61px);
	line-height: 1.15;
	margin: 0 0 14px;
}
.pb-hero .entry-content > p {
	font-family: var(--font-light);
	font-size: clamp(17px, 2.2vw, 24px);
	color: var(--pb-gray);
}
.pb-hero .entry-content > p:last-of-type img {
	margin-top: 26px;
}

.pb-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--pb-gray);
  font-size: 15px;
}
.pb-chip {
  background: var(--pb-blue);
  color: #fff;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 14px;
  font-weight: 700;
}

/* ------------------------------------------------------------- recipe list */
.pb-cats {
  margin: 26px 0 34px;
}
.pb-cats .pb-catlabel {
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 10px;
}
.pb-cats ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 28px;
}
.pb-cats a {
  display: inline-block;
  padding: 4px 0;
  font-size: 19px;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  color: #000;
}
.pb-cats a:hover { color: var(--pb-blue); }

.pb-list { list-style: none; margin: 0; padding: 0; }
.pb-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 8px 26px;
  align-items: baseline;
  padding: 20px 4px;
  border-bottom: 1px solid #e6ecf5;
}
.pb-list li:hover { background: #f7faff; }
.pb-list .pb-date {
  color: var(--pb-gray);
  font-size: 15px;
}
.pb-list .pb-title {
  font-weight: 700;
  font-size: 21px;
  color: #000;
}
.pb-list .pb-listmeta {
  grid-column: 2;
  color: var(--pb-gray);
  font-size: 15px;
}
.pb-list a:hover .pb-title { color: var(--pb-blue); text-decoration: underline; text-underline-offset: 4px; }
.pb-list .pb-title { grid-column: 2; }

/* pagination */
.pb-pager {
  margin: 34px 0 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pb-pager a,
.pb-pager span {
  display: inline-block;
  padding: 9px 16px;
  border-radius: 10px;
  font-weight: 700;
}
.pb-pager a:hover { background: #eaf1ff; }
.pb-pager .page-numbers.current { background: var(--pb-blue); color: #fff; }
.pb-pager .prev, .pb-pager .next { background: #fff; box-shadow: var(--pb-shadow); }

/* previous / next recipe */
.pb-adjacent {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid #e6ecf5;
}
.pb-adjacent a {
  font-family: var(--font-light);
  font-size: 17px;
  color: var(--pb-slate);
  max-width: 48%;
}
.pb-adjacent a:hover { color: var(--pb-blue); }
.pb-adjacent .dir { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pb-gray); font-family: var(--font-ui); }

/* ------------------------------------------------------------- 404 */
.pb-404 { text-align: center; padding: 80px 0 40px; }
.pb-404 h1 { font-family: var(--font-display); font-size: 44px; }
.pb-404 a { font-weight: 700; text-decoration: underline; }

/* ------------------------------------------------------------- comments */
#comments { margin-top: 56px; }
#comments .pb-commentlist-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
}
#comments ol { list-style: none; padding: 0; }
#comments .comment {
  border-bottom: 1px solid #e6ecf5;
  padding: 18px 0;
}
#comments .comment-author { font-weight: 700; }
#comments .comment-metadata { font-size: 13px; color: var(--pb-gray); }
#comments .comment-form input[type="text"],
#comments .comment-form input[type="email"],
#comments .comment-form input[type="url"],
#comments .comment-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd8e5;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-size: 16px;
  margin-bottom: 12px;
}
#comments .form-submit input[type="submit"] {
  background: var(--pb-blue);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 26px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
}
#comments .form-submit input[type="submit"]:hover { background: #1a56c8; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 767px) {
  body { font-size: 16px; }
  .pb-nav.pb-desktop { display: none; }
  .pb-burger-label { display: inline-flex; flex-direction: column; }
  .pb-header .layout { display: block; position: relative; }
  .pb-nav.pb-mobile {
    position: absolute;
    top: calc(100% - 8px);
    left: 16px;
    right: 16px;
    margin-top: 4px;
    z-index: 40;
  }
  .pb-nav.pb-mobile ul {
    flex-direction: column;
    align-items: stretch;
    background: var(--pb-slate);
    border-radius: 14px;
    padding: 14px;
    gap: 6px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  .pb-nav.pb-mobile a {
    background: transparent;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    padding: 12px;
  }
  .pb-nav.pb-mobile a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
  .pb-nav.pb-mobile a.pb-cur { background: var(--pb-blue); color: #fff; }
  .pb-langswitch.pb-ctx-desktop { display: none; }
  .pb-nav.pb-mobile .pb-langswitch {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    background: transparent;
    box-shadow: none;
    padding: 6px 0 2px;
  }
  .pb-nav.pb-mobile .pb-langswitch a {
    font-size: 16px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
  .pb-nav.pb-mobile .pb-langswitch a.pb-cur { background: var(--pb-blue); color: #fff; }
  .pb-list li { grid-template-columns: 1fr; gap: 2px 0; }
  .pb-list .pb-date, .pb-list .pb-title, .pb-list .pb-listmeta { grid-column: 1; }
  .pb-adjacent { flex-direction: column; }
  .pb-adjacent a { max-width: 100%; }
}
