/*
Theme Name:  WBB Theme
Theme URI:   https://webrownbacon.com
Description: We Brown Bacon — Official Network Theme. No dependencies. Built for WordPress 7 full site editing with GenerateBlocks Pro.
Author:      We Brown Bacon
Author URI:  https://webrownbacon.com
Version:     2.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wbb-theme
Tags:        full-site-editing, block-editor, travel, blog, network
*/

/* ============================================================
   CSS CUSTOM PROPERTIES — Dusty Road Palette
   ============================================================ */
:root {
  --wbb-tan:        #C17F4A;
  --wbb-green:      #4A6741;
  --wbb-parchment:  #E8D5B0;
  --wbb-espresso:   #2C2416;
  --wbb-cream:      #F7F2EA;
  --wbb-surface:    #F0EBE0;
  --wbb-border:     #E0D4C0;
  --wbb-text:       #1E1812;
  --wbb-text-2:     #5A4E42;
  --wbb-muted:      #9A8E82;
  --wbb-serif:      'Playfair Display', Georgia, serif;
  --wbb-sans:       'Inter', 'Helvetica Neue', Arial, sans-serif;
  --wbb-mono:       'JetBrains Mono', 'Courier New', monospace;
  --wbb-r-sm:       4px;
  --wbb-r-md:       8px;
  --wbb-r-lg:       14px;
  --wbb-r-full:     9999px;
  --wbb-ease:       0.2s ease;
  --wbb-shadow-sm:  0 1px 3px rgba(44,36,22,0.12);
  --wbb-shadow-md:  0 4px 16px rgba(44,36,22,0.12);
  --wbb-shadow-lg:  0 8px 32px rgba(44,36,22,0.16);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--wbb-cream);
  color: var(--wbb-text);
  font-family: var(--wbb-sans);
  font-size: 1rem;
  line-height: 1.7;
}

::selection { background: var(--wbb-tan); color: var(--wbb-cream); }

:focus-visible {
  outline: 2px solid var(--wbb-tan);
  outline-offset: 3px;
  border-radius: var(--wbb-r-sm);
}

img, video { max-width: 100%; height: auto; display: block; }

/* ============================================================
   LAYOUT — Full width, no containers fighting us
   ============================================================ */
.wp-site-blocks,
.wp-block-group,
.entry-content {
  padding: 0;
}

/* Block alignment escape hatches */
.alignfull {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--wbb-serif);
  color: var(--wbb-espresso);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.75em;
}

h5, h6 {
  font-family: var(--wbb-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--wbb-muted);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.875rem); font-weight: 600; }
h4 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; }
h5 { font-size: 0.875rem; font-weight: 700; }
h6 { font-size: 0.75rem; font-weight: 700; }

p { margin: 0 0 1.5em; }
p:last-child { margin-bottom: 0; }

.wbb-eyebrow {
  font-family: var(--wbb-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wbb-tan);
  margin-bottom: 0.6em !important;
  display: block;
}

/* Dropcap */
.has-drop-cap::first-letter {
  font-family: var(--wbb-serif);
  font-size: 4.5em;
  font-weight: 700;
  color: var(--wbb-tan);
  float: left;
  line-height: 0.75;
  margin: 0.08em 0.1em 0 0;
}

/* ============================================================
   LINKS
   ============================================================ */
a {
  color: var(--wbb-tan);
  text-decoration: none;
  transition: color var(--wbb-ease);
}
a:hover {
  color: var(--wbb-green);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* ============================================================
   HEADER
   ============================================================ */
.wp-block-template-part[data-slug="header"],
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247,242,234,0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wbb-border);
  width: 100%;
}

/* Site title in header */
.wp-block-site-title a,
.wp-block-site-title a:hover {
  font-family: var(--wbb-serif) !important;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--wbb-tan) !important;
  text-decoration: none !important;
}

/* Navigation */
.wp-block-navigation a {
  font-family: var(--wbb-sans) !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--wbb-text-2) !important;
  text-decoration: none !important;
  padding: 0.4rem 0.75rem;
  border-radius: var(--wbb-r-sm);
  transition: color var(--wbb-ease), background var(--wbb-ease);
}

