/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
:root {
  color-scheme: light;
  --site-text: #333333;
  --site-header: #d3d3d3;
  --site-surface: #ece6de;
  --site-page: #fcfcfc;
  --site-panel: #ffffff;
  --site-border: #dddddd;
  --site-muted: #6b7280;
  --site-control: #f4f4f4;
}

html[data-theme=dark] {
  color-scheme: dark;
  --site-text: #f1f3f5;
  --site-header: #24282d;
  --site-surface: #343a40;
  --site-page: #181b1f;
  --site-panel: #24282d;
  --site-border: #4b535c;
  --site-muted: #b0b7c0;
  --site-control: #30353b;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

img,
picture {
  max-width: 100%;
  display: block;
}

input,
button,
textarea,
select {
  font: inherit;
}

/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
h1,
.description {
  color: #fcfcfc;
}

h2,
h3,
h4,
p {
  color: var(--site-text);
}

h1 {
  font-size: 45px;
  font-weight: bolder;
  color: #fcfcfc;
  margin: 0 0 36px 0;
  line-height: 1.2;
}
@media (min-width: 1280px) {
  h1 {
    font-size: 90px;
  }
}

h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--site-text);
  margin: 0 0 36px 0;
  line-height: 1.2;
}

h3 {
  font-size: 27px;
  font-weight: 700;
  color: var(--site-text);
  line-height: 1.2;
}

h4 {
  font-size: 22.5px;
  font-weight: 100;
  color: var(--site-text);
  line-height: 1.2;
}

p {
  font-size: 18px;
  font-weight: 400;
  color: var(--site-text);
  margin: 0 0 18px 0;
  line-height: 2;
}

/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
footer {
  background: var(--site-header);
  width: 100%;
  padding: 20px;
  margin-top: auto;
}

.footer-logo img {
  height: 54px;
  max-width: 350px;
  width: 100%;
  justify-self: center;
}

.footer-logo .logo-dark {
  display: none;
}

html[data-theme=dark] .footer-logo .logo-light {
  display: none;
}
html[data-theme=dark] .footer-logo .logo-dark {
  display: block;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 100px));
  gap: 40px;
  padding: 20px;
  text-align: center;
  justify-content: center;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 100px));
  row-gap: 20px;
}

.footer-links img {
  width: 30px;
  height: 30px;
  filter: none;
  transition: opacity 0.4s ease-in-out;
  opacity: 1;
}

.footer-links .social-icon,
.article-share .social-icon {
  position: relative;
  display: block;
}

.footer-links .social-icon {
  width: 30px;
  height: 30px;
}

.article-share .social-icon {
  width: 32px;
  height: 32px;
}

.footer-links .social-icon::after,
.article-share .social-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.footer-links .social-icon:hover img,
.article-share .social-icon:hover img {
  opacity: 0;
}

.footer-links .social-icon:hover::after,
.article-share .social-icon:hover::after {
  opacity: 0.9;
}

html[data-theme=dark] .footer-links .social-icon img,
html[data-theme=dark] .article-share .social-icon img {
  filter: brightness(0) invert(1);
}

/* 1. Facebook (Deep Blue - #1877F2) */
.footer-links .social-facebook::after,
.article-share .social-facebook::after {
  background-image: url("../img/facebook.svg");
  filter: invert(39%) sepia(58%) saturate(5412%) hue-rotate(204deg) brightness(97%) contrast(96%);
}

/* 2. X / Twitter (Classic Sky Blue - #1DA1F2) */
.footer-links .social-x::after,
.article-share .social-x::after {
  background-image: url("../img/x.svg");
  filter: invert(53%) sepia(87%) saturate(2758%) hue-rotate(182deg) brightness(99%) contrast(93%);
}

/* 3. Instagram (Vibrant Brand Purple - #833AB4) */
.footer-links .social-instagram::after {
  background-image: url("../img/instagram.svg");
  filter: invert(21%) sepia(74%) saturate(3015%) hue-rotate(264deg) brightness(89%) contrast(92%);
}

/* 4. YouTube (Iconic Pure Red - #FF0000) */
.footer-links .social-youtube::after {
  background-image: url("../img/youtube.svg");
  filter: invert(11%) sepia(100%) saturate(7403%) hue-rotate(359deg) brightness(94%) contrast(116%);
}

.footer-links div:nth-of-type(2) ul {
  display: grid;
  grid-template-columns: repeat(2, 30px);
  grid-template-rows: repeat(2);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-items: center;
  justify-content: center;
}

.footer-menu h3,
.footer-menu ul li,
.footer-links h3 {
  margin-bottom: 5px;
}

.footer-menu ul li a,
.footer-links ul li a {
  text-decoration: none;
  color: var(--site-text);
  transition: color 0.2s ease-in-out;
}

.footer-menu h3 a,
.footer-links h3 a {
  color: var(--site-text);
  transition: color 0.2s ease-in-out;
}

.footer-menu h3 a:hover,
.footer-links h3 a:hover,
.footer-menu ul li a:hover,
.footer-links ul li a:hover {
  color: #0066cc;
}

footer p {
  text-align: center;
  font-size: 10px;
}

