/* ==========================================================================
   Perlé Studio — Global Brand Stylesheet
   Deep indigo blue primary · Warm ivory base · Cormorant Garamond + Inter
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. KADENCE PALETTE OVERRIDES
   Kadence uses --global-palette1 through --global-palette9 as its core
   color system. We override these at :root to establish the Perlé palette.
   -------------------------------------------------------------------------- */

:root {
  /* Primary brand anchor — deep indigo blue */
  --global-palette1: #1B2A4A;
  /* Accent alt / hover state */
  --global-palette2: #2D3F6B;
  /* Strongest text — deep indigo */
  --global-palette3: #1B2A4A;
  /* Strong text — dark slate */
  --global-palette4: #2E3A50;
  /* Medium text */
  --global-palette5: #5A6478;
  /* Subtle text / captions */
  --global-palette6: #8A9199;
  /* Subtle background — warm stone */
  --global-palette7: #F0ECE4;
  /* Lighter background — warm cream */
  --global-palette8: #F7F4EF;
  /* Base background — warm ivory */
  --global-palette9: #FDFBF7;

  /* Extended Perlé palette (non-Kadence) */
  --perle-burgundy: #6B2D3E;
  --perle-warm-orange: #C47A3A;
  --perle-brass: #B8976A;
  --perle-indigo-light: #3A5289;
  --perle-cream-dark: #E8E1D5;

  /* Typography */
  --perle-font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --perle-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --perle-content-width: 780px;
  --perle-wide-width: 1200px;
  --perle-max-width: 1400px;

  /* Spacing scale */
  --perle-space-xs: 0.5rem;
  --perle-space-sm: 1rem;
  --perle-space-md: 2rem;
  --perle-space-lg: 3.5rem;
  --perle-space-xl: 5rem;
  --perle-space-2xl: 7rem;

  /* Transitions */
  --perle-transition: 0.3s ease;
  --perle-transition-slow: 0.5s ease;
}


/* --------------------------------------------------------------------------
   2. TYPOGRAPHY
   -------------------------------------------------------------------------- */

body {
  font-family: var(--perle-font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--global-palette4);
  background-color: var(--global-palette9);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--perle-font-heading);
  color: var(--global-palette3);
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: var(--perle-space-sm);
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  margin-bottom: 0.75rem;
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

h4 {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
}

a {
  color: var(--global-palette1);
  text-decoration: none;
  transition: color var(--perle-transition);
}

a:hover,
a:focus {
  color: var(--global-palette2);
}

blockquote {
  font-family: var(--perle-font-heading);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--global-palette5);
  border-left: 3px solid var(--perle-burgundy);
  padding: var(--perle-space-sm) var(--perle-space-md);
  margin: var(--perle-space-md) 0;
  background-color: var(--global-palette8);
}

blockquote p {
  margin-bottom: 0.5rem;
}

figcaption,
.wp-element-caption {
  font-size: 0.85rem;
  color: var(--global-palette6);
  font-style: italic;
  margin-top: 0.5rem;
}

/* Small / meta text */
small,
.entry-meta,
.post-date,
.post-categories,
.post-author {
  font-size: 0.85rem;
  color: var(--global-palette5);
  letter-spacing: 0.03em;
}


/* --------------------------------------------------------------------------
   3. BUTTONS
   -------------------------------------------------------------------------- */

.wp-block-button__link,
button,
input[type="submit"],
.btn,
.button,
.entry-content .wp-block-button__link {
  font-family: var(--perle-font-body);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  transition: all var(--perle-transition);
  cursor: pointer;
  border: none;
  display: inline-block;
  text-align: center;
  line-height: 1.2;
}

/* Primary button */
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
button[type="submit"],
input[type="submit"],
.button:not(.wc-forward) {
  background-color: var(--global-palette1);
  color: var(--global-palette9);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
button[type="submit"]:hover,
input[type="submit"]:hover,
.button:not(.wc-forward):hover {
  background-color: var(--global-palette2);
  color: var(--global-palette9);
}

/* Outline button */
.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1.5px solid var(--global-palette1);
  color: var(--global-palette1);
}

.is-style-outline .wp-block-button__link:hover {
  background-color: var(--global-palette1);
  color: var(--global-palette9);
}

/* Burgundy accent button */
.wp-block-button.is-style-perle-burgundy .wp-block-button__link {
  background-color: var(--perle-burgundy);
  color: var(--global-palette9);
}

.wp-block-button.is-style-perle-burgundy .wp-block-button__link:hover {
  background-color: #7D3549;
  color: var(--global-palette9);
}

/* Focus-visible keyboard accessibility */
.wp-block-button__link:focus-visible,
button:focus-visible,
input[type="submit"]:focus-visible,
a:focus-visible {
  outline: 2px solid var(--global-palette1);
  outline-offset: 3px;
  border-radius: 2px;
}


/* --------------------------------------------------------------------------
   4. FORMS
   -------------------------------------------------------------------------- */