.wp-block-navigation a:hover,
.wp-block-navigation .current-menu-item > a {
  color: var(--wbb-tan) !important;
  background: rgba(193,127,74,0.08);
  text-decoration: none !important;
}

/* Mobile nav button */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  color: var(--wbb-tan) !important;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.wp-block-button__link,
button, [type="submit"] {
  font-family: var(--wbb-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--wbb-r-sm) !important;
  transition: background var(--wbb-ease), color var(--wbb-ease);
  cursor: pointer;
}

/* Default button via theme.json handles colors */

/* ============================================================
   CARDS
   ============================================================ */
.wbb-card {
  background: var(--wbb-cream);
  border-radius: var(--wbb-r-lg);
  overflow: hidden;
  border: 1px solid var(--wbb-border);
  box-shadow: var(--wbb-shadow-sm);
  transition: box-shadow var(--wbb-ease), transform var(--wbb-ease);
}

.wbb-card:hover {
  box-shadow: var(--wbb-shadow-md);
  transform: translateY(-2px);
}

/* ============================================================
   VIDEO EMBED — 16:9 responsive wrapper
   ============================================================ */
.wbb-video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--wbb-r-lg);
  background: var(--wbb-espresso);
}

.wbb-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================================
   TRANSCRIPT BLOCK
   ============================================================ */
.wbb-transcript {
  background: var(--wbb-surface);
  border: 1px solid var(--wbb-border);
  border-radius: var(--wbb-r-lg);
  padding: 2rem;
}

.wbb-transcript__label {
  font-family: var(--wbb-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wbb-tan);
}

/* ============================================================
   PULLQUOTE
   ============================================================ */
.wbb-pullquote,
.wp-block-quote.wbb-pullquote {
  font-family: var(--wbb-serif);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-style: italic;
  color: var(--wbb-espresso);
  border-left: 4px solid var(--wbb-tan) !important;
  border-right: none !important;
  border-top: none !important;
  border-bottom: none !important;
  padding: 1rem 1.5rem 1rem 1.75rem;
  background: var(--wbb-surface);
  border-radius: 0 var(--wbb-r-md) var(--wbb-r-md) 0;
  margin: 2rem 0;
}

/* ============================================================
   TAGS & BADGES
   ============================================================ */
.wbb-tag {
  display: inline-block;
  padding: 0.2rem 0.75rem;
  border-radius: var(--wbb-r-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--wbb-surface);
  color: var(--wbb-text-2);
  border: 1px solid var(--wbb-border);
  transition: background var(--wbb-ease), color var(--wbb-ease);
  text-decoration: none;
}

.wbb-tag:hover {
  background: var(--wbb-tan);
  color: var(--wbb-cream);
  border-color: var(--wbb-tan);
  text-decoration: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.wp-block-template-part[data-slug="footer"] {
  background: var(--wbb-espresso);
  color: var(--wbb-parchment);
}

/* ============================================================
   BLOCK EDITOR — ADMIN STYLES
   Mirrors front-end so WYSIWYG is actually WYS
   ============================================================ */
.editor-styles-wrapper {
  background: var(--wbb-cream) !important;
  color: var(--wbb-text) !important;
  font-family: var(--wbb-sans) !important;
}

.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4 {
  font-family: var(--wbb-serif) !important;
  color: var(--wbb-espresso) !important;
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.wbb-text-tan      { color: var(--wbb-tan); }
.wbb-text-green    { color: var(--wbb-green); }
.wbb-text-muted    { color: var(--wbb-muted); }
.wbb-text-espresso { color: var(--wbb-espresso); }
.wbb-text-cream    { color: var(--wbb-cream); }
.wbb-bg-surface    { background: var(--wbb-surface); }
.wbb-bg-dark       { background: var(--wbb-espresso); color: var(--wbb-cream); }
.wbb-serif         { font-family: var(--wbb-serif); }
.wbb-mono          { font-family: var(--wbb-mono); font-size: 0.875em; }
.wbb-sr-only       { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .wbb-transcript { padding: 1.25rem; }
  h1 { letter-spacing: -0.01em; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  header, footer, .wp-block-button, nav { display: none; }
  body { background: white; color: black; font-size: 12pt; }
  a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #666; }
}