@media (min-width: 800px) {
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin: 0 auto;
    max-width: 1270px;
  }
  .footer-container > .footer-logo {
    flex: 1 1 0;
    min-width: 0;
  }
  .footer-container > .footer-columns {
    flex: 1 1 0;
    min-width: 0;
  }
  footer .footer-logo {
    display: flex;
    justify-content: center;
  }
  .footer-logo img {
    height: 87px;
    max-width: 565px;
  }
  .footer-container > p {
    flex-basis: 100%;
  }
  .footer-columns {
    display: flex;
    justify-content: center;
    column-gap: 150px;
  }
}
/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
.site-header {
  position: sticky;
  width: 100%;
  top: 0;
  z-index: 9999;
  background: var(--site-header);
  transition: transform 0.2s ease;
}
.site-header.is-hidden {
  transform: translateY(-100%);
}
.site-header .theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 56px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.site-header .theme-toggle-track {
  position: relative;
  display: block;
  width: 24px;
  height: 44px;
  border-radius: 999px;
  background: var(--site-text);
}
.site-header .theme-toggle-thumb {
  position: absolute;
  bottom: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--site-panel);
  transition: transform 0.2s ease-in-out;
}
.site-header .theme-toggle[aria-checked=true] .theme-toggle-thumb {
  transform: translateY(-20px);
}
.site-header .theme-toggle:focus-visible {
  outline: 2px solid #b4bccb;
  outline-offset: 3px;
}
.site-header .header-bar .logo img.logo-dark {
  display: none;
}
html[data-theme=dark] .site-header .header-bar .logo img.logo-light {
  display: none;
}
html[data-theme=dark] .site-header .header-bar .logo img.logo-dark {
  display: block;
}
.site-header .main-nav .theme-toggle-desktop {
  display: none;
}
.site-header .header-inner {
  margin: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}
.site-header .header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 20px;
}
.site-header .header-bar .logo {
  line-height: 0;
}
.site-header .header-bar .logo img {
  width: auto;
  height: 36px;
}
.site-header .header-bar .header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.site-header .header-bar .toggle-btn {
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.site-header .header-bar .toggle-btn span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--site-text);
  transition: transform 0.2s ease, opacity 0.15s ease;
}
.site-header .header-bar .toggle-btn[aria-expanded=true] span:first-child {
  transform: translateY(8px) rotate(45deg);
}
.site-header .header-bar .toggle-btn[aria-expanded=true] span:nth-child(2) {
  opacity: 0;
}
.site-header .header-bar .toggle-btn[aria-expanded=true] span:last-child {
  transform: translateY(-8px) rotate(-45deg);
}
.site-header .main-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}
.site-header .main-nav.show-nav {
  max-height: 1000px;
  overflow: hidden;
  width: 100%;
}
.site-header .main-nav .main-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-header .main-nav .main-menu > li:last-child {
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-header .main-nav .main-menu li {
  background: var(--site-header);
  position: relative;
  display: flex;
  width: 100%;
  justify-content: center;
}
.site-header .main-nav .main-menu li .dropdown-controls {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
}
.site-header .main-nav .main-menu li .desktop-dropdown-link {
  display: flex;
  flex: initial;
  justify-content: center;
  padding-right: 0.25rem;
}
.site-header .main-nav .main-menu li a,
.site-header .main-nav .main-menu li .dropdown-link {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: var(--site-text);
  padding: 1rem;
  text-decoration: none;
  border: none;
  background: var(--site-header);
  transition: color 0.2s ease-in-out;
}
.site-header .main-nav .main-menu li a img,
.site-header .main-nav .main-menu li .dropdown-link img {
  margin-left: 0.5rem;
  width: 1rem;
}
.site-header .main-nav .main-menu li .mobile-dropdown-toggle {
  display: flex;
  justify-content: center;
  flex: initial;
  width: auto;
  padding: 1rem 0.5rem;
  border: 0;
  background: var(--site-header);
  cursor: pointer;
}
.site-header .main-nav .main-menu li .mobile-dropdown-toggle svg {
  display: block;
  width: 1.125rem;
  margin: 0;
  transition: transform 0.2s ease;
}
.site-header .main-nav .main-menu li .mobile-dropdown-toggle[aria-expanded=true] .mobile-chevron {
  transform: rotate(180deg);
}
.site-header .main-nav .main-menu li .desktop-dropdown-toggle {
  display: none;
}
.site-header .main-nav .main-menu li .desktop-chevron {
  display: none;
}
.site-header .main-nav .main-menu li.has-dropdown {
  position: relative;
  display: inline-block;
  width: 100%;
}
.site-header .main-nav .main-menu li.has-dropdown .second-tier {
  display: block;
  list-style: none;
  flex-direction: column;
  position: static;
  width: 100%;
  padding: 0 !important;
  background: #fcfcfc;
  z-index: 10000;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 0.3s ease, opacity 0.2s ease, visibility 0s linear 0.3s;
}
.site-header .main-nav .main-menu li.has-dropdown .second-tier.open {
  max-height: 700px;
  opacity: 1;
  visibility: visible;
  transition: max-height 0.3s ease, opacity 0.2s ease;
}
.site-header .main-nav .main-menu li.has-dropdown .second-tier li {
  border-bottom: 1px solid var(--site-border);
  padding: 0.5rem 0;
  background: var(--site-surface);
  transition: background-color 0.2s ease-in-out;
}
.site-header .main-nav .main-menu li.has-dropdown .second-tier li:hover {
  background-color: #b4bccb;
}
.site-header .main-nav .main-menu li.has-dropdown .second-tier a {
  color: var(--site-text);
  width: 100%;
  background: transparent;
}
.site-header .main-nav .main-menu > li:hover > a,
.site-header .main-nav .main-menu > li:hover > .dropdown-controls > a,
.site-header .main-nav .main-menu > li:hover > .dropdown-controls > .dropdown-link {
  color: #0066cc;
}

@media (prefers-reduced-motion: reduce) {
  .site-header {
    transition: none;
  }
  .site-header .theme-toggle-thumb {
    transition: none;
  }
  .site-header .main-nav .main-menu > li > a,
  .site-header .main-nav .main-menu > li > .dropdown-controls > .dropdown-link {
    transition: none;
  }
  .site-header .main-nav .main-menu > li .second-tier li {
    transition: none;
  }
}
.site-header .main-nav form.search-form {
  position: relative;
  display: flex;
  align-items: center;
  width: calc(100% - 2rem);
  max-width: 420px;
  height: 44px;
  background: var(--site-control);
  border: none;
  border-radius: 999px;
  box-shadow: 0 1px 5px rgba(51, 51, 51, 0.08);
  transition: box-shadow 0.2s ease;
}
.site-header .main-nav form.search-form::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 3px solid #777;
  border-radius: 50%;
  transform: translateY(-60%);
}
.site-header .main-nav form.search-form::after {
  content: "";
  position: absolute;
  left: 31px;
  top: calc(50% + 5px);
  width: 9px;
  height: 3px;
  background: #777;
  border-radius: 2px;
  transform: rotate(45deg);
}
.site-header .main-nav form.search-form:focus-within {
  box-shadow: 0 2px 8px rgba(51, 51, 51, 0.14);
}
.site-header .main-nav form.search-form label {
  display: flex;
  flex: 1;
  min-width: 0;
  height: 100%;
}
.site-header .main-nav form.search-form .search-field {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 8px 18px 8px 52px;
  color: var(--site-text);
  font-size: 18px;
  line-height: 28px;
  background: transparent;
  border: none;
  outline: none;
}
.site-header .main-nav form.search-form .search-submit {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
  border: 0;
}

