/*
Theme Name: The Modern Chapter
Theme URI: https://themodernchapter.local
Author: The Modern Chapter Editorial
Description: A clean, modern, editorial fashion blog theme focused on Beauty, Lifestyle, Trends, and Shopping. Coded classic theme ported from the AI Studio prototype.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: themodernchapter
*/

/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Core palette (from the approved prototype) */
  --tmc-canvas: #FAF8F5;
  --tmc-ink: #162238;
  --tmc-stone: #EFE9E0;
  --tmc-border: #DBD3C5;
  --tmc-rose: #B85B43;
  --tmc-rose-dark: #9E4933;

  /* On-dark accent (header/footer nav active state, hovers on navy) */
  --tmc-rose-light: #E07A60;

  /* Wordmark accent (BrandLogo "modern" + period) */
  --tmc-logo-accent: #C46751;

  /* Navy surfaces (header/footer + their nested UI) */
  --tmc-navy: #162238;
  --tmc-navy-border: #283852;
  --tmc-navy-surface: #203049;
  --tmc-navy-surface-hover: #334666;
  --tmc-navy-border-light: #2E4263;
  --tmc-navy-deep: #0F1826;

  /* Type */
  --tmc-font-serif: "Playfair Display", Georgia, Cambria, serif;
  --tmc-font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Shape */
  --tmc-radius-xs: 0.125rem;
  --tmc-radius-sm: 0.25rem;
  --tmc-radius-md: 0.375rem;
  --tmc-radius-lg: 0.5rem;
  --tmc-radius-xl: 0.75rem;

  /* Layout */
  --tmc-container: 80rem; /* max-w-7xl */
}

/* ==========================================================================
   2. RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--tmc-canvas);
  color: var(--tmc-ink);
  font-family: var(--tmc-font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
/* Reset margin/padding only — NOT list-style, since that would strip
   bullets from any <ul> a page builder or editor writes into content
   (e.g. Elementor's Text Editor widget). Components that need bulletless
   lists (footer nav, entry-content's own bulleted list) set list-style
   explicitly on their own class instead of relying on a global reset. */
