/* ==========================================================================
   The Trend Collection — main stylesheet
   Design tokens sourced from the approved AI Studio prototype / DESIGN.md
   ========================================================================== */

@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/playfair-display-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/dm-sans-variable.woff2') format('woff2');
}

:root {
  --bg: #F8F4EE;
  --surface: #FFFFFF;
  --ink: #2B2522;
  --accent: #6B2638;
  --accent-hover: #5a1f2f;
  --accent2: #C9A6A0;
  --surface-dark-1: #231E1B;
  --surface-dark-2: #461925;
  --surface-dark-3: #1C1716;
  --trust-green: #00B67A;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-subhead: 'Cormorant Garamond', Garamond, Georgia, serif;
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 2px;
  --radius-md: 8px;
  --radius-full: 9999px;

  --container-max: 1280px;
  --container-narrow: 896px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
input, textarea { font: inherit; }
::selection { background: rgba(201, 166, 160, .3); color: var(--ink); }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.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;
}

#site-content { flex: 1 0 auto; width: 100%; }

.container {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container, .container-narrow { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container, .container-narrow { padding-left: 2rem; padding-right: 2rem; }
}

.font-display { font-family: var(--font-display); }
.font-subhead { font-family: var(--font-subhead); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.animate-fadeIn { animation: fadeIn .2s ease-out; }
.animate-slideDown { animation: slideDown .25s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .animate-fadeIn, .animate-slideDown { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Eyebrow / badges ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .25em;
  color: var(--accent);
}
.badge {
  display: inline-block;
  width: fit-content;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  padding: .125rem .625rem;
  border-radius: var(--radius-sm);
  transition: background-color .2s ease;
}
a.badge:hover { background: var(--accent-hover); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .2em;
  background: var(--accent);
  color: var(--bg);
  padding: .9rem 2rem;
  border-radius: var(--radius-md);
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 20px -8px rgba(43,37,34,.35); }
.btn--block { width: 100%; justify-content: center; }
.btn--icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: var(--radius-full);
  background: rgba(248,244,238,.1); color: var(--bg);
  transition: background-color .2s ease, color .2s ease;
}
.btn--icon:hover { background: var(--accent2); color: var(--ink); }

/* Header-only icon buttons (subscribe, search) sit flat on the burgundy bar —
   no circular chip, matching the source design; only footer icons get one. */
.header-icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .5rem; border-radius: var(--radius-sm); color: var(--bg);
  transition: color .2s ease;
}
.header-icon-btn:hover { color: var(--accent2); }
.link-more {
  display: inline-flex; align-items: center; gap: .375rem;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--accent); text-decoration: underline; text-decoration-color: var(--accent);
  text-underline-offset: 4px;
  transition: opacity .2s ease;
}
.link-more:hover { opacity: .8; }
.link-more svg { width: 14px; height: 14px; transition: transform .2s ease; }
.link-more:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between; height: 5rem;
}
.header-desktop { display: none; }
.header-mobile { display: flex; }
@media (min-width: 1024px) {
  .header-desktop { display: flex; }
  .header-mobile { display: none; }
}

.brand-logo { display: inline-flex; cursor: pointer; color: var(--bg); transition: opacity .2s ease; }
.brand-logo:hover { opacity: .9; }

/* Logo lockup — identical size on every breakpoint, matching the source
   Logo.tsx (its own comment: "identical in size and layout across views"). */