@media (min-width: 800px) {
  .site-header {
    align-items: center;
    background: var(--site-header);
  }
  .site-header .header-inner {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .site-header .header-bar {
    box-sizing: border-box;
    flex-shrink: 0;
    flex-basis: auto;
  }
  .site-header .header-bar .logo {
    line-height: 0;
    display: flex;
    align-items: center;
  }
  .site-header .header-bar .logo img {
    width: auto;
    height: 36px;
    display: block;
    flex-shrink: 0;
  }
  .site-header .header-bar .toggle-btn {
    display: none;
  }
  .site-header .header-bar .theme-toggle-mobile {
    display: none;
  }
  .site-header .main-nav {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
    height: 68px;
    max-height: none !important;
    overflow: visible;
    background: transparent;
    flex: 1;
    min-width: 0;
    margin-left: 16px;
  }
  .site-header .main-nav .main-menu {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, max-content) minmax(172px, 1fr);
    align-items: center;
    gap: 12px;
  }
  .site-header .main-nav .main-menu > li:last-child {
    padding-top: 0;
    padding-bottom: 0;
    gap: 12px;
  }
  .site-header .main-nav .main-menu > li {
    margin: 0;
    height: 68px;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    width: auto;
  }
  .site-header .main-nav .main-menu > li.mobile-all-content-link {
    display: none;
  }
  .site-header .main-nav .main-menu > li a,
  .site-header .main-nav .main-menu > li .dropdown-link {
    height: 100%;
    padding: 0 0.25rem;
    white-space: nowrap;
  }
  .site-header .main-nav .main-menu > li.has-dropdown {
    position: relative;
    height: 68px;
  }
  .site-header .main-nav .main-menu > li.has-dropdown.hover-open .second-tier:not(.open), .site-header .main-nav .main-menu > li.has-dropdown.focus-open .second-tier:not(.open) {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
  @starting-style {
    .site-header .main-nav .main-menu > li.has-dropdown.hover-open .second-tier:not(.open), .site-header .main-nav .main-menu > li.has-dropdown.focus-open .second-tier:not(.open) {
      opacity: 0;
      transform: translateY(-4px);
    }
  }
  .site-header .main-nav .main-menu > li .toggle-btn {
    display: none;
  }
  .site-header .main-nav .main-menu > li .theme-toggle-desktop {
    display: flex;
    flex: 0 0 40px;
  }
  .site-header .main-nav .main-menu > li .dropdown-controls {
    width: auto;
    height: 100%;
  }
  .site-header .main-nav .main-menu > li .desktop-dropdown-link {
    flex: initial;
  }
  .site-header .main-nav .main-menu > li .mobile-dropdown-toggle,
  .site-header .main-nav .main-menu > li .mobile-chevron {
    display: none;
  }
  .site-header .main-nav .main-menu > li .desktop-dropdown-toggle {
    display: flex;
    flex: none;
    justify-content: center;
    align-items: center;
    padding: 0 0.25rem;
    border: 0;
    background: transparent;
    cursor: pointer;
  }
  .site-header .main-nav .main-menu > li .desktop-dropdown-link {
    display: flex;
  }
  .site-header .main-nav .main-menu > li .desktop-chevron {
    display: block;
    width: 1rem;
    margin: 0 0 0 0.125rem;
    transition: transform 0.2s ease;
  }
  .site-header .main-nav .main-menu > li .desktop-dropdown-toggle[aria-expanded=true] .desktop-chevron {
    transform: rotate(180deg);
  }
  .site-header .main-nav .main-menu > li.has-dropdown .second-tier {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    max-width: calc(100vw - 2rem);
    max-height: none;
    overflow: visible;
    background-color: var(--site-header);
    flex-direction: column;
    list-style: none;
    min-width: 180px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.18s ease, transform 0.18s ease, display 0.18s allow-discrete;
    transition-delay: 0.06s;
  }
  .site-header .main-nav .main-menu > li.has-dropdown .second-tier li {
    padding: 0.5rem 0;
  }
  .site-header .main-nav .main-menu > li.has-dropdown .second-tier.open {
    display: flex !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition-delay: 0s;
  }
  .site-header .main-nav .main-menu > li form.search-form {
    min-width: 120px;
    max-width: none;
    flex: 1;
    width: auto;
    align-self: center;
  }
  .site-header .main-nav .main-menu > li:last-child {
    display: flex;
    flex: none;
    min-width: 120px;
    width: auto;
    align-items: center;
  }
}
@media (min-width: 1280px) {
  .site-header .header-inner {
    max-width: 1270px;
    width: calc(100% - 40px);
    margin: 0 auto;
  }
  .site-header .header-bar {
    padding: 1rem 20px;
  }
  .site-header .header-inner {
    justify-content: space-between;
  }
  .site-header .main-nav {
    flex: 1;
    justify-content: flex-end;
  }
  .site-header .main-nav form.search-form {
    width: 380px;
  }
  .site-header .main-nav .main-menu {
    grid-template-columns: repeat(4, max-content) minmax(272px, 432px);
    justify-content: end;
    gap: 16px;
  }
}
/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
.primary-btn {
  width: 167px;
  height: 60px;
  font-size: 22.5px;
  font-weight: 700;
  background-color: var(--site-header);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
}
@media (min-width: 1280px) {
  .primary-btn {
    width: 254px;
    height: 65px;
    font-size: 24px;
  }
}
.primary-btn {
  min-width: max-content;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--site-text);
  text-decoration: none;
  transition: all 0.2s ease;
}