/* Labels */
label,
.label {
  display: block;
  font-family: var(--perle-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--global-palette4);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

/* Base inputs, textareas, selects */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="date"],
textarea,
select {
  display: block;
  width: 100%;
  font-family: var(--perle-font-body);
  font-size: 0.95rem;
  color: var(--global-palette3);
  background-color: var(--global-palette9);
  border: 1px solid var(--perle-cream-dark);
  border-radius: 3px;
  padding: 0.65rem 0.85rem;
  line-height: 1.5;
  transition: border-color var(--perle-transition), box-shadow var(--perle-transition);
  appearance: none;
  -webkit-appearance: none;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder,
input[type="search"]::placeholder,
input[type="tel"]::placeholder,
input[type="url"]::placeholder,
input[type="number"]::placeholder,
textarea::placeholder {
  color: var(--global-palette6);
  font-size: 0.9rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  border-color: var(--global-palette1);
  box-shadow: 0 0 0 2px rgba(27, 42, 74, 0.1);
  outline: none;
}

/* Textarea */
textarea {
  resize: vertical;
  min-height: 140px;
}

/* Select — custom arrow */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6478' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Checkbox and radio */
input[type="checkbox"],
input[type="radio"] {
  width: 1rem;
  height: 1rem;
  border: 1.5px solid var(--perle-cream-dark);
  border-radius: 2px;
  background-color: var(--global-palette9);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: all var(--perle-transition);
  vertical-align: middle;
  position: relative;
  flex-shrink: 0;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--global-palette1);
  border-color: var(--global-palette1);
}

input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 4px;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
  box-shadow: 0 0 0 2px rgba(27, 42, 74, 0.15);
  outline: none;
}

/* Checkbox/radio inline label wrapper */
.form-row--inline,
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-row--inline label,
.checkbox-row label {
  margin-bottom: 0;
  cursor: pointer;
  font-weight: 400;
}

/* Fieldset */
fieldset {
  border: 1px solid var(--perle-cream-dark);
  border-radius: 4px;
  padding: var(--perle-space-md);
  margin-bottom: var(--perle-space-md);
}

legend {
  font-family: var(--perle-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--global-palette3);
  padding: 0 0.5rem;
}

/* Form group spacing */
.form-group,
.form-row,
p.comment-form-author,
p.comment-form-email,
p.comment-form-url,
p.comment-form-comment {
  margin-bottom: 1.25rem;
}

/* Search form — Gutenberg and Kadence */
.wp-block-search__inside-wrapper,
.search-form form {
  display: flex;
  border: 1px solid var(--perle-cream-dark);
  border-radius: 3px;
  overflow: hidden;
  background: var(--global-palette9);
}

.wp-block-search__input,
.search-form input[type="search"] {
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0.65rem 1rem;
  background: transparent;
  flex: 1;
}

.wp-block-search__input:focus,
.search-form input[type="search"]:focus {
  border: none;
  box-shadow: none;
  outline: none;
}

.wp-block-search__button,
.search-form input[type="submit"],
.search-form button[type="submit"] {
  border-radius: 0;
  padding: 0.65rem 1.25rem;
  background-color: var(--global-palette1);
  color: var(--global-palette9);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  flex-shrink: 0;
}

/* WPForms (Lite) baseline */
.wpforms-container .wpforms-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--global-palette4);
  margin-bottom: 0.4rem;
}

.wpforms-container .wpforms-field input,
.wpforms-container .wpforms-field textarea,
.wpforms-container .wpforms-field select {
  border: 1px solid var(--perle-cream-dark);
  border-radius: 3px;
  font-family: var(--perle-font-body);
  font-size: 0.95rem;
  padding: 0.65rem 0.85rem;
}

.wpforms-container .wpforms-field input:focus,
.wpforms-container .wpforms-field textarea:focus,
.wpforms-container .wpforms-field select:focus {
  border-color: var(--global-palette1);
  box-shadow: 0 0 0 2px rgba(27, 42, 74, 0.1);
  outline: none;
}

.wpforms-container .wpforms-submit {
  background-color: var(--global-palette1);
  color: var(--global-palette9);
  font-family: var(--perle-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  border-radius: 3px;
  padding: 0.85rem 2rem;
  cursor: pointer;
  transition: background-color var(--perle-transition);
}

.wpforms-container .wpforms-submit:hover {
  background-color: var(--global-palette2);
}

/* Comment form baseline */
.comment-form input,
.comment-form textarea {
  border: 1px solid var(--perle-cream-dark);
  border-radius: 3px;
  font-family: var(--perle-font-body);
}

.comment-form input:focus,
.comment-form textarea:focus {
  border-color: var(--global-palette1);
  box-shadow: 0 0 0 2px rgba(27, 42, 74, 0.1);
  outline: none;
}

/* Text selection */
::selection {
  background-color: rgba(27, 42, 74, 0.15);
  color: var(--global-palette3);
}


/* --------------------------------------------------------------------------
   4. HEADER
   -------------------------------------------------------------------------- */

.site-header {
  background-color: var(--global-palette9);
  border-bottom: 1px solid var(--perle-cream-dark);
}

.site-header .site-branding .site-title {
  font-family: var(--perle-font-heading);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--global-palette1);
  letter-spacing: 0.02em;
}

/* Primary nav links */
.header-navigation .header-menu-container > ul > li > a {
  font-family: var(--perle-font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--global-palette4);
  padding: 0.5rem 1rem;
  transition: color var(--perle-transition);
}

.header-navigation .header-menu-container > ul > li > a:hover,
.header-navigation .header-menu-container > ul > li.current-menu-item > a {
  color: var(--global-palette1);
}

/* Sticky header — subtle */
.item-is-stuck .site-header,
.header-sticky .site-header.item-is-stuck {
  background-color: rgba(253, 251, 247, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--perle-cream-dark);
}


/* --------------------------------------------------------------------------
   5. FOOTER
   -------------------------------------------------------------------------- */