.brand-logo-mark { display: inline-flex; flex-direction: column; align-items: center; }
.brand-logo-top {
  display: flex; align-items: baseline;
  font-family: var(--font-display); color: currentColor;
  line-height: 1; letter-spacing: .015em; white-space: nowrap;
}
.brand-logo-the, .brand-logo-rend { font-size: 25px; font-weight: 400; }
.brand-logo-t { font-size: 33px; font-weight: 500; margin: 0 4px -2px; line-height: 1; }
.brand-logo-sub { display: flex; align-items: center; width: 100%; margin-top: 6px; padding: 0 2px; }
.brand-logo-rule { height: 1px; background: currentColor; opacity: .8; flex-grow: 1; }
.brand-logo-rule:first-child { margin-right: 8px; }
.brand-logo-rule:last-child { margin-left: 8px; }
.brand-logo-label {
  font-family: var(--font-display); font-size: 9.5px; font-weight: 400;
  text-transform: uppercase; letter-spacing: .22em; opacity: .95;
  white-space: nowrap; line-height: 1; margin-left: .22em;
}

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav a {
  position: relative; padding: .5rem 0;
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .2em;
  color: rgba(248,244,238,.8);
  transition: color .2s ease;
}
.primary-nav a:hover { color: var(--accent2); }
.primary-nav a.is-active { color: var(--bg); font-weight: 600; }
.primary-nav a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent2);
}

.header-actions { display: flex; align-items: center; gap: .75rem; position: relative; }

.search-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem .75rem; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .15em; color: var(--bg);
  transition: color .2s ease;
}
.search-toggle:hover { color: var(--accent2); }

