:root {
  --paper: #fdfbf6;
  --paper-2: #f7f1e6;
  --paper-3: #efe6d8;
  --hairline: #e5daca;
  --ink: #1b1512;
  --ink-2: #4a4038;
  --muted: #8a7c6e;
  --rose: #b23a5b;
  --rose-deep: #8e2c47;
  --gold: #c8a96a;
  --white: #fff;
  --serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1140px;
  --gutter: 20px;
  --section-space: 44px;
  --radius: 20px;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: var(--rose);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--rose-deep);
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 9999px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  color: var(--white);
  transform: translateY(0);
}

.container,
.header-inner {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

h1,
h2,
h3,
p {
  margin-block-start: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  max-width: 1000px;
  margin-block-end: 24px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -.02em;
}

h2 {
  max-width: 860px;
  margin-block-end: 32px;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

h3 {
  max-width: 760px;
  margin-block: 36px 12px;
  font-size: 1.375rem;
  line-height: 1.3;
}

p {
  max-width: 74ch;
  margin-block-end: 24px;
  color: var(--ink-2);
}

#site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  border-block-end: 1px solid var(--hairline);
  background: rgba(253, 251, 246, .96);
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.15;
  text-decoration: none;
}

.logo:hover {
  color: var(--rose-deep);
}

.logo svg {
  width: 32px;
  flex: 0 0 32px;
  color: var(--rose);
}

#main-nav {
  display: none;
  align-items: center;
  gap: 28px;
}

#main-nav a,
#mobile-nav a {
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
}

#main-nav a:hover,
#mobile-nav a:hover {
  color: var(--rose);
}

#hamburger-btn {
  display: grid;
  width: 48px;
  height: 48px;
  padding: 12px;
  place-content: center;
  gap: 5px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

#hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease-out, opacity 130ms ease-out;
}

#hamburger-btn[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#hamburger-btn[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

#hamburger-btn[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

#mobile-nav {
  position: fixed;
  inset-block-start: 73px;
  inset-inline-end: 0;
  z-index: 102;
  display: grid;
  width: min(88vw, 360px);
  padding: 24px 20px calc(32px + env(safe-area-inset-bottom));
  gap: 4px;
  border-inline-start: 1px solid var(--hairline);
  border-block-end: 1px solid var(--hairline);
  border-end-start-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(27, 21, 18, .1);
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 220ms ease-out, opacity 180ms ease-out;
}

#mobile-nav.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

#mobile-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding-inline: 12px;
  border-block-end: 1px solid var(--hairline);
  font-size: 1rem;
}

#nav-overlay {
  position: fixed;
  inset: 73px 0 0;
  z-index: 101;
  background: rgba(27, 21, 18, .34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease-out;
}

#nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-block: 56px 52px;
  border-block-end: 1px solid var(--hairline);
  background:
    radial-gradient(circle at 82% 16%, rgba(200, 169, 106, .17), transparent 30%),
    linear-gradient(155deg, var(--paper) 20%, var(--paper-2));
}

.hero::after {
  position: absolute;
  inset-block-end: -82px;
  inset-inline-end: -70px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(178, 58, 91, .16);
  border-radius: 50%;
  content: '';
  box-shadow: 0 0 0 28px rgba(178, 58, 91, .04), 0 0 0 56px rgba(200, 169, 106, .04);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-intro {
  max-width: 76ch;
  margin-block-end: 28px;
  font-size: 1.0625rem;
}

.style-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.style-chip {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  background: var(--paper-3);
  color: var(--ink-2);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: border-color 180ms ease-out, color 180ms ease-out, background 180ms ease-out;
}

.style-chip:hover {
  border-color: var(--rose);
  background: var(--paper);
  color: var(--rose-deep);
}

main > section:not(.hero) {
  padding-block: var(--section-space);
}

main > section:nth-of-type(odd):not(.hero) {
  background: var(--paper-2);
}

.gallery .container > p,
.wishes .container > p,
.guide .container > p,
.ideas .container > p {
  font-size: 1.0625rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-block: 32px;
}

.gallery-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper-3);
  transition: transform 220ms ease-out, box-shadow 220ms ease-out;
}

.gallery-card a {
  display: block;
  color: var(--white);
  text-decoration: none;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 300ms ease-out;
}

