/* ============ Design tokens ============ */
:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --color-bg: #faf7f1;
  --color-bg-alt: #f1ebe0;
  --color-surface: #ffffff;
  --color-ink: #211c18;
  --color-charcoal: #211c18;
  --color-text: #2a2521;
  --color-text-muted: #6b6058;
  --color-border: #e6dccb;
  --color-border-strong: #d8caae;

  --color-accent: #a6673b;
  --color-accent-dark: #7c4b29;
  --color-accent-soft: #f0e1d0;
  --color-focus: #2a6f7a;
  --header-bg: rgba(250, 247, 241, 0.92);
  color-scheme: light;

  --badge-decor-ideas: #8f5731;
  --badge-interior-design: #5f6e58;
  --badge-bedroom: #7c5c52;
  --badge-living-room: #5c6b50;
  --badge-small-spaces: #4f7480;
  --badge-home-organization: #6e5c82;
  --badge-budget-decor: #8a6419;
  --badge-luxury-decor: #7c6a4f;
  --badge-diy-home: #8a5a44;
  --badge-home-improvement: #5c5246;
  --badge-interior-styles: #4f5f6b;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(33, 28, 24, 0.06), 0 1px 1px rgba(33, 28, 24, 0.04);
  --shadow-md: 0 8px 24px rgba(33, 28, 24, 0.08);
  --shadow-lg: 0 20px 48px rgba(33, 28, 24, 0.14);

  --wrap-max: 1240px;
  --header-h: 76px;
}

/* --color-charcoal stays constant across themes — used for chrome that must
   always read as "dark", e.g. the accent button, newsletter band and promo
   strip. --color-ink adapts with theme (headings, body emphasis). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-bg: #18140f;
    --color-bg-alt: #221c15;
    --color-surface: #201a14;
    --color-ink: #f5efe4;
    --color-text: #ece3d6;
    --color-text-muted: #b3a692;
    --color-border: #3c3122;
    --color-border-strong: #4c3f2b;
    --color-accent: #d99b6c;
    --color-accent-dark: #eab88c;
    --color-accent-soft: #3a2c1e;
    --header-bg: rgba(24, 20, 15, 0.92);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --color-bg: #18140f;
  --color-bg-alt: #221c15;
  --color-surface: #201a14;
  --color-ink: #f5efe4;
  --color-text: #ece3d6;
  --color-text-muted: #b3a692;
  --color-border: #3c3122;
  --color-border-strong: #4c3f2b;
  --color-accent: #d99b6c;
  --color-accent-dark: #eab88c;
  --color-accent-soft: #3a2c1e;
  --header-bg: rgba(24, 20, 15, 0.92);
  color-scheme: dark;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .2s ease, color .2s ease;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-ink); line-height: 1.15; margin: 0 0 0.5em; font-weight: 600; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: 2px; }

.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;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; background: var(--color-charcoal); color: #fff;
  padding: 10px 16px; border-radius: var(--radius-sm); z-index: 1000; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap-max); margin: 0 auto; padding: 0 20px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  min-height: 44px;
}
.btn--accent { background: var(--color-charcoal); color: #fff; }
.btn--accent:hover { background: var(--color-accent-dark); }
.btn--outline { background: transparent; border-color: var(--color-ink); color: var(--color-ink); }
.btn--outline:hover { background: var(--color-ink); color: var(--color-bg); }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn--upper { text-transform: uppercase; letter-spacing: 0.07em; font-size: 0.82rem; }

.link-arrow { font-weight: 600; color: var(--color-accent-dark); white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* ============ Announcement + promo bars ============ */
.announcement-bar {
  background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border);
  text-align: center; padding: 7px 20px; font-size: 0.78rem; letter-spacing: 0.03em;
  color: var(--color-text-muted); font-weight: 500;
}
.promo-bar {
  background: var(--color-charcoal); color: #fff; display: flex; align-items: center;
  justify-content: center; gap: 16px; padding: 10px 44px 10px 20px; position: relative;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  text-align: center; overflow: hidden;
  max-height: 44px; transition: max-height .25s ease, padding .25s ease, opacity .2s ease;
}
.promo-bar.is-dismissed { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; pointer-events: none; }
.promo-bar a { text-decoration: underline; text-underline-offset: 3px; }
.promo-bar a:hover { color: #f0dcc4; }
.promo-bar__close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; color: #fff; background: transparent;
}
.promo-bar__close:hover { background: rgba(255,255,255,0.15); }

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 100; background: var(--header-bg, rgba(250, 247, 241, 0.92));
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__bar {
  max-width: var(--wrap-max); margin: 0 auto; padding: 0 20px; min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: nowrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-ink); flex-shrink: 0; }
