/*
Theme Name: Jo Abott Twenty Twenty One Child Theme
Theme URI: https://joabbott.com
Description: Custom child theme using Twenty Twenty One.
Author: Pretentia
Author URI: https://pretentia.com
Template: twentytwentyone
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

.is-dark-theme.is-dark-theme {
	--global--color-background: #212121 !important;
}

.site-avatar {
	height: 8rem;
	margin: 0 auto;
	display: block;
}

/* Typography elements */

/* Fix MAHOOSIVE headers */
.singular .entry-title,
h1.page-title,
h2.page-title {
	font-size: var(--heading--font-size-h2);
}

/* Add margin to content headers */
.entry-content h2,
.entry-content h3 {
	margin-top: 4rem;
}

a {
  text-decoration-thickness: .15rem !important;
}

code {
	background: rgba(0, 0, 0, .075);
	padding: .1rem .2rem;
}

.is-dark-theme.is-dark-theme code {
	background: black;
}

pre code {
	background: none !important;
	font-size: 1rem;
	padding: 0;
}

.small {
	font-size: 1rem;
}

.medium {
  font-weight: bold;
  font-size: 1.5rem;
  line-height: 1.5;
}

.favourites a {
    font-weight: bold;
    font-size: 1.5rem;
}

.site-branding a {
	text-decoration: none;
}

.site-branding a:hover {
  text-decoration: underline;
  text-decoration-style: dotted;
}

.disappointed {
  font-size: 1rem;
  opacity: .6;
}

/* Fix recent posts link sizes on search page */
.wp-block-latest-posts a {
  font-size: inherit !important;
}

.wp-block-latest-posts:not(.is-grid) > li {
  margin-bottom: -2rem;
}

.wp-block-latest-posts .wp-block-latest-posts__post-date {
	margin-top: 0;
}


.no-bullets {
  list-style-type: none;
  padding: 0;
}

/* Format 512kb blub banner in footer */

.kb-club {
	margin-top: 1.5rem;
}

.kb-club a {
	text-decoration: none;
	padding: .5rem 0;
}

.kb-club a:hover {
  background: var(--separator--border-color);
	color: var(--global--color-background);
}

.is-dark-theme.is-dark-theme .kb-club a:hover {
  background: var(--separator--border-color);
	color: var(--global--color-background);
}

.kb-club-no-bg {
	border: 2px solid var(--separator--border-color);
	padding: .5rem 1rem;
}

.kb-club-bg {
	background: var(--separator--border-color);
	border: 2px solid var(--separator--border-color);
	color: var(--global--color-background);
	padding: .5rem 1rem;
}

/* Format notice boxes */

.notice, .notice-blue, .notice-red {
	background: var(--separator--border-color);
	padding: 1rem;
	color: var(--global--color-background);
}

.notice a, .notice-blue a, .notice-red a {
	color: var(--global--color-background) !important;
}

.notice code,
.is-dark-theme.is-dark-theme .notice code {
  background: rgba(200, 200, 200, 200);
  color: black;
}

/* Format the newsletter/subscribe form */

.subscribe-form {
	border: 3px solid var(--separator--border-color);
	padding: 1rem;
  background: rgba(0, 0, 0, .075);
}

.is-dark-theme.is-dark-theme .subscribe-form {
	background: rgba(0, 0, 0, .5);
}

.subscribe-form h2 {
	font-size: 2.3rem;
  margin-bottom: 2rem;
	margin-top: 0 !important;
}

.subscribe-form p {
	margin-bottom: 1rem;
}

.subscribe-form a[href*="//"]::after {
    content: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAQElEQVR42qXKwQkAIAxDUUdxtO6/RBQkQZvSi8I/pL4BoGw/XPkh4XigPmsUgh0626AjRsgxHTkUThsG2T/sIlzdTsp52kSS1wAAAABJRU5ErkJggg==);
    margin-left: 4px;
}

.subscribe-form #email {
  margin: 1rem 0;
	width: 400px
}

.subscribe-form #submit {
	padding: .75rem 1.5rem;
}

.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

input[type="email"], input[type="url"] {
  border: 3px solid var(--separator--border-color);
}

