/*
Theme Name: Jon Christopher
Author: Jon Christopher
*/

@font-face {
  font-family: 'archivo';
  src: url('assets/fonts/archivoblack-regular-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'nunitosans';
  src: url('assets/fonts/NunitoSans10pt-Medium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'nunitosansitalic';
  src: url('assets/fonts/NunitoSans10pt-MediumItalic.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'nunitosansbold';
  src: url('assets/fonts/NunitoSans10pt-Bold.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'nunitosansbolditalic';
  src: url('assets/fonts/NunitoSans10pt-BoldItalic.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
  --jchristopher-black: #424242;
  --jchristopher-offwhite: #fbf5eb;
  --jchristopher-accent: #0010ff;
  --jchristopher-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--jchristopher-black);
  color: var(--jchristopher-white);
  font-size: 18px;
  font-family: "nunitosans", sans-serif;
  font-weight: normal;
  font-style: normal;
}

em {
  font-family: "nunitosansitalic", sans-serif;
  font-weight: normal;
  font-style: normal;
}

strong {
  font-family: "nunitosansbold", sans-serif;
  font-weight: normal;
  font-style: normal;
}

em strong,
strong em {
  font-family: "nunitosansbolditalic", sans-serif;
  font-weight: normal;
  font-style: normal;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "archivo", sans-serif;
  font-weight: normal;
  font-style: normal;
  letter-spacing: -1px;
  line-height: 1.3;
  margin-top: 1em;
  margin-bottom: 0.7em;
}

h1 {
  font-size: 2.2em;
  line-height: 1.1;
}

h2 {
  font-size: 1.8em;
}

h3 {
  font-size: 1.6em;
}

h4 {
  font-size: 1.4em;
}

h5, h6 {
  font-size: 1.2em;
}

a {
  text-decoration: none;
  color: var(--jchristopher-accent);
}

a:hover {
  text-decoration: none;
  color: var(--jchristopher-accent);
  background: var(--jchristopher-white);
  box-shadow:
    0px 0px 0px 2px var(--jchristopher-white),
    2px 0px 0px 2px var(--jchristopher-white),
    -2px 0px 0px 2px var(--jchristopher-white),
    2px 0px 0px 4px var(--jchristopher-black),
    -2px 0px 0px 4px var(--jchristopher-black);
}

.site-header {
  color: var(--jchristopher-black);
  background-color: #ffe86e;
  background-image: url("data:image/svg+xml,%3Csvg width='84' height='48' viewBox='0 0 84 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h12v6H0V0zm28 8h12v6H28V8zm14-8h12v6H42V0zm14 0h12v6H56V0zm0 8h12v6H56V8zM42 8h12v6H42V8zm0 16h12v6H42v-6zm14-8h12v6H56v-6zm14 0h12v6H70v-6zm0-16h12v6H70V0zM28 32h12v6H28v-6zM14 16h12v6H14v-6zM0 24h12v6H0v-6zm0 8h12v6H0v-6zm14 0h12v6H14v-6zm14 8h12v6H28v-6zm-14 0h12v6H14v-6zm28 0h12v6H42v-6zm14-8h12v6H56v-6zm0-8h12v6H56v-6zm14 8h12v6H70v-6zm0 8h12v6H70v-6zM14 24h12v6H14v-6zm14-8h12v6H28v-6zM14 8h12v6H14V8zM0 8h12v6H0V8z' fill='%23f0da66' fill-opacity='0.3' fill-rule='evenodd'/%3E%3C/svg%3E");
  padding-bottom: 3em;
}

.site-header > .shim-v {
  padding-top: 2.5em;
}

.container {
  max-width: 46rem;
  margin: 0 auto;
  padding-right: 0.6em;
  padding-left: 0.6em;
}

.shim-v {
  padding-top: 3em;
  padding-bottom: 3em;
}

.avatar {
  display: block;
  width: 128px;
  height: 128px;
}

.avatar a {
  display: flex;
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.avatar img {
  border-radius: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.avatar a,
.avatar img {
  transition: all 200ms ease-in-out;
}

@keyframes jonchristopherrotate {
  from { transform: rotate( 0deg ); }
  to   { transform: rotate( 360deg ); }
}

.avatar a:hover {
  background: transparent;
  box-shadow: none;
  animation: jonchristopherrotate 60s linear infinite;
}

.avatar a:hover img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  border: 2px solid var(--jchristopher-black);
}

.overview {
  display: flex;
  gap: 1em;
}

.jonchristopher {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2em 0 0.75em 0;
}

.jonchristopher .avatar {
  order: 1;
}

.jonchristopher .bio {
  order: 2;
  padding-left: 1.7em;
}

.jonchristopher .bio h1 {
  margin: 0;
}

.jonchristopher .bio p {
  margin: 0;
}

.jonchristopher .bio p + p {
  font-size: 0.85em;
}

.jonchristopher .bio a {
  display: inline-flex;
  gap: 0.1em;
  align-items: center;
}

.jonchristopher .bio a span {
  display: inline-block;
}

.jonchristopher .bio svg {
  display: inline-block;
  width: 16px;
  height: 16px;
}

.for-hire {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23424242' fill-opacity='0.06' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
}

.for-hire.look-at-me {
  border-top: 0;
}

.for-hire p {
  margin: 0;
  text-align: center;
  line-height: 1.2;
}

.for-hire a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1em;
  font-size: 0.92em;
}

.for-hire a:hover {
  background: transparent;
  box-shadow: none;
}

.for-hire span,
.for-hire strong,
.for-hire svg {
  display: block;
}

.for-hire svg {
  width: 30px;
  height: 30px;
  margin: 0.5em auto 0;
}

.main-navigation {
  padding-bottom: 1.5em;
}

.navigation ul.nav-menu {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5em;
}

.navigation ul > li {
  padding-top: 0.4em;
}

.navigation ul > li > a {
  display: inline-flex;
  gap: 0.1em;
  align-items: center;
  padding: 0.1em 0.5em;
}

.navigation ul > li > a > span,
.navigation ul > li > a > svg {
  display: block;
}

.navigation ul > li > a > svg {
  width: 16px;
  height: 16px;
}

.navigation ul .current-menu-item a,
.navigation ul .current_page_parent a {
  font-family: 'nunitosansbold', sans-serif;
  padding-left: 0.15em;
}

.search form {
  display: flex;
  gap: 0.5em;
  align-items: center;
  justify-content: center;
}

.search label,
.search input.search-field {
  display: block;
}

.search input.search-field,
.site-content input[type="text"],
.site-content input[type="email"],
.site-content input[type="search"],
.site-content textarea {
  border: 0;
  margin: 0;
  padding: 0.25em 0.5em;
  line-height: 1;
  font-size: 1em;
  font-family: 'nunitosansbold', sans-serif;
}

.site-content .gform_button,
.site-content .gform_legacy_markup_wrapper .gf_step,
.site-content .gform_legacy_markup_wrapper .gform_footer input.button,
.site-content .gform_legacy_markup_wrapper .gform_footer input[type="image"],
.site-content .gform_legacy_markup_wrapper .gform_footer input[type="submit"],
.site-content .gform_wrapper.gravity-theme .gform_footer button,
.site-content .gform_wrapper.gravity-theme .gform_footer input,
.site-content .gform_wrapper.gravity-theme .gform_page_footer button,
.site-content .gform_wrapper.gravity-theme .gform_page_footer input {
  display: block;
  font-size: 1em;
  line-height: 1;
  padding: 0.5em 1.5em;
  background: var(--jchristopher-white);
  font-family: "nunitosansbold", sans-serif;
  cursor: pointer;
  border: 2px solid var(--jchristopher-black);
  box-shadow: 0 0 0 2px var(--jchristopher-white), 2px 2px 0px 2px var(--jchristopher-black);
  color: var(--jchristopher-black);
  border-radius: 0;
}

.site-content .gform_legacy_markup_wrapper .gf_step,
.site-content .gform_legacy_markup_wrapper .gform_footer input.button,
.site-content .gform_legacy_markup_wrapper .gform_footer input[type="image"],
.site-content .gform_legacy_markup_wrapper .gform_footer input[type="submit"] {
  padding: 0.25em 1em;
}

.site-content .gfield + .gfield {
  margin-top: 1.4em;
}

.search input.search-field {
  width: 14em;
}

.search input.search-field:focus,
.search input.search-field:focus-visible,
.site-content input[type="text"]:focus,
.site-content input[type="text"]:focus-visible,
.site-content input[type="email"]:focus,
.site-content input[type="email"]:focus-visible,
.site-content input[type="search"]:focus,
.site-content input[type="search"]:focus-visible,
.site-content textarea:focus,
.site-content textarea:focus-visible {
  border: 0;
  box-shadow: 0px 0px 0px 4px var(--jchristopher-white);
  outline: 2px solid var(--jchristopher-accent);
  border-radius: 0;
}

.search button {
  margin: 0;
  padding: 0;
  display: block;
  width: 38px;
  height: 38px;
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--jchristopher-black);
  cursor: pointer;
}

.search button:hover {
  color: var(--jchristopher-accent);
}

.search button svg {
  display: block;
  width: 28px;
  height: 28px;
}

.site {
  background-color: var(--jchristopher-offwhite);
  color: var(--jchristopher-black);
}

.site-footer {
  color: var(--jchristopher-white);
  position: relative;
  background-color: var(--jchristopher-black);;
  background-image: url("data:image/svg+xml,%3Csvg width='84' height='48' viewBox='0 0 84 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h12v6H0V0zm28 8h12v6H28V8zm14-8h12v6H42V0zm14 0h12v6H56V0zm0 8h12v6H56V8zM42 8h12v6H42V8zm0 16h12v6H42v-6zm14-8h12v6H56v-6zm14 0h12v6H70v-6zm0-16h12v6H70V0zM28 32h12v6H28v-6zM14 16h12v6H14v-6zM0 24h12v6H0v-6zm0 8h12v6H0v-6zm14 0h12v6H14v-6zm14 8h12v6H28v-6zm-14 0h12v6H14v-6zm28 0h12v6H42v-6zm14-8h12v6H56v-6zm0-8h12v6H56v-6zm14 8h12v6H70v-6zm0 8h12v6H70v-6zM14 24h12v6H14v-6zm14-8h12v6H28v-6zM14 8h12v6H14V8zM0 8h12v6H0V8z' fill='%234c4b4b' fill-opacity='0.5' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.site-footer::after {
  position: absolute;
  width: 100%;
  right: 0;
  left: 0;
  content: '';
  background: var(--jchristopher-black);
}

.site-footer::after {
  top: -4px;
  height: 2px;
}

.site-footer .container > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer .container > div p {
  margin: 0;
}

.site-footer .container p {
  line-height: 1.2;
}

.site-footer .container p span {
  font-size: 0.8em;
}

.site-footer .container svg {
  display: block;
}

/* .site-footer .container circle,
.site-footer .container path {
  fill: var(--jchristopher-white);
} */

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--jchristopher-white);
  padding: 0.5em;
  border-radius: 2px;
}

.site-footer a:hover {
  box-shadow: none;
  background: var(--jchristopher-white);
}

.site-footer a > svg:first-child {
  width: 30px;
  height: 30px;
}

.site-footer a > svg:last-child {
  width: 142px;
  height: 20px;
}

.hentry p {
  line-height: 1.4;
}

.site-content {
  position: relative;
}

.site-content::after {
  position: absolute;
  width: 100%;
  right: 0;
  left: 0;
  content: '';
  background: var(--jchristopher-offwhite);
}

.site-content::after {
  top: -4px;
  height: 2px;
}

/* This was for the other style links, but meh. */
/* .post-overview h2 > a {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
} */

.site-content > .container.shim-v > *:first-child,
.site-content > .container.shim-v > article > *:first-child {
  margin-top: 0;
}

.site-content > .container.shim-v > article > h1 {
  margin-bottom: 0;
}

.post-meta,
.post-overview {
  position: relative;
  border-bottom: 2px solid var(--jchristopher-black);
  padding-bottom: 1em;
  margin-bottom: 2em;
  margin-top: 0.8em;
}

.archive-title {
  padding-bottom: 2em;
}

.archive-title > * {
  margin: 0;
}

.post-overview h2 {
  font-size: 1.4em;
}

.post-meta::after,
.post-overview::after {
  display: block;
  position: absolute;
  bottom: -6px;
  left: calc( 0.4em - 2px );
  right: 0;
  content: '';
  height: 2px;
  background: var(--jchristopher-black)
}

.post-meta p {
  margin: 0;
}

.pagination {
  display: flex;
  gap: 0.4em;
  justify-content: center;
}

.pagination a {
  display: block;
}

.pagination a.prev.page-numbers,
.pagination a.next.page-numbers {
  display: flex;
  gap: 0.15em;
  align-items: center;
}

.pagination a.prev.page-numbers svg,
.pagination a.prev.page-numbers span,
.pagination a.next.page-numbers svg,
.pagination a.next.page-numbers span {
  display: block;
}

.pagination a.prev.page-numbers svg,
.pagination a.next.page-numbers svg {
  width: 16px;
  height: 16px;
}

.pagination a.prev.page-numbers {
  margin-right: auto;
}

.pagination a.next.page-numbers {
  margin-left: auto;
}

.pagination span.current.page-numbers {
  font-family: 'nunitosansbold', sans-serif;
}

.site-content a {
  text-decoration: none;
  /* background-color: transparent; */
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 2px;
  transition: background-size .3s;
}

.site-content a:hover {
  box-shadow: none;
  background-size: 100% 2px;
}

.hentry > figure {
  margin-top: 2em;
  margin-bottom: 2em;
}

/* .hentry figure img {
  display: block;
} */

.hentry > p > a:only-child:has(> img:only-child),
.hentry > p > a:only-child:has(> img:only-child) > img {
  display: block;
}

.hentry figure,
.hentry > .wp-block-image > figure {
  max-width: 100%;
}

.look-at-me,
.update,
.hentry > figure,
.hentry > .wp-block-image > figure,
.hentry > p > img,
.hentry > p > a:only-child:has(> img:only-child),
.ginput_container {
  position: relative;
  background-color: var(--jchristopher-offwhite);
  border: 2px solid var(--jchristopher-black);
  color: var(--jchristopher-black);
}

.look-at-me::before,
.look-at-me::after,
.update::before,
.update::after,
.hentry > figure::before,
.hentry > .wp-block-image > figure::before,
.hentry > figure::after,
.hentry > .wp-block-image > figure::after,
.hentry > p > img::before,
.hentry > p > img::after,
.hentry > p > a:only-child:has(> img:only-child)::before,
.hentry > p > a:only-child:has(> img:only-child)::after,
.ginput_container::before,
.ginput_container::after {
  display: block;
  content: '';
  position: absolute;
  background: var(--jchristopher-black);
}

.look-at-me::before,
.update::before,
.hentry > figure::before,
.hentry > .wp-block-image > figure::before,
.hentry > p > a:only-child:has(> img:only-child)::before,
.ginput_container::before {
  top: 0.4em;
  right: -6px;
  bottom: -6px;
  width: 2px;
}

.look-at-me::after,
.update::after,
.hentry > figure::after,
.hentry > .wp-block-image > figure::after,
.hentry > p > a:only-child:has(> img:only-child)::after,
.ginput_container::after {
  right: -6px;
  bottom: -6px;
  left: calc( 0.4em - 2px );
  height: 2px;
}

.wp-block-image figure,
.wp-block-image img,

/* Core sets this to display table which messes with our treatment. */
.site-content .wp-block-image .aligncenter,
.site-content .wp-block-image .alignleft,
.site-content .wp-block-image .alignright,
.site-content .wp-block-image.aligncenter,
.site-content .wp-block-image.alignleft,
.site-content .wp-block-image.alignright {
  display: inline-block;
}

/* These position the <figure> after undoing the display: table of the parent */
.site-content .wp-block-image:has(.aligncenter) {
  text-align: center;
}
.site-content .wp-block-image:has(.alignleft) {
  float: left;
  margin-right: 1em;
  margin-bottom: 1em;
}
.site-content .wp-block-image:has(.alignright) {
  float: right;
  margin-bottom: 1em;
  margin-left: 1em;
}

.site-content .hentry img.alignright {
  display: block;
  float: right;
  margin-bottom: 1em;
  margin-left: 1em;
}

.site-content .hentry img.alignleft {
  display: block;
  float: left;
  margin-right: 1em;
  margin-bottom: 1em;
}

.site-content .hentry p:has(>a:only-child>img:only-child) {
  position: static;
}

/* Looks to be Firefox-specific...
.hentry > .wp-block-image > figure::before {
  right: -4px;
  bottom: -4px;
}

.hentry > .wp-block-image > figure::after {
  right: -4px;
  bottom: -4px;
} */

.ginput_container {
  background: var(--jchristopher-white);
}

.hentry ul {
  list-style: square;
}

.hentry ol {
  list-style-type: upper-roman;
}

.hentry li {
  margin-bottom: 0.65em;
  line-height: 1.3;
}

.hentry blockquote {
  display: block;
  margin: 1.5em 0 1.5em;
  padding: 0.8em 1em;
  background: var(--jchristopher-white);
  position: relative;
  font-family: 'nunitosansitalic', sans-serif;
}

.hentry blockquote > *:first-child {
  margin-top: 0;
}

.hentry blockquote > *:last-child {
  margin-bottom: 0;
}

.hentry blockquote::before,
.hentry blockquote::after {
  display: block;
  position: absolute;
  content: '';
  width: 2px;
  background: var(--jchristopher-black);
  top: 0;
  bottom: 0;
}

.hentry blockquote::before {
  left: -4px;
  top: calc( 0.4em - 2px );
  bottom: calc( 0.4em - 2px );
}

.hentry blockquote::after {
  left: 0;
}

.hentry blockquote p {
  margin: 0.8em 0;
  line-height: 1.4;
}

.hentry > figure > a:has(> img:only-child),
.hentry > figure > a:has(> img:only-child) > img {
  display: block;
}

.hentry > figure > a:hover:has(> img:only-child),
.hentry > p > a:hover:has(> img:only-child) {
  box-shadow: none;
  background: inherit;
}

.update,
.wp-block-image figcaption,
.hentry > figure figcaption {
  background: var(--jchristopher-white);
}

.wp-block-image figcaption,
.hentry > figure figcaption {
  margin: 0;
  padding: 0.5em 1em;
  border-top: 2px solid var(--jchristopher-black);
  font-size: 0.9em;
}

.hentry .update {
  padding: 1em;
  margin-top: 1.5em;
  margin-bottom: 2em;
}

/* .hentry .update code {

} */

.punch-list,
.hentry .punch-list {
  margin: 1em auto;
  list-style: none;
  padding: 0;
}

.punch-list > li,
.hentry .punch-list > li {
  position: relative;
  padding-left: 25px;
}

.punch-list > li + li,
.hentry .punch-list > li + li {
  margin-top: 0.75em;
}

.punch-list > li::before,
.hentry .punch-list > li::before {
  display: block;
  position: absolute;
  left: 0;
  top: 2px;
  content: '';
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16ZM6.75 9.25a.75.75 0 0 0 0 1.5h4.59l-2.1 1.95a.75.75 0 0 0 1.02 1.1l3.5-3.25a.75.75 0 0 0 0-1.1l-3.5-3.25a.75.75 0 1 0-1.02 1.1l2.1 1.95H6.75Z' fill='%23424242' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-position: 0 0;
  background-size: cover;
  background-repeat: no-repeat;
}

.hentry div.update > *:first-child {
  margin-top: 0;
}

.hentry div.update > *:last-child {
  margin-bottom: 0;
}

.hentry p.update.linkmarklet a {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.hentry p.update.linkmarklet svg {
  display: block;
  width: 24px;
  height: 24px;
}

.hentry p.update.linkmarklet > a > span {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hentry p code {
  font-family: monospace;
  display: inline-block;
  padding-right: 2px;
  padding-left: 2px;
  background: var(--jchristopher-white);
  font-size: 0.9em;
}

.client-projects {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.client-projects li {
  width: 25%;
  padding: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
}

.client-projects svg,
.client-projects span {
  display: block;
  width: 100%;
}

@media screen and (max-width:700px) {
  body {
    font-size: 16px;
  }

  .site-header {
    padding-bottom: 2em;
  }

  .shim-v {
    padding-top: 2em;
    padding-bottom: 2em;
  }

  .site-header .overview {
    flex-direction: column;
  }

  .site-header .overview .notice {
    order: 1;
  }

  .site-header .overview .jonchristopher {
    order: 2;
    padding-top: 1em;
  }

  .jonchristopher .bio {
    padding-left: 1.2em;
  }

  .jonchristopher .bio h1 {
    font-size: 1.65em;
    margin-bottom: 3px;
  }

  .avatar {
    width: 70px;
    height: 70px;
  }

  .for-hire a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em;
  }

  .for-hire span,
  .for-hire strong {
    display: inline;
  }

  .for-hire svg {
    display: block;
    margin: 0 0 0 0.4em;
  }

  .main-navigation {
    padding-bottom: 1em;
  }

  .site-footer .container > div {
    display: block;
    padding-bottom: 1em;
  }

  .site-footer .container > div p + p {
    margin-top: 1.5em;
  }

  h1 {
    font-size: 1.8em;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.6em;
  }

  h3, h4, h5, h6 {
    font-size: 1.4em;
  }

  .archive-title {
    padding-bottom: 1.5em;
  }
}