/* ==========================================================================
   VIEWVILLAGELISTLOM - EDITORIAL STYLESHEET
   Aesthetic: Editorial (Serif/sans typography, delicate rules, formal spacing)
   Card Style: Architectural French Gallery Passe-Partout
   ========================================================================== */

:root {
  --color-bg: #f9f8f5;
  --color-surface: #ffffff;
  --color-surface-tint: #f3f0ea;
  --color-surface-warm: #faf7f2;
  --color-text: #1a1816;
  --color-text-muted: #57534e;
  --color-border: #dcd6cd;
  --color-border-subtle: #eae5dc;
  --color-border-fine: #e3ddd3;
  --color-accent: #781c28; /* French Burgundy / Bordeaux */
  --color-accent-hover: #5d151f;
  --color-accent-soft: rgba(120, 28, 40, 0.08);
  --color-accent-contrast: #ffffff;
  --color-focus: #1a1816;

  --font-serif: "Didot", "Bodoni MT", "Cinzel", "Baskerville", "Playfair Display", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --space-4: 4px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-64: 64px;

  --max-width: 1200px;
  --header-height: 64px;
  --header-height-mobile: 52px;
  --card-radius: 4px;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  background-color: var(--color-bg);
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* Typography wrapping & resets */
h1, h2, h3, h4, h5, h6,
.site-brand, nav a, .card-title {
  overflow-wrap: anywhere;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-24);
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  letter-spacing: -0.005em;
  margin-bottom: var(--space-24);
}

h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  margin-bottom: var(--space-16);
}

p {
  margin-bottom: var(--space-24);
  color: var(--color-text);
}

p.lead {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-muted);
}

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

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

/* Accessibility Focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

/* Utility Layout Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-24);
  padding-right: var(--space-24);
}

.section {
  padding-top: var(--space-64);
  padding-bottom: var(--space-64);
}

.section-divider {
  height: 1px;
  background-color: var(--color-border);
  width: 100%;
  margin: 0;
  border: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 24px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  min-width: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-accent-contrast);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  background-color: var(--color-surface-tint);
  border-color: var(--color-text);
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   HEADER (Not sticky, exact mobile & desktop height rules)
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  height: var(--header-height);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  text-decoration: none;
  color: var(--color-text);
  min-width: 0;
}

.brand-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  fill: var(--color-accent);
}

.site-brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-24);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--color-text);
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-accent);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-accent);
}

.header-cta {
  display: inline-block;
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 8px;
  cursor: pointer;
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   NEW CARD DESIGN: ARCHITECTURAL GALLERY PASSE-PARTOUT
   A fresh, multi-layered Parisian archival dossier aesthetic with
   curated folio badges, passe-partout image matting, subtle ambient
   lift, and bespoke animated interaction lines.
   -------------------------------------------------------------------------- */
.editorial-card-container,
.framed-canvas-container {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}

/* Fallback / compatibility layer for existing markup */
.framed-canvas-bg {
  display: none;
}

.editorial-card,
.framed-canvas-card {
  position: relative;
  z-index: 2;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--card-radius);
  padding: var(--space-20);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  box-shadow: 0 4px 16px rgba(26, 24, 22, 0.03), 0 1px 2px rgba(26, 24, 22, 0.04);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
              box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.25s ease;
  overflow: hidden;
}

/* Elegant top accent ribbon */
.editorial-card::before,
.framed-canvas-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent) 0%, #b33946 50%, var(--color-border) 100%);
  opacity: 0.85;
  transition: opacity 0.25s ease, height 0.25s ease;
}

.editorial-card-container:hover .editorial-card,
.framed-canvas-container:hover .framed-canvas-card {
  transform: translateY(-5px);
  border-color: #baa898;
  box-shadow: 0 16px 36px -12px rgba(35, 25, 20, 0.12), 0 4px 12px rgba(35, 25, 20, 0.04);
}

.editorial-card-container:hover .editorial-card::before,
.framed-canvas-container:hover .framed-canvas-card::before {
  opacity: 1;
  height: 4px;
}

/* Card Media & Image Matting */
.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--color-surface-warm);
  border: 1px solid var(--color-border-fine);
  border-radius: 2px;
  margin-bottom: var(--space-20);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
  filter: contrast(102%) saturate(98%);
}