.site-footer {
  background-color: var(--global-palette7);
  border-top: 1px solid var(--perle-cream-dark);
  padding: var(--perle-space-lg) 0;
  color: var(--global-palette5);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--global-palette4);
}

.site-footer a:hover {
  color: var(--global-palette1);
}

.site-footer .footer-widget-area h2,
.site-footer .widget-title {
  font-family: var(--perle-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--global-palette3);
  margin-bottom: var(--perle-space-sm);
}

.footer-navigation .menu li a {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-footer .site-info {
  color: var(--global-palette6);
  font-size: 0.8rem;
  border-top: 1px solid var(--perle-cream-dark);
  padding-top: var(--perle-space-md);
  margin-top: var(--perle-space-md);
}


/* --------------------------------------------------------------------------
   6. HOMEPAGE SECTIONS
   -------------------------------------------------------------------------- */

/* Hero section */
.perle-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.perle-hero .wp-block-cover__inner-container {
  max-width: 700px;
  padding: var(--perle-space-lg);
}

.perle-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  color: var(--global-palette9);
  margin-bottom: var(--perle-space-sm);
  text-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.perle-hero p {
  font-size: 1.15rem;
  color: rgba(253, 251, 247, 0.9);
  max-width: 520px;
  margin: 0 auto var(--perle-space-md);
  line-height: 1.7;
}

/* Section spacing */
.perle-section {
  padding: var(--perle-space-xl) 0;
}

.perle-section--alt {
  background-color: var(--global-palette8);
}

/* Section headings */
.perle-section-heading {
  font-family: var(--perle-font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--global-palette3);
  text-align: center;
  margin-bottom: var(--perle-space-lg);
}

.perle-section-heading::after {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--perle-burgundy);
  margin: 0.75rem auto 0;
}

/* Brand statement */
.perle-brand-statement {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--perle-space-xl) var(--perle-space-md);
}

.perle-brand-statement p {
  font-family: var(--perle-font-heading);
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--global-palette4);
}


/* --------------------------------------------------------------------------
   7. CONTENT CARDS
   -------------------------------------------------------------------------- */

.perle-card {
  background-color: var(--global-palette9);
  border-radius: 4px;
  overflow: hidden;
  transition: transform var(--perle-transition), box-shadow var(--perle-transition);
  box-shadow: 0 1px 4px rgba(27, 42, 74, 0.06);
}

.perle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.1);
}

.perle-card__image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.perle-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--perle-transition-slow);
}

.perle-card:hover .perle-card__image img {
  transform: scale(1.03);
}

.perle-card__content {
  padding: 1.25rem 1.5rem 1.5rem;
}

.perle-card__category {
  display: inline-block;
  font-family: var(--perle-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--perle-burgundy);
  margin-bottom: 0.5rem;
}

.perle-card__title {
  font-family: var(--perle-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--global-palette3);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.perle-card__title a {
  color: inherit;
}

.perle-card__title a:hover {
  color: var(--global-palette2);
}

.perle-card__excerpt {
  font-size: 0.9rem;
  color: var(--global-palette5);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.perle-card__date {
  font-size: 0.78rem;
  color: var(--global-palette6);
  margin-top: 0.75rem;
}


/* --------------------------------------------------------------------------
   8. ARCHIVE / BLOG GRID
   -------------------------------------------------------------------------- */

/* Kadence archive grid overrides */
.loop-entry .entry-content-wrap {
  background-color: var(--global-palette9);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(27, 42, 74, 0.06);
  transition: transform var(--perle-transition), box-shadow var(--perle-transition);
}

.loop-entry .entry-content-wrap:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.1);
}

.loop-entry .post-thumbnail {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.loop-entry .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--perle-transition-slow);
}

.loop-entry .entry-content-wrap:hover .post-thumbnail img {
  transform: scale(1.03);
}

.loop-entry .entry-title {
  font-family: var(--perle-font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
}

.loop-entry .entry-title a {
  color: var(--global-palette3);
}

.loop-entry .entry-title a:hover {
  color: var(--global-palette2);
}

.loop-entry .entry-summary p {
  font-size: 0.9rem;
  color: var(--global-palette5);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category badge in loop */
.loop-entry .entry-taxonomies {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.loop-entry .entry-taxonomies a {
  color: var(--perle-burgundy);
}

.loop-entry .entry-meta {
  font-size: 0.78rem;
  color: var(--global-palette6);
}

/* Archive header */
.entry-hero .entry-header {
  text-align: center;
  padding: var(--perle-space-lg) 0;
}

.entry-hero .entry-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.entry-hero .archive-description {
  font-size: 1.05rem;
  color: var(--global-palette5);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}


/* --------------------------------------------------------------------------
   9. SINGLE POST
   -------------------------------------------------------------------------- */

.single .entry-content-wrap {
  max-width: var(--perle-content-width);
  margin: 0 auto;
  padding: 0 var(--perle-space-md);
}

/* Full-width featured image */
.single .post-thumbnail,
.single .entry-thumbnail {
  max-width: var(--perle-wide-width);
  margin: 0 auto var(--perle-space-lg);
}

.single .post-thumbnail img,
.single .entry-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Single post title */
.single .entry-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  text-align: center;
  max-width: var(--perle-content-width);
  margin: 0 auto var(--perle-space-sm);
}

/* Meta line */
.single .entry-meta {
  text-align: center;
  font-size: 0.85rem;
  color: var(--global-palette5);
  margin-bottom: var(--perle-space-lg);
  padding-bottom: var(--perle-space-md);
  border-bottom: 1px solid var(--perle-cream-dark);
}

/* Content spacing */
.single .entry-content h2 {
  margin-top: var(--perle-space-lg);
  padding-top: var(--perle-space-sm);
}

.single .entry-content h3 {
  margin-top: var(--perle-space-md);
}

/* Images within content */
.single .entry-content .wp-block-image {
  margin: var(--perle-space-md) 0;
}

.single .entry-content .wp-block-image img {
  border-radius: 4px;
}

/* Lists */
.single .entry-content ul,
.single .entry-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.single .entry-content li {
  margin-bottom: 0.4rem;
  line-height: 1.7;
}

/* Post tags at bottom */
.single .entry-tags {
  margin-top: var(--perle-space-lg);
  padding-top: var(--perle-space-md);
  border-top: 1px solid var(--perle-cream-dark);
}

.single .entry-tags a {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--perle-cream-dark);
  border-radius: 3px;
  margin: 0.25rem 0.25rem 0.25rem 0;
  color: var(--global-palette5);
  transition: all var(--perle-transition);
}

.single .entry-tags a:hover {
  border-color: var(--global-palette1);
  color: var(--global-palette1);
}

/* Related posts section */
.single .entry-related {
  margin-top: var(--perle-space-xl);
  padding-top: var(--perle-space-lg);
  border-top: 1px solid var(--perle-cream-dark);
}

.single .entry-related h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: var(--perle-space-md);
}