ul { margin: 0; padding: 0; }
::selection { background-color: var(--tmc-rose); color: #fff; }

/* Guarantee [hidden] always hides, regardless of any other rule setting
   display on the same element (an author-origin class like `display:flex`
   otherwise beats the browser's default [hidden]{display:none} even at
   equal specificity, since author styles win over user-agent styles
   outright) — and Chromium's SVG UA stylesheet has no [hidden] rule at
   all (only html.css does), so a bare <svg hidden> renders anyway without
   this. Bit both the mobile-menu icon swap and the contact form toggle. */
[hidden] { display: none !important; }

h1, h2, h3, h4, .font-editorial {
  font-family: var(--tmc-font-serif);
  font-weight: 400;
  margin: 0;
}

.container {
  max-width: var(--tmc-container);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 40rem) {
  .container { padding-inline: 2rem; }
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   3. BRAND LOGO (shared: header + footer)
   ========================================================================== */

.brand-logo-link {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.brand-logo-link:hover { opacity: 0.9; }

.brand-logo {
  display: inline-flex;
  align-items: stretch;
  user-select: none;
}

.brand-logo__title {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  font-family: var(--tmc-font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 0.94;
  font-size: 1rem;
}
@media (min-width: 40rem) { .brand-logo__title { font-size: 1.125rem; } }
@media (min-width: 64rem) { .brand-logo__title { font-size: 1.25rem; } }

.brand-logo--sm .brand-logo__title { font-size: 0.875rem; }
@media (min-width: 40rem) { .brand-logo--sm .brand-logo__title { font-size: 0.9375rem; } }

.brand-logo__title span { display: block; }
.brand-logo__accent {
  color: var(--tmc-logo-accent) !important;
  font-style: italic;
  display: block;
  margin-block: 0.06em;
}
.brand-logo__title-row { display: inline-flex; align-items: baseline; }
.brand-logo__dot {
  color: var(--tmc-logo-accent);
  font-weight: 900;
  margin-left: 0.05em;
  line-height: 1;
  font-size: 1rem;
}
@media (min-width: 40rem) { .brand-logo__dot { font-size: 1.125rem; } }

.brand-logo__divider {
  width: 1px;
  margin-inline: 0.75rem;
  background-color: currentColor;
  opacity: 0.35;
  align-self: stretch;
  margin-block: 0.125rem;
}
@media (min-width: 64rem) { .brand-logo__divider { margin-inline: 1rem; } }

.brand-logo__tagline {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  text-transform: uppercase;
  font-family: var(--tmc-font-sans);
  font-weight: 500;
  font-size: 0.46875rem;
  letter-spacing: 0.24em;
  color: currentColor;
  opacity: 0.8;
  padding-block: 0.125rem;
}
@media (min-width: 64rem) { .brand-logo__tagline { font-size: 0.5625rem; } }
.brand-logo__tagline span { line-height: 1; white-space: nowrap; }
.brand-logo--sm .brand-logo__tagline { font-size: 0.4375rem; letter-spacing: 0.22em; }

/* ==========================================================================
   4. SITE HEADER
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background-color: var(--tmc-navy);
  border-bottom: 1px solid var(--tmc-navy-border);
  color: var(--tmc-canvas);
  box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  padding-block: 0.875rem;
}
@media (min-width: 40rem) { .site-header__row { padding-block: 1rem; } }

.site-header__left { display: flex; align-items: center; z-index: 10; }

.mobile-toggle {
  padding: 0.5rem;
  margin-left: -0.5rem;
  color: var(--tmc-canvas);
}
.mobile-toggle:hover { color: var(--tmc-rose-light); }
.mobile-toggle svg { width: 1.25rem; height: 1.25rem; }

.site-header__logo-desktop { display: none; color: var(--tmc-canvas); }
.site-header__logo-mobile {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 160px);
  color: var(--tmc-canvas);
}
@media (min-width: 40rem) { .site-header__logo-mobile { max-width: calc(100% - 230px); } }

@media (min-width: 64rem) {
  .mobile-toggle { display: none; }
  .site-header__logo-desktop { display: inline-block; }
  .site-header__logo-mobile { display: none; }
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
}
@media (min-width: 64rem) { .site-nav { display: flex; } }
@media (min-width: 80rem) { .site-nav { gap: 2.5rem; } }

.nav-link {
  padding-block: 0.25rem;
  position: relative;
  color: rgba(250, 248, 245, 0.8);
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--tmc-canvas); }
.nav-link--active {
  color: var(--tmc-rose-light);
  font-weight: 600;
}
.nav-link--active::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background-color: var(--tmc-rose-light);
}

.site-header__right { display: flex; align-items: center; gap: 0.5rem; z-index: 10; }
@media (min-width: 40rem) { .site-header__right { gap: 0.75rem; } }

.search-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: var(--tmc-radius-sm);
  color: rgba(250, 248, 245, 0.8);
  transition: color 0.15s ease, background-color 0.15s ease;
}
@media (min-width: 40rem) { .search-toggle { padding: 0.625rem; } }
.search-toggle:hover { color: var(--tmc-canvas); background-color: rgba(40, 56, 82, 0.6); }
.search-toggle--open { color: var(--tmc-rose-light); background-color: var(--tmc-navy-border); }
.search-toggle svg { width: 1rem; height: 1rem; }

.search-wrap { position: relative; }

.search-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: calc(100vw - 2rem);
  max-width: 30rem;
  background-color: var(--tmc-navy);
  border: 2px solid var(--tmc-navy-border);
  color: var(--tmc-canvas);
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4);
  border-radius: var(--tmc-radius-sm);
  padding: 1.25rem;
  z-index: 50;
}
@media (min-width: 40rem) { .search-dropdown { width: 27.5rem; } }

.search-dropdown__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--tmc-navy-border);
}
.search-dropdown__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--tmc-rose-light);
}
.search-dropdown__close { padding: 0.25rem; color: rgba(250, 248, 245, 0.6); }
.search-dropdown__close:hover { color: var(--tmc-rose-light); }

.search-input-wrap { position: relative; margin-top: 0.75rem; }
.search-input {
  width: 100%;
  background-color: var(--tmc-navy-deep);
  border: 1px solid var(--tmc-navy-border);
  color: var(--tmc-canvas);
  font-size: 0.875rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--tmc-radius-sm);
  outline: none;
  transition: border-color 0.15s ease;
}
.search-input::placeholder { color: rgba(250, 248, 245, 0.4); }
.search-input:focus { border-color: var(--tmc-rose-light); }

.search-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding-block: 0.75rem 0.5rem;
  font-size: 0.6875rem;
}
.search-tags__label {
  color: rgba(250, 248, 245, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.5625rem;
  font-weight: 600;
  margin-right: 0.25rem;
}
.search-tag {
  padding: 0.125rem 0.5rem;
  background-color: var(--tmc-navy-border);
  color: var(--tmc-canvas);
  border-radius: var(--tmc-radius-xs);
  font-size: 0.6875rem;
  transition: background-color 0.15s ease;
}
.search-tag:hover { background-color: var(--tmc-navy-surface-hover); }

.search-results { margin-top: 0.5rem; max-height: 18rem; overflow-y: auto; }
.search-results__empty { text-align: center; padding-block: 1.5rem; color: rgba(250, 248, 245, 0.6); }
.search-results__empty p:first-child { font-family: var(--tmc-font-serif); font-size: 0.875rem; margin-bottom: 0.25rem; }
.search-results__empty p:last-child { font-size: 0.6875rem; }

.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.625rem 0.5rem;
  border-radius: var(--tmc-radius-xs);
  border-bottom: 1px solid rgba(40, 56, 82, 0.6);
  transition: background-color 0.15s ease;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover { background-color: rgba(40, 56, 82, 0.5); }
.search-result__main { display: flex; align-items: center; gap: 0.75rem; min-width: 0; padding-right: 0.5rem; flex: 1; }
.search-result__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.search-result img {
  width: 3rem; height: 3rem;
  border-radius: var(--tmc-radius-xs);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--tmc-navy-border);
}
.search-result__cat {
  font-size: 0.5625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tmc-rose-light);
  font-weight: 600;
  display: block;
}
.search-result__title {
  font-family: var(--tmc-font-serif);
  font-size: 0.8125rem;
  color: var(--tmc-canvas);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result:hover .search-result__title { color: var(--tmc-rose-light); }
.search-result__excerpt {
  font-size: 0.6875rem;
  color: rgba(250, 248, 245, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result__arrow { width: 0.875rem; height: 0.875rem; color: rgba(250, 248, 245, 0.4); flex-shrink: 0; }
.search-result:hover .search-result__arrow { color: var(--tmc-rose-light); }

.subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  background-color: var(--tmc-rose);
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  padding: 0.5rem;
  border-radius: var(--tmc-radius-sm);
  transition: background-color 0.15s ease;
  white-space: nowrap;
}
@media (min-width: 48rem) { .subscribe-btn { padding: 0.625rem 1.25rem; } }
.subscribe-btn:hover { background-color: var(--tmc-rose-dark); }
.subscribe-btn svg { width: 1rem; height: 1rem; }
.subscribe-btn__label { display: none; }
@media (min-width: 48rem) {
  .subscribe-btn__label { display: inline; }
  .subscribe-btn svg { display: none; }
}

.mobile-drawer {
  border-top: 1px solid var(--tmc-navy-border);
  background-color: var(--tmc-navy);
  padding: 1.5rem;
  color: var(--tmc-canvas);
}
@media (min-width: 64rem) { .mobile-drawer { display: none; } }
.mobile-drawer__label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(250, 248, 245, 0.6);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.mobile-drawer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; font-size: 0.875rem; }
.mobile-drawer__link {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-radius: var(--tmc-radius-sm);
  font-weight: 500;
  color: var(--tmc-canvas);
}
.mobile-drawer__link:hover { background-color: rgba(40, 56, 82, 0.5); }
.mobile-drawer__link--active { background-color: var(--tmc-navy-border); color: var(--tmc-rose-light); }
.mobile-drawer__cta {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tmc-navy-border);
}
.mobile-drawer__cta-link {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--tmc-rose);
  color: #fff;
  padding-block: 0.625rem;
  border-radius: var(--tmc-radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
}
.mobile-drawer__cta-link:hover { background-color: var(--tmc-rose-dark); }

/* ==========================================================================
   5. SITE FOOTER
   ========================================================================== */

.site-footer {
  background-color: var(--tmc-navy);
  border-top: 1px solid var(--tmc-navy-border);
  padding-block: 4rem 3rem;
  color: var(--tmc-canvas);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--tmc-navy-border);
}
@media (min-width: 48rem) { .footer-grid { grid-template-columns: repeat(12, 1fr); gap: 3rem; } }

.footer-col--brand { grid-column: span 12; }
@media (min-width: 48rem) { .footer-col--brand { grid-column: span 5; } }
.footer-col--links { grid-column: span 12; }
@media (min-width: 48rem) { .footer-col--links { grid-column: span 3; } }
.footer-col--newsletter { grid-column: span 12; }
@media (min-width: 48rem) { .footer-col--newsletter { grid-column: span 4; } }

.footer-col > * + * { margin-top: 1rem; }

.footer-desc { font-size: 0.875rem; color: rgba(250, 248, 245, 0.8); line-height: 1.6; max-width: 24rem; }

.footer-social-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(250, 248, 245, 0.7);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.footer-social { display: flex; align-items: center; gap: 0.75rem; }
.social-icon {
  width: 2.25rem; height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid var(--tmc-navy-border-light);
  background-color: var(--tmc-navy-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--tmc-canvas);
  transition: all 0.2s ease;
}
.social-icon:hover { color: #fff; border-color: var(--tmc-rose); background-color: var(--tmc-rose); }
.social-icon svg { width: 1rem; height: 1rem; fill: currentColor; }

.footer-heading {
  font-family: var(--tmc-font-serif);
  font-size: 1.125rem;
  color: var(--tmc-canvas);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.footer-links { list-style: none; }
.footer-links li { padding-top: 0.5rem; }
.footer-links li:first-child { padding-top: 0; }
.footer-links a, .footer-links button {
  font-size: 0.875rem;
  color: rgba(250, 248, 245, 0.8);
  text-align: left;
}
.footer-links a:hover, .footer-links button:hover { color: var(--tmc-rose); }

.footer-newsletter-copy { font-size: 0.75rem; color: rgba(250, 248, 245, 0.8); line-height: 1.6; }
.footer-newsletter-form { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-newsletter-form input {
  width: 100%;
  background-color: var(--tmc-navy-surface);
  border: 1px solid var(--tmc-navy-border-light);
  padding: 0.625rem 0.875rem;
  font-size: 0.75rem;
  color: var(--tmc-canvas);
  border-radius: var(--tmc-radius-md);
  outline: none;
}
.footer-newsletter-form input::placeholder { color: rgba(250, 248, 245, 0.4); }
.footer-newsletter-form input:focus { border-color: var(--tmc-rose); }
.footer-newsletter-form button {
  width: 100%;
  background-color: var(--tmc-rose);
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  padding-block: 0.625rem;
  border-radius: var(--tmc-radius-md);
}
.footer-newsletter-form button:hover { background-color: var(--tmc-rose-dark); }
.footer-newsletter-success {
  padding: 0.75rem;
  background-color: var(--tmc-navy-surface);
  border: 1px solid var(--tmc-rose);
  color: var(--tmc-canvas);
  font-size: 0.75rem;
  border-radius: var(--tmc-radius-sm);
}
.footer-newsletter-form.is-submitted input,
.footer-newsletter-form.is-submitted button { display: none; }

.trustpilot-badge { padding-top: 0.75rem; border-top: 1px solid var(--tmc-navy-border); }
.trustpilot-badge__row { display: flex; align-items: center; gap: 0.5rem; }
.trustpilot-badge__brand { display: flex; align-items: center; gap: 0.375rem; }
.trustpilot-badge__brand span { font-weight: 700; font-size: 0.875rem; letter-spacing: -0.01em; }
.trustpilot-badge__stars { display: flex; align-items: center; gap: 0.125rem; }
.trustpilot-badge__star {
  width: 1rem; height: 1rem;
  background-color: #00B67A;
  border-radius: 1px;
  display: flex; align-items: center; justify-content: center;
}
.trustpilot-badge__star svg { width: 0.625rem; height: 0.625rem; fill: #fff; }
.trustpilot-badge__score { font-size: 0.75rem; color: rgba(250, 248, 245, 0.8); font-weight: 600; margin-top: 0.375rem; }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(250, 248, 245, 0.7);
  gap: 1rem;
  flex-wrap: wrap;
}
.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  color: var(--tmc-canvas);
}
.back-to-top:hover { color: var(--tmc-rose); }
.back-to-top svg { width: 0.875rem; height: 0.875rem; }

/* ==========================================================================
   6. SHARED PAGE ELEMENTS
   ========================================================================== */

.eyebrow {
  display: inline-block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 600;
  color: var(--tmc-rose);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  color: rgba(22, 34, 56, 0.75);
  margin-bottom: 0.75rem;
}
.back-link:hover { color: var(--tmc-rose); }
.back-link svg { width: 0.875rem; height: 0.875rem; }

/* ==========================================================================
   7. CATEGORY ARCHIVE
   ========================================================================== */

.category-page { max-width: var(--tmc-container); margin-inline: auto; padding: 2.5rem 1rem 3.5rem; }
@media (min-width: 40rem) { .category-page { padding-inline: 2rem; padding-block: 3.5rem; } }

.category-page__header { padding-bottom: 1.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--tmc-border); }
.category-page__title {
  font-size: 1.875rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--tmc-ink);
}
@media (min-width: 40rem) { .category-page__title { font-size: 3rem; } }

.category-page__desc { margin-top: 0.5rem; max-width: 40rem; color: rgba(22, 34, 56, 0.75); font-size: 0.9375rem; }

.article-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 4rem;
}
@media (min-width: 48rem) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .article-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  background-color: rgba(239, 233, 224, 0.5);
  border: 1px solid var(--tmc-border);
  border-radius: var(--tmc-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}
.article-card:hover { border-color: var(--tmc-rose); }
.article-card__media { aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.article-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.article-card:hover .article-card__media img { transform: scale(1.05); }
.article-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; gap: 1rem; }
.article-card__meta { display: flex; flex-direction: column; gap: 0.5rem; }
.article-card__cat { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tmc-rose); font-weight: 600; }
.article-card__title { font-size: 1.25rem; font-weight: 500; line-height: 1.3; }
@media (min-width: 40rem) { .article-card__title { font-size: 1.5rem; } }
.article-card__title a { color: var(--tmc-ink); }
.article-card__title a:hover { color: var(--tmc-rose); }
.article-card__excerpt { font-size: 0.8125rem; color: rgba(22, 34, 56, 0.75); line-height: 1.6; }
.article-card__footer { padding-top: 0.75rem; border-top: 1px solid var(--tmc-border); display: flex; justify-content: flex-end; }
.read-more {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--tmc-rose);
}
.read-more:hover { color: var(--tmc-rose-dark); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--tmc-rose);
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--tmc-radius-sm);
  transition: background-color 0.15s ease;
}
.btn-primary:hover { background-color: var(--tmc-rose-dark); color: #fff; }

.empty-state { text-align: center; padding-block: 4rem; color: rgba(22, 34, 56, 0.7); }
.empty-state p:first-child { font-family: var(--tmc-font-serif); font-size: 1.25rem; margin-bottom: 0.5rem; }

.pagination, .nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.pagination .page-numbers,
.nav-links .page-numbers {
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--tmc-border);
  border-radius: var(--tmc-radius-sm);
  color: var(--tmc-ink);
}
.pagination .page-numbers:hover,
.nav-links .page-numbers:hover { border-color: var(--tmc-rose); color: var(--tmc-rose); }
.pagination .page-numbers.current,
.nav-links .page-numbers.current { background-color: var(--tmc-rose); border-color: var(--tmc-rose); color: #fff; }

/* ==========================================================================
   8. SINGLE POST
   ========================================================================== */

.single-post-view { padding-bottom: 1rem; }

.post-breadcrumb-wrap { max-width: var(--tmc-container); margin-inline: auto; padding: 1rem 1rem 0.25rem; }
@media (min-width: 40rem) { .post-breadcrumb-wrap { padding-inline: 2rem; } }
.post-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 1rem;
  color: var(--tmc-ink);
  font-weight: 500;
}
@media (min-width: 40rem) { .post-breadcrumb { font-size: 1.0625rem; } }
.post-breadcrumb a { padding-block: 0.25rem; }
.post-breadcrumb a:hover { color: var(--tmc-rose); }
.post-breadcrumb__sep { color: rgba(22, 34, 56, 0.4); }
.post-breadcrumb__current {
  color: rgba(22, 34, 56, 0.65);
  font-weight: 400;
  padding-block: 0.25rem;
  max-width: 16rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 40rem) { .post-breadcrumb__current { max-width: 28rem; } }