.primary-btn > a {
  color: #fcfcfc;
  text-decoration: none;
}

.primary-btn:hover {
  background-color: #b4bccb;
  color: #fcfcfc;
}

.blog-card .blog-content .primary-btn:hover {
  background-color: #b4bccb;
  color: #fcfcfc;
}

.blog-card .blog-content .primary-btn:active {
  background-color: var(--site-panel);
  color: var(--site-header);
}

.primary-btn:active {
  background-color: var(--site-panel);
  color: var(--site-header);
}

.load-more-button {
  width: 167px;
  height: 60px;
  font-size: 22.5px;
  font-weight: 700;
  background-color: var(--site-header);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
}
@media (min-width: 1280px) {
  .load-more-button {
    width: 254px;
    height: 65px;
    font-size: 24px;
  }
}
.load-more-button {
  font-size: clamp(0.875rem, 3vw, 1.5rem);
  white-space: nowrap;
  min-width: max-content;
  display: block;
  margin: 2rem auto;
  color: var(--site-text);
  transition: all 0.2s ease;
}

.load-more-button:hover {
  background-color: #b4bccb;
  color: #fcfcfc;
}

.load-more-button:active {
  background-color: var(--site-panel);
  color: var(--site-header);
}

.post-return-link .primary-btn {
  font-size: clamp(0.875rem, 3vw, 1.5rem);
}

.load-more-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.load-more-button[hidden] {
  display: none;
}

.load-more-status {
  text-align: center;
}

.load-more-status:empty {
  display: none;
}

.overlay-button {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fcfcfc;
  border: 3px solid #fcfcfc;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.overlay-button:hover {
  background-color: var(--site-header);
  color: var(--site-text);
  border: 3px solid var(--site-header);
}

.overlay-button:active {
  background-color: #fcfcfc;
  color: #b4bccb;
  border: 3px solid #fcfcfc;
}

/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
.card {
  white-space: normal;
  background-color: var(--site-panel);
  margin: 1rem 1rem 1rem 0rem;
  text-align: left;
  width: 230px;
  height: 233px;
}

.card > a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card img {
  width: 230px;
  height: 130px;
  filter: brightness(100%);
  transition: filter 0.2s ease;
}

/* Add the default state and transition directly to the h3 */
.card h3 {
  transition: color 0.2s ease;
}

/* When .card is hovered, brighten the image slightly */
.card:hover img {
  filter: brightness(115%); /* Adjust percentage to your liking */
}

/* Target the h3 specifically when the card is hovered */
.card:hover h3 {
  color: #0066cc;
}

.content-card {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  align-content: start;
  max-width: 350px;
}
.content-card img {
  width: 100%;
  max-width: 350px;
  height: auto;
  aspect-ratio: 350/250;
  object-fit: cover;
  border-radius: 20px;
}
.content-card p {
  font-size: 18px;
  font-weight: 400;
  color: var(--site-text);
  margin: 0 0 18px 0;
  line-height: 2;
  font-size: clamp(12px, 5vw, 18px);
}

.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}
.image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
  pointer-events: none;
}

.blog-card .image-wrapper::after {
  display: none;
}

.subcontent-card {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 230px;
  height: auto;
  margin: 0 auto 2rem;
}
.subcontent-card img {
  width: 100%;
  max-width: 230px;
  height: auto;
  filter: brightness(100%);
  transition: filter 0.2s ease;
}
.subcontent-card h3 {
  font-size: 27px;
  font-weight: 700;
  color: var(--site-text);
  line-height: 1.2;
  font-size: clamp(16px, 5vw, 24px);
  transition: color 0.2s ease;
}

/* When .subcontent-card is hovered, brighten the image slightly */
.subcontent-card:hover img {
  filter: brightness(115%); /* Adjust percentage to your liking */
}

