/*
Theme Name: Dethbird Sketchbook
Theme URI: https://dethbird.com/
Author: Dethbird
Author URI: https://dethbird.com/
Description: A standalone block theme for the Dethbird sketchbook and editorial content.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: wp-dethbird-sketchbook-theme
*/

:root {
  --wp--preset--color--base: #e6decd;
  --wp--preset--color--contrast: #171717;
  --wp--preset--color--primary: #7d5837;
  --wp--preset--color--secondary: #d7b98d;
  --wp--preset--color--tertiary: #efe5d5;
}

html {
  background: var(--wp--preset--color--base);
}

body {
  background: var(--wp--preset--color--base);
  color: var(--wp--preset--color--contrast);
  font-family: var(--wp--preset--font-family--barlow-semi-condensed);
  position: relative;
  --site-content-max: var(--wp--style--global--content-size, 840px);
  --site-home-art-top: 0.7rem;
  --site-home-art-left: calc((100vw - min(var(--site-content-max), calc(100vw - 2rem))) / 2 - 6px);
  --site-home-art-width: clamp(190px, 56vw, 300px);
  --site-home-art-height: clamp(124px, 40vw, 208px);
  --site-home-link-width: clamp(108px, 28vw, 170px);
  --site-home-link-height: clamp(38px, 11vw, 66px);
}

body::before {
  content: "";
  position: fixed;
  top: var(--site-home-art-top);
  left: var(--site-home-art-left);
  width: var(--site-home-art-width);
  height: var(--site-home-art-height);
  z-index: 0;
  pointer-events: none;
  background-image: url("assets/images/dethbird-home.webp");
  background-position: left top;
  background-repeat: no-repeat;
  background-size: contain;
}

