/* ------------------------------------------------------
   RESET
------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ------------------------------------------------------
   DESIGN TOKENS
------------------------------------------------------- */
:root {
  /* Colors */
  --color-1: #292923;
  --color-2: #57574d;
  --color-3: #dad8d3;
  --color-4: #f2f0e7;
  --color-5: #d66e2e;
  --color-6: #58ddb3;

  /* Fonts */
  --font-h1: "Bowlby One SC", sans-serif;
  --font-h2: "Work Sans", sans-serif;
  --font-h3: "Work Sans", sans-serif;
  --font-body: "Work Sans", sans-serif;
  --font-caption: "Work Sans", sans-serif;
}

/* ------------------------------------------------------
   BASE
------------------------------------------------------- */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: var(--color-4);
  color: var(--color-1);
  font-family: var(--font-body);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  /* remove body padding to avoid unwanted overflow; wrapper handles padding */
}

span.blockspam {
  display: none;
}

/* Wrapper grows to fill space above footer and centers content */
.wrapper {
  flex: 1; /* take available vertical space */
  display: flex;
  flex-direction: column; /* allow vertical centering */
  justify-content: center; /* center vertically inside wrapper */
  align-items: center; /* center horizontally */
  width: 100%;
  max-width: 1668px; /* ideal page width for desktop */
  margin: 0 auto; /* keep wrapper centered in viewport */
  padding: 1.5rem 2rem; /* page padding moved here */
  border-radius: 16px;
  text-align: center;
  background: var(--color-4);
  box-sizing: border-box;
}

/* ------------------------------------------------------
   TYPOGRAPHY - MOBILE-FIRST WITH CLAMP
------------------------------------------------------- */

h1 {
  font-family: var(--font-h1);
  font-weight: 400;
  font-size: clamp(2.25rem, 8vw, 4.5rem);
  letter-spacing: 0.08em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--color-5);
}

h2 {
  font-family: var(--font-h2);
  font-weight: 700;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: var(--color-1);
}

h3 {
  font-family: var(--font-h3);
  font-weight: 600;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--color-1);
}

p {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 3vw, 1rem);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  color: var(--color-2);
  margin: 0 1rem;
}

.caption {
  font-family: var(--font-caption);
  font-weight: 400;
  font-size: clamp(0.75rem, 2.5vw, 0.75rem);
  line-height: 1.4;
  opacity: 0.75;
  color: var(--color-2);
}

/* ------------------------------------------------------
   HERO SECTION
------------------------------------------------------- */
.hero {
  margin-bottom: 2.5rem;
}

/* ------------------------------------------------------
   RESPONSIVE IMAGE + TEXT SECTION
------------------------------------------------------- */

/* Mobile-first: stacked vertically */
.content-section {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

/* Mobile ordering: image first, text second */
.image-block {
  order: 1;
}
.text-block {
  order: 2;
}

/* Image sizing — always fluid up to the ideal width */
.image-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Ideal max widths for blocks (will scale down fluidly) */
.text-block {
  width: 100%;
  max-width: 640px;
  box-sizing: border-box;
}
.image-block {
  width: 100%;
  max-width: 480px;
  box-sizing: border-box;
}

.socials-bar {
  display: flex;
  gap: 1rem;
  justify-content: left;
  margin: 2rem 1rem;
}

.socials-bar img {
  width: 36px;
  height: 36px;
  color: var(--color-1);
}

.socials-bar a:hover {
  color: var(--color-5);
}
/* Desktop layout: side-by-side if enough space.
   We also ensure the content-section doesn't exceed the sum of the ideal widths + gap
   so it won't overflow horizontally during the transition range. */
@media (min-width: 700px) {
  .content-section {
    flex-direction: row;
    align-items: center; /* align top edges of blocks */
    justify-content: center;
    gap: 2rem; /* 2rem gap between blocks */
    /* prevent the two-side layout from exceeding wrapper width unexpectedly */
    max-width: calc(640px + 480px + 2rem); /* 640 + 480 + gap (approx 32px) */
    margin: 0 auto;
  }

  /* Make text block flexible but prefer 640px; allow shrinking below it */
  .text-block {
    flex: 1 1 640px; /* grow/shrink, base 640px, won't exceed max-width */
    max-width: 640px;
  }

  /* Make image block prefer its ideal but be flexible on narrow widths */
  .image-block {
    flex: 0 1 480px; /* don't force growing, but shrink if needed */
    max-width: 480px;
  }

  .text-block {
    order: 1;
  }
  .image-block {
    order: 2;
  }
}

/* ------------------------------------------------------
   FOOTER
------------------------------------------------------- */
footer {
  flex-shrink: 0; /* keep footer visible and not squashed */
  text-align: center;
  padding: 1rem 0;
}
