@import url("https://fonts.googleapis.com/css2?family=Abhaya+Libre&display=swap");

html {
  --palette-background: #ffffff;
  --palette-primary: #02a6a4;
  --palette-secondary: rgba(0, 0, 0, 0.12);
  --palette-tertiary: #fd7520;
  --palette-text-primary: rgba(0, 0, 0, 0.8);
  --palette-text-blockquote: rgba(0, 0, 0, 0.53);
  --transition-duration: 0.5s;
  --hover-opacity: 0.6;
  --font-mono: ui-monospace, "SFMono-Regular", "SF Mono", "Menlo", "Consolas", "Liberation Mono", monospace;
  --font-header: "Abhaya Libre", serif;

  font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto",
    "Helvetica", "Arial", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol";
  box-sizing: border-box;
}

@media (prefers-color-scheme: dark) {
  html {
    --palette-background: #1a1a1a;
    --palette-primary: #00c2c0;
    --palette-tertiary: #fdb913;
    --palette-secondary: rgba(255, 255, 255, 0.12);
    --palette-text-primary: rgba(255, 255, 255, 0.8);
    --palette-text-blockquote: rgba(255, 255, 255, 0.53);
  }
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  background-color: var(--palette-background);
  color: var(--palette-text-primary);
  /* overflow-x: hidden; */
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-duration) ease;
}

a:hover {
  opacity: var(--hover-opacity);
}

a[rel="tag"],
a[rel="prev"],
a[rel="next"] {
  border: dotted 1px currentColor;
  padding: 4px;
  margin: 0 8px 8px 0;
  display: inline-block;
  text-transform: uppercase;
  font-size: small;
}

h1 {
  font-family: var(--font-header);
  font-weight: normal;
  font-size: 2.5em;
  text-align: center;
  overflow-wrap: break-word;
}

h2 {
  color: var(--palette-primary);
  font-weight: normal;
  font-size: 1.33em;
}

ul,
ol {
  padding-left: 1.5em;
}

time {
  display: block;
  font-size: 0.83em;
  text-align: center;
}

svg {
  fill: currentColor;
}

.root {
  margin: 0 auto;
  max-width: 800px;
  padding: 5rem 1rem 0;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--palette-background);
}

.header > div {
    height: 4rem;
    max-width: calc(800px - 2rem);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: solid 2px var(--palette-tertiary);
  }

@media screen and (max-width: 799px) {

.header > div {
      padding: 0 1rem
  }
    }

@media screen and (max-width: 479px) {

.header > div {
      height: 3.5rem
  }
    }

.header-logo {
  font-family: var(--font-mono);
  font-size: calc(3rem - 8px);
  color: var(--palette-text-blockquote);
}

.header-logo span {
    color: var(--palette-primary);
  }

.header-logo svg {
    height: calc(3rem - 8px);
    color: var(--palette-primary);
  }

.header-menu {
  margin-right: -10px;
}

.header-menu ul {
    display: flex;
    list-style: none;
    font-size: 1.1rem;
    padding: 0;
    margin: 0;
  }

.header-menu a {
    display: inline-block;
    padding: 10px;
  }

.post-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.post-card {
  flex-basis: 100%;
  position: relative;
  padding-bottom: 1em;
}

.post-card:nth-of-type(n + 2) {
    padding-top: 2em;
  }

.post-card:nth-of-type(n + 2)::before {
      content: "";
      position: absolute;
      top: 0;
      left: calc(50% - 2em);
      width: 4em;
      height: 3px;
      background-color: var(--palette-primary);
    }

@media screen and (max-width: 479px) {

@media not (max-color:2147477350) {

.post-card {
    flex-basis: 48%
}

    .post-card:nth-of-type(2) {
      padding-top: 0;
    }

      .post-card:nth-of-type(2)::before {
        content: none;
      }
  }
  }

@media not screen,not all and (max-width: 479px) {

@media not (color:2147477350) {

.post-card {
    flex-basis: 48%
}

    .post-card:nth-of-type(2) {
      padding-top: 0;
    }

      .post-card:nth-of-type(2)::before {
        content: none;
      }
  }
  }

.post-card a {
    display: block;
  }

.post-card .post-thumb {
    position: relative;
  }

.post-card .post-thumb > div {
      width: 100%;
      padding-bottom: 100%;
    }