/* Target the h3 specifically when the subcontent-card is hovered */
.subcontent-card:hover h3 {
  color: #0066cc;
}

.blog-container {
  margin: 0 auto 2rem;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: minmax(380px, auto);
  justify-items: center;
}

.blog-card {
  max-width: 380px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-items: center;
}
.blog-card img {
  width: 100%;
  max-width: 380px;
  height: auto;
}
.blog-card .blog-content {
  text-align: center;
}
.blog-card .blog-content h3 {
  font-size: 27px;
  font-weight: 700;
  color: var(--site-text);
  line-height: 1.2;
  font-size: clamp(16px, 5vw, 24px);
  margin-top: 1rem;
}
.blog-card .blog-content p {
  font-size: 18px;
  font-weight: 400;
  color: var(--site-text);
  margin: 0 0 18px 0;
  line-height: 2;
  font-size: clamp(12px, 5vw, 18px);
  margin-top: 1rem;
}
.blog-card .blog-content .primary-btn {
  width: 167px;
  height: 60px;
  font-size: 22.5px;
  font-weight: 700;
  background-color: var(--site-header);
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  border-radius: 10px;
  padding: 10px 20px;
  cursor: pointer;
}
@media (min-width: 1280px) {
  .blog-card .blog-content .primary-btn {
    width: 254px;
    height: 65px;
    font-size: 24px;
  }
}

/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
/* Carousel */
.carousel {
  padding: 0 20px 20px 20px;
}

.carousel > h2 {
  margin-top: 1rem;
  text-align: center;
}

.scrolling-wrapper {
  display: flex;
  align-items: flex-start;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  scrollbar-width: none;
}

.scrolling-wrapper::-webkit-scrollbar {
  display: none;
}

.carousel-scrollbar {
  position: relative;
  height: 22px;
  margin-top: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: var(--site-border);
  cursor: pointer;
  touch-action: none;
}

.carousel-scrollbar[hidden] {
  display: none;
}

.carousel-scrollbar-thumb {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  min-width: 36px;
  background-color: var(--site-text);
  border-radius: 999px;
  cursor: grab;
}

.carousel-scrollbar-thumb:active {
  cursor: grabbing;
}

.carousel-scrollbar:focus-visible {
  outline: 3px solid var(--site-text);
  outline-offset: 3px;
}

.scrolling-wrapper > .card {
  flex: 0 0 230px;
  height: auto;
}

html[data-theme=dark] .carousel .card {
  background-color: transparent;
}

.scrolling-wrapper > .card > a {
  height: auto;
}

.scrolling-wrapper > .card h3 {
  font-size: 22.5px;
  font-weight: 700;
}

/* MEDIA QUERY */
@media (min-width: 1280px) {
  .carousel {
    margin: auto;
    padding: 20px 40px 20px 40px;
  }
  .scrolling-wrapper {
    max-width: 1280px;
    margin: auto;
  }
  .carousel h2 {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
  }
  .carousel-scrollbar {
    max-width: 1280px;
    margin: auto;
  }
}
/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
.hero-single-page {
  background-position: center;
  background-size: 110% auto;
  background-repeat: no-repeat;
  width: 100%;
  min-height: clamp(200px, 35vw, 464px);
  display: flex;
  justify-content: center; /* Horizontally centers */
  align-items: center;
}

.post-hero-content {
  display: flex;
  flex-direction: column;
  padding: 20px;
  text-align: center;
}
.post-hero-content h1 {
  max-width: 100%;
  margin-bottom: 1rem;
  font-size: clamp(24px, 7vw, 90px);
  line-height: 1.1;
}

.post-date, .post-author {
  color: #fcfcfc;
  font-size: clamp(10px, 5vw, 18px);
}

.affiliate-disclaimer {
  width: 100%;
  line-height: 1.2;
  max-width: 820px;
  margin: 2rem auto;
  padding: 0 20px;
}
.affiliate-disclaimer small {
  font-size: 0.75rem;
}

.post-body-container {
  width: 100%;
  max-width: 1280px;
  margin: 2rem auto 0;
  padding: 0 20px;
}
.post-body-container .wp-block-embed-youtube,
.post-body-container .wp-block-preformatted,
.post-body-container .wp-block-separator,
.post-body-container .wp-block-heading,
.post-body-container .wp-block-embed {
  width: 100%;
  max-width: 780px;
  margin: 30px auto;
}
.post-body-container .wp-block-embed__wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.post-body-container .wp-block-embed__wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.post-body-container img {
  width: 780px;
  height: auto;
  margin: 0 auto 2rem; /* Centers the image horizontally */
}
.post-body-container p {
  font-size: 18px;
  font-weight: 400;
  color: var(--site-text);
  margin: 0 0 18px 0;
  line-height: 2;
  max-width: 780px;
  margin: 0 auto 2rem; /* Centers the paragraph horizontally */
}

.post-return-link {
  display: flex;
  justify-content: center;
  margin: 2rem auto;
}

.article-share {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 780px;
  margin: 2rem auto;
}
.article-share a {
  display: inline-flex;
  align-items: center;
}
.article-share a.social-icon img {
  transition: opacity 0.2s ease-in-out;
}
.article-share img {
  width: 32px;
  height: 32px;
  margin: 0;
}

.related-content {
  max-width: 780px;
  margin: 3rem auto;
}
.related-content h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--site-text);
  margin: 0 0 36px 0;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 1rem;
}

.related-content-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}
.related-content-grid img {
  width: 100%;
  object-fit: contain;
  margin: 0;
}

