/*!
 * Copyright 2023 Elizabeth A. Denys
 */

@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400;0,700;1,400;1,700&family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,700;1,400;1,500;1,700&display=swap');

body {
  color: #000;

  font: normal 1em "Helvetica Neue", HelveticaNeue, "TeX Gyre Heros",
                   TeXGyreHeros, FreeSans, "Nimbus Sans L",
                   "Liberation Sans", Arimo, Helvetica, Arial, sans-serif;
  line-height: 1.75;

  /* #909ea8 is a tint of #536878 payne's grey */
  background-color: #f4f4f4;
  background-image:  linear-gradient(#909ea8 1px, transparent 1px), linear-gradient(90deg, #909ea8 1px, transparent 1px), linear-gradient(#909ea8 0.5px, transparent 0.5px), linear-gradient(90deg, #909ea8 0.5px, #f4f4f4 0.5px);
  background-size: 5em 5em, 5em 5em, 1em 1em, 1em 1em;
  background-position: -1px -1px, -1px -1px, -0.5px -0.5px, -0.5px -0.5px;
  background-attachment: fixed;

  text-align: left;
}

a:link {
  color: #800022;
  text-decoration: underline;
}

a:visited {
  color: #5a0e5a;
  text-decoration: underline;
}

a:hover {
  color: #5f4cff;

  text-decoration: none;
}

h1 {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; /* added line */

  color: #000;
  font-size: 3.6em;
  font-weight: 500;
  line-height: normal;

  margin: 0;
  padding: 0;
}

h1 a:link {
  color: #000;
  text-decoration: none;
}

h1 a:visited {
  color: #000;
}

h1 a:hover {
  color: #20d1c3;
}

#menu {
  color: #5a0e5a;

  font-family: "IBM Plex Mono", "Lucida Console", monospace;
  font-size: 1.6em;
  font-weight: bold;
  text-transform: lowercase;

  line-height: 1.6em;
  text-align: center;

  margin: 0;
  padding: 0;
}

#menu a:link {
  color: #5a0e5a;
  text-decoration: none;
}

#menu a:visited {
  color: #5a0e5a;
}

#menu a:hover {
  color: #f71735;
}

.menu-item {
  display: inline-block;
}

h2 {
  font-family: "IBM Plex Mono", "Lucida Console", monospace;
  font-size: 1.8em;
  font-weight: 500;
  line-height: normal;

  margin: 0;
  padding: 0;
}

h2 a:link {
  color: #000;
  text-decoration: none;
}

h2 a:visited {
  color: #000;
}

h2 a:hover {
  color: #20d1c3;
}

h3 {
  color: #000;
  font-size: 1.5em;
  font-weight: bold;
  font-style: italic;
  line-height: 1.5em;

  margin: 0;
  padding: 0;
}

h3 a:link {
  color: #000;
  text-decoration: none;
}

h3 a:visited {
  color: #000;
}

h3 a:hover {
  color: #20d1c3;
}

h4 {
  color: #000;
  font-size: 1.3em;
  font-weight: bold;
  line-height: 1.3em;

  margin: 0;
  padding: 0;
}

h4 a:link {
  color: #000;
}

h4 a:visited {
  color: #000;
}

h4 a:hover {
  color: #20d1c3;
}

h5 {
  color: #000;
  font-size: 1.1em;
  font-weight: bold;
  line-height: 1.1em;

  margin: 0;
  padding: 0;
}

h5 a:link {
  color: #000;
}

h5 a:visited {
  color: #000;
}

h5 a:hover {
  color: #20d1c3;
}

p {
  margin: 1em 0 1em 0;
}

blockquote {
  margin: 1em;
  border-left: 4px solid #ddd;
  padding: 0 0.5em;
  text-align: justify;
}

pre {
  overflow-x: auto;
}

li {
  padding: 0 0 0.4em 0;
}

sup {
  line-height: 0;
}

small {
  font-size: 0.8em;
}

address {
  font-style: normal;
}

img {
  margin: auto;
  max-width: 100%;
}

img.center {
  display: block;
  margin: auto;
}

img.latex-inline {
  margin: auto;
}

figure {
  margin: 0.5em 0;
}

figure img {
  margin: 0;
}

figcaption {
  font-size: 0.8em;

  margin: auto;
  max-width: 100%;
}

::-moz-selection { /* Code for Firefox */
  color: #000;
  background: #feb; /* sticky note pale yellow */
}

::selection {
  color: #000;
  background: #feb; /* sticky note pale yellow */
}