.editorial-card-container:hover .card-media img,
.framed-canvas-container:hover .card-media img {
  transform: scale(1.04);
  filter: contrast(105%) saturate(102%);
}

.card-media-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(26, 24, 22, 0) 50%, rgba(26, 24, 22, 0.22) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Folio Catalog Badge */
.card-folio-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-family: var(--font-serif);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: rgba(249, 248, 245, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 2px;
  border: 1px solid rgba(220, 214, 205, 0.85);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Card Body Content */
.card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Metadata Bar */
.card-meta {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.card-tag {
  color: var(--color-accent);
  background-color: var(--color-accent-soft);
  padding: 3px 8px;
  border-radius: 2px;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid rgba(120, 28, 40, 0.14);
}

.meta-separator {
  color: var(--color-border);
  font-size: 0.85rem;
}

.card-reading-time {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 500;
}

/* Card Headline */
.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-12);
}

.card-title a {
  color: var(--color-text);
  text-decoration: none;
  background-image: linear-gradient(var(--color-accent), var(--color-accent));
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: color 0.2s ease, background-size 0.3s ease;
  padding-bottom: 2px;
}

.editorial-card-container:hover .card-title a,
.framed-canvas-container:hover .card-title a {
  color: var(--color-accent);
  background-size: 100% 1px;
}

/* Description paragraph */
.card-desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: var(--space-20);
  flex-grow: 1;
}

/* Card Footer & Interactive Action */
.card-footer {
  margin-top: auto;
  padding-top: var(--space-16);
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-12);
}

.card-archive-label {
  font-size: 0.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  color: #78736a;
  letter-spacing: 0.02em;
}

.card-action-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-8);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 2px;
  background-color: transparent;
  border: 1px solid rgba(120, 28, 40, 0.2);
  transition: all 0.25s ease;
}

.action-arrow {
  transition: transform 0.25s cubic-bezier(0.25, 1, 0.5, 1);
  stroke: var(--color-accent);
}

.card-action-link:hover,
.editorial-card-container:hover .card-action-link,
.framed-canvas-container:hover .card-action-link {
  background-color: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
}

.card-action-link:hover .action-arrow,
.editorial-card-container:hover .card-action-link .action-arrow,
.framed-canvas-container:hover .card-action-link .action-arrow {
  transform: translateX(4px);
  stroke: #ffffff;
}

/* Support existing fallback btn in card footer if present */
.card-footer .btn {
  font-size: 0.8125rem;
  padding: 8px 16px;
  min-height: 38px;
}

/* Grid Layouts */
.editorial-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-32) var(--space-24);
}

.editorial-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-40) var(--space-24);
}

/* Hero Section */
.hero {
  padding: var(--space-64) 0;
  border-bottom: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface-tint) 100%);
}

.hero-meta {
  text-transform: uppercase;
  font-size: 0.8125rem;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: var(--space-16);
  font-weight: 700;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-24);
  margin-top: var(--space-40);
  padding-top: var(--space-40);
  border-top: 1px solid var(--color-border);
}

.stat-item {
  min-width: 0;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: var(--space-12);
}

.stat-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
}

/* Supporting Feature Section */
.features-section {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.feature-box {
  padding: var(--space-24);
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  min-width: 0;
}

/* Sub-page Article Layout */
.article-header {
  padding: var(--space-64) 0 var(--space-40);
  border-bottom: 1px solid var(--color-border);
}

.article-content {
  padding: var(--space-64) 0;
  max-width: 820px;
}

.article-content h2 {
  margin-top: var(--space-40);
}

.article-content ul, 
.article-content ol {
  margin-bottom: var(--space-24);
  padding-left: var(--space-24);
}

.article-content li {
  margin-bottom: var(--space-8);
}

.editorial-callout {
  padding: var(--space-24);
  background-color: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-top: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: var(--space-40) 0;
}

.comparison-table-wrapper {
  overflow-x: auto;
  margin: var(--space-40) 0;
  border: 1px solid var(--color-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--color-surface);
  text-align: left;
  font-size: 0.9375rem;
}

.comparison-table th,
.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-border);
  min-width: 140px;
}

.comparison-table th {
  background-color: var(--color-surface-tint);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1rem;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

/* Contact Page Specifics */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-40);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);
  background-color: var(--color-surface);
  padding: var(--space-24);
  border: 1px solid var(--color-border);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.form-input, 
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  border-radius: 0;
}