.related-content-card {
  min-width: 0;
}
.related-content-card a {
  color: inherit;
  text-decoration: none;
}
.related-content-card h3 {
  font-size: 27px;
  font-weight: 700;
  color: var(--site-text);
  line-height: 1.2;
}

@media (min-width: 600px) {
  .related-content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .related-content-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
blockquote,
.wp-block-quote {
  margin: 30px auto;
  padding: 16px 24px;
  color: var(--site-text);
}

.wp-block-quote p {
  font-style: italic;
  font-size: 1.75rem;
  border-left: 4px solid #f59e0b;
  margin: 0 auto;
  line-height: 1.5;
  padding: 0rem 1rem;
}

/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
.book-review-grid-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  background: var(--site-panel);
  border: 1px solid var(--site-border);
  border-radius: 12px;
  padding: 24px;
  margin: 30px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.book-review-grid-container .book-review-main-box {
  display: flex;
  align-items: center;
  gap: 30px;
}
.book-review-grid-container .review-cover-col {
  flex-shrink: 0;
}
.book-review-grid-container .review-cover-col .review-book-cover {
  width: 160px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: block;
  margin: 0;
}
.book-review-grid-container .review-cover-col .amazon-buy-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.book-review-grid-container .review-details-col {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.book-review-grid-container .rating-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.book-review-grid-container .rating-row .outlet-rating-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.book-review-grid-container .rating-row .outlet-rating-summary {
  display: flex;
  align-items: center;
  gap: 16px;
}
.book-review-grid-container .rating-row .review-count {
  font-size: 0.75rem;
  line-height: 1.3;
  color: var(--site-muted);
}
.book-review-grid-container .rating-row .outlet-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
  margin: 0;
}
.book-review-grid-container .rating-row .star-rating-wrapper {
  position: relative;
  display: inline-block;
  font-size: 22px;
  line-height: 1;
  font-family: Arial, sans-serif;
  letter-spacing: 2px;
}
.book-review-grid-container .rating-row .star-rating-wrapper .stars-outer {
  color: var(--site-border);
}
.book-review-grid-container .rating-row .star-rating-wrapper .stars-inner {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  white-space: nowrap;
  overflow: hidden;
  color: #f59e0b;
  pointer-events: none;
}
.book-review-grid-container .rating-row .score-numerical {
  font-size: clamp(0.75rem, 2.5vw, 1.25rem);
  color: var(--site-text);
}
.book-review-grid-container .review-box-footer {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px dashed var(--site-border);
  font-size: 0.85rem;
  color: var(--site-muted);
  text-align: center;
  font-style: italic;
}

@media (max-width: 600px) {
  .book-review-grid-container {
    padding: 18px;
  }
  .book-review-grid-container .book-review-main-box {
    flex-direction: column;
    gap: 20px;
  }
  .book-review-grid-container .review-details-col {
    width: 100%;
  }
  .book-review-grid-container .rating-row {
    gap: 10px;
  }
  .book-review-grid-container .rating-row .outlet-rating-summary {
    gap: 10px;
  }
}
/* CONTENT BANNER */
.hero-content,
.hero-shop,
.hero-blog,
.hero-about {
  display: grid;
  min-height: 464px;
  padding: 20px 20px;
}
.hero-content .text,
.hero-shop .text,
.hero-blog .text,
.hero-about .text {
  display: grid;
  width: 100%;
  margin: auto;
}
.hero-content .text h1,
.hero-content .text h2,
.hero-shop .text h1,
.hero-shop .text h2,
.hero-blog .text h1,
.hero-blog .text h2,
.hero-about .text h1,
.hero-about .text h2 {
  font-size: 45px;
  font-weight: bolder;
  color: #fcfcfc;
  margin: 0 0 36px 0;
  line-height: 1.2;
}
@media (min-width: 1280px) {
  .hero-content .text h1,
  .hero-content .text h2,
  .hero-shop .text h1,
  .hero-shop .text h2,
  .hero-blog .text h1,
  .hero-blog .text h2,
  .hero-about .text h1,
  .hero-about .text h2 {
    font-size: 90px;
  }
}
.hero-content .text .description,
.hero-shop .text .description,
.hero-blog .text .description,
.hero-about .text .description {
  font-size: 18px;
  font-weight: 400;
  color: #fcfcfc;
  margin: 0 0 18px 0;
  line-height: 2;
}

.hero-content .text,
.hero-shop .text {
  justify-content: left;
}

.hero-blog .text,
.hero-about .text {
  justify-content: right;
}

.hero-content {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url("../img/hero-content-banner.webp") center/cover;
}
.hero-content .primary-btn {
  margin-right: auto;
}

.hero-blog {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url("../img/blog-banner.webp") center/cover;
  text-align: right;
}
.hero-blog .text h2 {
  text-align: right;
}
.hero-blog .primary-btn {
  margin-left: auto;
}

.hero-shop {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url("../img/shop-banner.webp") center/cover;
  margin-bottom: 2rem;
}
.hero-shop .text h2 {
  text-align: left;
}
.hero-shop .primary-btn {
  margin-right: auto;
}

.hero-about {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url("../img/about-banner.webp") center/cover;
  text-align: right;
  margin-bottom: 2rem;
}
.hero-about .primary-btn {
  margin-left: auto;
}

/* MEDIA QUERY 800px */
@media (min-width: 800px) {
  .hero-content .text h1,
  .hero-content .text h2,
  .hero-shop .text h1,
  .hero-shop .text h2,
  .hero-blog .text h1,
  .hero-blog .text h2,
  .hero-about .text h1,
  .hero-about .text h2 {
    max-width: 500px;
  }
  .hero-content .text .description,
  .hero-shop .text .description,
  .hero-blog .text .description,
  .hero-about .text .description {
    max-width: 500px;
  }
}
/* MEDIA QUERY 1280px*/
@media (min-width: 1280px) {
  .hero-content,
  .hero-shop,
  .hero-blog,
  .hero-about {
    padding: 20px 40px 20px 40px;
  }
  .hero-content .text,
  .hero-shop .text,
  .hero-blog .text,
  .hero-about .text {
    margin: auto;
    max-width: 1270px;
  }
  .hero-content .text h1,
  .hero-content .text h2,
  .hero-shop .text h1,
  .hero-shop .text h2,
  .hero-blog .text h1,
  .hero-blog .text h2,
  .hero-about .text h1,
  .hero-about .text h2 {
    max-width: 1000px;
    line-height: 1.2;
  }
  .hero-content .text .description,
  .hero-shop .text .description,
  .hero-blog .text .description,
  .hero-about .text .description {
    max-width: 1000px;
  }
}
/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
.error-page-main {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.error-404 {
  width: 100%;
  max-width: 820px;
  margin: auto;
  padding: clamp(2rem, 8vw, 5rem) 20px;
  text-align: center;
}

.error-404 .page-title {
  margin-bottom: 1rem;
  color: var(--site-text);
}

.error-404 .page-content > p {
  margin-bottom: 1.5rem;
}

.error-404 .search-form {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.error-404 .search-form label {
  flex: 1;
}

.error-404 .search-field {
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--site-text);
  border-radius: 4px;
}

.error-404 .search-submit {
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 4px;
  background: var(--site-text);
  color: #fcfcfc;
  cursor: pointer;
}

.error-404 .error-home-link {
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .error-404 .search-form {
    flex-direction: column;
  }
}
/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
body.search {
  margin: 0;
  padding: 0;
}

.search-header-banner {
  width: 100%;
  margin: 0;
  padding: 0;
}

.search-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: center;
}

.search-title {
  width: 100%;
  margin: 0;
  color: var(--site-text);
  text-align: center;
}

.search-count {
  margin: 0;
  text-align: center;
}

.search-again-box {
  display: flex;
  justify-content: center;
  width: 100%;
}

.search-again-box .search-form {
  display: flex;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
}

.search-results-list {
  align-self: center;
  width: 100%;
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 20px;
}

.search-results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.search-result {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--site-border);
}

