@font-face {
    font-family: "HaboroContrast";
    src: url("https://johnproulx.com/wp-content/uploads/fonts/HaboroContrast-NorReg.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Bio section styles extracted from header.css */

:root {
  --jp-bg: #faf9f5;
  --jp-card: #ffffff;
  --jp-text: #222;
  --jp-muted: rgba(26, 26, 26, 0.68);
  --jp-faint: rgba(26, 26, 26, 0.52);
  --jp-gold: #c6a853;
  --jp-max: 1100px;
  --jp-gap: clamp(1.5rem, 3vw, 2.75rem);
  --jp-pad: clamp(1.25rem, 2.5vw, 2rem);
  --jp-rule: 1px;
  --jp-panel-aspect: 4 / 5;
  --jp-main-header-padding: 1.5rem 0;
}

/* ===== Bio section scaffold ===== */
.jp-bio {
  padding: clamp(3rem, 6vw, 5rem) 0;
  background: var(--jp-bg);
}

.jp-bio__inner {
  max-width: var(--jp-max);
  margin: 0 auto;
  padding: 2rem;
}

.jp-bio__header,
.jp-header {
  position: relative;
  padding: var(--jp-main-header-padding);
  margin-bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.jp-bio__header::before,
.jp-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 120px;
  height: 2px;
  background: linear-gradient(
    90deg,
    #c6a853 0%,
    rgba(198, 168, 83, 0.6) 60%,
    rgba(198, 168, 83, 0) 100%
  );
}

.jp-bio__title,
.jp-title {
  font-weight: 500;
  font-size: clamp(2rem, 3vw, 2.75rem);
  letter-spacing: 0.3rem;
  margin: 0;
}

.jp-bio__header-rule,
.jp-header-rule {
  height: 2px;
  width: 70vw;
  background: linear-gradient(
    90deg,
    rgba(198, 168, 83, 0) 0%,
    rgba(198, 168, 83, 0.25) 15%,
    rgba(198, 168, 83, 0.7) 45%,
    #c6a853 100%
  );
}

.jp-bio__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  align-items: stretch;
}

.jp-bio__media {
  margin: 0;
  margin-bottom: 0 !important;
  background: var(--jp-card);
  aspect-ratio: var(--jp-panel-aspect);
  overflow: hidden;
}

.jp-bio__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.jp-bio__panel {
  background: var(--jp-card);
  aspect-ratio: var(--jp-panel-aspect);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: var(--jp-pad);
}

.jp-bio__scroll {
  overflow: auto;
  padding-right: 0.75rem;
}

.jp-bio__lead {
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0 0 1.25rem 0;
}

.jp-bio__lead-rule {
  height: 1px;
  width: 60%;
  margin: 1.75rem auto;
  background: linear-gradient(
    90deg,
    rgba(198, 168, 83, 0) 0%,
    rgba(198, 168, 83, 0.75) 50%,
    rgba(198, 168, 83, 0) 100%
  );
}

.jp-bio__body {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--jp-muted);
  margin: 0 0 1rem 0;
}

.jp-bio__footer {
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jp-faint);
  padding-top: 2rem;
  margin-top: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.92) 60%,
    rgba(255, 255, 255, 0) 100%
  );
}

.jp-bio__stats {
  grid-row: 2;
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  margin-top: clamp(2rem, 4vw, 3rem);
  text-align: center;
  color: var(--jp-faint);
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}

.jp-bio__stat-num {
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.25rem 0;
  color: rgba(26, 26, 26, 0.55);
}

.jp-bio__stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 1024px) {
  .jp-bio__grid {
    grid-template-columns: 1fr;
  }

  .jp-bio__media,
  .jp-bio__panel {
    aspect-ratio: auto;
  }

  .jp-bio__panel {
    display: block;
  }

  .jp-bio__scroll {
    overflow: visible;
    padding-right: 0;
  }

  .jp-bio__footer {
    background: none;
    padding-top: 1rem;
    display: none;
  }

  .jp-bio__stats {
    grid-row: auto;
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Legacy bio styles moved from header.css (kept for compatibility) */
.jp-bio {
  max-width: var(--jp-max);
  margin-left: auto;
  margin-right: auto;
  background: var(--jp-bg);
}

.jp-bio__header,
.jp-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.jp-bio__title,
.jp-title {
  font-family: "HaboroContrast", Sans-Serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  letter-spacing: 0.3rem;
  color: #222;
  margin: 0;
  flex-shrink: 0;
}

.jp-bio__rule {
  flex: 1;
  height: 1px;
  min-width: 2rem;
  background-color: #c6a853;
}

.jp-bio__content {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  margin-bottom: 4rem;
}

.jp-bio__col {
  flex: 1 1 50%;
}

.jp-bio__image-card {
  background: linear-gradient(135deg, #f5f4f0 0%, #e8e6e0 100%);
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  height: 100%;
}

.jp-bio__portrait {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.jp-bio__text-card {
  background: #fff;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-radius: 2px;
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.jp-bio__lead {
  font-size: 1.2rem;
  line-height: 1.5;
  color: #333;
  margin: 0 0 1rem;
  font-weight: 500;
}

.jp-bio__rule-inner {
  border: 0;
  height: 1px;
  background: #c6a853;
  margin: 0 0 1.25rem;
}

.jp-bio__scroll {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  padding-bottom: 3rem;
}

.jp-bio__body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #555;
  margin: 0;
}

.jp-bio__scroll-footer {
  position: sticky;
  bottom: 0;
  margin: 0;
  padding: 0.9rem 0;
  text-align: center;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888;
  background: linear-gradient(to top, #fff 60%, rgba(255, 255, 255, 0.9) 80%, transparent);
}

.jp-bio__stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem 4rem;
}

.jp-bio__stat {
  text-align: center;
  word-break: normal;
}

.jp-bio__stat-value {
  display: block;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 300;
  color: #999;
  letter-spacing: 0.02em;
}

.jp-bio__stat-label {
  display: block;
  font-size: 0.7rem;
  color: #aaa;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 0.35rem;
}

@media (max-width: 768px) {
  .jp-bio {
    padding-bottom: 0 !important;
  }

  .jp-bio__content {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
  }

  .jp-bio__col {
    flex: 1 1 100%;
  }

  .jp-bio__image-card {
    height: auto;
  }

  .jp-bio__text-card {
    height: auto;
    min-height: 0;
  }

  .jp-bio__scroll {
    overflow: visible;
    padding-bottom: 0;
  }

  .jp-bio__scroll-footer {
    position: static;
    margin-top: 1.5rem;
    background: none;
    padding: 0.75rem 0 0;
    border-top: 1px solid #eee;
  }

  .jp-bio__stats {
    gap: 2rem;
  }

  .jp-bio__stat {
    flex: 1 1 calc(50% - 2rem);
  }
}

/* Final layout lock: keep stats under right column, 4 across (desktop) */
.jp-bio__stats {
  grid-row: 2;
  grid-column: 2;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 2rem);
  justify-content: initial;
  flex-wrap: nowrap;
}

.jp-bio__stat {
  flex: initial;
}

@media (max-width: 1024px) {
  .jp-bio__stats {
    grid-row: auto;
    grid-column: 1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}