.brand__mark { display: inline-flex; flex-shrink: 0; }
.brand__mark img { width: 40px; height: 40px; object-fit: contain; display: block; }
.brand__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; }

.primary-nav { min-width: 0; }
.primary-nav ul { display: flex; align-items: center; gap: 16px; flex-wrap: nowrap; }
.primary-nav a {
  font-size: 0.86rem; font-weight: 500; color: var(--color-text); padding: 6px 1px;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--color-accent-dark); border-bottom-color: var(--color-accent); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 50%; background: transparent; border: 1px solid transparent; color: var(--color-ink);
}
.icon-btn:hover { background: var(--color-bg-alt); }
.menu-toggle { display: none; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: inline-flex; }

.search-panel {
  border-top: 1px solid var(--color-border); background: var(--color-surface);
  padding: 16px 20px;
}
.search-panel__form { max-width: var(--wrap-max); margin: 0 auto; display: flex; gap: 10px; }
.search-panel__form input {
  flex: 1; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--color-border-strong);
  background: var(--color-bg);
}
.search-suggestions { max-width: var(--wrap-max); margin: 10px auto 0; }
.search-suggestions a { display: block; padding: 8px 4px; border-bottom: 1px solid var(--color-border); }

.mobile-nav { display: none; }

/* ============ Category badges ============ */
.badge {
  display: inline-flex; align-items: center; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; padding: 5px 10px; border-radius: 999px;
  color: #fff; margin-bottom: 10px;
}
.badge--decor-ideas { background: var(--badge-decor-ideas); }
.badge--interior-design { background: var(--badge-interior-design); }
.badge--bedroom { background: var(--badge-bedroom); }
.badge--living-room { background: var(--badge-living-room); }
.badge--small-spaces { background: var(--badge-small-spaces); }
.badge--home-organization { background: var(--badge-home-organization); }
.badge--budget-decor { background: var(--badge-budget-decor); }
.badge--luxury-decor { background: var(--badge-luxury-decor); }
.badge--diy-home { background: var(--badge-diy-home); }
.badge--home-improvement { background: var(--badge-home-improvement); }
.badge--interior-styles { background: var(--badge-interior-styles); }