.search-result-thumbnail {
  display: block;
  flex: 0 0 120px;
}

.search-result-thumbnail img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  clip-path: inset(5% 5% 5% 5%);
  border-radius: 25px;
}

.search-result-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.search-result-category {
  margin: 0 0 0.25rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-result-content h2 {
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  margin-top: 0;
  margin-bottom: 0.5rem;
  text-align: left;
}

.search-result-content h2 a {
  color: inherit;
  text-decoration: none;
}

.search-result-content p {
  margin: 0;
  font-size: 1rem;
}

.search-no-results {
  text-align: center;
}

.hero-content-page {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url("../img/hero-content-banner.webp") center/cover;
  width: 100%;
  height: clamp(200px, 35vw, 464px);
  display: flex;
  justify-content: center; /* Horizontally centers */
  align-items: center;
}

.content-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: auto;
  gap: 1rem;
}

.content > h2 {
  margin-top: 36px;
  text-align: center;
}

@media (min-width: 800px) {
  .content-container {
    grid-template-columns: repeat(2, 1fr); /* Switches to 2 equal columns */
  }
}
/* 3. Desktop / Large Screens (1280px and up) */
@media (min-width: 1280px) {
  .content-container {
    grid-template-columns: repeat(3, 1fr); /* Locks into 3 equal columns */
  }
}
/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
.hero-blog-page {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url("../img/blog-banner.webp") center/cover;
  width: 100%;
  height: clamp(200px, 35vw, 464px);
  display: flex;
  justify-content: center; /* Horizontally centers */
  align-items: center;
}

.blog > h2 {
  margin-top: 20px;
  text-align: center;
}

.blog-container {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .blog-container {
    grid-template-columns: repeat(2, 1fr); /* Switches to 2 equal columns */
    grid-auto-rows: minmax(380px, 1fr);
  }
  .blog-card {
    align-self: stretch;
  }
  .blog-card .blog-content {
    display: flex;
    flex: 1;
    flex-direction: column;
  }
  .blog-card .blog-content .primary-btn {
    align-self: center;
    margin-top: auto;
  }
}
/* 3. Desktop / Large Screens (1280px and up) */
@media (min-width: 1280px) {
  .blog-container {
    grid-template-columns: repeat(1, 1fr); /* Switches to 2 equal columns */
  }
  .blog-card {
    max-width: 1150px;
    flex-direction: row;
    gap: 2rem;
  }
  .blog-card > .image-wrapper {
    align-self: center;
  }
  .blog-content {
    display: flex;
    flex: initial;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 500px;
  }
  .blog-card .blog-content .primary-btn {
    margin-top: 0;
  }
}
/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
.hero-shop-page {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url("../img/shop-banner.webp") center/cover;
  width: 100%;
  height: clamp(200px, 35vw, 464px);
  display: flex;
  justify-content: center; /* Horizontally centers */
  align-items: center;
}

.shop > h2 {
  margin-top: 20px;
  text-align: center;
}