/* --------------------------------------------------------------------------
   10. RECIPE BLOCK PATTERN STYLES
   -------------------------------------------------------------------------- */

/* Recipe meta row */
.recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  background-color: var(--global-palette8);
  border-radius: 4px;
  margin: var(--perle-space-md) 0;
  text-align: center;
}

.recipe-meta .wp-block-column {
  flex: 0 1 auto;
  min-width: 100px;
}

.recipe-meta strong,
.recipe-meta .recipe-meta__label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--global-palette5);
  margin-bottom: 0.25rem;
}

.recipe-meta .recipe-meta__value {
  font-family: var(--perle-font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--global-palette3);
}

/* Ingredients & method sections */
.recipe-ingredients,
.recipe-method {
  margin: var(--perle-space-md) 0;
  padding: var(--perle-space-md);
  background-color: var(--global-palette8);
  border-radius: 4px;
}

.recipe-ingredients h2,
.recipe-method h2 {
  font-size: 1.5rem;
  margin-bottom: var(--perle-space-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--perle-cream-dark);
}

.recipe-ingredients ul {
  list-style: none;
  padding-left: 0;
}

.recipe-ingredients li {
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(27, 42, 74, 0.06);
  font-size: 0.95rem;
}

.recipe-ingredients li:last-child {
  border-bottom: none;
}

.recipe-method ol {
  padding-left: 1.5rem;
}

.recipe-method li {
  padding: 0.5rem 0;
  margin-bottom: 0.25rem;
  line-height: 1.7;
}

/* Chef's notes */
.recipe-notes {
  margin: var(--perle-space-md) 0;
  padding: var(--perle-space-md);
  border-left: 3px solid var(--perle-brass);
  background-color: var(--global-palette8);
  border-radius: 0 4px 4px 0;
}

.recipe-notes h2 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}


/* --------------------------------------------------------------------------
   11. PAGE TEMPLATES
   -------------------------------------------------------------------------- */

/* About / Our Story — narrative pages */
.page .entry-content {
  max-width: var(--perle-content-width);
  margin: 0 auto;
}

.page .entry-title {
  text-align: center;
  margin-bottom: var(--perle-space-md);
}

/* Full-width sections on pages */
.page .alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  width: 100vw;
}

/* Pull quote style for narrative pages */
.wp-block-pullquote {
  border: none;
  padding: var(--perle-space-md) 0;
}

.wp-block-pullquote blockquote {
  border-left: 3px solid var(--perle-burgundy);
  background: transparent;
}

.wp-block-pullquote blockquote p {
  font-family: var(--perle-font-heading);
  font-size: 1.4rem;
  color: var(--global-palette3);
  font-style: italic;
}

.wp-block-pullquote cite {
  font-family: var(--perle-font-body);
  font-size: 0.85rem;
  font-style: normal;
  color: var(--global-palette5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* --------------------------------------------------------------------------
   12. CORE TEMPLATES — HOMEPAGE
   -------------------------------------------------------------------------- */

/* Homepage wrapper */
.perle-page-homepage {
  overflow-x: hidden;
}



/* Hero — Gutenberg Cover block inside .perle-hero class */
.perle-page-homepage .perle-hero,
.perle-page-homepage .wp-block-cover.perle-hero {
  min-height: 85vh;
  position: relative;
}

.perle-page-homepage .wp-block-cover__inner-container {
  max-width: 680px;
  margin: 0 auto;
}

.perle-page-homepage .wp-block-cover h1,
.perle-page-homepage .wp-block-cover__inner-container h1 {
  font-family: var(--perle-font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 600;
  color: #FDFBF7;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 30px rgba(0,0,0,0.2);
  margin-bottom: 1.25rem;
}

.perle-page-homepage .wp-block-cover p {
  font-size: 1.1rem;
  color: rgba(253, 251, 247, 0.88);
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 2rem;
}

/* Featured Stories section (3-column editorial grid) */
.perle-featured-stories {
  padding: var(--perle-space-xl) var(--perle-space-md);
  max-width: var(--perle-wide-width);
  margin: 0 auto;
}

.perle-featured-stories__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Shop Highlight section */
.perle-shop-highlight {
  background-color: var(--global-palette8);
  padding: var(--perle-space-xl) var(--perle-space-md);
}

.perle-shop-highlight__inner {
  max-width: var(--perle-wide-width);
  margin: 0 auto;
}

.perle-shop-highlight__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: var(--perle-space-md);
}

.perle-shop-highlight__item {
  background-color: var(--global-palette9);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(27, 42, 74, 0.06);
  transition: transform var(--perle-transition), box-shadow var(--perle-transition);
}

.perle-shop-highlight__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 42, 74, 0.1);
}