/* ============ Hero ============ */
.hero { position: relative; color: #fff; min-height: 620px; display: flex; align-items: flex-end; }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(33,28,24,0.15) 0%, rgba(33,28,24,0.72) 100%);
}
.hero__content { position: relative; padding-bottom: 72px; padding-top: 140px; max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 700; color: var(--color-accent-dark); margin: 0 0 10px; }
.eyebrow--on-media { color: #f0dcc4; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 0.4em; }
.hero__subhead { font-size: 1.08rem; color: rgba(255,255,255,0.9); max-width: 560px; margin-bottom: 1.6em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn--outline { border-color: #fff; color: #fff; }
.hero .btn--outline:hover { background: #fff; color: var(--color-ink); }

/* ============ Sections ============ */
.section { padding: 64px 0; }
.section--tint { background: var(--color-bg-alt); }
.section-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.section-heading h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
.section-heading__subtitle { color: var(--color-text-muted); max-width: 60ch; margin-top: 6px; }

/* ============ Featured category tiles ============ */
.category-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.category-tile {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.category-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.category-tile img { width: 100%; height: 100%; object-fit: cover; }
.category-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33,28,24,0) 40%, rgba(33,28,24,0.62) 100%); }
.category-tile__label {
  position: absolute; left: 16px; bottom: 14px; color: #fff; font-family: var(--font-display);
  font-weight: 600; font-size: 1.1rem; z-index: 1;
}

/* ============ Cards ============ */
.card-grid { display: grid; gap: 26px; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.card__media { display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--color-bg-alt); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__category { align-self: flex-start; }
.card__title { font-size: 1.14rem; margin: 0 0 6px; line-height: 1.3; }
.card__title a:hover { color: var(--color-accent-dark); }
.card__excerpt { color: var(--color-text-muted); font-size: 0.94rem; margin-bottom: 10px; flex: 1; }
.card__meta { font-size: 0.82rem; color: var(--color-text-muted); display: flex; gap: 6px; align-items: center; }

.card--row { flex-direction: row; }
.card--row .card__media { flex: 0 0 42%; aspect-ratio: auto; }
.card--row .card__body { flex: 1; justify-content: center; }
.card--row .card__title { font-size: 1.5rem; }

.category-featured { margin: 8px 0 56px; }

/* ============ Feature cards (homepage "Featured Home Ideas") ============ */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card__media { aspect-ratio: 4/5; overflow: hidden; display: block; }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.feature-card:hover .feature-card__media img { transform: scale(1.04); }
.feature-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.feature-card__title { font-size: 1.2rem; margin: 0; }
.feature-card__desc { color: var(--color-text-muted); font-size: 0.92rem; flex: 1; }
.feature-card__link { font-weight: 600; font-size: 0.85rem; color: var(--color-accent-dark); margin-top: 6px; }
.feature-card__link:hover { text-decoration: underline; }

/* ============ Luxury split section ============ */
.luxury-split { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; }
.luxury-split__media { min-height: 420px; }
.luxury-split__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.luxury-split__content { display: flex; flex-direction: column; justify-content: center; padding: 56px 48px; background: var(--color-bg-alt); }
.luxury-split__content h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.luxury-split__content p { color: var(--color-text-muted); font-size: 1.05rem; max-width: 46ch; }

/* ============ Interior style tiles ============ */
.style-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.style-tile { text-align: center; }
.style-tile__media {
  display: block; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-sm);
  margin: 0 auto 12px; transition: transform .18s ease, box-shadow .18s ease;
}
.style-tile:hover .style-tile__media { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.style-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.style-tile__name { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; }

/* ============ Editorial picks (asymmetric magazine grid) ============ */
.editorial-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(120px, auto); gap: 22px; }
.editorial-grid .card:first-child { grid-column: span 2; grid-row: span 2; }
.editorial-grid .card:first-child .card__media { aspect-ratio: 4/3; }
.editorial-grid .card:first-child .card__title { font-size: 1.5rem; }

/* ============ Back to top ============ */
.back-to-top {
  position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--color-charcoal); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md); opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; z-index: 90;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--color-accent-dark); }

/* ============ Chips ============ */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--color-border-strong);
  background: var(--color-surface); font-size: 0.9rem; font-weight: 500;
}
.chip:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }

/* ============ Breadcrumbs ============ */
.breadcrumbs { margin-bottom: 18px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-accent-dark); text-decoration: underline; }
.crumb-sep { opacity: 0.6; }

/* ============ Category hero ============ */
.category-hero { position: relative; color: #fff; }
.category-hero__media { position: absolute; inset: 0; }
.category-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.category-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(33,28,24,0.35), rgba(33,28,24,0.78)); }
.category-hero__content { position: relative; padding: 64px 20px 56px; max-width: 760px; }
.category-hero__content .breadcrumbs, .category-hero__content .breadcrumbs a, .category-hero__content .breadcrumbs span { color: rgba(255,255,255,0.85); }
.category-hero__content h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.category-hero__content p { color: rgba(255,255,255,0.92); max-width: 62ch; }

.empty-note { color: var(--color-text-muted); padding: 24px 0; }
.explore-more { border-top: 1px solid var(--color-border); }

/* ============ FAQ ============ */
.faq { padding: 48px 0; }
.faq h2 { margin-bottom: 20px; }
.faq__item {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 16px 20px; margin-bottom: 12px;
}
.faq__item summary { font-weight: 600; cursor: pointer; font-family: var(--font-display); font-size: 1.05rem; }
.faq__item p { margin: 12px 0 0; color: var(--color-text-muted); }