.search-dropdown {
  position: absolute; right: 0; top: calc(100% + .5rem); z-index: 50;
  width: 24rem; max-width: 90vw;
  background: var(--bg); color: var(--ink);
  border-radius: var(--radius-md); border: 1px solid rgba(201,166,160,.4);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,.35);
  padding: 1rem;
}
.search-dropdown__field { position: relative; }
.search-dropdown input[type="search"] {
  width: 100%; padding: .5rem 2rem .5rem 2.25rem; font-size: 14px;
  background: #fff; border: 1px solid rgba(43,37,34,.2); border-radius: 6px; color: var(--ink);
}
.search-dropdown input[type="search"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.search-dropdown__icon { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; opacity: .5; }
.search-dropdown__results { margin-top: .75rem; max-height: 16rem; overflow-y: auto; }
.search-dropdown__results a {
  display: block; padding: .625rem .5rem; border-radius: 6px;
  transition: background-color .15s ease;
}
.search-dropdown__results a:hover { background: rgba(201,166,160,.15); }
.search-dropdown__empty { font-size: 12px; color: rgba(43,37,34,.6); text-align: center; padding: .75rem 0; font-style: italic; }

.mobile-drawer-toggle, .mobile-icon-btn { padding: .5rem; color: var(--bg); }
.mobile-drawer {
  position: fixed; left: 0; right: 0; top: 5rem; z-index: 40;
  background: var(--accent); border-bottom: 1px solid rgba(248,244,238,.1);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
  padding: 1.5rem 1rem; max-height: calc(100vh - 5rem); overflow-y: auto;
}
.mobile-drawer nav { display: flex; flex-direction: column; gap: 1rem; text-align: center; }
.mobile-drawer a {
  padding: .5rem 0; font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .2em; color: rgba(248,244,238,.8);
}
.mobile-drawer a.is-active { color: var(--bg); font-weight: 700; border-bottom: 2px solid var(--accent2); display: inline-block; margin: 0 auto; }

/* ---------- Newsletter modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: none; align-items: center; justify-content: center;
  background: rgba(0,0,0,.6); backdrop-filter: blur(2px);
  padding: 1rem;
}
.modal-overlay.is-open { display: flex; }
.modal-card {
  position: relative; width: 100%; max-width: 28rem; overflow: hidden;
  border-radius: var(--radius-md); padding: 2rem;
  border: 1px solid rgba(201,166,160,.25);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,.5);
  background: linear-gradient(to bottom right, var(--surface-dark-1), var(--surface-dark-2), var(--surface-dark-3));
  color: var(--bg);
}
.modal-card::before, .modal-card::after {
  content: ''; position: absolute; width: 12rem; height: 12rem; border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.modal-card::before { top: -4rem; right: -4rem; background: rgba(107,38,56,.25); }
.modal-card::after { bottom: -4rem; left: -4rem; background: rgba(201,166,160,.15); }
.modal-close { position: absolute; top: 1rem; right: 1rem; padding: .35rem; color: rgba(248,244,238,.7); z-index: 10; }
.modal-close:hover { color: var(--bg); }
.modal-content { position: relative; z-index: 10; }
.modal-icon {
  width: 3rem; height: 3rem; border-radius: var(--radius-md); background: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.modal-content h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.modal-content p.lead { font-size: 13px; color: rgba(248,244,238,.8); line-height: 1.6; margin-bottom: 1.5rem; }
.modal-form { display: flex; flex-direction: column; gap: .75rem; }
.modal-form input {
  width: 100%; padding: .65rem .875rem; background: var(--bg); color: var(--ink);
  border-radius: 6px; border: 1px solid transparent; font-size: 14px;
}
.modal-form input:focus { outline: none; box-shadow: 0 0 0 2px var(--accent2); }
.modal-success {
  display: flex; align-items: center; gap: .5rem;
  background: var(--bg); color: var(--accent); padding: .75rem 1rem; border-radius: 6px; font-size: 13px; font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--accent); color: var(--bg); padding: 4rem 0 3rem; border-top: 1px solid rgba(248,244,238,.1); }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding-bottom: 3.5rem; border-bottom: 1px solid rgba(248,244,238,.15);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(12, 1fr); gap: 2.5rem; } }
.footer-col--brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
@media (min-width: 768px) { .footer-col--brand { grid-column: span 6; } }
@media (min-width: 1024px) { .footer-col--brand { grid-column: span 5; } }
.footer-col--brand p { font-size: 14px; color: rgba(248,244,238,.8); line-height: 1.7; max-width: 28rem; }

.footer-col--links { }
@media (min-width: 768px) { .footer-col--links { grid-column: span 3; } }
.footer-col--connect { }
@media (min-width: 768px) { .footer-col--connect { grid-column: span 3; } }
@media (min-width: 1024px) { .footer-col--connect { grid-column: span 4; } }

.footer-heading { font-family: var(--font-sans); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--accent2); margin-bottom: 1.25rem; }
.footer-links { display: flex; flex-direction: column; gap: .75rem; font-size: 14px; }
.footer-links a { color: rgba(248,244,238,.8); transition: color .2s ease; }
.footer-links a:hover { color: var(--accent2); }
.footer-col--connect > p { font-size: 13px; color: rgba(248,244,238,.8); line-height: 1.6; margin-bottom: 1rem; }
.footer-social { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
.footer-social a {
  width: 2.25rem; height: 2.25rem; border-radius: 50%; background: rgba(248,244,238,.1);
  display: flex; align-items: center; justify-content: center; color: var(--bg);
  transition: background-color .2s ease, color .2s ease;
}
.footer-social a:hover { background: var(--accent2); color: var(--ink); }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.trustpilot-badge { background: rgba(248,244,238,.1); border-radius: var(--radius-md); padding: 1rem; border: 1px solid rgba(248,244,238,.15); width: 100%; max-width: 20rem; }
.trustpilot-badge__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .375rem; }
.trustpilot-badge__top span:first-child { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.trustpilot-badge__top span:last-child { font-size: 12px; font-weight: 500; color: rgba(248,244,238,.9); }
.trustpilot-stars { display: flex; align-items: center; gap: .25rem; margin-bottom: .375rem; }
.trustpilot-stars span { width: 1rem; height: 1rem; background: var(--trust-green); display: flex; align-items: center; justify-content: center; border-radius: 1px; }
.trustpilot-stars svg { width: 11px; height: 11px; fill: #fff; }
.trustpilot-badge__score { font-size: 12px; color: rgba(248,244,238,.9); }
.trustpilot-badge__score strong { color: var(--bg); font-weight: 700; }

.footer-bottom { padding-top: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 1rem; font-size: 12px; color: rgba(248,244,238,.6); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.back-to-top { display: flex; align-items: center; gap: .5rem; color: rgba(248,244,238,.8); padding: .5rem; }
.back-to-top:hover { color: var(--accent2); }
.back-to-top span { display: none; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
@media (min-width: 640px) { .back-to-top span { display: inline; } }
.back-to-top i { width: 1.75rem; height: 1.75rem; border-radius: 50%; background: rgba(248,244,238,.1); display: flex; align-items: center; justify-content: center; }
.back-to-top svg { width: 14px; height: 14px; }

/* ==========================================================================
   Newsletter CTA card (homepage / shared)
   ========================================================================== */
.newsletter-card {
  position: relative; overflow: hidden; border-radius: var(--radius-md);
  padding: 3rem 1.5rem; border: 1px solid rgba(201,166,160,.25);
  box-shadow: 0 30px 60px -15px rgba(0,0,0,.35);
  background: linear-gradient(to bottom right, var(--ttc-nl-start, var(--surface-dark-1)), var(--ttc-nl-mid, var(--surface-dark-2)), var(--ttc-nl-end, var(--surface-dark-3)));
  color: var(--bg); text-align: center;
}
@media (min-width: 640px) { .newsletter-card { padding: 4rem; } }
.newsletter-card::before, .newsletter-card::after { content:''; position:absolute; width:16rem; height:16rem; border-radius:50%; filter: blur(70px); pointer-events:none; }
.newsletter-card::before { top:-4rem; right:-4rem; background: rgba(107,38,56,.25); }
.newsletter-card::after { bottom:-4rem; left:-4rem; background: rgba(201,166,160,.15); }
.newsletter-card__inner { position: relative; z-index: 1; max-width: 36rem; margin: 0 auto; }
.newsletter-card h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; margin: .75rem 0 1rem; }
@media (min-width: 640px) { .newsletter-card h2 { font-size: 2.25rem; } }
.newsletter-card p { font-size: 14px; color: rgba(248,244,238,.8); line-height: 1.7; margin-bottom: 2rem; }
.newsletter-form { display: flex; flex-direction: column; gap: .75rem; }
@media (min-width: 640px) { .newsletter-form { flex-direction: row; } }
.newsletter-form input { flex-grow: 1; padding: .875rem 1rem; background: var(--bg); color: var(--ink); border-radius: 6px; border: none; font-size: 14px; }
.newsletter-form input:focus { outline: none; box-shadow: 0 0 0 2px var(--accent2); }
.newsletter-form button { white-space: nowrap; }