.perle-shop-highlight__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.perle-shop-highlight__item-content {
  padding: 1rem 1.25rem 1.5rem;
}

.perle-shop-highlight__item-name {
  font-family: var(--perle-font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--global-palette3);
  margin-bottom: 0.35rem;
}

.perle-shop-highlight__item-price {
  font-size: 0.9rem;
  color: var(--global-palette5);
  margin-bottom: 1rem;
}

.perle-shop-highlight__cta {
  text-align: center;
  margin-top: var(--perle-space-lg);
}

/* Brand Statement section */
.perle-homepage-brand-statement {
  padding: var(--perle-space-2xl) var(--perle-space-md);
  text-align: center;
}

.perle-homepage-brand-statement__inner {
  max-width: 640px;
  margin: 0 auto;
}

.perle-homepage-brand-statement__divider {
  width: 40px;
  height: 2px;
  background-color: var(--perle-burgundy);
  margin: 0 auto var(--perle-space-md);
}

.perle-homepage-brand-statement p {
  font-family: var(--perle-font-heading);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.75;
  color: var(--global-palette4);
  font-style: normal;
}

/* From the Journal section */
.perle-homepage-journal {
  padding: var(--perle-space-xl) var(--perle-space-md);
  max-width: var(--perle-wide-width);
  margin: 0 auto;
}

.perle-homepage-journal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.perle-homepage-journal__view-all {
  text-align: center;
  margin-top: var(--perle-space-lg);
}

/* Our Story section */
.perle-our-story {
  background-color: var(--global-palette8);
  padding: var(--perle-space-2xl) var(--perle-space-md);
}

.perle-our-story__inner {
  max-width: var(--perle-wide-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.perle-our-story__image {
  border-radius: 4px;
  overflow: hidden;
}

.perle-our-story__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}



.perle-our-story__eyebrow {
  font-family: var(--perle-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--perle-burgundy);
  display: block;
  margin-bottom: 0.75rem;
}

.perle-our-story__heading {
  font-family: var(--perle-font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  color: var(--global-palette3);
  margin-bottom: var(--perle-space-sm);
}

.perle-our-story__body {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--global-palette4);
  margin-bottom: var(--perle-space-md);
}


/* --------------------------------------------------------------------------
   13. CORE TEMPLATES — ARCHIVE
   -------------------------------------------------------------------------- */

.perle-page-archive {
  background-color: var(--global-palette9);
}

/* Archive header */
.perle-archive-header {
  background-color: var(--global-palette8);
  border-bottom: 1px solid var(--perle-cream-dark);
  padding: var(--perle-space-lg) var(--perle-space-md);
  text-align: center;
}

.perle-archive-header__inner {
  max-width: 640px;
  margin: 0 auto;
}

.perle-archive-title {
  font-family: var(--perle-font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--global-palette3);
  margin-bottom: 0.75rem;
}

.perle-archive-description {
  font-size: 1.05rem;
  color: var(--global-palette5);
  line-height: 1.7;
}

.perle-archive-description p {
  margin-bottom: 0;
}

/* Archive grid — 3-column on desktop */
.perle-archive-main {
  max-width: var(--perle-wide-width);
  margin: 0 auto;
  padding: var(--perle-space-xl) var(--perle-space-md);
}

.perle-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: var(--perle-space-xl);
}

/* Archive entry card */
.perle-archive-entry {
  background-color: var(--global-palette9);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(27, 42, 74, 0.06);
  transition: transform var(--perle-transition), box-shadow var(--perle-transition);
  display: flex;
  flex-direction: column;
}

.perle-archive-entry:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.1);
}

.perle-archive-entry__image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  display: block;
}

.perle-archive-entry__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--perle-transition-slow);
}

.perle-archive-entry:hover .perle-archive-entry__image img {
  transform: scale(1.04);
}

.perle-archive-entry__content {
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.perle-archive-entry__category {
  display: inline-block;
  font-family: var(--perle-font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--perle-burgundy);
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color var(--perle-transition);
}

.perle-archive-entry__category:hover {
  color: var(--perle-burgundy);
  opacity: 0.75;
}

.perle-archive-entry__title {
  font-family: var(--perle-font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--global-palette3);
  line-height: 1.3;
  margin-bottom: 0.65rem;
}

.perle-archive-entry__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--perle-transition);
}

.perle-archive-entry__title a:hover {
  color: var(--global-palette2);
}

