@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  src: url("./fonts/montserrat-v31-latin-regular.woff2") format("woff2");
}

:root {
  --cp-bg: #f6f1e8;
  --cp-text: #2b2118;
  --cp-1: #efe4d3;
  --cp-2: #8a5a34;
  --cp-3: #6f6255;
  --box-shadow-1: 0 0 10px rgba(43, 33, 24, 0.08);
  --container-width: 768px;
  --font-family: "Montserrat", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--cp-bg);
  color: var(--cp-text);
  line-height: 1.7;
  font-size: 0.858rem;
  font-family: var(--font-family);
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  @media (min-width: 768px) {
    font-size: 0.9rem;
  }
}

/* HEADER START */
#hrx-header {
  padding-top: 1rem;
  padding-bottom: 1rem;
  .container {
    .hrx-top {
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      line-height: 1.2;

      h2 {
        font-size: 1.2rem;
        margin: 4px 0;
      }
      p {
        font-size: 0.9rem;
        margin: 0;
      }
    }
  }
}
/* HEADER END */

/* Header menu start */
#hrx-header-menu {
  background-color: var(--cp-2);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  .container {
    display: flex;
    justify-content: flex-end;

    #hrx-nav {
      position: fixed;
      top: 0;
      left: 0;
      width: calc(100% - 3rem);
      height: 100vh;
      background-color: var(--cp-2);
      z-index: 999;
      padding: 1rem;
      transform: translateX(-100%);
      transition: all 0.3s ease;

      @media (min-width: 1024px) {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: auto;
        background-color: transparent;
        z-index: 999;
        padding: 0;
        transform: translateX(0);
        transition: all 0.3s ease;
      }

      &.active {
        transform: translateX(0);
      }

      ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        @media (min-width: 1024px) {
          flex-direction: row;
          justify-content: center;
          gap: 3rem;
        }
        li {
          a {
            color: var(--cp-bg);
          }
        }
      }
    }
    button.hrx-bars {
      position: relative;
      width: 23px;
      height: 19px;
      transition: all 0.3s ease;

      @media (min-width: 1024px) {
        display: none;
      }

      .hrx-bar {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background-color: var(--cp-bg);
        transition: all 0.3s ease;

        &:nth-child(1) {
          top: 0;
        }
        &:nth-child(2) {
          top: 50%;
          transform: translateY(-50%);
        }
        &:nth-child(3) {
          bottom: 0;
        }
      }

      &.active {
        .hrx-bar {
          &:nth-child(1) {
            transform: rotate(45deg);
            top: 50%;
          }
          &:nth-child(2) {
            opacity: 0;
          }
          &:nth-child(3) {
            transform: rotate(-45deg);
            bottom: 50%;
          }
        }
      }
    }
  }
}

/* header menu end */

/* the single start */
#hrx-the-single {
  .container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    header {
      h1 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
      }
      .post-meta {
        font-size: 0.78rem;
        color: var(--cp-3);
      }
    }
    .fim {
      max-width: 100%;
      img {
        display: block;
        height: auto;
        max-width: 100%;
      }
    }

    article#hrx-the-content {
      blockquote {
        border-left: 4px solid var(--cp-2);
        padding-left: 1rem;
        margin-left: 0;
        margin-right: 0;
        color: var(--cp-3);
      }
      ol,
      ul {
        padding-left: 1rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
      }
      table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        border-collapse: collapse;
        -webkit-overflow-scrolling: touch;
        background-color: #fff;
        box-shadow: var(--box-shadow-1);
      }
      caption {
        padding: 0.85rem 1rem;
        font-weight: 700;
        text-align: left;
      }
      thead {
        background-color: var(--cp-2);
        color: var(--cp-bg);
      }
      tbody {
        background-color: #fff;
      }
      tr:nth-child(even) {
        background-color: var(--cp-1);
      }
      th,
      td {
        min-width: 140px;
        padding: 0.75rem 0.9rem;
        border: 1px solid rgba(111, 98, 85, 0.2);
        text-align: left;
        vertical-align: top;
        white-space: nowrap;
      }
      @media (min-width: 768px) {
        table {
          display: table;
          overflow-x: visible;
        }
        th,
        td {
          white-space: normal;
        }
      }
    }
  }
}
/* the single end */
