/* Responsive compatibility layer — added 2026-08-15 */
:root {
  --site-bg: #ffedfc;
  --site-ink: #300f0c;
  --site-accent: #c15887;
  --site-warm: #ebe193;
  --page-gutter: clamp(16px, 4vw, 56px);
  --content-max: 1180px;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip !important;
}

body {
  min-height: 100vh;
  background: var(--site-bg);
}

img, picture, svg, video, canvas, iframe {
  max-width: 100% !important;
}

img {
  height: auto !important;
}

button, input, textarea, select {
  max-width: 100%;
  font: inherit;
}

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

p, li {
  overflow-wrap: anywhere;
}

/* Replace the generator's abrupt 350/1440 scaling with useful device ranges. */
@media (max-width: 1199px) {
  :root { --resizer: 900 !important; }
}

@media (max-width: 699px) {
  :root { --resizer: 430 !important; }
}

/* Shared page shell */
.page-home main,
.page-article main,
.page-home footer,
.page-article footer,
.page-legal > div {
  width: 100% !important;
  max-width: 100% !important;
}

.page-home main > div,
.page-article main > div {
  max-width: 100% !important;
}

.page-home main > div[style],
.page-article main > div[style] {
  width: 100% !important;
  padding-left: var(--page-gutter) !important;
  padding-right: var(--page-gutter) !important;
}

/* Home: hero */
.page-home main > div:first-child {
  display: grid !important;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, .95fr) !important;
  align-items: center !important;
  gap: clamp(28px, 5vw, 72px) !important;
  max-width: none !important;
}

.page-home main > div:first-child > * {
  width: 100% !important;
  max-width: 100% !important;
}

.page-home main > div:first-child > :first-child {
  align-items: flex-start !important;
}

.page-home main > div:first-child h3 {
  font-size: clamp(34px, 4.2vw, 64px) !important;
  line-height: 1.05 !important;
  text-wrap: balance;
}

.page-home main > div:first-child span:not(a span) {
  line-height: 1.55 !important;
}

.page-home main > div:first-child img {
  width: min(100%, 520px) !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  border-radius: clamp(14px, 2vw, 28px) !important;
}

.page-home main > div:first-child a {
  min-height: 44px;
  padding: 10px 18px !important;
  width: auto !important;
  max-width: 100% !important;
}

/* Home: image collection */
.page-home main > div:nth-child(2) {
  width: 100% !important;
  padding-left: var(--page-gutter) !important;
  padding-right: var(--page-gutter) !important;
}

.page-home main > div:nth-child(2) h3 {
  font-size: clamp(30px, 4vw, 54px) !important;
  line-height: 1.1 !important;
}

.page-home main > div:nth-child(2) > div:nth-child(2) > div {
  width: min(100%, var(--content-max)) !important;
  max-width: var(--content-max) !important;
  padding: 18px 4px 26px !important;
  margin-inline: auto !important;
  gap: clamp(14px, 2vw, 26px) !important;
  scrollbar-width: thin;
}

.page-home main > div:nth-child(2) > div:nth-child(2) > div > img {
  width: clamp(250px, 42vw, 520px) !important;
  max-width: min(84vw, 520px) !important;
  aspect-ratio: 13 / 10;
  object-fit: cover !important;
  border-radius: clamp(14px, 3vw, 34px) !important;
}

/* Home: contact block */
.page-home main > div:nth-child(3) {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr) !important;
  gap: clamp(22px, 5vw, 70px) !important;
  padding-left: var(--page-gutter) !important;
  padding-right: var(--page-gutter) !important;
}

.page-home main > div:nth-child(3) > * {
  width: 100% !important;
  max-width: 100% !important;
}

.page-home main > div:nth-child(3) form {
  display: flex !important;
  align-items: stretch !important;
  gap: 12px !important;
}

.page-home main > div:nth-child(3) input {
  flex: 1 1 240px;
  min-height: 48px;
  width: auto !important;
  padding: 12px 16px !important;
}

.page-home main > div:nth-child(3) button {
  min-height: 48px;
  min-width: 120px;
  padding: 12px 20px !important;
  cursor: pointer;
}

/* Home: article library */
.page-home main > div:nth-child(4) {
  width: 100% !important;
  max-width: none !important;
  padding-left: var(--page-gutter) !important;
  padding-right: var(--page-gutter) !important;
}