.perle-archive-entry__excerpt {
  font-size: 0.9rem;
  color: var(--global-palette5);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.perle-archive-entry__meta {
  font-size: 0.78rem;
  color: var(--global-palette6);
  margin-top: auto;
}

.perle-archive-entry__date {
  display: inline;
}

/* Archive pagination */
.perle-archive-pagination {
  padding-top: var(--perle-space-lg);
  border-top: 1px solid var(--perle-cream-dark);
}

.perle-archive-pagination .nav-links {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.perle-archive-pagination .page-numbers {
  font-family: var(--perle-font-body);
  font-size: 0.85rem;
  color: var(--global-palette5);
  border: 1px solid var(--perle-cream-dark);
  border-radius: 3px;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  transition: all var(--perle-transition);
}

.perle-archive-pagination .page-numbers:hover,
.perle-archive-pagination .page-numbers.current {
  background-color: var(--global-palette1);
  border-color: var(--global-palette1);
  color: var(--global-palette9);
}

.perle-archive-pagination .prev,
.perle-archive-pagination .next {
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

/* Empty state */
.perle-archive-empty {
  text-align: center;
  padding: var(--perle-space-2xl) var(--perle-space-md);
  color: var(--global-palette5);
  font-style: italic;
}


/* --------------------------------------------------------------------------
   14. CORE TEMPLATES — SINGLE POST
   -------------------------------------------------------------------------- */

.perle-page-single {
  background-color: var(--global-palette9);
}

.perle-single-main {
  max-width: var(--perle-wide-width);
  margin: 0 auto;
  padding: var(--perle-space-xl) var(--perle-space-md);
}

/* Single post header */
.perle-single-header {
  max-width: var(--perle-content-width);
  margin: 0 auto var(--perle-space-lg);
  text-align: center;
}

.perle-single-header__category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--perle-burgundy);
  text-decoration: none;
  margin-bottom: 1rem;
}

.perle-single-header__category a {
  color: inherit;
  text-decoration: none;
}

.perle-single-header__title {
  font-family: var(--perle-font-heading);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  color: var(--global-palette3);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}

.perle-single-header__meta {
  font-size: 0.85rem;
  color: var(--global-palette5);
  letter-spacing: 0.02em;
}

.perle-single-header__sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

/* Single featured image */
.perle-single-featured-image {
  max-width: var(--perle-wide-width);
  margin: 0 auto var(--perle-space-lg);
}

.perle-single-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

.perle-single-featured-image__caption {
  font-size: 0.83rem;
  color: var(--global-palette6);
  font-style: italic;
  text-align: center;
  margin-top: 0.6rem;
}

/* Single post content */
.perle-single-content {
  max-width: var(--perle-content-width);
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.perle-single-content h2 {
  margin-top: var(--perle-space-lg);
  padding-top: var(--perle-space-xs);
}

.perle-single-content h3 {
  margin-top: var(--perle-space-md);
}

.perle-single-content > p:first-of-type {
  font-size: 1.15rem;
  color: var(--global-palette4);
  line-height: 1.75;
}

.perle-single-content .wp-block-image {
  margin: var(--perle-space-md) auto;
}

.perle-single-content .wp-block-image img {
  border-radius: 4px;
}

.perle-single-content .alignwide {
  max-width: var(--perle-wide-width);
  margin-left: auto;
  margin-right: auto;
}

/* Single post footer — tags */
.perle-single-footer {
  max-width: var(--perle-content-width);
  margin: var(--perle-space-xl) auto 0;
  padding-top: var(--perle-space-md);
  border-top: 1px solid var(--perle-cream-dark);
}

.perle-single-footer__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.perle-tag-chip {
  display: inline-block;
  font-family: var(--perle-font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--perle-cream-dark);
  border-radius: 3px;
  color: var(--global-palette5);
  text-decoration: none;
  transition: all var(--perle-transition);
}

.perle-tag-chip:hover {
  border-color: var(--global-palette1);
  color: var(--global-palette1);
}

/* Related posts */
.perle-related-posts {
  max-width: var(--perle-wide-width);
  margin: var(--perle-space-2xl) auto 0;
  padding-top: var(--perle-space-xl);
  border-top: 1px solid var(--perle-cream-dark);
}

.perle-related-posts__heading {
  font-family: var(--perle-font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  color: var(--global-palette3);
  margin-bottom: var(--perle-space-lg);
}

.perle-related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.perle-related-entry {
  display: flex;
  flex-direction: column;
}

.perle-related-entry__image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 0.85rem;
}

.perle-related-entry__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 4px;
  transition: transform var(--perle-transition-slow);
}

.perle-related-entry:hover .perle-related-entry__image img {
  transform: scale(1.04);
}

.perle-related-entry__category {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--perle-burgundy);
  margin-bottom: 0.35rem;
}

.perle-related-entry__title {
  font-family: var(--perle-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--global-palette3);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.perle-related-entry__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--perle-transition);
}

.perle-related-entry__title a:hover {
  color: var(--global-palette2);
}

.perle-related-entry__date {
  font-size: 0.78rem;
  color: var(--global-palette6);
  display: block;
}


/* --------------------------------------------------------------------------
   15. CORE TEMPLATES — STANDARD PAGES
   -------------------------------------------------------------------------- */

.perle-page-standard {
  background-color: var(--global-palette9);
}

.perle-standard-main {
  max-width: var(--perle-wide-width);
  margin: 0 auto;
  padding: var(--perle-space-xl) var(--perle-space-md);
}

/* Page hero image */
.perle-standard-page__hero-image {
  max-width: var(--perle-wide-width);
  margin: 0 auto var(--perle-space-lg);
}