/* ==========================================================================
   Cards & grids (category / archive / related)
   ========================================================================== */
.card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid rgba(43,37,34,.1); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 1px 2px rgba(43,37,34,.05);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.card:hover { border-color: rgba(107,38,56,.35); box-shadow: 0 10px 25px -8px rgba(43,37,34,.18); }
.card__media { position: relative; overflow: hidden; background: var(--bg); aspect-ratio: 4/3; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge-float { position: absolute; top: .75rem; left: .75rem; }
.card__body { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.card__title { font-family: var(--font-subhead); font-weight: 700; font-size: 1.25rem; line-height: 1.3; color: var(--ink); margin: .625rem 0 .75rem; transition: color .2s ease; }
.card a:hover .card__title, .card:hover .card__title { color: var(--accent); }
.card__excerpt { font-size: 14px; color: rgba(43,37,34,.8); line-height: 1.6; margin-bottom: 1rem; }
.card__footer { margin-top: auto; padding-top: .5rem; }

.grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ==========================================================================
   Page header (category / about / contact / legal)
   ========================================================================== */
.page-hero { padding: 2.5rem 0 3.5rem; }
.page-hero--center { text-align: center; }
.page-hero .eyebrow { margin-bottom: .75rem; }
.page-hero h1 {
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  font-size: 1.875rem; line-height: 1.15;
}
@media (min-width: 640px) { .page-hero h1 { font-size: 2.5rem; } }
@media (min-width: 768px) { .page-hero h1 { font-size: 3rem; } }
.page-hero p.lede { font-size: 15px; color: rgba(43,37,34,.7); max-width: 36rem; margin: .75rem auto 0; line-height: 1.7; }

.page-header-bordered { border-bottom: 1px solid rgba(43,37,34,.15); padding-bottom: 1.5rem; margin-bottom: 2.5rem; }
.page-header-bordered.center { text-align: center; }

.back-home-btn {
  display: inline-flex; align-items: center; gap: .625rem;
  font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .2em;
  padding: .65rem 1.25rem; background: var(--accent); color: var(--bg); border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0,0,0,.08); transition: background-color .2s ease;
}
.back-home-btn:hover { background: var(--accent-hover); }
.back-home-btn svg { width: 16px; height: 16px; transition: transform .2s ease; }
.back-home-btn:hover svg { transform: translateX(-3px); }

/* ==========================================================================
   Single post
   ========================================================================== */
.post-wrap { padding: 2.5rem 0; }
@media (min-width: 640px) { .post-wrap { padding: 3rem 0; } }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; font-size: 14px; color: rgba(43,37,34,.7); font-weight: 500; margin-bottom: .625rem; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 .625rem; color: rgba(43,37,34,.4); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }
.post-category-pill { margin-bottom: 1.5rem; }