/* ============ Newsletter ============ */
.newsletter { background: var(--color-charcoal); color: #fff; padding: 60px 0; }
.newsletter__inner { max-width: 640px; margin: 0 auto; text-align: center; padding: 0 20px; }
.newsletter h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.newsletter p { color: rgba(255,255,255,0.75); }
.newsletter__form { display: flex; gap: 10px; margin-top: 20px; }
.newsletter__form input {
  flex: 1; padding: 13px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: #fff;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,0.55); }
.newsletter__note { min-height: 1.4em; margin-top: 12px; font-size: 0.9rem; color: #d9c08c; }

/* ============ Article ============ */
.article__header { padding: 40px 0 0; max-width: 800px; }
.article__header h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.article__dek { font-size: 1.12rem; color: var(--color-text-muted); }
.article__byline { display: flex; align-items: center; gap: 12px; margin: 18px 0 28px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent-dark);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.avatar--lg { width: 56px; height: 56px; font-size: 1rem; }
.article__byline-text { display: flex; flex-direction: column; font-size: 0.88rem; }
.article__byline-meta { color: var(--color-text-muted); }

.article__hero { margin: 0 0 40px; }
.article__hero img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.article__layout { display: flex; }
.article__body { max-width: 760px; margin: 0 auto; font-size: 1.05rem; }
.article__body h2 { font-size: 1.5rem; margin-top: 1.8em; }
.article__body h3 { font-size: 1.2rem; margin-top: 1.4em; }
.article__body ul, .article__body ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.article__body ul { list-style: disc; }
.article__body ol { list-style: decimal; }
.article__body li { margin-bottom: 0.5em; }
.article__body blockquote {
  border-left: 3px solid var(--color-accent); margin: 1.8em 0; padding: 0.2em 0 0.2em 1.4em;
  font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--color-ink);
}
.article__body cite { display: block; font-family: var(--font-body); font-style: normal; font-size: 0.85rem; color: var(--color-text-muted); margin-top: 6px; }

.toc { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 18px 22px; margin: 24px 0 36px; }
.toc__label { font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.08em; color: var(--color-text-muted); margin: 0 0 10px; }
.toc ol { list-style: decimal; padding-left: 1.2em; display: grid; gap: 6px; }
.toc a:hover { color: var(--color-accent-dark); text-decoration: underline; }

.tip { background: var(--color-accent-soft); border-radius: var(--radius-md); padding: 16px 20px; margin: 1.6em 0; }
.tip p { margin: 0; }
.tip__label { display: block; font-weight: 700; color: var(--color-accent-dark); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }

.in-article-figure { margin: 2em 0; }
.in-article-figure img { border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; }
.in-article-figure figcaption { font-size: 0.85rem; color: var(--color-text-muted); margin-top: 8px; text-align: center; }

.author-box {
  display: flex; gap: 16px; background: var(--color-bg-alt); border-radius: var(--radius-lg);
  padding: 24px; margin: 3em 0; align-items: flex-start;
}
.author-box h2 { font-size: 1.1rem; margin-bottom: 2px; }
.author-box__role { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 10px; }
.author-box p:last-child { margin-bottom: 0; color: var(--color-text-muted); font-size: 0.95rem; }

.related { margin: 3em 0 1em; }
.related h2 { margin-bottom: 24px; }

/* ============ Prose / static pages ============ */
.prose-page { padding: 40px 0 80px; max-width: 800px; }
.prose-page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.prose-page__updated, .prose-page__lede { color: var(--color-text-muted); }
.prose-page__lede { font-size: 1.08rem; margin-bottom: 1.5em; }
.prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.prose ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.sitemap-list { list-style: none; padding: 0; margin-bottom: 2em; }
.sitemap-list li { padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.sitemap-list a:hover { color: var(--color-accent-dark); }

/* ============ Contact ============ */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin-top: 20px; }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm); background: var(--color-surface);
}
.field textarea { resize: vertical; }
.form-note { min-height: 1.4em; font-size: 0.9rem; color: var(--color-accent-dark); }
.contact-aside { background: var(--color-bg-alt); border-radius: var(--radius-lg); padding: 24px; align-self: start; }
.contact-aside h2 { font-size: 1rem; margin-top: 1.2em; }
.contact-aside h2:first-child { margin-top: 0; }
.contact-aside__social { display: grid; gap: 6px; }
.contact-aside a:hover { color: var(--color-accent-dark); }

