/* Sketch Serif – https://www.dafont.com/sketch-serif.font (Galdino Otten)
   Download SketchSerif-Regular.ttf and place it in /fonts/ */
@font-face {
  font-family: 'Sketch Serif';
  src: url('/fonts/SketchSerif-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Quaderno-style squared paper background */
body {
  background-color: #fefefe;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent 0,
      transparent calc(20px - 1px),
      rgba(0, 120, 200, 0.05) calc(20px - 1px),
      rgba(0, 120, 200, 0.05) 20px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent calc(20px - 1px),
      rgba(0, 120, 200, 0.05) calc(20px - 1px),
      rgba(0, 120, 200, 0.05) 20px
    );
}

hr {
  margin-top: 30px;
  margin-bottom: 20px;
}

.newsletter-block {
  margin-bottom: 2em;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f8f8f8;
  box-shadow: -4px 6px 25px -15px;
}

/* Home page: newsletter as sticky right sidebar (≥1200px) */
@media (min-width: 1000px) {
  main .wrapper {
    max-width: 900px;
  }

  main .home > .newsletter-block {
    float: right;
    width: 30%;
    min-width: 220px;
    margin-left: 2em;
    margin-bottom: 1em;
    overflow: hidden;
  }
}

.newsletter-block__title {
  margin-top: 0;
  margin-bottom: 0.75em;
  font-size: 1.25rem;
}

.newsletter-block__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em;
}

.newsletter-block__input {
  flex: 1;
  min-width: 12em;
  padding: 0.5em 0.75em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.newsletter-block__submit {
  padding: 0.5em 1em;
  border: none;
  border-radius: 4px;
  background: #71C815;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Post navigation links */
.post_navi {
  display: flex;
}

.post_navi-label {
  font-size: 0.8em;
  opacity: 0.5;
}

.post_navi .post_navi-item {
  padding: 0 2.2em;
  width: 50%;
  position: relative;
  color: inherit !important;
}

.post_navi .nav_prev {
  text-align: left;
}

.post_navi .nav_next {
  text-align: right;
}

.post_navi .nav_prev .post_navi-arrow {
  left: 0;
}

.post_navi .nav_next .post_navi-arrow {
  right: 0;
}


/* Header */
.site-header {
  border: none;
  padding-top: 2em;
  font-weight: 900;
  padding-bottom: 2em;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
  z-index: 1;
}

.site-header::before {
  content: '';
  background: #71C815;
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  clip-path: polygon(0 0, 100% 0%, 100% calc(100% - 80px), 50% 100%, 0 calc(100% - 80px));
}

.site-header::after {
  content: ''; 
  background: #000;
  position: absolute;
  top: -9px;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  clip-path: polygon(0 0, 100% 0%, 100% calc(100% - 80px), 50% 100%, 0 calc(100% - 80px));
  box-shadow: inset 10px 10px 10px #000;
}

header.site-header {
  position: relative;
  overflow: visible !important;
}


.site-header a {
  text-decoration: none;
}

.site-title-block {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-title {
  font-family: 'Sketch Serif', serif;
  font-size: 2rem;
  color: #fff;
  text-decoration: none;
  z-index: 1;
}

.site-title img {
  display: none;
}

.site-subtitle {
  font-family: 'Sketch Serif', serif;
  margin: -0.75em 0 0;
  font-size: 1rem;
  color: #000;
  opacity: 0.95;
  font-weight: normal;
}

/* Footer */
.footer-heading img {
  max-width: 40px;
}

.site-footer {
  background: #71C815;
  padding-top: 2em;
  padding-bottom: 2em;
  clip-path: polygon(0 40px, 50% 0%, 100% 40px, 100% 100%, 0 100%);
}

.footer-heading {
  font-family: 'Sketch Serif', serif;
  text-align: center;
}

.contact-list,
.footer-col {
  color: #000;
}

/* -------- sendinblue ----------- */
div#sib-container {
  padding: 0;
}
div.sib-form-block {
  padding: 0;
}
div.sib-form {
  padding: 16px;
}

#sib-form > div {
  padding: 0 !important;
}
div.sib-form-block p {
  font-family: 'Sketch Serif', serif;
  font-weight: 300;
  font-size: 2rem;
  line-height: 1;
}