/* Google Font: Inter Light + Extra Light */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400&display=swap');

/* Google Font: Poppins Light + Extra Light */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 200;
  background-color: #0F1318;
  color: #C9DBE1;
  overflow-x: hidden;
  padding-top: 72px; /* match header height exactly */
}

body.fade-theme {
  background-color: #0F1318;   /* starting background */
  color: #C9DBE1;              /* starting text color */
  transition: background-color 3s ease, color 3s ease;
}

/* final colors after page fully loaded */
body.fade-theme.loaded {
  background-color: #ffffff;   /* your site's dark background */
  color: #111111;              /* your site's text color */
}

.hdr-wide {
  display: block;
  width: 97%;
  max-width: 97%;
  margin: 0 auto; /* centers the block */
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 200;
  font-size: 1.8em;
  letter-spacing: 0.02em; /* small spacing instead of transform */
  -webkit-font-smoothing: antialiased;
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.2em;
  text-align: left;
}

.hdr-text-left {
  transform: scaleX(1.25);
  transform-origin: left;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 200;
  font-size: 1.5em;
  letter-spacing: 0px;
  -webkit-font-smoothing: antialiased;
  white-space: nowrap;
}

.hdr-text-right {
  transform: scaleX(1.25);
  transform-origin: right;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 200;
  font-size: 1.5em;
  letter-spacing: 0px;
  -webkit-font-smoothing: antialiased;
  white-space: nowrap;
}

h1 {
  transform: scaleX(1.25);
  transform-origin: center center;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-weight: 200;
  font-size: 2.5em;
  letter-spacing: 0px;
  -webkit-font-smoothing: antialiased;
  white-space: nowrap;
  text-align: center;
  margin: 0 auto;
}

.content-section {
  min-height: 300px;
  padding: 60px;
}

.template-main {
  min-height: calc(100vh - 160px);
  text-align: left;
  max-width: 60%;
  margin: 0 auto;
  line-height: 1.8;
}

.template-main h1 {
  margin-bottom: 1em;
}

.centered-graphic-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 0 60px;
  min-height: calc(100vh - 160px);
}

/* Smaller square container with rounded corners */
.graphic-wrapper {
  width: 40%;                /* about half the previous 80% */
  max-width: 450px;          /* half of 900px */
  aspect-ratio: 1 / 1;       /* keeps it square */
  border-radius: 20px;
  overflow: hidden;
  #background: #ffffff;
  background: #d3d3d3;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
}

/* Image fills square without distortion */
.graphic-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.text-wrapper {
  width: 75%;
  text-align: left;
}

/* --- inline addition for your biography text --- */
.bio-text-wrapper {
  text-align: left;
  max-width: 60%;
  margin: 0 auto;           /* centers horizontally */
  line-height: 1.8;
  color: #eee;              /* optional for dark backgrounds */
}

.bio-text-wrapper h1 {
  margin-bottom: 1em;
}

/* --- Responsive H1 adjustments --- */
@media (max-width: 1024px) {
  h1 {
    font-size: 2em;
    transform: scaleX(1.15);
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 1.7em;
    transform: scaleX(1.1);
    white-space: normal;  /* allows wrapping on smaller screens */
    line-height: 1.3;
    padding: 0 20px;      /* adds breathing room */
  }
  .hdr-wide {
    font-size: 1.2em;
    width: 92%;
    max-width: 92%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.4em;
    transform: scaleX(1.05);
  }
  .hdr-wide {
    font-size: 1em;
    width: 88%;
    max-width: 88%;
  }
}

/* ✅ Add this below your existing rules */
@media (max-width: 768px) {
  body { padding-top: 66px; } /* matches mobile header height */
}