.post-card .post-thumb > div + img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

.post-card h1 {
    font-size: 1.89em;
  }

.post-card time {
    font-weight: 300;
    margin-top: -1em;
  }

.post-card p {
    font-weight: 300;
  }

.pagination > ul {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding-left: 0;
  }

.post-header {
  margin-bottom: 2em;
}

.markdown-content {
  line-height: 1.625;
  hyphens: auto;
}

.markdown-content p {
    text-align: justify;
  }

.markdown-content a {
    color: var(--palette-primary);
  }

.markdown-content a:hover,
    .markdown-content a:active {
      opacity: 1;
      text-decoration: underline;
    }

.markdown-content blockquote {
    margin: 0 0 1rem;
    border-left: 4px solid var(--palette-secondary);
    padding-left: 0.8rem;
    color: var(--palette-text-blockquote);
  }

.markdown-content img {
    max-width: 100%;
    margin: 0 auto;
    display: block;
  }

@media screen and (max-width: 799px) {

.markdown-content img {
      max-width: none;
      width: calc(100% + 2rem) !important;
      margin: 0 -1rem !important
  }
    }

.markdown-content img + em,
  .markdown-content span[class*="image"] + em {
    display: block;
    text-align: center;
  }

.markdown-content iframe {
    max-width: 100%;
  }

.recipe-container {
  background-color: var(--palette-secondary);
  padding: 0 1rem 1rem;
}

@media screen and (max-width: 799px) {

.recipe-container {
    margin: 0 -1rem
}
  }

.recipe-container img {
    max-width: none;
    width: calc(100% + 2rem) !important;
    margin: 0 -1rem !important;
  }

.recipe-container h2 {
    text-transform: uppercase;
    font-weight: bold;
  }

.recipe-container h4 {
    border-bottom: 1px solid var(--palette-primary);
    text-transform: uppercase;
    font-size: 0.83em;
  }

.recipe-container ul {
    list-style-type: square;
  }

.recipe-container ul > li::marker {
      color: var(--palette-primary);
    }

.recipe-container ol > li {
    margin-bottom: 0.5em;
  }

.recipe-container ol > li::marker {
      color: var(--palette-primary);
      font-weight: bold;
    }

.recipe-container .ingredient-label,
  .recipe-container .instruction-label {
    display: block;
    margin-left: -1.2em;
    font-weight: bold;
  }

.recipe-container .recipe-notes {
    font-style: italic;
    text-align: right;
  }

.recipe-container .recipe-yield {
    margin-top: -1em;
    font-style: italic;
  }

.post-labels > ul {
    list-style: none;
    display: inline-block;
    padding-left: 0;
  }

.post-labels > ul > li {
      display: inline;
    }

.share-buttons {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 0;
}

.share-buttons > li {
    margin-left: 0.5em;
    margin-right: 0.5em;
  }

.share-buttons svg {
    width: 1.25em;
    vertical-align: bottom;
  }

.related-posts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  border-top: 1px solid var(--palette-secondary);
  margin-top: 3em;
  margin-bottom: 2em;
}

.related-posts > h2 {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 1.5em;
  }

.comments iframe {
    width: 100% !important;
  }

.recipe-index {
  column-width: 17em;
}

.recipe-index > div {
    break-inside: avoid;
  }

.recipe-index a:hover,
  .recipe-index a:active {
    opacity: 1;
    text-decoration: underline;
  }

.recipe-index h2 {
    margin: 0;
    font-size: 1.2em;
  }

.recipe-index ul {
    margin: 0.2em 0 1.5em;
  }

.recipe-index ul > li {
      line-height: 1.625;
    }

.footer {
  margin-top: 2rem;
  padding: 2rem 1rem 6rem;
  background-color: var(--palette-secondary);
  text-align: center;
}

@media screen and (max-width: 799px) {

.footer {
    margin-left: -1rem;
    margin-right: -1rem
}
  }

.footer a {
    color: var(--palette-primary);
  }

.footer .socialIcons {
    justify-content: center;
    margin-bottom: 1rem;
    display: flex;
  }

.footer .socialIcons > a {
      color: inherit;
      margin: 0 14px;
      padding: 10px 5px;
    }

.footer .socialIcons svg {
      width: 1.5em;
    }