.single-post-main { max-width: var(--tmc-container); margin-inline: auto; padding: 0.5rem 1rem 4rem; }
@media (min-width: 40rem) { .single-post-main { padding-inline: 2rem; } }

.post-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: start; }
@media (min-width: 64rem) { .post-layout { grid-template-columns: 2fr 1fr; gap: 3.5rem; } }

.post-article { display: flex; flex-direction: column; min-width: 0; }

.entry-header { margin-bottom: 1.5rem; }
.entry-header > * + * { margin-top: 1rem; }
.post-category-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(219, 211, 197, 0.7);
  color: var(--tmc-ink);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  border-radius: var(--tmc-radius-sm);
}
.post-title {
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--tmc-ink);
}
@media (min-width: 40rem) { .post-title { font-size: 2.25rem; } }
@media (min-width: 48rem) { .post-title { font-size: 3rem; } }

.featured-media { padding-top: 0.5rem; }
.featured-media__frame {
  overflow: hidden;
  border-radius: var(--tmc-radius-md);
  background-color: rgba(239, 233, 224, 0.5);
  border: 1px solid var(--tmc-border);
}
.featured-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

.entry-content {
  margin-top: 1.5rem;
  color: rgba(22, 34, 56, 0.9);
  font-size: 1rem;
  line-height: 1.8;
}
@media (min-width: 40rem) { .entry-content { font-size: 1.125rem; } }
.entry-content > * + * { margin-top: 1.5rem; }
.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--tmc-ink);
  padding-top: 0.5rem;
}
@media (min-width: 40rem) { .entry-content h2 { font-size: 1.75rem; } }
.entry-content h3 {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--tmc-ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--tmc-font-sans);
}
.entry-content blockquote {
  margin: 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--tmc-rose);
  background-color: rgba(239, 233, 224, 0.5);
  font-family: var(--tmc-font-serif);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--tmc-ink);
  border-radius: 0 var(--tmc-radius-md) var(--tmc-radius-md) 0;
}
.entry-content figure { margin: 0; }
.entry-content figure img {
  width: 100%;
  border-radius: var(--tmc-radius-md);
  border: 1px solid var(--tmc-border);
}
.entry-content figcaption {
  margin-top: 0.625rem;
  font-size: 0.8125rem;
  color: rgba(22, 34, 56, 0.6);
  font-style: italic;
  text-align: center;
}
.entry-content ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.entry-content ul li {
  position: relative;
  padding-left: 1.5rem;
}
.entry-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: var(--tmc-rose);
}