.perle-standard-page__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Page header */
.perle-standard-page__header {
  text-align: center;
  max-width: var(--perle-content-width);
  margin: 0 auto var(--perle-space-lg);
  padding-bottom: var(--perle-space-md);
  border-bottom: 1px solid var(--perle-cream-dark);
}

.perle-standard-page__title {
  font-family: var(--perle-font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--global-palette3);
  letter-spacing: -0.01em;
  margin-bottom: 0;
}

/* Page content */
.perle-standard-page__content {
  max-width: var(--perle-content-width);
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.perle-standard-page__content > p:first-of-type {
  font-size: 1.15rem;
  color: var(--global-palette4);
}

.perle-standard-page__content .alignwide,
.perle-standard-page__content .wp-block-image.alignwide {
  max-width: var(--perle-wide-width);
  margin-left: auto;
  margin-right: auto;
}

.perle-standard-page__content .alignfull {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
}


/* --------------------------------------------------------------------------
   16. CORE TEMPLATES — 404
   -------------------------------------------------------------------------- */

.perle-page-404 {
  background-color: var(--global-palette9);
}

.perle-404-main {
  max-width: var(--perle-wide-width);
  margin: 0 auto;
}

.perle-404-section {
  padding: var(--perle-space-2xl) var(--perle-space-md);
  text-align: center;
}

.perle-404-inner {
  max-width: 560px;
  margin: 0 auto;
}

.perle-404-eyebrow {
  display: block;
  font-family: var(--perle-font-heading);
  font-size: 6rem;
  font-weight: 600;
  color: var(--perle-cream-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.perle-404-title {
  font-family: var(--perle-font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--global-palette3);
  margin-bottom: 1rem;
}

.perle-404-message {
  font-size: 1.05rem;
  color: var(--global-palette5);
  line-height: 1.75;
  margin-bottom: var(--perle-space-lg);
}

.perle-404-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--perle-space-lg);
}

.perle-404-actions .wp-block-button__link {
  font-size: 0.85rem;
  padding: 0.75rem 1.75rem;
}

.perle-404-section .search-form {
  max-width: 400px;
  margin: 0 auto;
}


/* --------------------------------------------------------------------------
   17. CORE TEMPLATES — WOOCOMMERCE SHOP ARCHIVE
   -------------------------------------------------------------------------- */

.perle-page-shop {
  background-color: var(--global-palette9);
}

.perle-shop-main {
  max-width: var(--perle-wide-width);
  margin: 0 auto;
  padding: 0 var(--perle-space-md) var(--perle-space-xl);
}

/* Shop header */
.perle-shop-header {
  background-color: var(--global-palette8);
  border-bottom: 1px solid var(--perle-cream-dark);
  padding: var(--perle-space-lg) var(--perle-space-md);
  margin-bottom: var(--perle-space-xl);
  text-align: center;
}

.perle-shop-header__inner {
  max-width: 640px;
  margin: 0 auto;
}

.perle-shop-header__title {
  font-family: var(--perle-font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--global-palette3);
  margin-bottom: var(--perle-space-sm);
}

/* WooCommerce result count and sort */
.perle-shop-header__meta .woocommerce-result-count {
  font-size: 0.85rem;
  color: var(--global-palette5);
  font-style: normal;
  margin-bottom: 0;
}

/* Sort by dropdown */
.woocommerce-ordering select {
  border: 1px solid var(--perle-cream-dark);
  border-radius: 3px;
  font-family: var(--perle-font-body);
  font-size: 0.85rem;
  color: var(--global-palette4);
  padding: 0.45rem 2.25rem 0.45rem 0.75rem;
  background-color: var(--global-palette9);
  cursor: pointer;
}

/* Shop grid uses perle-woocommerce.css ul.products rules */
.perle-shop-grid {
  display: contents;
}

/* Shop pagination */
.perle-shop-pagination .woocommerce-pagination ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: var(--perle-space-lg) 0 0;
  justify-content: center;
}

.perle-shop-pagination .woocommerce-pagination .page-numbers {
  font-family: var(--perle-font-body);
  font-size: 0.85rem;
  color: var(--global-palette5);
  border: 1px solid var(--perle-cream-dark);
  border-radius: 3px;
  padding: 0.4rem 0.85rem;
  text-decoration: none;
  transition: all var(--perle-transition);
}

.perle-shop-pagination .woocommerce-pagination .page-numbers:hover,
.perle-shop-pagination .woocommerce-pagination .page-numbers.current {
  background-color: var(--global-palette1);
  border-color: var(--global-palette1);
  color: var(--global-palette9);
}