.gallery-card figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 48px 12px 12px;
  background: linear-gradient(transparent, rgba(27, 21, 18, .78));
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.gallery-card:hover {
  box-shadow: 0 10px 30px rgba(27, 21, 18, .1);
  transform: translateY(-4px);
}

.gallery-card:hover img {
  transform: scale(1.025);
}

.gallery-card:hover figcaption,
.gallery-card a:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-block-start: 28px;
}

.btn,
.copy-btn {
  min-height: 44px;
  border-radius: 9999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease-out, border-color 180ms ease-out, color 180ms ease-out, transform 130ms ease-out;
}

.btn:active,
.copy-btn:active {
  transform: scale(.97);
}

.btn-primary {
  padding: 11px 24px;
  border: 1px solid var(--rose);
  background: var(--rose);
  color: var(--white);
}

.btn-primary:hover {
  border-color: var(--rose-deep);
  background: var(--rose-deep);
}

.wish-card {
  position: relative;
  max-width: 900px;
  margin-block: 16px;
  padding: 64px 20px 20px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.wish-card p {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
}

.copy-btn {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  padding: 8px 14px;
  border: 1px solid var(--ink-2);
  background: transparent;
  color: var(--ink-2);
  font-size: .8125rem;
}

.copy-btn:hover {
  border-color: var(--rose);
  color: var(--rose-deep);
}

.copy-btn.is-copied {
  border-color: var(--rose);
  background: var(--rose);
  color: var(--white);
}

.copy-status {
  display: block;
  min-height: 20px;
  margin-block-start: 8px;
  color: var(--rose-deep);
  font-size: .8125rem;
  font-weight: 600;
}

.guide h3 {
  padding-block-start: 24px;
  border-block-start: 1px solid var(--hairline);
}

.table-scroll {
  width: 100%;
  margin-block: 32px;
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: 14px;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--paper);
  text-align: start;
}

th,
td {
  padding: 16px;
  border-block-end: 1px solid var(--hairline);
  vertical-align: top;
  text-align: start;
}

thead {
  background: var(--paper-3);
}

thead th,
tbody th {
  color: var(--ink);
  font-weight: 600;
}

tbody th {
  width: 20%;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-block-end: 0;
}

.faq-item {
  max-width: 900px;
  border-block-end: 1px solid var(--hairline);
}

.faq-item:first-of-type {
  border-block-start: 1px solid var(--hairline);
}

.faq-item summary {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 14px 48px 14px 0;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  inset-inline-end: 8px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  color: var(--rose);
  content: '+';
  font-size: 1.375rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item div {
  overflow: hidden;
}

.faq-item p {
  padding-block-end: 20px;
}

.related {
  border-block-start: 1px solid var(--hairline);
}

.related-grid {
  display: grid;
  gap: 0;
}

.related-grid a {
  display: flex;
  min-height: 52px;
  align-items: center;
  padding: 12px 8px;
  border-block-end: 1px solid var(--hairline);
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
}

.related-grid a::after {
  margin-inline-start: auto;
  color: var(--gold);
  content: '→';
}

.related-grid a:hover {
  color: var(--rose-deep);
}

#site-footer {
  padding-block: 28px calc(28px + env(safe-area-inset-bottom));
  border-block-start: 1px solid var(--hairline);
  background: var(--paper-2);
  color: var(--muted);
  font-size: .875rem;
}

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-row a {
  color: var(--ink-2);
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .wish-card {
    padding: 32px 144px 32px 32px;
  }

  .copy-btn {
    inset-block-start: 24px;
    inset-inline-end: 24px;
  }

  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .footer-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  :root {
    --section-space: 72px;
  }

  #main-nav {
    display: flex;
  }

  #hamburger-btn,
  #mobile-nav,
  #nav-overlay {
    display: none;
  }

  .hero {
    padding-block: 88px 72px;
  }

  .hero-intro {
    font-size: 1.125rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .wish-card p {
    font-size: 1.25rem;
  }

  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
  }

  .related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (hover: none) {
  .gallery-card figcaption {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* ─── HERO: two columns (fill desktop space, per site pitfall) ─── */
.hero-inner {
  display: grid;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  min-width: 0;
}

.hero-visual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper-3);
  box-shadow: 0 10px 30px rgba(27, 21, 18, .08);
}

.hero-visual img:first-child,
.hero-visual img:nth-child(4) {
  transform: translateY(-14px);
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 64px;
  }
  .hero-intro {
    max-width: 46ch;
  }
}