.author-bio-section {
  margin-top: 3rem;
  padding: 1.5rem;
  background-color: rgba(239, 233, 224, 0.55);
  border: 1px solid var(--tmc-border);
  border-radius: var(--tmc-radius-lg);
}
@media (min-width: 40rem) { .author-bio-section { padding: 2rem; } }
.author-bio-label {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--tmc-rose);
  margin-bottom: 0.75rem;
}
.author-bio-row { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
@media (min-width: 40rem) { .author-bio-row { flex-direction: row; align-items: center; gap: 1.25rem; } }
.author-bio-row img {
  width: 4rem; height: 4rem;
  border-radius: 9999px;
  object-fit: cover;
  border: 2px solid var(--tmc-border);
}
.author-bio-name { font-size: 1.25rem; font-weight: 500; color: var(--tmc-ink); }
@media (min-width: 40rem) { .author-bio-name { font-size: 1.5rem; } }
.author-bio-text { font-size: 0.875rem; color: rgba(22, 34, 56, 0.8); line-height: 1.6; margin-top: 0.375rem; }

/* Sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 64rem) { .post-sidebar { position: sticky; top: 6rem; } }

.widget {
  background-color: rgba(239, 233, 224, 0.45);
  border: 1px solid var(--tmc-border);
  padding: 1.5rem;
  border-radius: var(--tmc-radius-lg);
}
.widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--tmc-border);
}
.widget__title { font-size: 1.25rem; font-weight: 500; color: var(--tmc-ink); }
.widget__hint { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(22, 34, 56, 0.6); font-weight: 600; }

.recent-post-item { display: flex; gap: 0.75rem; }
.recent-post-item + .recent-post-item { margin-top: 1rem; }
.recent-post-item__media {
  width: 5rem; height: 4rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--tmc-radius-md);
  border: 1px solid var(--tmc-border);
  background-color: rgba(239, 233, 224, 0.4);
}
.recent-post-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.recent-post-item:hover .recent-post-item__media img { transform: scale(1.05); }
.recent-post-item__body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.recent-post-item__cat { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tmc-rose); font-weight: 600; }
.recent-post-item__title {
  font-family: var(--tmc-font-serif);
  font-size: 0.875rem;
  color: var(--tmc-ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-post-item:hover .recent-post-item__title { color: var(--tmc-rose); }

/* Bottom recent-posts grid */
.recent-posts-section { margin-top: 4rem; padding-top: 3rem; border-top: 1px solid var(--tmc-border); }
.recent-posts-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--tmc-border);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.recent-posts-section__title { font-size: 1.5rem; font-weight: 400; color: var(--tmc-ink); }
@media (min-width: 40rem) { .recent-posts-section__title { font-size: 1.875rem; } }
.recent-posts-section__count { font-size: 0.75rem; color: rgba(22, 34, 56, 0.7); font-weight: 500; }