@media only screen and (max-width: 700px) {
  .mini-subscribe input#email,
  .mini-subscribe input#submit,
  .subscribe-form input#email,
  .subscribe-form input#submit {
    width: 100%;
    max-width: 100%;
  }
}

/* Format generic banners and 100 days banner */
.banner,
.hundred-days {
	background: rgba(0, 0, 0, .075);
	border: 3px solid var(--separator--border-color);
	padding: 1rem;
	font-weight: bold;
}

.is-dark-theme.is-dark-theme .banner,
.is-dark-theme.is-dark-theme .hundred-days {
	background: rgba(0, 0, 0, .3);
}

.hundred-days-number {
  font-size: 1.4rem;
  color: DeepPink;
}

/* Format the comment notice box on posts */
.comment-notice {
	max-width: 610px;
	margin: 0 auto;
	display: block;
	max-width: var(--responsive--aligndefault-width);
}

.comment-notice p {
	margin: inherit;
}

/* Footer tweaks */

.site-name a {
	text-transform: capitalize;
	font-size: 18px;
}

.footer {
	text-align: center;
	padding-top: var(--global--spacing-vertical);
	color: var(--footer--color-text);
	font-family: var(--footer--font-family);
	font-size: var(--footer--font-size);
	line-height: var(--global--line-height-body);
	border-top: 3px solid var(--global--color-border);
}

/* Format guestbook entries */

.gwolle-gb .gb-entry {
	border: 3px solid var(--separator--border-color) !important;
	margin-bottom: 1rem !important;
	background: rgba(0, 0, 0, 0.03) !important;
}

.gwolle-gb-write {
	background: rgba(0, 0, 0, 0.03) !important;
	border: 3px solid var(--separator--border-color) !important;
	padding: 1rem;
}

.gwolle-gb .page-navigation a, .gwolle-gb .page-navigation span {
	background: rgba(0, 0, 0, 0.05) !important;
  color: var(--global--color-primary) !important;
}

.gwolle-gb .page-navigation a:hover, .gwolle-gb .page-navigation span.current {
	background: rgba(0, 0, 0, 0.3) !important;
}

.gwolle-gb .gb-entry-admin_reply, .gwolle-gb .gb-entry-admin-reply {
	border-left: 3px solid var(--separator--border-color) !important;
	background: rgba(0, 0, 0, 0.075) !important;
	margin-right: .5rem !important;
}

/* More contrasted bg in dark mode */
.is-dark-theme.is-dark-theme .gwolle-gb .gb-entry,
.is-dark-theme.is-dark-theme .gwolle-gb-write,
.is-dark-theme.is-dark-theme .gwolle-gb .page-navigation a,
.is-dark-theme.is-dark-theme .gwolle-gb .page-navigation span {
  background: rgba(0, 0, 0, .3) !important;
}

.is-dark-theme.is-dark-theme .gwolle-gb .gb-entry-admin_reply,
.is-dark-theme.is-dark-theme .gwolle-gb .gb-entry-admin-reply {
	background: rgba(0, 0, 0, 0.5) !important;
}

.is-dark-theme.is-dark-theme .gwolle-gb .page-navigation a:hover,
.is-dark-theme.is-dark-theme .gwolle-gb .page-navigation span.current {
	background: rgba(0, 0, 0, 1) !important;
}

.gwolle-gb h3 {
	display: none;
}

.gwolle_gb_notice {
  font-size: .9rem;
  font-style: italic;
}

/* Misc stuff */

.select-all {
  user-select: all;
}

.wp-block-search .wp-block-search__input {
  -webkit-appearance: none;
  border-radius: 0;
}

.widget-area ul li {
	margin-bottom: .5rem;
}

.widget-area label {
  font-weight: bold;
}

/* Format table stripes */
.wp-block-table.is-style-stripes tr:nth-child(odd) {
  background: rgba(0, 0, 0, 0.075) !important;
}

.wp-block-table table {
    border: 2px solid;
}

.wp-block-quote {
	border-left: 3px solid var(--separator--border-color);
}

/* Blogroll items */
.blogroll-banner h2,
.blogroll-banner-fav h2 {
  margin-top: 0;
}

.blogroll-banner {
  border: 3px solid var(--separator--border-color);
  padding: 1rem;
}

.blogroll-banner-fav {
	border: 3px solid orange;
	padding: 1rem;
}