/* editorial measures fill the container on wide screens */
h1 { max-width: 24ch; }
h2 { max-width: 52ch; margin-inline: auto; }
p  { max-width: 68ch; }


/* ═══ GALLERY: Pinterest-style masonry (4 / 3 / 2 columns) ═══ */
.gallery-grid {
  display: block;
  columns: 2;
  column-gap: 14px;
  margin-block: 32px;
}

@media (min-width: 640px) {
  .gallery-grid { columns: 3; }
}

@media (min-width: 1000px) {
  .gallery-grid { columns: 4; column-gap: 18px; }
}

.gallery-card {
  position: relative;
  display: block;
  break-inside: avoid;
  margin: 0 0 14px;
  border: 0;
  background: none;
  overflow: visible;
}

@media (min-width: 1000px) {
  .gallery-card { margin-bottom: 18px; }
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper-3);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform 220ms ease-out, box-shadow 220ms ease-out, border-color 220ms ease-out;
}

.gallery-open img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  transition: transform 320ms ease-out;
}

.gallery-open:hover {
  border-color: var(--rose);
  box-shadow: 0 12px 32px rgba(27, 21, 18, .12);
  transform: translateY(-3px);
}

.gallery-open:hover img { transform: scale(1.02); }

.gallery-open:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}

/* per-image download button (always reachable by keyboard) */
.gallery-dl {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(253, 251, 246, .94);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(27, 21, 18, .14);
  opacity: 1;
  transition: background 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out, opacity 180ms ease-out;
}

.gallery-dl:hover { background: var(--rose); border-color: var(--rose); color: var(--white); }
.gallery-dl:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

@media (hover: hover) and (min-width: 640px) {
  .gallery-dl { opacity: 0; }
  .gallery-card:hover .gallery-dl,
  .gallery-card:focus-within .gallery-dl { opacity: 1; }
}

/* ═══ LIGHTBOX (full view) ═══ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.lightbox[hidden] { display: none; }

.lightbox-scrim {
  position: absolute;
  inset: 0;
  background: rgba(18, 13, 10, .82);
  backdrop-filter: blur(3px);
}

.lightbox-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 1000px);
  max-height: calc(100vh - 32px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

.lightbox-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-block-end: 1px solid var(--hairline);
  background: var(--paper-2);
}

.lightbox-counter {
  margin: 0;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
}

.lightbox-tools { display: flex; flex-wrap: wrap; gap: 8px; }

.lb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: .875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease-out, color 180ms ease-out, border-color 180ms ease-out;
}

.lb-btn:hover { background: var(--rose); border-color: var(--rose); color: var(--white); }
.lb-btn:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

.lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  padding: 12px;
  overflow: auto;
}

.lightbox-stage img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 240px);
  border-radius: 12px;
  background: var(--paper-3);
}

.lb-nav {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  transition: background 180ms ease-out, color 180ms ease-out;
}

.lb-nav:hover { background: var(--rose); border-color: var(--rose); color: var(--white); }
.lb-nav:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

.lightbox-caption {
  margin: 0;
  padding: 10px 16px 14px;
  border-block-start: 1px solid var(--hairline);
  color: var(--ink-2);
  font-size: .9375rem;
  text-align: center;
}

body.lightbox-open { overflow: hidden; }

@media (max-width: 640px) {
  .lightbox { padding: 0; }
  .lightbox-panel { max-height: 100vh; border-radius: 0; }
  .lightbox-stage img { max-height: calc(100vh - 210px); }
  .lb-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lb-btn { padding: 10px; min-width: 44px; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-open, .gallery-open img, .gallery-dl, .lb-btn, .lb-nav { transition: none; }
  .gallery-open:hover { transform: none; }
  .gallery-open:hover img { transform: none; }
}


/* ═══ TABLE: horizontal scroll on narrow screens (never overflow the page) ═══ */
.table-scroll {
  max-width: 100%;
  min-width: 0;
  margin-block: 24px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--paper-2);
}

.table-scroll:focus-visible { outline: 3px solid var(--rose); outline-offset: 2px; }

.table-scroll table {
  width: 100%;
  min-width: 520px;
  margin: 0;
  border-collapse: collapse;
}

.table-scroll th,
.table-scroll td {
  padding: 12px 14px;
  border-block-end: 1px solid var(--hairline);
  text-align: start;
  vertical-align: top;
}

