/*
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: "Segoe UI", sans-serif;
}

.wp-site-blocks {
  min-height: 100vh;
}

.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;
}

.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 {
  display: inline-block;
  line-height: 0;
  border-radius: 0.35rem;
  transition: opacity 0.18s ease;
}

.site-home-link img {
  display: block;
  width: clamp(120px, 14vw, 160px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.site-home-link:hover {
  opacity: 0.86;
}

.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;
}

.wp-block-post-title {
  margin-bottom: 0.75rem;
}

.wp-block-query-pagination,
.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 > *:first-child,
.single-post-card .wp-block-post-navigation-link > *:first-child {
  margin-right: auto;
}

.wp-block-query-pagination > *:last-child,
.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: rgba(255, 255, 255, 0.1);
  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;
  }

  .site-home-link img {
    width: clamp(112px, 36vw, 140px);
  }

  .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;
  }
}