.form-input:focus, 
.form-textarea:focus {
  background-color: var(--color-surface);
  border-color: var(--color-accent);
}

.form-input.is-invalid,
.form-textarea.is-invalid {
  border-color: #a31515;
  background-color: #fff8f8;
}

.form-error {
  font-size: 0.8125rem;
  color: #a31515;
  display: none;
}

.form-error.is-visible {
  display: block;
}

.form-success {
  display: none;
  padding: var(--space-16);
  background-color: #effaf3;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
  font-size: 0.9375rem;
}

.form-success.is-visible {
  display: block;
}

.static-map-canvas {
  width: 100%;
  height: 320px;
  background: repeating-linear-gradient(45deg, #f2eee8, #f2eee8 10px, #eae5dc 10px, #eae5dc 20px);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-24);
  text-align: center;
}

/* --------------------------------------------------------------------------
   FOOTER (Identical globally)
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: #141312;
  color: #c5c0b8;
  padding-top: var(--space-64);
  padding-bottom: var(--space-40);
  border-top: 1px solid #2a2826;
}

.site-footer a {
  color: #c5c0b8;
}

.site-footer a:hover {
  color: #ffffff;
}

.site-footer h3,
.site-footer h4 {
  color: #f7f4ed;
  font-size: 1.125rem;
  margin-bottom: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-40);
  margin-bottom: var(--space-40);
}

.footer-col {
  min-width: 0;
}

.footer-col p {
  color: #a8a39a;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--space-8);
}

.footer-links a {
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: var(--space-24);
  border-top: 1px solid #262422;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-16);
  font-size: 0.8125rem;
  color: #8c877f;
}

/* --------------------------------------------------------------------------
   COOKIE BANNER & PREFERENCES MODAL
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #1a1816;
  color: #f3f0ea;
  border-top: 2px solid var(--color-accent);
  padding: var(--space-24) 0;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-24);
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1 1 500px;
  min-width: 0;
}

.cookie-text p {
  color: #ded9cf;
  font-size: 0.875rem;
  margin-bottom: 0;
}

.cookie-text a {
  color: #ffffff;
}

.cookie-actions {
  display: flex;
  gap: var(--space-12);
  flex-wrap: wrap;
}

.cookie-actions .btn {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.cookie-btn-accept {
  background-color: var(--color-accent);
  color: #ffffff;
  border: 1px solid var(--color-accent);
}

.cookie-btn-reject {
  background-color: transparent;
  color: #f3f0ea;
  border: 1px solid #57534e;
}

.cookie-btn-reject:hover {
  background-color: #2b2826;
  color: #ffffff;
}

.cookie-btn-pref {
  background-color: transparent;
  color: #ded9cf;
  border: 1px solid transparent;
  text-decoration: underline;
}

.cookie-btn-pref:hover {
  color: #ffffff;
}

/* Preferences Dialog / Box */
.cookie-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-16);
}

.cookie-modal-backdrop[hidden] {
  display: none;
}

.cookie-modal {
  background-color: var(--color-surface);
  color: var(--color-text);
  max-width: 580px;
  width: 100%;
  padding: var(--space-24);
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-16);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-12);
}

.pref-option {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pref-label {
  font-weight: 600;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   RESPONSIVE QUERIES
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .editorial-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-24);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: var(--header-height-mobile);
  }

  /* Hamburger Toggle & Mobile Nav Dropdown */
  .nav-toggle {
    display: block;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: var(--header-height-mobile);
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-24);
    gap: var(--space-16);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  .header-nav.is-visible {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .editorial-card,
  .framed-canvas-card {
    padding: var(--space-16);
  }

  .editorial-grid-3,
  .editorial-grid-2,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: var(--space-40);
    padding-bottom: var(--space-40);
  }
}

@media (max-width: 540px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-12);
  }
  .card-action-link {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  :root {
    --space-24: 16px;
  }
  .btn {
    width: 100%;
  }
  .site-brand {
    font-size: 0.95rem;
  }
}

/* --------------------------------------------------------------------------
   ACCESSIBILITY: PREFERS REDUCED MOTION
   Disables transitions and animations ONLY. Preserves transform for layout.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
  .card-media img,
  .action-arrow,
  .editorial-card,
  .framed-canvas-card {
    transition: none !important;
    transform: none !important;
  }
}