.page-home main > div:nth-child(4) > :first-child h3 {
  font-size: clamp(32px, 4.5vw, 60px) !important;
  line-height: 1.08 !important;
}

.page-home main > div:nth-child(4) > :nth-child(2) {
  width: min(100%, var(--content-max)) !important;
  max-width: var(--content-max) !important;
  margin-inline: auto !important;
  gap: clamp(26px, 4vw, 54px) !important;
}

.page-home main > div:nth-child(4) > :nth-child(2) > div {
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr) !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  align-items: stretch !important;
  gap: clamp(22px, 4vw, 48px) !important;
  padding: clamp(18px, 2.5vw, 32px) !important;
  border-radius: 24px !important;
}

.page-home main > div:nth-child(4) > :nth-child(2) > div > * {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

.page-home main > div:nth-child(4) > :nth-child(2) > div img {
  width: 100% !important;
  height: 100% !important;
  min-height: 260px;
  max-height: 430px !important;
  aspect-ratio: 4 / 3;
  object-fit: cover !important;
  border-radius: clamp(14px, 2vw, 28px) !important;
}

.page-home main > div:nth-child(4) > :nth-child(2) > div h5 {
  font-size: clamp(24px, 2.6vw, 38px) !important;
  line-height: 1.12 !important;
  text-wrap: balance;
}

.page-home main > div:nth-child(4) > :nth-child(2) > div span {
  line-height: 1.55 !important;
}

.page-home main > div:nth-child(4) > :nth-child(2) > div a {
  display: inline-flex !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px !important;
}

/* Article pages: responsive hero */
.page-article main > div:first-child {
  width: 100% !important;
  max-width: none !important;
  display: grid !important;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr) !important;
  align-items: center !important;
  gap: clamp(28px, 5vw, 72px) !important;
  padding-left: var(--page-gutter) !important;
  padding-right: var(--page-gutter) !important;
}