.post-header { max-width: 56rem; margin-bottom: 2rem; }
.post-header h1 { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.875rem; line-height: 1.2; margin-bottom: 1rem; }
@media (min-width: 640px) { .post-header h1 { font-size: 2.5rem; } }
@media (min-width: 768px) { .post-header h1 { font-size: 3rem; } }
.post-header .excerpt { font-size: 16px; color: rgba(43,37,34,.8); line-height: 1.7; }
@media (min-width: 640px) { .post-header .excerpt { font-size: 18px; } }

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

.post-hero-image { width: 100%; aspect-ratio: 16/10; overflow: hidden; border-radius: var(--radius-md); background: var(--bg); margin-bottom: 2.5rem; box-shadow: 0 1px 2px rgba(43,37,34,.05); }
.post-hero-image img { width: 100%; height: 100%; object-fit: cover; }

.post-content { font-family: var(--font-sans); font-size: 16px; color: rgba(43,37,34,.9); line-height: 1.8; }
@media (min-width: 640px) { .post-content { font-size: 18px; } }
.post-content p { margin-bottom: 1.5rem; }
.post-content > p:first-of-type::first-letter {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
  float: left; line-height: .9; margin-right: .375rem; margin-top: .25rem; color: var(--ink);
}

.author-box {
  margin-top: 3.5rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem;
  background: var(--surface); border: 1px solid rgba(43,37,34,.15); border-radius: var(--radius-md);
  padding: 1.5rem; box-shadow: 0 1px 2px rgba(43,37,34,.05);
}
@media (min-width: 640px) { .author-box { flex-direction: row; align-items: center; padding: 2rem; } }
.author-box img { width: 5rem; height: 5rem; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent2); flex-shrink: 0; }
.author-box .eyebrow { margin-bottom: .25rem; }
.author-box h3 { font-family: var(--font-subhead); font-weight: 700; font-size: 1.25rem; color: var(--ink); margin-bottom: .5rem; }
.author-box p.bio { font-size: 14px; color: rgba(43,37,34,.8); line-height: 1.6; }