.image-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.image-column {
  flex: 1; /* this weight applies both items in the row, so they will be the same size */
  padding: 0 0.5em;
}

.image-column:first-child {
  padding: 0 0.5em 0 0;
}

.image-column:last-child {
  padding: 0 0 0 0.5em;
}

.tt {
  font-family: "IBM Plex Mono", "Lucida Console", monospace;
}

.code {
  font-family: "IBM Plex Mono", "Lucida Console", monospace;
}

.strike {
  text-decoration: line-through;
}

table {
  border-collapse: collapse;
  border: 0;
  width: calc(100% - 2em);
  margin: 0 1em;
}

td, th {
  border: 1px solid #DCDCDB;
  padding: 0.5em;
}

#wrap {
  padding: 0;
  margin: 1em 0;
}

#inner-wrap {
  width: 90%;
  margin: auto;
  position:relative;
  padding: 0 0 1em 0;
}

.container {
  box-shadow: 0.4em 0.4em 0.8em 0 #aaa;

  margin: 1em auto;
}

#header {
}

#logo {
  color: #000;
  background: #feb; /* sticky note pale yellow */
  padding: 1em;
}

.section {
  color: #000;
  background: #fff;

  padding: 2.2em 1em 1em 1em;
}

.section:before {
  display: block;
  position: absolute;
  margin: -1em 0 0 -1em;
  padding: 0;
  height: 0;
  width: 100%;

  content: '';
  color: #000;
  border-bottom: 0.3em solid #000;
}

.center {
  text-align: center;
}

#footer {
  text-align: center;
  margin: 1em auto auto 1em;
}

#about {
  font-family: "IBM Plex Mono", "Lucida Console", monospace;
  font-size: 0.8em;
  margin: 1em auto;
}

#site-title {
}

.entry-title {
}

.entry-content {
  clear: both;
}

.continue {
  float: right;
  min-width: 30%;
  text-align: right;
}

.date-header {
  font-size: 0.8em;
  font-weight: bold;
  color: #0b5233;
  text-transform: uppercase;

  display: flex;
  align-items: center;

  margin: 0.2em 0;
  padding: 0;
}

.date-header:before {
    content: "";
    height: 1px;
    width: 35px;
    background: #0b5233;
    margin: 0 0.5em 0 0;
}

.date-header a:link {
  color: #0b5233;
  text-decoration: none;
}

.date-header a:visited {
  color: #0b5233;
}

.date-header a:hover {
  color: #cdd400;
}

/**
 * Accessible footnotes advice from https://www.sitepoint.com/accessible-footnotes-css/
 * Taken with attribution and modified
 */

.footnotes {
  font-size: smaller;

  border-top: 1px solid #888;
}

.footnotes ol {
  padding-left: 1em;
}

.footnotes h3 {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; /* added line */
}

.footnotes blockquote {
  margin: 1em;
  border-left: 2px solid #888;
  padding: 0 0.5em;
  text-align: justify;
}

/**
 * Initialiazing a `footnotes` counter on the wrapper
 */
article {
  counter-reset: footnotes;
}

/**
 * Inline footnotes references
 * 1. Increment the counter at each new reference
 * 2. Reset link styles to make it appear like regular text
 */
a[aria-describedby^="footnote-label"] {
  counter-increment: footnotes; /* 1 */
  text-decoration: none; /* 2 */
  color: inherit; /* 2 */
  cursor: default; /* 2 */
  outline: none; /* 2 */
}

/**
 * Actual numbered references
 * 1. Display the current state of the counter (e.g. `[1]`)
 * 2. Align text as superscript
 * 3. Make the number smaller (since it's superscript)
 * 4. Slightly offset the number from the text
 * 5. Reset link styles on the number to show it's usable
 */
a[aria-describedby^="footnote-label"]::after {
  content: '[' counter(footnotes) ']'; /* 1 */
  vertical-align: super; /* 2 */
  font-size: smaller; /* 3 */
  margin-left: 0.1em; /* 4 */
  color: #00f; /* 5 */
  text-decoration: underline; /* 5 */
  cursor: pointer; /* 5 */

  /* fix the line height issues */
  vertical-align: baseline;
  position: relative;
  top: -0.4em;
}

/**
 * Hover should look like other links
 */

a[aria-describedby^="footnote-label"]:hover::after {
  color: #5f4cff;
  text-decoration: none;
}

/**
 * Resetting the default focused styles on the number
 */