.page-article main > div:first-child > * {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

.page-article main > div:first-child img {
  width: 100% !important;
  max-height: 520px !important;
  aspect-ratio: 4 / 3;
  object-fit: cover !important;
  border-radius: clamp(16px, 2.5vw, 32px) !important;
}

.page-article main > div:first-child h3 {
  font-size: clamp(34px, 4.2vw, 62px) !important;
  line-height: 1.08 !important;
  text-wrap: balance;
}

.page-article main > div:first-child span {
  line-height: 1.55 !important;
}

.page-article main > div:first-child a {
  display: inline-flex !important;
  width: fit-content !important;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px !important;
}

/* Article pages: readable article body */
.page-article main > div:nth-child(2) {
  width: 100% !important;
  max-width: none !important;
  padding: clamp(34px, 5vw, 76px) var(--page-gutter) !important;
}

.page-article main > div:nth-child(2) > * {
  width: min(100%, 920px) !important;
  max-width: 920px !important;
  margin-inline: auto !important;
}

.page-article main > div:nth-child(2) span {
  display: block;
  font-size: clamp(16px, 1.35vw, 19px) !important;
  line-height: 1.75 !important;
  text-align: left !important;
}

.page-article main > div:nth-child(2) p {
  margin-top: 1em !important;
  text-indent: 0 !important;
}

.page-article main > div:nth-child(2) li {
  margin: .5em 0 .5em 1.25em;
  text-indent: 0 !important;
}

/* Legal pages */
.page-legal {
  background: var(--site-warm) !important;
  color: var(--site-ink);
  align-items: stretch !important;
}

.page-legal > div {
  width: 100% !important;
  max-width: none !important;
  padding: clamp(28px, 5vw, 70px) var(--page-gutter) !important;
  align-items: stretch !important;
}

.page-legal > div > span {
  display: block !important;
  width: min(100%, 980px) !important;
  max-width: 980px !important;
  margin-inline: auto !important;
  font-size: clamp(15px, 1.25vw, 18px) !important;
  line-height: 1.7 !important;
  text-align: left !important;
}

.page-legal h2 {
  margin: 1.4em 0 .7em !important;
  font-size: clamp(24px, 3vw, 38px) !important;
  line-height: 1.15 !important;
  text-wrap: balance;
}

.page-legal ol,
.page-legal ul {
  padding-left: clamp(22px, 4vw, 42px) !important;
  margin: .75em 0 !important;
}

.page-legal li,
.page-legal p {
  text-indent: 0 !important;
  margin-block: .45em !important;
}

/* Footer shared across generated class names. */
.page-home body > footer,
.page-article body > footer { width: 100%; }

body > footer {
  width: 100% !important;
  max-width: none !important;
  padding: clamp(24px, 4vw, 50px) var(--page-gutter) !important;
}

body > footer > div {
  width: min(100%, var(--content-max)) !important;
  max-width: var(--content-max) !important;
  margin-inline: auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 12px clamp(18px, 4vw, 44px) !important;
}

body > footer a {
  font-size: clamp(14px, 1.2vw, 17px) !important;
  line-height: 1.4 !important;
  padding: 8px 4px;
}

/* Cookie banner (when present). */
body > section {
  width: min(calc(100% - 24px), 720px) !important;
  max-width: 720px !important;
  left: 50% !important;
  right: auto !important;
  bottom: 12px !important;
  transform: translateX(-50%);
  padding: clamp(14px, 3vw, 24px) !important;
  gap: 14px !important;
  border-radius: 18px !important;
  z-index: 1000;
}

body > section > * {
  width: 100% !important;
  max-width: 100% !important;
}

body > section label {
  display: inline-flex !important;
  width: auto !important;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px !important;
  cursor: pointer;
}

body > section span {
  font-size: clamp(13px, 1.1vw, 16px) !important;
  line-height: 1.45 !important;
}

/* Tablet */
@media (max-width: 900px) {
  .page-home main > div:first-child,
  .page-article main > div:first-child,
  .page-home main > div:nth-child(3) {
    grid-template-columns: 1fr !important;
  }

  .page-home main > div:first-child > :first-child {
    align-items: center !important;
    text-align: center !important;
  }

  .page-home main > div:first-child > :last-child,
  .page-article main > div:first-child > :first-child {
    justify-self: center;
    width: min(100%, 620px) !important;
  }

  .page-home main > div:nth-child(4) > :nth-child(2) > div {
    grid-template-columns: minmax(0, 1fr) minmax(240px, .8fr) !important;
  }
}

/* Mobile */
@media (max-width: 640px) {
  body {
    overflow-x: hidden !important;
  }

  .page-home main > div[style],
  .page-article main > div[style] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .page-home main > div:first-child,
  .page-article main > div:first-child {
    gap: 24px !important;
  }

  .page-home main > div:first-child h3,
  .page-article main > div:first-child h3 {
    font-size: clamp(32px, 10vw, 44px) !important;
  }

  .page-home main > div:nth-child(2) {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .page-home main > div:nth-child(2) > div:nth-child(2) > div {
    justify-content: flex-start !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
  }

  .page-home main > div:nth-child(2) > div:nth-child(2) > div > img {
    width: min(82vw, 330px) !important;
    flex: 0 0 min(82vw, 330px) !important;
    scroll-snap-align: center;
  }

  .page-home main > div:nth-child(3) {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .page-home main > div:nth-child(3) form {
    flex-direction: column !important;
  }

  .page-home main > div:nth-child(3) input,
  .page-home main > div:nth-child(3) button {
    width: 100% !important;
  }

  .page-home main > div:nth-child(4) {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .page-home main > div:nth-child(4) > :nth-child(2) > div {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 16px !important;
    border-radius: 18px !important;
  }

  .page-home main > div:nth-child(4) > :nth-child(2) > div img {
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 16 / 10;
  }

  .page-home main > div:nth-child(4) > :nth-child(2) > div h5 {
    font-size: clamp(23px, 7vw, 30px) !important;
  }

  .page-article main > div:first-child {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .page-article main > div:nth-child(2) {
    padding: 32px 18px !important;
  }

  .page-article main > div:nth-child(2) span {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  .page-legal > div {
    padding: 28px 18px !important;
  }

  .page-legal > div > span {
    font-size: 15px !important;
    line-height: 1.65 !important;
  }

  body > footer {
    padding: 24px 16px !important;
  }

  body > footer > div {
    flex-direction: column !important;
    align-items: center !important;
  }

  body > section {
    width: calc(100% - 16px) !important;
    bottom: 8px !important;
  }
}

@media (max-width: 380px) {
  :root { --resizer: 400 !important; }

  .page-home main > div:first-child h3,
  .page-article main > div:first-child h3 {
    font-size: 32px !important;
  }
}

/* Respect accessibility preference. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