.sidebar-box { position: sticky; top: 7rem; background: var(--surface); border: 1px solid rgba(43,37,34,.1); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: 0 1px 2px rgba(43,37,34,.05); }
.sidebar-box h2 { font-family: var(--font-subhead); font-weight: 700; font-size: 1.125rem; color: var(--ink); text-transform: uppercase; letter-spacing: .05em; padding-bottom: .75rem; border-bottom: 1px solid rgba(43,37,34,.1); margin-bottom: 1.25rem; }
.related-post { display: flex; align-items: flex-start; gap: 1rem; padding: .625rem; border-radius: var(--radius-md); transition: background-color .2s ease; }
.related-post:hover { background: rgba(248,244,238,.6); }
.related-post + .related-post { margin-top: .5rem; }
.related-post__thumb { width: 5rem; height: 5rem; flex-shrink: 0; overflow: hidden; border-radius: 6px; background: var(--bg); }
.related-post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.related-post:hover .related-post__thumb img { transform: scale(1.05); }
.related-post__body { display: flex; flex-direction: column; justify-content: space-between; min-width: 0; height: 5rem; }
.related-post__body .badge { font-size: 9px; margin-bottom: .25rem; }
.related-post__body h4 { font-family: var(--font-subhead); font-weight: 700; font-size: 14px; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.related-post:hover .related-post__body h4 { color: var(--accent); }
.related-post__body .link-more { font-size: 11px; padding-top: .25rem; }

/* ==========================================================================
   Contact page
   ========================================================================== */
.contact-panel { background: var(--surface); border: 1px solid rgba(43,37,34,.1); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: 0 1px 2px rgba(43,37,34,.05); }
@media (min-width: 768px) { .contact-panel { padding: 2.5rem; } }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: stretch; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 5fr 7fr; gap: 2.5rem; } }
.contact-image { position: relative; width: 100%; min-height: 320px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg); box-shadow: 0 1px 2px rgba(43,37,34,.05); }
.contact-image img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: rgba(43,37,34,.8); margin-bottom: .375rem; }
.form-field input, .form-field textarea {
  width: 100%; padding: .65rem .875rem; background: var(--bg); border: 1px solid rgba(43,37,34,.2);
  border-radius: 6px; font-size: 14px; color: var(--ink); resize: none;
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.form-honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { padding: 3rem 1rem; text-align: center; }
.form-success i { width: 3rem; height: 3rem; background: var(--accent); color: var(--bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }
.form-success h3 { font-family: var(--font-subhead); font-weight: 700; font-size: 1.25rem; color: var(--ink); margin-bottom: .5rem; }
.form-success p { font-size: 14px; color: rgba(43,37,34,.7); max-width: 20rem; margin: 0 auto; }
.form-error { font-size: 13px; color: var(--accent); background: rgba(107,38,56,.08); border: 1px solid rgba(107,38,56,.25); border-radius: 6px; padding: .625rem .875rem; margin-bottom: 1rem; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-body {
  background: var(--surface); border: 1px solid rgba(43,37,34,.1); border-radius: var(--radius-md);
  padding: 2rem 1.5rem; font-size: 16px; color: rgba(43,37,34,.9); line-height: 1.85;
}
@media (min-width: 640px) { .legal-body { padding: 3rem; font-size: 17px; } }
.legal-body > * + * { margin-top: 1.5rem; }
.legal-body section { padding-top: 1rem; border-top: 1px solid rgba(43,37,34,.1); }
.legal-body section:first-of-type { border-top: none; padding-top: 0; }
.legal-body h2 { font-family: var(--font-subhead); font-weight: 700; font-size: 1.375rem; color: var(--ink); margin-bottom: .75rem; }
@media (min-width: 640px) { .legal-body h2 { font-size: 1.625rem; } }
.legal-body h3 { font-family: var(--font-sans); font-weight: 600; font-size: 15px; color: var(--accent); margin: 1rem 0 .5rem; }
.legal-body p { margin-bottom: 1rem; }
.legal-body ul { list-style: disc; padding-left: 1.5rem; }
.legal-body li { margin-bottom: .5rem; color: rgba(43,37,34,.85); }
.legal-body li strong { color: var(--ink); }
.legal-body .intro { padding-bottom: 1.5rem; border-bottom: 1px solid rgba(43,37,34,.1); }
.legal-body .outro { padding-top: 1.5rem; border-top: 1px solid rgba(43,37,34,.1); font-style: italic; color: rgba(43,37,34,.8); }

/* ==========================================================================
   Misc
   ========================================================================== */
.no-posts { padding: 3rem 1rem; text-align: center; color: rgba(43,37,34,.6); font-size: 15px; }
.pagination { display: flex; justify-content: center; gap: .5rem; margin-top: 3rem; }
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem;
  padding: 0 .75rem; border-radius: 6px; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(43,37,34,.15); color: var(--ink);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); color: var(--bg); border-color: var(--accent); }
