/* monkinetic.css */

:root {
  --grey: #e3e6f3;
  --grey2: #e9ecfa;
  --grey3: #d9dcea;
  --midgrey: #b4b6c2;
  --blue: #0000ff;
  --purple: #860a5c;
  --red: #d60a59;
  --white: ##fff;
  --missing-img-w: calc(201px / 5);
  --missing-img-h: calc(265px / 5);
}

@font-face {
  font-family: "Roboto Variable";
  src: url("/static/monkinetic/fonts/Roboto-VariableFont_wdth,wght.ttf")
    format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Domine";
  src: url("/static/monkinetic/fonts/Domine-VariableFont_wght.ttf")
    format("truetype");
  font-display: swap;
}

.wrapper {
  display: grid;

  /* mobile first */
  grid-template-columns: 1fr;
  grid-template-areas:
    "header"
    "main"
    "sidebar"
    "footer";

  box-sizing: border-box;
  width: 90%;
  max-width: 960px;
  min-height: 100vh;
  gap: 1rem;

  margin: 1rem auto;
  .header {
    .more-nav {
      display: inline;
    }
  }

  .header {
    grid-area: header;

    .more-nav {
      display: none;
    }
  }

  .monkinetic-header {
    h1 {
      font-size: 2.4rem;
      margin-top: 0.5rem;
    }
  }

  .sidebar {
    grid-area: sidebar;
    box-sizing: border-box;
  }

  .content {
    grid-area: main;
    box-sizing: border-box;
  }

  font-size: 16pt;
}

@media screen and (width > 480px) {
  .wrapper {
    grid-template-areas:
      "header header"
      "sidebar main"
      "footer footer";

    .header {
      .more-nav {
        display: inline;
      }
    }
    .monkinetic-header {
      h1 {
        font-size: 4.4rem;
      }
    }
    font-size: 12pt;
  }
}

@media screen and (width > 480px) and (width < 960) {
  .wrapper {
    /* mobile -> medium */
    grid-template-columns: 6rem 1fr;
  }
}

@media screen and (width > 960px) {
  .wrapper {
    /* larger than mobile */
    grid-template-columns: 10rem 1fr;
  }
}

.sidebar {
  nav {
    margin-bottom: 1.5rem;
    & > ul {
      padding-left: 0;
    }
    & > ul > li {
      list-style-type: none;
      font-size: 90%;
      margin-left: 0;
      margin-bottom: 0.25rem;
    }
    li.active {
      font-weight: 450;
    }
  }
}

body {
  font-family: "Domine", Times, serif;
  font-variation-settings: "wght" 275;
  background-color: var(--grey);
  background-size: contain;
  font-size: 12pt;

  margin: 0;
  padding: 0;
  a {
    font-variation-settings: "wght" 850;
  }
}

h1,
h2,
h3 {
  font-family: "Roboto Variable";
  font-variation-settings: "wght" 750, "wdth" 100;
  color: var(--blue);
  a {
    color: var(--blue);
  }
}
h4 {
  font-variation-settings: "wght" 850;
}

.monkinetic-header {
  h1 {
    font-size: 4.4rem;
    margin-top: 1rem;
    margin-bottom: 0;
    color: var(--midgrey);
    a {
      color: var(--midgrey);
      &:visited {
        color: var(--midgrey);
      }

      &:active {
        color: var(--midgrey);
      }
      text-decoration: none;
    }
  }
  h4 {
    margin-left: 0.25rem;
    margin-top: 0;
    margin-bottom: 2rem;
  }
}

h2 {
  font-size: 1.6rem;
  margin-top: 0.7rem;
}

h3 {
  font-size: 1.2rem;
  margin-top: 0.2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: bold;
  a {
    color: var(--blue);
    &:visited {
      color: var(--blue);
    }

    &:active {
      color: var(--blue);
    }
    text-decoration: none;
  }
}

a {
  color: var(--red);
  &:visited {
    color: var(--purple);
  }

  &:active {
    color: var(--red);
  }
}

hr {
  height: 0.6rem;
  background-color: #000;
  opacity: 0.12;
  margin-top: 0rem;
  margin-bottom: 2rem;
}

img {
  -webkit-transition: background-image 2s;
  transition: background-image 1s;

  background-image: url("/static/monkinetic/images/broken_image_netscape.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: var(--missing-img-w);
  min-width: var(--missing-img-w);
  max-width: 100%;
  min-height: var(--missing-img-h);
  border: none;
}

blockquote {
  margin-left: 0rem;
  padding-left: 1rem;
  border-left: 3px solid var(--midgrey);
  border-opacity: 0.12;
  margin-top: 0rem;
  margin-bottom: 2rem;
}

.meta {
  font-size: 90%;
}

.post-via {
  margin-top: 1rem;
  font-size: 90%;
  font-style: italic;
}

img.right-20 {
  float: right;
  width: 20%;
  margin: 1rem 0 1rem 1rem;
}

img.left-20 {
  float: left;
  width: 20%;
  margin: 1rem 1rem 0 1rem;
}

img.center-top-100,
img.center-bottom-100 {
  width: 100%;
  margin: 1rem 0;
}

blockquote:has(+ p) {
  margin-bottom: 1rem;
}
blockquote + p {
  margin-bottom: 2rem;
}

.table-form-head {
  border: 2px solid #333;

  /* width: 100%; */
  padding: 0.5rem;
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-family: monospace;
  font-weight: 600;
  text-transform: uppercase;
}

.table-form-foot {
  border: 2px solid #333;
  /* border-top: none; */

  /* width: 100%; */
  padding: 0.5rem;
  margin-top: 0.25rem;
  font-family: monospace;
  font-weight: 300;
  font-size: smaller;
  text-transform: uppercase;
  text-align: right;

  button {
    background: none;
    font-family: inherit;
    text-transform: inherit;
  }
}

table.post-form {
  border: 5px double #333;
  width: 100%;
  font-family: monospace;
  font-weight: 300;
  text-transform: uppercase;

  label {
    font-size: smaller;
  }
  th {
    width: 8em;
  }

  th,
  td {
    border-right: 1px solid #333;
    border-bottom: 2px solid #333;
  }

  tr:last-child th,
  tr:last-child td {
    border-bottom: none;
  }

  th,
  td {
    text-align: left;
    vertical-align: top;
    padding: 0.25rem;
  }

  input,
  select,
  textarea {
    width: 99%;
    background-color: var(--grey2);
    border: none;
    padding: -0.25rem;
    font-family: inherit;
    font-size: smaller;
    &:focus {
      outline-width: 0;
      outline: none;

      background-color: var(--grey3);
    }
  }
  input::placeholder,
  textarea::placeholder {
    opacity: 0.6;
  }
}

p.pagination {
  font-family: "Roboto Variable";
  font-variation-settings: "wght" 450, "wdth" 100;
  a {
    text-decoration: none;
  }
}

/* .warning-banner {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 1rem 1.5rem;

  font-family: "Roboto Variable";
  font-variation-settings: "wght" 375;

  background-color: #c74f19;
  color: #fff;
} */