.shop-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.shop-container p {
  font-size: 18px;
  font-weight: 400;
  color: var(--site-text);
  margin: 0 0 18px 0;
  line-height: 2;
  max-width: 780px;
  margin: 0 auto 2rem; /* Centers the paragraph horizontally */
  text-align: center;
}

/*
Theme Name: Off Shelf Books
Author: Evan Briscall
Version: 1.0
Description: Custom hand-coded theme for Off Shelf Books portfolio project.
*/
:root {
  interpolate-size: allow-keywords; /* Enables height: auto transitions! */
}

.hero-about-page {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url("../img/about-banner.webp") center/cover;
  width: 100%;
  height: clamp(200px, 35vw, 464px);
  display: flex;
  justify-content: center; /* Horizontally centers */
  align-items: center;
}

.about > h2,
.faq > h2 {
  margin-top: 20px;
  text-align: center;
}

.about-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.about-container img {
  width: 780px;
  height: auto;
  margin: 0 auto 2rem; /* Centers the image horizontally */
}
.about-container p {
  font-size: 18px;
  font-weight: 400;
  color: var(--site-text);
  margin: 0 0 18px 0;
  line-height: 2;
  max-width: 780px;
  margin: 0 auto 2rem; /* Centers the paragraph horizontally */
}

.faq-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}
.faq-container h2 {
  font-size: 36px;
  font-weight: bold;
  color: var(--site-text);
  margin: 0 0 36px 0;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 2rem;
}
.faq-container .faq-item {
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem;
  background: var(--site-surface);
  margin-bottom: 1.5rem;
  border-radius: 4px;
  /* 1. Target the hidden wrapper area natively created by the browser */
}
.faq-container .faq-item::details-content {
  transition: height 0.3s ease, opacity 0.3s ease, content-visibility 0.3s ease allow-discrete;
  height: 0;
  opacity: 0;
  overflow: hidden; /* Crucial so text doesn't spill out while shrinking */
  transition-behavior: allow-discrete;
}
.faq-container .faq-item {
  /* 2. Tell it what height to go to when the item is opened */
}
.faq-container .faq-item[open]::details-content {
  height: auto;
  opacity: 1;
}
.faq-container .faq-item summary {
  font-size: 27px;
  font-weight: 700;
  color: var(--site-text);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
}
.faq-container .faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-container .faq-item summary img {
  display: block;
  flex: 0 0 1rem;
  width: 1rem;
  transition: transform 0.2s ease;
}
html[data-theme=dark] .faq-container .faq-item summary img {
  filter: brightness(0) invert(1);
}
.faq-container .faq-item[open] summary img {
  transform: rotate(180deg);
}
.faq-container .faq-item p {
  font-size: 18px;
  font-weight: 400;
  color: var(--site-text);
  margin: 0 0 18px 0;
  line-height: 2;
  margin: 0.75rem 0 0 0;
}

.hero-contact-page {
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url("../img/contact-banner.webp") center/cover;
  width: 100%;
  height: clamp(200px, 35vw, 464px);
  display: flex;
  justify-content: center; /* Horizontally centers */
  align-items: center;
}

.contact {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

.contact > h2 {
  text-align: center;
}

.contact .wpcf7 {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
}

.contact .wpcf7 label {
  font-weight: 700;
}

.contact .wpcf7 form p {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Style the input fields and text area */
.contact-form-row input[type=text],
.contact-form-row input[type=email],
.contact-form-row textarea {
  width: 100%;
  max-width: 780px;
  margin: 6px 0 0;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

.contact-form-row textarea {
  display: block;
  /* 1. Prevent resizing left and right completely */
  resize: vertical;
  /* 2. Set the starting size of the box */
  height: 150px;
  /* 3. Limit how far they can stretch it up or down */
  min-height: 100px;
  max-height: 350px;
}

/* Style the submit button */
.contact-form-submit input[type=submit] {
  display: block;
  margin: 0 auto;
  background-color: #0073aa;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.contact-form-submit input[type=submit]:hover {
  background-color: #005177;
}

/* Style the error messages */
.contact .wpcf7 .wpcf7-not-valid-tip {
  color: red;
  font-size: 0.875rem;
  margin-top: 2px;
  line-height: 1.25;
}

.contact .wpcf7 .wpcf7-response-output {
  margin: 0.5rem 0 0;
}

.hero-subcontent-page {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  width: 100%;
  height: clamp(200px, 35vw, 464px);
  display: flex;
  justify-content: center; /* Horizontally centers */
  align-items: center;
}

.subcontent-container {
  max-width: 1280px;
  margin: 2rem auto 0;
  padding: 0 20px;
}

.subcontent-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 1rem;
}

.subcontent-card-link {
  text-decoration: none;
}

@media (min-width: 550px) {
  .subcontent-grid {
    grid-template-columns: repeat(2, 1fr); /* Switches to 2 equal columns */
  }
}
@media (min-width: 800px) {
  .subcontent-grid {
    grid-template-columns: repeat(3, 1fr); /* Switches to 3 equal columns */
  }
}
/* 3. Desktop / Large Screens (1280px and up) */
@media (min-width: 1280px) {
  .subcontent-grid {
    grid-template-columns: repeat(4, 1fr); /* Locks into 4 equal columns */
  }
}
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body {
  font-family: "Red Hat Display", sans-serif;
  line-height: 1.5;
  margin: 0;
  overflow-x: clip;
  background: var(--site-page);
  color: var(--site-text);
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
  display: flex;
  flex-direction: column;
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
  }
}/*# sourceMappingURL=main.css.map */