.recent-card-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 40rem) { .recent-card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .recent-card-grid { grid-template-columns: repeat(4, 1fr); } }

.recent-card {
  background-color: rgba(239, 233, 224, 0.4);
  border: 1px solid var(--tmc-border);
  border-radius: var(--tmc-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}
.recent-card:hover { border-color: var(--tmc-rose); }
.recent-card__media { aspect-ratio: 16 / 10; overflow: hidden; display: block; }
.recent-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.recent-card:hover .recent-card__media img { transform: scale(1.05); }
.recent-card__body { padding: 1rem; }
.recent-card__cat { font-size: 0.625rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tmc-rose); font-weight: 600; }
.recent-card__title {
  font-family: var(--tmc-font-serif);
  font-size: 1rem;
  color: var(--tmc-ink);
  font-weight: 500;
  line-height: 1.3;
  margin-top: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-card:hover .recent-card__title { color: var(--tmc-rose); }

/* ==========================================================================
   9. SEARCH RESULTS
   ========================================================================== */

.search-highlight { color: var(--tmc-rose); }

.inline-search-form {
  display: flex;
  gap: 0.75rem;
  max-width: 32rem;
  margin: 0 0 2.5rem;
}
.inline-search-form input {
  flex: 1;
  min-width: 0;
  background-color: #fff;
  border: 1px solid var(--tmc-border);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: var(--tmc-ink);
  border-radius: var(--tmc-radius-md);
  outline: none;
  transition: border-color 0.15s ease;
}
.inline-search-form input::placeholder { color: rgba(22, 34, 56, 0.4); }
.inline-search-form input:focus { border-color: var(--tmc-rose); }
.inline-search-form button {
  background-color: var(--tmc-rose);
  color: #fff;
  padding-inline: 1.5rem;
  border-radius: var(--tmc-radius-md);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.inline-search-form button:hover { background-color: var(--tmc-rose-dark); }

.cat-pill-row { display: flex; flex-wrap: wrap; gap: 0.625rem; justify-content: center; }
.cat-pill {
  padding: 0.5rem 1.125rem;
  border: 1px solid var(--tmc-border);
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--tmc-ink);
  background-color: rgba(239, 233, 224, 0.5);
  transition: all 0.15s ease;
}
.cat-pill:hover { border-color: var(--tmc-rose); color: var(--tmc-rose); }

/* ==========================================================================
   10. 404 NOT FOUND
   ========================================================================== */

.not-found-page {
  max-width: 40rem;
  margin-inline: auto;
  padding: 4.5rem 1rem 6rem;
  text-align: center;
}
.not-found-page__title {
  font-size: 2rem;
  margin-top: 0.75rem;
  color: var(--tmc-ink);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
@media (min-width: 40rem) { .not-found-page__title { font-size: 2.75rem; } }
.not-found-page__text {
  margin-top: 1rem;
  margin-bottom: 2rem;
  color: rgba(22, 34, 56, 0.75);
  font-size: 1rem;
  line-height: 1.7;
}
.not-found-page .inline-search-form { margin-inline: auto; }
.not-found-page__back { margin-bottom: 1rem; }
.not-found-page__categories {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--tmc-border);
}
.not-found-page__categories > span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(22, 34, 56, 0.6);
  font-weight: 600;
  margin-bottom: 0.875rem;
}

/* ==========================================================================
   11. ELEMENTOR CONTENT SAFETY NET
   Restores normal reading defaults inside editor-authored (Text Editor
   widget) content, since the theme's own global reset strips list markers
   and this theme never sets a default link color/underline.
   ========================================================================== */

.elementor-widget-text-editor ul { list-style: disc; padding-left: 1.5rem; margin: 1rem 0; }
.elementor-widget-text-editor ol { list-style: decimal; padding-left: 1.5rem; margin: 1rem 0; }
.elementor-widget-text-editor li { margin-bottom: 0.5rem; }
.elementor-widget-text-editor a { color: var(--tmc-rose); text-decoration: underline; text-underline-offset: 2px; }
.elementor-widget-text-editor a:hover { color: var(--tmc-rose-dark); }

/* ==========================================================================
   12. CONTACT PAGE (hard-coded, replaces the earlier Elementor build)
   ========================================================================== */

.contact-page { max-width: 72rem; margin-inline: auto; padding: 4rem 1.25rem 5rem; }
@media (min-width: 40rem) { .contact-page { padding-inline: 2rem; } }

.contact-page__header { max-width: 35rem; margin: 0 auto 3rem; text-align: center; }
.contact-page__header .eyebrow { display: block; margin-bottom: 0.5rem; }
.contact-page__title {
  font-size: 2rem;
  color: var(--tmc-ink);
  letter-spacing: -0.01em;
}
@media (min-width: 40rem) { .contact-page__title { font-size: 2.5rem; } }
.contact-page__sub { margin-top: 0.75rem; color: rgba(22, 34, 56, 0.8); font-size: 1rem; line-height: 1.6; }

.contact-page__row { display: flex; align-items: stretch; gap: 3rem; }
@media (max-width: 64rem) { .contact-page__row { flex-direction: column; } }

.contact-card {
  flex: 1;
  border-radius: 1rem;
  border: 1px solid var(--tmc-border);
  background-color: var(--tmc-stone);
}
.contact-card--photo {
  flex: 0 0 41.6667%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border-width: 2px;
}
@media (max-width: 64rem) { .contact-card--photo { flex-basis: auto; } }
.contact-card--form { padding: 2rem; box-shadow: 0 1px 2px rgba(22, 34, 56, 0.04); }

.contact-image-frame {
  position: relative;
  flex: 1;
  min-height: 22.5rem;
  border-radius: var(--tmc-radius-lg);
  overflow: hidden;
  background-color: rgba(219, 211, 197, 0.3);
}
.contact-image-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.contact-image-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 34, 56, 0.92) 0%, rgba(22, 34, 56, 0.35) 55%, rgba(22, 34, 56, 0) 100%);
}
.contact-image-caption { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; color: var(--tmc-canvas); }
.contact-image-caption h2 {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 0.375rem;
}
@media (min-width: 40rem) { .contact-image-caption h2 { font-size: 1.5rem; } }
.contact-image-caption p { font-size: 0.8125rem; line-height: 1.6; color: rgba(250, 248, 245, 0.9); font-weight: 300; }
@media (min-width: 40rem) { .contact-image-caption p { font-size: 0.875rem; } }