a[aria-describedby^="footnote-label"]:focus::after {
  outline: thin dotted;
  outline-offset: 0.2em;
}

/**
 * Highlight active footnote
 */
footer :target {
  background: #ffeda5;
}

/**
 * Nice link to get from footnotes back into the main article
 */
a[aria-label="Back to content"] {
  font-size: smaller;
  margin-left: 0.2em;
  color: #00f!important;
}

a[aria-label="Back to content"]:hover {
  font-size: smaller;
  margin-left: 0.2em;
  color: #5f4cff!important;
}

.acknowledgements {
  font-size: smaller;
  font-style: italic;

  margin: 1.6em 0 1em 0;
  padding: 0;
}

.acknowledgements h3 {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; /* added line */
}

.post-info {
  font-size: smaller;

  border-top: 1px solid #888;
  margin: 1.6em 0 1em 0;
  padding: 0;
}

.post-info h3 {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; /* added line */
}

#pagination {
  font-family: "IBM Plex Mono", "Lucida Console", monospace;
  font-weight: bold;
}

.podinfo {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin: 1em 0;
}

.podinfo-art {
  max-width: calc(30% - 1em);
  width: 200px;
  height: auto;

  margin: 0 1em 0 0;

  display: block;
  flex: none;
}

.podinfo-text {
  min-width: 70%;
}

.podinfo-text h3 {
  color: #800022;

  font-style: normal;
  font-weight: normal;
}

.podinfo-text h3 a:link {
  color: #800022;
  text-decoration: underline;
}

.podinfo-text h3 a:visited {
  color: #5a0e5a;
  text-decoration: underline;
}

.podinfo-text h3 a:hover {
  text-decoration: none;
}

.album-responsivefloat {
  max-width: 30%;
  width: 180px;
}

@media (min-width: 600px) {
  .album-responsivefloat {
    float: right;
  }
}

img.no-margin {
  margin: auto;
  max-width: 100%;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; /* added line */
}
/* multi-image sliding navigation */

.slider {
}

.slide {
  display:none;

  width:100%;
}

.slider-navigation {
  text-align: center!important;
  width: 100%;
  margin-top: 1em!important;
  margin-bottom: 1em!important;
}

.nav-arrow {
  font-size: 1.2em;
  font-weight: bold;
  color: #000;

  cursor: pointer;
}

.nav-arrow:hover {
  color: #800022;
}

.nav-left {
  float: left!important;
  padding-left: 0!important;
}

.nav-right {
  float: right!important;
  padding-right: 0!important;
}

.nav-button {
  background-color: transparent;
  color: #fff;
  text-decoration: none!important;

  border-radius: 50%;
  border: 0.1em solid #000;

  text-align: center;
  vertical-align: middle;

  width: 1em;
  height: 1em;

  display: inline-block;
  outline: 0;
  padding: 0;

  overflow: hidden;
  white-space: nowrap;
}

.nav-button:hover {
  background-color: #800022;
}

.nav-selected {
  color: #000!important;
  background-color: #800022!important;
}

/* blanket preview tool */
.library-blanket-yarn, .side-street-blanket-yarn, .mitered-corner-blanket-yarn {
  display: flex;
  flex-direction: column;
  align-items: stretch;

  padding-bottom: 1em;
}

@media (min-width: 880px) {
  .library-blanket-yarn, .side-street-blanket-yarn, .mitered-corner-blanket-yarn {
    flex-direction: row;
    padding-bottom: 0;
  }
}

.library-blanket-yarn-item, .side-street-blanket-yarn-item, .mitered-corner-blanket-yarn-item {
  padding: 0 0.5em 0.5em 0;
}

.yarn-name-label {
  min-width: 4em;
}

.yarn-name-textfield {
  min-width: 20em;
}

#library-blanket-canvas-wrap, #side-street-blanket-canvas-wrap, #mitered-corner-blanket-canvas-wrap {
  overflow-x: auto;
}

/* dynamic sizing */

@media (min-width: 1167px) {
  #inner-wrap {
    width: 1050px;
  }
}

@media (max-width: 500px) {
  .podinfo {
    flex-direction: column;
  }
  .podinfo-art {
    max-width: 100%;
  }
  .image-row {
    flex-direction: column;
  }

  .image-column {
    padding: 0.5em 0;
  }

  .image-column:first-child {
    padding: 0 0 0.5em 0;
  }

  .image-column:last-child {
    padding: 0.5em 0 0 0;
  }
}

@media (max-width: 23.0625em) {
  .menu-item {
    display: block;
  }
}