.table-scroll thead th {
  background: var(--paper-3);
  color: var(--ink);
  font-weight: 600;
}

.table-scroll tbody tr:last-child td { border-block-end: 0; }

/* global safety: media + long words never widen the page */
img, svg, video, iframe, table { max-width: 100%; }
.wish-card, .faq-item, .table-scroll, .gallery-grid, .hero-copy, .hero-visual { min-width: 0; }


/* ═══ ALIGNMENT: center section furniture, keep prose left-aligned ═══ */
/* section headings + their lead paragraph center (they are furniture, not prose) */
main > section:not(.hero) > .container {
  text-align: center;
}

main > section:not(.hero) > .container > h2 {
  margin-inline: auto;
  text-align: center;
}

main > section:not(.hero) > .container > p:not(.lightbox-caption) {
  margin-inline: auto;
  text-align: center;
  max-width: 64ch;
}

/* long-form content stays LEFT (wishes, FAQ answers, how-to steps, table) */
.wishes .wish-card,
.wishes .wish-card p,
.ideas .wish-card,
.faq-item,
.faq-item p,
.faq-item summary,
.guide h3,
.guide p,
.guide ol,
.guide ul,
.table-scroll,
.table-scroll table,
.related-grid {
  text-align: left;
}

/* interactive/navigational rows center */
.style-chips,
.hero-actions,
.load-more-wrap {
  justify-content: center;
}

/* hero: copy left, collage right (unchanged) but keep hero copy left-aligned */
.hero, .hero-copy, .hero-copy h1, .hero-copy p {
  text-align: left;
}

/* gallery captions & card text centered under the image */
.gallery-card figcaption,
.card-caption {
  text-align: center;
}


/* ═══ centred content column: blocks centre, text stays left ═══ */
.wishes .wish-card,
.faq .faq-item,
.table-scroll,
.ideas .wish-card,
.related .related-grid,
.guide > .container > h3,
.guide > .container > p,
.guide > .container > ol,
.guide > .container > ul,
.gallery .container > p {
  margin-inline: auto;
}

.wishes .wish-card,
.ideas .wish-card,
.faq .faq-item,
.table-scroll {
  width: min(100%, 900px);
}

.guide > .container > h3 {
  max-width: 900px;
}

.guide > .container > p,
.guide > .container > ol,
.guide > .container > ul {
  max-width: 900px;
}

.wishes .container > p,
.gallery .container > p,
.faq .container > p {
  max-width: 64ch;
  margin-inline: auto;
}


/* ═══ HERO COLLAGE: never crop the cards (baked-in Ukrainian text must stay readable) ═══ */
.hero-visual img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  background: var(--paper-3);
}

.hero-visual {
  align-items: start;
}


/* ═══ HERO COLLAGE sizing: bigger cards = legible Ukrainian text ═══ */
@media (min-width: 900px) {
  .hero-inner { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; }
}
@media (min-width: 1200px) {
  .hero-inner { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; }
}
.hero-visual { gap: 12px; }
.hero-visual img { border-radius: 16px; }

/* contact form (legal pages) */
.lead-form { max-width: 620px; margin-inline: auto; text-align: left; }
.lead-form p { margin: 0 0 16px; }
.lead-form label { display: block; font-weight: 600; color: var(--ink-2); }
.lead-form input, .lead-form textarea {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: var(--white);
  border: 1px solid var(--hairline); border-radius: 12px;
}
.lead-form input:focus, .lead-form textarea:focus {
  outline: 3px solid var(--rose); outline-offset: 1px; border-color: var(--rose);
}
.lead-form textarea { resize: vertical; min-height: 140px; }
.lead-form .btn { cursor: pointer; }


/* footer relationship matrix (A3 - added 2026-09-10) */
.footer-matrix {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding-block: 0 12px;
  font-size: .8125rem;
  line-height: 1.9;
}
.footer-matrix + .footer-matrix {
  border-block-start: 1px solid var(--hairline);
  padding-block-start: 12px;
}
.footer-matrix-title {
  color: var(--muted);
  font-weight: 600;
  margin-inline-end: 2px;
}
.footer-matrix a {
  color: var(--ink-2);
  text-decoration: none;
}
.footer-matrix a:hover {
  color: var(--rose);
  text-decoration: underline;
}