.contact-response-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--tmc-border);
}
.contact-response-bar__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--tmc-ink);
}
.contact-response-bar__label .dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background-color: var(--tmc-rose);
  display: inline-block;
  flex-shrink: 0;
}
.contact-response-bar__value {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--tmc-border);
  border-radius: var(--tmc-radius-md);
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--tmc-ink);
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-field label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--tmc-ink);
  margin-bottom: 0.375rem;
}
.form-field .req { color: var(--tmc-rose); }
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--tmc-border);
  border-radius: var(--tmc-radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  background-color: #fff;
  color: var(--tmc-ink);
  outline: none;
  transition: border-color 0.15s ease;
  font-family: var(--tmc-font-sans);
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(22, 34, 56, 0.4); }
.form-field input:focus,
.form-field textarea:focus { border-color: var(--tmc-rose); }
.form-field textarea { resize: vertical; min-height: 9rem; }

.contact-form__submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.contact-form__submit svg { width: 0.875rem; height: 0.875rem; }

.contact-notice {
  padding: 0.875rem 1rem;
  border-radius: var(--tmc-radius-md);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}
.contact-notice--error {
  background-color: #FBEAE6;
  border: 1px solid var(--tmc-rose);
  color: var(--tmc-rose-dark);
}

.contact-success { text-align: center; padding: 2.5rem 1rem; }
.contact-success__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: rgba(184, 91, 67, 0.15);
  color: var(--tmc-rose);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}
.contact-success h3 { font-size: 1.5rem; color: var(--tmc-ink); font-weight: 400; }
.contact-success p { margin-top: 0.75rem; color: rgba(22, 34, 56, 0.8); font-size: 0.9375rem; line-height: 1.6; max-width: 28rem; margin-inline: auto; }
.contact-success .btn-primary { margin-top: 1.25rem; }

/* ==========================================================================
   13. HOMEPAGE SECTION WIDGETS (Elementor, one custom widget per section)
   ========================================================================== */

.home-container { max-width: var(--tmc-container); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 40rem) { .home-container { padding-inline: 2rem; } }

.home-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--tmc-border);
}
.home-section-head__title { font-size: 1.875rem; font-weight: 400; color: var(--tmc-ink); letter-spacing: -0.01em; }
@media (min-width: 40rem) { .home-section-head__title { font-size: 2.25rem; } }
.home-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--tmc-rose);
  white-space: nowrap;
}
.home-view-all:hover { color: var(--tmc-rose-dark); }
.home-view-all svg { width: 0.875rem; height: 0.875rem; transition: transform 0.15s ease; }
.home-view-all:hover svg { transform: translateX(2px); }

/* Shared card look used across every homepage grid */
.home-card {
  background-color: rgba(239, 233, 224, 0.5);
  border: 1px solid var(--tmc-border);
  border-radius: var(--tmc-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}
.home-card:hover { border-color: var(--tmc-rose); }
.home-card__media { position: relative; overflow: hidden; display: block; background-color: rgba(219, 211, 197, 0.3); }
.home-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.home-card:hover .home-card__media img { transform: scale(1.05); }
.home-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--tmc-ink);
  border-radius: var(--tmc-radius-sm);
  border: 1px solid var(--tmc-border);
}
.home-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; justify-content: space-between; gap: 1rem; }
.home-card__meta { display: flex; flex-direction: column; gap: 0.5rem; }
.home-card__cat { font-size: 0.6875rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--tmc-rose); font-weight: 600; }
.home-card__title { font-family: var(--tmc-font-serif); font-weight: 400; line-height: 1.3; color: var(--tmc-ink); }
.home-card__title a:hover { color: var(--tmc-rose); }
.home-card__excerpt { font-size: 0.8125rem; color: rgba(22, 34, 56, 0.75); line-height: 1.6; }
.home-card__footer { padding-top: 0.75rem; border-top: 1px solid var(--tmc-border); display: flex; justify-content: flex-end; }

/* ---------- Hero (Featured) ---------- */
.home-hero { padding-block: 2rem 3rem; }
@media (min-width: 40rem) { .home-hero { padding-block: 3rem; } }
.home-hero__card {
  background-color: rgba(239, 233, 224, 0.6);
  border: 1px solid var(--tmc-border);
  border-radius: var(--tmc-radius-sm);
  padding: 1.5rem;
  transition: border-color 0.2s ease;
}
@media (min-width: 40rem) { .home-hero__card { padding: 2.5rem; } }
.home-hero__card:hover { border-color: rgba(184, 91, 67, 0.6); }
.home-hero__grid { display: flex; flex-direction: column-reverse; gap: 2rem; align-items: center; }
@media (min-width: 64rem) { .home-hero__grid { flex-direction: row; gap: 3rem; } }
.home-hero__content { flex: 1; display: flex; flex-direction: column; gap: 1.25rem; }
.home-hero__media { flex: 1.4; width: 100%; }
.home-hero__media a { display: block; border-radius: var(--tmc-radius-sm); overflow: hidden; aspect-ratio: 16 / 10; background-color: rgba(219, 211, 197, 0.3); }
.home-hero__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.home-hero__media a:hover img { transform: scale(1.04); }
.home-hero__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: rgba(219, 211, 197, 0.6);
  color: var(--tmc-ink);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  border-radius: var(--tmc-radius-xs);
  width: fit-content;
}
.home-hero__title { font-size: 1.875rem; line-height: 1.15; color: var(--tmc-ink); letter-spacing: -0.01em; }
@media (min-width: 40rem) { .home-hero__title { font-size: 2.5rem; } }
@media (min-width: 64rem) { .home-hero__title { font-size: 3rem; } }
.home-hero__title a:hover { color: var(--tmc-rose); }
.home-hero__excerpt { font-size: 1rem; color: rgba(22, 34, 56, 0.8); line-height: 1.6; }
.home-hero__cta { gap: 0.5rem; width: fit-content; }