/* --------------------------------------------------------------------------
   18. MOBILE RESPONSIVE — TEMPLATE ADDITIONS
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .perle-featured-stories__grid,
  .perle-shop-highlight__grid,
  .perle-homepage-journal__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .perle-our-story__inner {
    gap: 2.5rem;
  }

  .perle-archive-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .perle-related-posts__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .perle-featured-stories__grid,
  .perle-shop-highlight__grid,
  .perle-homepage-journal__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .perle-our-story__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .perle-our-story__image {
    order: -1;
  }

  .perle-archive-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .perle-archive-header {
    padding: var(--perle-space-md) var(--perle-space-sm);
    text-align: left;
  }

  .perle-single-header {
    text-align: left;
  }

  .perle-single-header__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .perle-single-main,
  .perle-standard-main {
    padding: var(--perle-space-lg) var(--perle-space-sm);
  }

  .perle-single-content,
  .perle-single-footer,
  .perle-related-posts {
    max-width: 100%;
  }

  .perle-related-posts__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .perle-related-posts__heading {
    text-align: left;
  }

  .perle-standard-page__header {
    text-align: left;
  }

  .perle-standard-page__content {
    max-width: 100%;
  }

  .perle-shop-header {
    padding: var(--perle-space-md) var(--perle-space-sm);
    text-align: left;
  }

  .perle-404-eyebrow {
    font-size: 4rem;
  }

  .perle-404-title {
    font-size: 1.75rem;
  }

  .perle-404-actions {
    flex-direction: column;
    align-items: center;
  }

  .perle-homepage-brand-statement {
    padding: var(--perle-space-xl) var(--perle-space-sm);
  }
}


/* --------------------------------------------------------------------------
   19. MOBILE RESPONSIVE — ORIGINAL (was 12)
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .perle-hero {
    min-height: 55vh;
  }

  .perle-hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }

  .recipe-meta {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  :root {
    --perle-space-lg: 2.5rem;
    --perle-space-xl: 3.5rem;
    --perle-space-2xl: 5rem;
  }

  .perle-hero {
    min-height: 50vh;
  }

  .perle-hero h1 {
    font-size: 1.75rem;
  }

  .perle-hero p {
    font-size: 1rem;
  }

  .single .entry-title {
    text-align: left;
  }

  .single .entry-meta {
    text-align: left;
  }

  .single .entry-content-wrap {
    padding: 0 var(--perle-space-sm);
  }

  .perle-brand-statement p {
    font-size: 1.15rem;
  }

  .recipe-meta {
    gap: 0.75rem;
    padding: 1rem;
  }

  .recipe-meta .wp-block-column {
    min-width: 80px;
  }

  blockquote {
    font-size: 1.1rem;
    padding: var(--perle-space-xs) var(--perle-space-sm);
  }

  /* Cards */
  .perle-card__content {
    padding: 1rem 1.25rem 1.25rem;
  }

  .perle-card__title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  /* Only make actual submit buttons full-width — not outline CTAs or nav links */
  input[type="submit"],
  button[type="submit"],
  .woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    width: 100%;
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
  }

  /* Gutenberg buttons — respect their natural width unless full-width set */
  .wp-block-button .wp-block-button__link {
    padding: 0.75rem 1.5rem;
    font-size: 0.85rem;
  }

  .recipe-meta {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
  }

  .recipe-meta .wp-block-column {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(27, 42, 74, 0.06);
  }

  .recipe-meta .wp-block-column:last-child {
    border-bottom: none;
  }
}


/* --------------------------------------------------------------------------
   13. KADENCE-SPECIFIC OVERRIDES
   -------------------------------------------------------------------------- */

/* Remove Kadence default sidebar on archives and posts */
.content-style-unboxed .entry-content-wrap {
  padding: 0;
}

/* Archive grid spacing improvements */
#main .loop-entry {
  margin-bottom: var(--perle-space-md);
}

/* Kadence search form */
.search-form {
  border: 1px solid var(--perle-cream-dark);
  border-radius: 4px;
  overflow: hidden;
}

/* Kadence mobile menu — base styling */
.kadence-mobile-nav-toggle {
  color: var(--global-palette3);
}

.kadence-mobile-nav-toggle:hover {
  color: var(--global-palette1);
}

.kadence-mobile-menu-container,
.mobile-navigation {
  background-color: var(--global-palette9);
  border-top: 1px solid var(--perle-cream-dark);
}

.kadence-mobile-menu-container ul li a,
.mobile-navigation ul li a {
  font-family: var(--perle-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--global-palette4);
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--perle-cream-dark);
  display: block;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--perle-transition), background-color var(--perle-transition);
}

.kadence-mobile-menu-container ul li a:hover,
.mobile-navigation ul li.current-menu-item a {
  color: var(--global-palette1);
  background-color: var(--global-palette8);
}

/* Kadence pagination */
.pagination .page-numbers {
  font-family: var(--perle-font-body);
  font-size: 0.85rem;
  color: var(--global-palette5);
  border: 1px solid var(--perle-cream-dark);
  border-radius: 3px;
  padding: 0.4rem 0.8rem;
  transition: all var(--perle-transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background-color: var(--global-palette1);
  border-color: var(--global-palette1);
  color: var(--global-palette9);
}

/* Separator / HR */
hr,
.wp-block-separator {
  border: none;
  border-top: 1px solid var(--perle-cream-dark);
  margin: var(--perle-space-md) 0;
}

.wp-block-separator.is-style-wide {
  border-top-color: var(--perle-cream-dark);
}

.wp-block-separator:not(.is-style-wide):not(.is-style-dots) {
  max-width: 100px;
  margin: var(--perle-space-md) auto;
}


/* --------------------------------------------------------------------------
   14. UTILITY CLASSES
   -------------------------------------------------------------------------- */

.perle-text-center { text-align: center; }
.perle-text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.perle-bg-stone { background-color: var(--global-palette7); }
.perle-bg-cream { background-color: var(--global-palette8); }
.perle-bg-ivory { background-color: var(--global-palette9); }
.perle-bg-indigo { background-color: var(--global-palette1); color: var(--global-palette9); }

.perle-accent-burgundy { color: var(--perle-burgundy); }
.perle-accent-brass { color: var(--perle-brass); }

/* Visually hidden but accessible */
.perle-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;
}