/* ============ Search page ============ */
.search-page__form { display: flex; gap: 10px; margin: 24px 0; }
.search-page__form input { flex: 1; min-width: 0; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--color-border-strong); background: var(--color-surface); }
#search-status { color: var(--color-text-muted); margin-bottom: 20px; }

/* ============ 404 ============ */
.not-found { text-align: center; padding-top: 72px; }
.not-found .search-page__form { max-width: 480px; margin: 24px auto; }
.not-found__links { display: flex; gap: 14px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

/* ============ Footer ============ */
.site-footer { background: var(--color-bg-alt); border-top: 1px solid var(--color-border); margin-top: 40px; }
.footer-top {
  max-width: var(--wrap-max); margin: 0 auto; padding: 56px 20px 40px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand p { color: var(--color-text-muted); margin: 14px 0; max-width: 32ch; }
.footer-brand .brand__mark img { width: 48px; height: 48px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { font-size: 0.85rem; font-weight: 600; }
.footer-social a:hover { color: var(--color-accent-dark); }
.footer-col h3 { font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin-bottom: 14px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a:hover { color: var(--color-accent-dark); }
.footer-bottom {
  border-top: 1px solid var(--color-border); max-width: var(--wrap-max); margin: 0 auto;
  padding: 20px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: 0.82rem; color: var(--color-text-muted);
}
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--color-accent-dark); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .style-grid { grid-template-columns: repeat(3, 1fr); }
  .editorial-grid { grid-template-columns: repeat(2, 1fr); }
  .editorial-grid .card:first-child { grid-column: span 2; grid-row: span 1; }
  .luxury-split { grid-template-columns: 1fr; }
  .luxury-split__media { min-height: 320px; }
  .luxury-split__content { padding: 40px 28px; }
}

/* The full nav (9 links + logo + icons) needs ~1240px to lay out on one row
   without crowding — collapse to the hamburger well before it would wrap. */
@media (max-width: 1300px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .search-panel { display: none; }
  .search-panel.is-open { display: block; }
  .mobile-nav.is-open {
    display: block; background: var(--color-surface); border-top: 1px solid var(--color-border);
    padding: 12px 20px 20px;
  }
  .mobile-nav ul { display: grid; gap: 4px; }
  .mobile-nav a { display: block; padding: 12px 4px; font-size: 1rem; font-weight: 500; }
  .mobile-nav a.is-active { color: var(--color-accent-dark); }
  .mobile-nav__secondary { border-top: 1px solid var(--color-border); margin-top: 8px; padding-top: 8px; }
  .mobile-nav__secondary a { font-size: 0.92rem; color: var(--color-text-muted); }
}

@media (max-width: 860px) {
  .card--row { flex-direction: column; }
  .card--row .card__media { flex: none; aspect-ratio: 4/3; }
}

@media (max-width: 640px) {
  .card-grid--4, .card-grid--3 { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { min-height: 520px; }
  .hero__content { padding-top: 110px; padding-bottom: 48px; }
  .hero__actions .btn { flex: 1 1 auto; }
  .section { padding: 44px 0; }
  .newsletter__form { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .site-header__bar { min-height: 64px; }
  .feature-grid { grid-template-columns: 1fr; }
  .style-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .editorial-grid { grid-template-columns: 1fr; }
  .editorial-grid .card:first-child { grid-column: span 1; }
  .promo-bar { font-size: 0.7rem; padding-left: 14px; padding-right: 40px; }
  .announcement-bar { font-size: 0.72rem; padding: 6px 14px; }
  .back-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; }
}

@media (max-width: 400px) {
  .footer-top { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .site-header__bar { padding: 0 14px; gap: 10px; }
  .header-actions { gap: 2px; }
  .icon-btn { width: 38px; height: 38px; }
  .brand__name { font-size: 1.2rem; }
  .style-grid { grid-template-columns: repeat(2, 1fr); }
}