/* ---------- Beauty (no section header, per source design) ---------- */
.home-beauty { padding-block: 1.5rem 2.5rem; }
@media (min-width: 40rem) { .home-beauty { padding-block: 2rem 3.5rem; } }
.home-beauty__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: stretch; }
@media (min-width: 64rem) { .home-beauty__grid { grid-template-columns: 7fr 5fr; } }
.home-beauty__feature .home-card__media { aspect-ratio: 16 / 10; }
.home-beauty__feature .home-card__title { font-size: 1.5rem; }
@media (min-width: 40rem) { .home-beauty__feature .home-card__title { font-size: 1.75rem; } }
.home-beauty__stack { display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.home-beauty__stack .home-card { flex-direction: row; flex: 1; }
.home-beauty__stack .home-card__media { flex-shrink: 0; width: 12rem; height: auto; }
@media (max-width: 40rem) { .home-beauty__stack .home-card { flex-direction: column; } .home-beauty__stack .home-card__media { width: 100%; height: 11rem; } }
.home-beauty__stack .home-card__body { padding: 1.25rem; }
.home-beauty__stack .home-card__title { font-size: 1.125rem; line-height: 1.35; }

/* ---------- Lifestyle ---------- */
/* The divider line belongs on .home-container (content-width), not the
   outer <section> (full browser width) — matching the source, where
   border-t sits on the same element as max-w-7xl, not a full-bleed
   wrapper around it. */
.home-lifestyle { padding-bottom: 2.5rem; }
@media (min-width: 40rem) { .home-lifestyle { padding-bottom: 3.5rem; } }
.home-lifestyle > .home-container { border-top: 1px solid var(--tmc-border); padding-top: 2.5rem; }
@media (min-width: 40rem) { .home-lifestyle > .home-container { padding-top: 3.5rem; } }
.home-lifestyle__banner { display: grid; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 48rem) { .home-lifestyle__banner { grid-template-columns: 7fr 5fr; } }
.home-lifestyle__banner .home-card__media { aspect-ratio: 16 / 10; }
@media (min-width: 48rem) { .home-lifestyle__banner .home-card__media { aspect-ratio: auto; height: 100%; } }
.home-lifestyle__banner .home-card__body { padding: 1.5rem; }
@media (min-width: 40rem) { .home-lifestyle__banner .home-card__body { padding: 2rem; } }
.home-lifestyle__banner .home-card__title { font-size: 1.5rem; }
@media (min-width: 40rem) { .home-lifestyle__banner .home-card__title { font-size: 1.75rem; } }
.home-lifestyle__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 48rem) { .home-lifestyle__grid { grid-template-columns: repeat(3, 1fr); } }
.home-lifestyle__grid .home-card__media { aspect-ratio: 16 / 10; }
.home-lifestyle__grid .home-card__title { font-size: 1.125rem; }

/* ---------- Trends ---------- */
.home-trends { padding-bottom: 2.5rem; }
@media (min-width: 40rem) { .home-trends { padding-bottom: 3.5rem; } }
.home-trends > .home-container { border-top: 1px solid var(--tmc-border); padding-top: 2.5rem; }
@media (min-width: 40rem) { .home-trends > .home-container { padding-top: 3.5rem; } }
.home-trends__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 48rem) { .home-trends__grid { grid-template-columns: repeat(2, 1fr); } }
.home-trends__grid .home-card__media { aspect-ratio: 4 / 3; }
.home-trends__grid .home-card__body { padding: 1.5rem; }
@media (min-width: 40rem) { .home-trends__grid .home-card__body { padding: 2rem; } }
.home-trends__grid .home-card__title { font-size: 1.5rem; }
@media (min-width: 40rem) { .home-trends__grid .home-card__title { font-size: 1.75rem; } }

/* ---------- Shopping ---------- */
.home-shopping { padding-bottom: 2.5rem; }
@media (min-width: 40rem) { .home-shopping { padding-bottom: 3.5rem; } }
.home-shopping > .home-container { border-top: 1px solid var(--tmc-border); padding-top: 2.5rem; }
@media (min-width: 40rem) { .home-shopping > .home-container { padding-top: 3.5rem; } }
.home-shopping__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: stretch; }
@media (min-width: 64rem) { .home-shopping__grid { grid-template-columns: 5fr 7fr; } }
/* CSS Grid's align-items:stretch on .home-shopping__grid only stretches
   the immediate grid item (.home-shopping__anchor) — it does not cascade
   further down automatically. Without display:flex here, the .home-card
   inside just sits at its own natural height instead of filling that
   stretched cell, so the anchor photo never grows to match the compact
   grid's full height. */
.home-shopping__anchor { display: flex; }
.home-shopping__anchor .home-card { flex: 1; }
.home-shopping__anchor .home-card__media { flex: 1; min-height: 16rem; }
/* .home-card__body has flex-grow:1 in the shared card rules (for the
   normal card-grid case, where only the body needs to fill leftover
   row height). Here the MEDIA should absorb all the extra stretched
   height instead, so the body must not also compete for it. */
.home-shopping__anchor .home-card__body { padding: 1.5rem; flex-grow: 0; }
.home-shopping__compact-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 30rem) { .home-shopping__compact-grid { grid-template-columns: repeat(2, 1fr); } }
.home-shopping__compact-grid .home-card__media { aspect-ratio: 16 / 10; }
.home-shopping__compact-grid .home-card__body { padding: 1rem 1.25rem; }
.home-shopping__compact-grid .home-card__title { font-size: 1rem; }

/* ---------- Newsletter ---------- */
.home-newsletter { padding-block: 3rem 4rem; }
@media (min-width: 40rem) { .home-newsletter { padding-block: 4rem 6rem; } }
.home-newsletter__inner { max-width: 56rem; margin-inline: auto; }
.home-newsletter__card {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 2px solid var(--tmc-border);
  padding: 2.5rem 1.5rem;
  background: linear-gradient(to bottom right, var(--tmc-canvas), #F6F1E9, #EFE8DC);
  box-shadow: 0 16px 50px -20px rgba(22, 34, 56, 0.12);
}
@media (min-width: 40rem) { .home-newsletter__card { padding: 3.5rem 4rem; } }

/* Content sits above every decorative layer below */
.home-newsletter__content { position: relative; z-index: 10; max-width: 32rem; margin-inline: auto; }

/* Ambient blurred light orbs */
.home-newsletter__orb { position: absolute; border-radius: 9999px; filter: blur(64px); pointer-events: none; }
.home-newsletter__orb--rose { top: -6rem; right: -6rem; width: 22rem; height: 22rem; background-color: rgba(184, 91, 67, 0.12); }
.home-newsletter__orb--navy { bottom: -6rem; left: -6rem; width: 22rem; height: 22rem; background-color: rgba(22, 34, 56, 0.1); }
.home-newsletter__orb--gold { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 24rem; height: 24rem; background-color: rgba(212, 163, 115, 0.1); }

/* Top-left concentric rings / bottom-right radial geometry */
.home-newsletter__deco { position: absolute; color: rgba(219, 211, 197, 0.6); pointer-events: none; }
.home-newsletter__deco--tl { top: -2.5rem; left: -2.5rem; width: 12rem; height: 12rem; }
@media (min-width: 40rem) { .home-newsletter__deco--tl { width: 15rem; height: 15rem; } }
.home-newsletter__deco--br { bottom: -3rem; right: -3rem; width: 13rem; height: 13rem; color: rgba(219, 211, 197, 0.55); }
@media (min-width: 40rem) { .home-newsletter__deco--br { width: 16rem; height: 16rem; } }

/* Corner filigree marks */
.home-newsletter__corner { position: absolute; width: 1rem; height: 1rem; border-color: rgba(184, 91, 67, 0.35); pointer-events: none; }
.home-newsletter__corner--tl { top: 1rem; left: 1rem; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: 0.125rem; }
.home-newsletter__corner--tr { top: 1rem; right: 1rem; border-top: 2px solid; border-right: 2px solid; border-top-right-radius: 0.125rem; }
.home-newsletter__corner--bl { bottom: 1rem; left: 1rem; border-bottom: 2px solid; border-left: 2px solid; border-bottom-left-radius: 0.125rem; }
.home-newsletter__corner--br { bottom: 1rem; right: 1rem; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: 0.125rem; }

/* Inner stationery border frame */
.home-newsletter__frame { position: absolute; inset: 0.625rem; border: 1px solid rgba(219, 211, 197, 0.45); border-radius: 1rem; pointer-events: none; }
@media (min-width: 40rem) { .home-newsletter__frame { inset: 0.75rem; } }

.home-newsletter__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--tmc-border);
  color: var(--tmc-rose);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.home-newsletter__eyebrow { display: block; margin-bottom: 0.5rem; }
