/*
Theme Name: The Blind Man Website Theme
Theme URI: https://example.com/the-blind-man
Author: The Blind Man Project
Author URI: https://example.com/
Description: Dark, edgy, vintage-inspired luxury streetwear theme for The Blind Man Project. Includes WooCommerce support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-blind-man
Tags: dark-theme, e-commerce, custom-colors, custom-menu, featured-images, wide-blocks
*/

:root {
  --tbm-bg: #111111;
  --tbm-panel: #191919;
  --tbm-panel-light: #242321;
  --tbm-text: #f4f0e8;
  --tbm-muted: #aaa49a;
  --tbm-accent: #c8bda7;
  --tbm-border: rgba(244, 240, 232, .16);
  --tbm-max: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--tbm-bg);
  color: var(--tbm-text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
}
body, button, input, select, textarea { font-family: "Inter", Arial, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tbm-text); text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover, a:focus { color: var(--tbm-accent); }
button, input[type="submit"], .button, .wp-block-button__link {
  cursor: pointer;
}
h1, h2, h3, h4, h5, h6, .brand-title, .eyebrow, .menu a, .button, .product-card h2, .site-title {
  font-family: "Cinzel", Georgia, serif;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
  line-height: 1.25;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.7rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.8rem); }
p { margin-top: 0; }
:focus-visible { outline: 2px solid var(--tbm-accent); outline-offset: 4px; }
.container { width: min(calc(100% - 40px), var(--tbm-max)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--tbm-border); background: rgba(17,17,17,.96); position: relative; z-index: 10; }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-branding { display: flex; align-items: center; gap: 13px; min-width: 190px; }
.custom-logo { max-height: 58px; width: auto; }
.site-title { display: block; font-size: 1.02rem; letter-spacing: .18em; }
.site-description { color: var(--tbm-muted); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; margin: 4px 0 0; }
.main-navigation ul { display: flex; gap: 28px; list-style: none; padding: 0; margin: 0; }
.main-navigation a { font-size: .72rem; letter-spacing: .13em; }
.header-actions { display: flex; align-items: center; gap: 16px; white-space: nowrap; font-size: .78rem; }
.menu-toggle { display: none; background: transparent; border: 1px solid var(--tbm-border); color: var(--tbm-text); padding: 10px 13px; }
.hero { min-height: min(760px, 78vh); display: flex; align-items: center; position: relative; overflow: hidden; background: radial-gradient(ellipse at 70% 42%, #39352f 0, #22211f 23%, #151515 56%, #101010 100%); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .32; background: linear-gradient(90deg, rgba(0,0,0,.86), rgba(0,0,0,.12)), repeating-linear-gradient(135deg, transparent 0 16px, rgba(255,255,255,.018) 17px 18px); }
.hero-inner { position: relative; padding-block: 100px; max-width: 760px; }
.eyebrow { color: var(--tbm-accent); font-size: .72rem; letter-spacing: .24em; margin-bottom: 18px; }
.hero h1 { margin: 0 0 22px; max-width: 800px; }
.hero p { color: #d0cbc2; font-size: clamp(1rem, 1.4vw, 1.2rem); max-width: 540px; }
.button, .wp-block-button__link, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, button.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--tbm-accent); background: var(--tbm-accent); color: #141414;
  padding: 14px 23px; font-size: .72rem; letter-spacing: .12em; border-radius: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.button:hover, .wp-block-button__link:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover {
  background: transparent; color: var(--tbm-text); border-color: var(--tbm-accent);
}
.button.button-outline { background: transparent; color: var(--tbm-text); margin-left: 10px; }
.button.button-outline:hover { background: var(--tbm-accent); color: #141414; }
.section { padding-block: 82px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading h2 { margin: 0; }
.section-heading p { color: var(--tbm-muted); max-width: 440px; margin: 0; }
.category-grid, .product-grid, .editorial-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.category-card { min-height: 360px; display: flex; align-items: end; padding: 30px; position: relative; overflow: hidden; background: linear-gradient(145deg, #36332e, #1b1b1b 55%, #111); border: 1px solid var(--tbm-border); }
.category-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.8), transparent 70%); }
.category-card:nth-child(2) { background: linear-gradient(145deg, #292b2c, #181818 55%, #101010); }
.category-card > div { position: relative; }
.category-card h3 { font-size: clamp(1.6rem, 3vw, 2.5rem); margin: 0 0 10px; }
.category-card p { color: #d0cbc2; margin: 0 0 18px; }
.text-link { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; border-bottom: 1px solid var(--tbm-accent); padding-bottom: 6px; }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card { min-width: 0; }
.product-card .product-image { aspect-ratio: 3 / 4; background: linear-gradient(145deg, #34322f, #1b1b1b 60%, #111); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--tbm-border); }
.product-card .product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-placeholder { color: #7e786e; font-family: "Cinzel", Georgia, serif; font-size: .75rem; letter-spacing: .16em; text-align: center; padding: 20px; }
.product-card h2 { font-size: .9rem; letter-spacing: .07em; margin: 15px 0 7px; }
.product-card .price { color: var(--tbm-accent); font-size: .9rem; }
.story-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; background: var(--tbm-panel); padding: clamp(28px, 6vw, 76px); border: 1px solid var(--tbm-border); }
.story-art { min-height: 340px; background: radial-gradient(ellipse at center, #4a443a, #262421 40%, #151515 76%); display: flex; align-items: center; justify-content: center; border: 1px solid var(--tbm-border); }
.story-monogram { font-family: "Cinzel", Georgia, serif; font-size: clamp(5rem, 12vw, 10rem); line-height: 1; color: #d2c7b2; text-shadow: 0 8px 35px rgba(0,0,0,.6); }
.story-copy p { color: var(--tbm-muted); max-width: 550px; }
.editorial-grid { grid-template-columns: 1.1fr .9fr .9fr; }
.editorial-tile { min-height: 300px; padding: 24px; display: flex; align-items: end; background: linear-gradient(145deg, #37332d, #1a1a1a 60%, #111); border: 1px solid var(--tbm-border); }
.editorial-tile:nth-child(2) { background: linear-gradient(145deg, #343638, #1a1a1a 60%, #111); }
.editorial-tile:nth-child(3) { background: linear-gradient(145deg, #3a3029, #1a1a1a 60%, #111); }
.editorial-tile span { font-family: "Cinzel", Georgia, serif; font-size: 1.15rem; letter-spacing: .1em; text-transform: uppercase; }
.newsletter { text-align: center; border-top: 1px solid var(--tbm-border); border-bottom: 1px solid var(--tbm-border); background: #151515; padding: 70px 20px; }
.newsletter p { color: var(--tbm-muted); }
.site-footer { padding: 44px 0 26px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 28px; border-bottom: 1px solid var(--tbm-border); }
.footer-brand { font-family: "Cinzel", Georgia, serif; letter-spacing: .16em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; color: var(--tbm-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; color: var(--tbm-muted); font-size: .75rem; padding-top: 20px; }
.content-area { padding-block: 60px; min-height: 45vh; }
.page-title { margin-top: 0; }
.entry-content { max-width: 860px; }
.entry-content a { text-decoration: underline; text-underline-offset: 4px; }
.entry-content blockquote { border-left: 2px solid var(--tbm-accent); padding-left: 22px; color: var(--tbm-muted); }
.post-card { padding: 26px 0; border-bottom: 1px solid var(--tbm-border); }
.post-card h2 { font-size: 1.5rem; }
.pagination, .nav-links { display: flex; gap: 12px; margin-top: 28px; }
.pagination a, .pagination span, .nav-links a { border: 1px solid var(--tbm-border); padding: 9px 14px; }
input, textarea, select { max-width: 100%; background: #1b1b1b; color: var(--tbm-text); border: 1px solid #45413a; padding: 12px; }
input[type="search"] { width: 100%; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute !important; white-space: nowrap; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img { height: auto; }
.woocommerce ul.products li.product { background: #181818; border: 1px solid var(--tbm-border); padding: 12px; }
.woocommerce ul.products li.product a img { margin-bottom: 15px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--tbm-text); font-size: .95rem; }
.woocommerce div.product .product_title { font-size: clamp(1.8rem, 4vw, 3rem); }
.woocommerce span.onsale { background: var(--tbm-accent); color: #111; border-radius: 0; min-height: auto; min-width: auto; padding: 6px 10px; line-height: 1.3; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--tbm-accent); background: #1c1c1c; color: var(--tbm-text); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--tbm-accent); }
.woocommerce table.shop_table { border-color: var(--tbm-border); }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-color: var(--tbm-border); }
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; padding-block: 14px; }
  .main-navigation { order: 3; width: 100%; display: none; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-wrap: wrap; gap: 16px 22px; padding: 12px 0 4px; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-panel { grid-template-columns: 1fr; }
  .editorial-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .container { width: min(calc(100% - 28px), var(--tbm-max)); }
  .header-inner { gap: 12px; }
  .site-branding { min-width: 0; }
  .site-title { font-size: .84rem; }
  .site-description { display: none; }
  .header-actions { gap: 10px; font-size: .7rem; }
  .hero { min-height: 600px; }
  .hero-inner { padding-block: 75px; }
  .button.button-outline { margin: 12px 0 0; }
  .section { padding-block: 56px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 12px; }
  .category-grid, .editorial-grid { grid-template-columns: 1fr; }
  .category-card { min-height: 290px; }
  .product-grid { gap: 12px; }
  .product-card h2 { font-size: .75rem; }
  .story-panel { padding: 24px; gap: 24px; }
  .story-art { min-height: 230px; }
  .footer-top, .footer-bottom { flex-direction: column; }
}