.wp-site-blocks {
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.wp-block-group,
.wp-block-query,
.wp-block-post-template,
.wp-block-template-part {
  box-sizing: border-box;
}

.site-header .wp-block-group,
.site-footer .wp-block-group {
  align-items: center;
}

.site-header > .wp-block-group {
  padding-top: clamp(2.7rem, 9vw, 4rem) !important;
}

.site-header .wp-block-navigation {
  margin-left: auto;
}

.wp-block-post-title a,
.wp-block-post-excerpt a,
.wp-block-post-featured-image a,
.wp-block-latest-posts a,
.wp-block-post-date a,
.site-title a {
  color: inherit;
  text-decoration: none;
}

.site-home-link {
  position: fixed;
  top: var(--site-home-art-top);
  left: var(--site-home-art-left);
  width: var(--site-home-link-width);
  height: var(--site-home-link-height);
  z-index: 3;
  display: block;
  background: transparent;
  border-radius: 0.35rem;
  transition: opacity 0.18s ease;
}

.site-home-link:focus-visible {
  outline: 3px solid var(--wp--preset--color--contrast);
  outline-offset: 4px;
  opacity: 1;
}

.site-home-link:focus {
  outline: 3px solid var(--wp--preset--color--contrast);
  outline-offset: 4px;
  opacity: 1;
}

@media (min-width: 768px) {
  body {
    --site-home-art-top: 0.85rem;
    --site-home-art-left: calc((100vw - min(var(--site-content-max), calc(100vw - 2rem))) / 2 - 8px);
    --site-home-art-width: clamp(230px, 30vw, 340px);
    --site-home-art-height: clamp(150px, 21vw, 220px);
    --site-home-link-width: clamp(132px, 13vw, 195px);
    --site-home-link-height: clamp(48px, 5.4vw, 78px);
  }

  .site-header > .wp-block-group {
    padding-top: clamp(3.4rem, 6vw, 4.9rem) !important;
  }
}

@media (min-width: 1200px) {
  body {
    --site-home-art-top: 1rem;
    --site-home-art-left: calc((100vw - min(var(--site-content-max), calc(100vw - 2rem))) / 2 - 12px);
    --site-home-art-width: clamp(245px, 20vw, 330px);
    --site-home-art-height: clamp(156px, 14vw, 210px);
    --site-home-link-width: clamp(138px, 10vw, 188px);
    --site-home-link-height: clamp(50px, 4.1vw, 76px);
  }
}

.wp-block-post-title {
  margin-bottom: 0.75rem;
  font-family: var(--wp--preset--font-family--averia-serif-libre);
}

.wp-block-navigation,
.wp-block-post-date,
.wp-block-post-terms,
.wp-block-query-pagination,
.post-card-tags,
.wp-block-search,
button,
input,
select,
textarea,
figcaption {
  font-family: var(--wp--preset--font-family--barlow-semi-condensed);
  font-weight: 500;
}

strong,
b {
  font-weight: 600;
}

code,
pre,
kbd,
samp {
  font-family: monospace;
}

.wp-block-query-pagination {
  display: block;
  width: 100%;
  overflow: auto;
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.single-post-card .wp-block-post-navigation-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(23, 23, 23, 0.2);
}

.wp-block-query-pagination .wp-block-query-pagination-previous {
  float: left;
}

.wp-block-query-pagination .wp-block-query-pagination-next {
  float: right;
  text-align: right;
}

.single-post-card .wp-block-post-navigation-link > *:first-child {
  margin-right: auto;
}

.single-post-card .wp-block-post-navigation-link > *:last-child {
  margin-left: auto;
}

.wp-block-query-pagination a,
.single-post-card .wp-block-post-navigation-link a {
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.single-post-nav {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(23, 23, 23, 0.2);
  width: 100%;
}

.single-post-nav .wp-block-post-navigation-link {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.single-post-nav-prev {
  margin-right: auto;
  text-align: left;
}

.single-post-nav-next {
  margin-left: auto;
  text-align: right;
}

.single-post-card > .wp-block-post-navigation-link {
  display: inline-flex;
  width: calc(50% - 0.5rem);
  vertical-align: top;
}

.single-post-card > .wp-block-post-navigation-link.previous {
  margin-right: 1rem;
}

.single-post-card > .wp-block-post-navigation-link.next {
  margin-left: 0;
  justify-content: flex-end;
  text-align: right;
}

.wp-block-query-pagination a:hover,
.wp-block-query-pagination a:focus-visible {
  text-decoration: underline;
}

.post-card,
.single-post-card {
  background: #ffffff;
  border-radius: 0.85rem;
  box-sizing: border-box;
}

.single-post-card {
  background: #ffffff;
  border-radius: 0.9rem;
}

.post-card .wp-block-post-date {
  display: block;
  color: rgba(23, 23, 23, 0.72);
}

.post-card .wp-block-post-featured-image {
  margin-bottom: 1rem;
}

.post-card .wp-block-post-excerpt {
  color: rgba(23, 23, 23, 0.8);
  margin-top: 0;
}

.post-card-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  margin-top: 1rem;
  width: 100%;
}

.post-card-tags a {
  color: rgba(23, 23, 23, 0.8);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card-tags a:hover,
.post-card-tags a:focus-visible {
  text-decoration: underline;
}

.wp-block-post-excerpt {
  color: rgba(23, 23, 23, 0.8);
}

.wp-block-separator {
  opacity: 0.5;
}

.explore-panel {
  background: rgba(255, 255, 255, 0.12);
}

.explore-panel .wp-block-group {
  align-items: center;
}

.explore-search {
  flex: 1 1 260px;
  min-width: 220px;
}

.explore-search .wp-block-search__label,
.explore-search .wp-block-search__label:focus-visible {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--wp--preset--color--contrast);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.explore-search .wp-block-search__inside-wrapper {
  border: 1px solid rgba(23, 23, 23, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  min-height: 3rem;
}

.explore-search input.wp-block-search__input {
  background: transparent;
  border: 0;
  color: var(--wp--preset--color--contrast);
  font: inherit;
  padding: 0.75rem 1rem;
}

.explore-search input.wp-block-search__input::placeholder {
  color: rgba(23, 23, 23, 0.7);
}

.explore-search .wp-block-search__button {
  border: 0;
  border-radius: 999px;
  background: var(--wp--preset--color--contrast);
  color: var(--wp--preset--color--base);
  margin: 0.25rem;
  padding: 0.7rem 1.1rem;
  font: inherit;
}

.explore-tags {
  flex: 1 1 320px;
}

.explore-tags a {
  color: var(--wp--preset--color--contrast);
  text-decoration: none;
  opacity: 0.78;
  transition: opacity 0.15s ease;
}

.explore-tags a:hover,
.explore-tags a:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

.explore-tags .tag-cloud-link {
  font-size: 0.9rem !important;
  line-height: 1.8;
  margin-right: 0.5rem;
}

body:not(.dethbird-landing-page) .home-hero-wrap {
  display: none !important;
}

.home-hero-wrap {
  padding-bottom: 8rem !important;
}

.home-hero-image {
  margin: 0 auto 2.5rem;
  text-align: center;
}

.home-hero-image img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.home-hero-tagline {
  margin: 0;
  text-align: center;
  font-size: 1.125rem;
  font-style: italic;
  letter-spacing: 0.03em;
  color: var(--wp--preset--color--contrast);
}

@media (max-width: 782px) {
  .wp-site-blocks {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .explore-panel .wp-block-group {
    flex-direction: column;
    align-items: stretch;
  }

  .explore-search,
  .explore-tags {
    width: 100%;
    flex-basis: 100%;
  }

  .single-post-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .single-post-nav-prev,
  .single-post-nav-next {
    width: 100%;
    margin: 0;
    text-align: left;
  }

  .single-post-card > .wp-block-post-navigation-link {
    display: flex;
    width: 100%;
    margin-right: 0;
  }

  .single-post-card > .wp-block-post-navigation-link.next {
    justify-content: flex-start;
    text-align: left;
  }
}