.home-newsletter__title { font-size: 1.875rem; color: var(--tmc-ink); letter-spacing: -0.01em; line-height: 1.2; }
@media (min-width: 40rem) { .home-newsletter__title { font-size: 2.625rem; } }
.home-newsletter__title em { color: var(--tmc-rose); font-style: italic; }
.home-newsletter__text { margin-top: 0.75rem; max-width: 32rem; margin-inline: auto; color: rgba(22, 34, 56, 0.8); font-size: 0.9375rem; line-height: 1.6; }
.home-newsletter__form { max-width: 26rem; margin: 1.5rem auto 0; display: flex; flex-direction: column; gap: 0.75rem; }
.home-newsletter__form input {
  width: 100%;
  height: 3rem;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--tmc-border);
  border-radius: var(--tmc-radius-xl);
  padding-inline: 1rem;
  font-size: 1rem;
  color: var(--tmc-ink);
  outline: none;
  font-family: var(--tmc-font-sans);
}
.home-newsletter__form input:focus { border-color: var(--tmc-rose); box-shadow: 0 0 0 3px rgba(184, 91, 67, 0.15); }
.home-newsletter__form button {
  width: 100%;
  height: 3rem;
  background-color: var(--tmc-rose);
  color: #fff;
  border-radius: var(--tmc-radius-xl);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.home-newsletter__form button:hover { background-color: var(--tmc-rose-dark); }
.home-newsletter__reassurance { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem 1.5rem; font-size: 0.75rem; color: rgba(22, 34, 56, 0.7); }
.home-newsletter__reassurance span.dot-sep { color: var(--tmc-border); }
.home-newsletter__success {
  max-width: 28rem;
  margin-inline: auto;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(184, 91, 67, 0.5);
  border-radius: 1rem;
  text-align: center;
}
.home-newsletter__success-icon { width: 2.5rem; height: 2.5rem; border-radius: 9999px; background-color: rgba(184, 91, 67, 0.15); color: var(--tmc-rose); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; }
.home-newsletter__success h3 { font-size: 1.25rem; color: var(--tmc-ink); font-weight: 400; }
.home-newsletter__success p { margin-top: 0.5rem; font-size: 0.875rem; color: rgba(22, 34, 56, 0.8); }
.home-newsletter__success button { margin-top: 0.5rem; background: none; color: var(--tmc-rose); text-decoration: underline; font-size: 0.8125rem; font-weight: 500; }

/* ==========================================================================
   14. SUBSCRIBE MODAL (opened from the header Subscribe button / mobile drawer)
   ========================================================================== */

.subscribe-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(22, 34, 56, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
@media (min-width: 40rem) { .subscribe-modal-backdrop { padding: 1.5rem; } }

.subscribe-modal {
  position: relative;
  width: 100%;
  max-width: 32rem;
  background-color: var(--tmc-canvas);
  border: 2px solid var(--tmc-border);
  border-radius: var(--tmc-radius-xl);
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.subscribe-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.375rem;
  border-radius: var(--tmc-radius-md);
  color: var(--tmc-ink);
}
.subscribe-modal__close:hover { color: var(--tmc-rose); background-color: rgba(219, 211, 197, 0.4); }

.subscribe-modal__head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.subscribe-modal__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background-color: var(--tmc-stone);
  color: var(--tmc-rose);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.subscribe-modal__title { font-size: 1.5rem; color: var(--tmc-ink); font-weight: 400; }
@media (min-width: 40rem) { .subscribe-modal__title { font-size: 1.875rem; } }
.subscribe-modal__title em { color: var(--tmc-rose); font-style: italic; }
.subscribe-modal__dot { color: var(--tmc-rose); font-weight: 700; }
.subscribe-modal__text { font-size: 0.8125rem; color: rgba(22, 34, 56, 0.75); line-height: 1.6; }
@media (min-width: 40rem) { .subscribe-modal__text { font-size: 0.875rem; } }

.subscribe-modal__form { display: flex; flex-direction: column; gap: 1rem; }
.subscribe-modal__form .form-field input {
  background-color: #fff;
  border: 1px solid var(--tmc-border);
  border-radius: var(--tmc-radius-md);
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  width: 100%;
  color: var(--tmc-ink);
  outline: none;
  transition: border-color 0.15s ease;
}
.subscribe-modal__form .form-field input:focus { border-color: var(--tmc-rose); }
.subscribe-modal__submit {
  width: 100%;
  background-color: var(--tmc-rose);
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 600;
  padding-block: 0.75rem;
  border-radius: var(--tmc-radius-md);
  transition: background-color 0.15s ease;
}
.subscribe-modal__submit:hover { background-color: var(--tmc-rose-dark); }
.subscribe-modal__fineprint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.6875rem;
  font-weight: 300;
  color: rgba(22, 34, 56, 0.6);
  padding-top: 0.25rem;
}

.subscribe-modal__success { padding: 1.5rem; background-color: var(--tmc-stone); border: 1px solid var(--tmc-rose); border-radius: var(--tmc-radius-lg); text-align: center; }
.subscribe-modal__success-head { display: flex; align-items: center; justify-content: center; gap: 0.5rem; color: var(--tmc-ink); }
.subscribe-modal__success-head svg { color: var(--tmc-rose); }
.subscribe-modal__success-head span { font-family: var(--tmc-font-serif); font-size: 1.125rem; font-weight: 500; }
.subscribe-modal__success p { margin-top: 0.75rem; font-size: 0.75rem; color: rgba(22, 34, 56, 0.7); }
.subscribe-modal__email { text-decoration: underline; }
.subscribe-modal__success .btn-primary { margin-top: 0.75rem; padding: 0.5rem 1.25rem; }
