/*
Theme Name: THE BULLY by K
Theme URI: https://thebullybyk.com
Author: THE BULLY by K
Description: Storefront theme for THE BULLY by K. Shows the products from the Products menu in a filterable, searchable grid that links to Etsy listings.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: thebullybyk
*/

/* ---- Storefront design (from storefront/index.html) ---- */
:root { --cream: #f5f5dc; --paper: #f8f4e8; --ink: #1d1b16; --border: #b7b1a0; --yellow: #f6dc57; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.5 Arial, sans-serif; }
h1,h2,p { margin: 0; }
h1,h2 { font-family: Georgia, serif; font-weight: 400; line-height: 1.15; }
h1 { font-size: clamp(1.6rem, 3.7vw, 2.6rem); }
h2 { font-size: 1.65rem; margin-bottom: 1rem; }
a { color: inherit; text-underline-offset: .2em; }
button,input,select { font: inherit; color: inherit; }
button,select { cursor: pointer; }
:focus-visible { outline: 2px solid #524510; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 82rem); margin-inline: auto; }
.masthead { background: var(--cream); border-bottom: 1px solid var(--border); }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1rem; padding-block: .35rem; }
.logo { display: block; position: relative; width: 8rem; aspect-ratio: 3; overflow: hidden; flex: none; }
.logo img { position: absolute; width: 100%; left: 0; top: -31%; }
.logo img { transform: translateY(-22%); }
.toolbar,.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.identity { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1.25rem, 4vw, 4rem); padding-block: clamp(1.2rem, 3vw, 2.5rem); }
.hero-copy { padding-top: clamp(.2rem, 2vw, 1.65rem); }
.hero-copy h1 { font-size: clamp(2.6rem, 6.5vw, 6.4rem); letter-spacing: -.065em; line-height: .95; }
.hero-copy em { display: block; }
.hero-copy p { margin-block: .9rem 1.35rem; max-width: 25rem; }
.hero-photo { margin: 0; width: min(100%, 29rem); justify-self: center; }
.hero-photo img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: center top; background: var(--cream); }
.hero-photo figcaption { padding-top: .6rem; font-size: .88rem; font-weight: 700; }
.hero-copy .cta { background: var(--ink); color: var(--paper); }
.hero-copy .cta:hover { background: var(--yellow); color: var(--ink); }
.cta { display: inline-block; text-align: center; padding: .65rem 1.2rem; border: 1px solid var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.cta:hover { background: var(--ink); color: white; }
.toolbar { justify-content: flex-end; border-block: 1px solid var(--border); padding-block: .6rem; }
.site-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.3rem; }
.site-nav a { padding-block: .5rem; font-size: .875rem; font-weight: 700; }
.menu-toggle { display: none; border: 1px solid var(--ink); background: transparent; padding: .4rem .75rem; }
input[type=search] { border: 1px solid #777; border-radius: 2rem; padding: .55rem 1rem; width: min(100%, 17rem); background: white; }
.catalogue { display: grid; grid-template-columns: clamp(11rem, 23vw, 16rem) minmax(0, 1fr); align-items: start; gap: clamp(1.25rem, 3vw, 2.5rem); padding-block: 1.6rem 3rem; }
.categories { display: grid; }
.categories button { display: flex; justify-content: space-between; align-items: center; gap: .65rem; min-height: 2.75rem; padding: .6rem .85rem .6rem .2rem; border: 0; border-right: 2px solid var(--border); background: transparent; text-align: left; }
.categories button:hover { background: var(--cream); }
.categories button[aria-pressed=true] { border-right-color: var(--ink); font-weight: 700; }
.category-count { font-variant-numeric: tabular-nums; }
.section-heading { margin-bottom: 1rem; }
.section-heading h2 { margin: 0; }
select { max-width: 100%; border: 1px solid var(--border); border-radius: 1rem; padding: .4rem .6rem; background: white; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.5rem 1rem; }
#featured { margin-bottom: 2.5rem; }
#featured h2, #items-title { font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.055em; }
.product { display: grid; align-content: start; gap: .3rem; text-decoration: none; min-width: 0; }
.product img { display: block; width: 100%; aspect-ratio: 5/4; object-fit: cover; border: 1px solid var(--ink); background: var(--cream); }
.product:hover .product-name { text-decoration: underline; }
.product-name { font-size: .91rem; }
.price { font-weight: 700; }
.info { border-top: 1px solid var(--border); padding-block: 1.8rem; }
.info p, .info details { max-width: 48rem; }
details { padding-block: .65rem; border-bottom: 1px solid var(--border); }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: .5rem; }
footer { background: var(--cream); padding-block: 1.3rem; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 720px) {
  .wrap { width: calc(100% - 2rem); }
  .toolbar { flex-wrap: wrap; }
  .catalogue { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-block: 1rem 2rem; }
  .categories { display: flex; gap: .45rem; overflow-x: auto; padding: .3rem .3rem .55rem; }
  .categories button { flex: none; border: 1px solid var(--border); padding-inline: .65rem; white-space: nowrap; }
  .categories button[aria-pressed=true] { border-color: var(--ink); }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .toolbar input { width: 100%; }
}
@media (max-width: 640px) {
  .masthead-inner { flex-wrap: wrap; }
  .menu-toggle { display: block; }
  .site-nav { width: 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--border); }
  .menu-toggle[aria-expanded="false"] + .site-nav { display: none; }
  .identity { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 0; }
  .hero-photo { justify-self: start; }
}

/* ---- WordPress additions ---- */
.screen-reader-text { border: 0; clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px; word-wrap: normal !important; }
.skip-link:focus { clip-path: none; height: auto; width: auto; margin: 0; top: .5rem; left: .5rem; z-index: 100000; padding: .6rem 1rem; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.logo.logo-custom { aspect-ratio: auto; overflow: visible; }
.logo.logo-custom img { position: static; transform: none; width: 100%; height: auto; }
.info > * { margin-block: 0; }
.info > h2 { margin-bottom: 1rem; }
.info > p + p, .info > ul, .info > ol { margin-top: 1rem; }
footer .legal { margin-top: .4rem; font-size: .8rem; max-width: 48rem; }
.page-content { padding-block: 2rem 3rem; }
.page-title { font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.055em; margin-bottom: 1.25rem; }
.entry-content > * { max-width: 48rem; margin-block: 0 1rem; }
.entry-content > h2, .entry-content > h3 { margin-top: 2rem; }
.post-list > article { border-top: 1px solid var(--border); padding-block: 1.25rem; }
.post-list h2 { margin-bottom: .5rem; }
.post-list a { text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
