:root {
  --bg: #0b0f14;
  --ink: #eaf0f7;
  --muted: #b7c3d1;
  --soft: #7f93ab;
  --line: rgba(255, 255, 255, 0.08);

  --accent: #d9b36c;
  /* warm “wood” */
  --accent2: #77c7ff;
  /* cool contrast */

  --shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
  --radius: 18px;

  --maxw: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  color: var(--ink);
  background:
    radial-gradient(
      1100px 520px at 12% -10%,
      rgba(217, 179, 108, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 520px at 92% 8%,
      rgba(119, 199, 255, 0.14),
      transparent 55%
    ),
    linear-gradient(180deg, var(--bg), #070a0f);
  line-height: 1.72;
}

.logo img {
  width: auto;
  max-width: 100%;
  height: auto;
  transition:
    width 0.2s ease,
    max-width 0.2s ease;
}

@media (max-width: 450px) {
  .logo img {
    max-width: 240px;
    /* adjust to taste */
    height: auto;
  }
}

@media (max-width: 350px) {
  .logo img {
    max-width: 175px;
    /* adjust to taste */
    height: auto;
  }
}

.bio-hero .subtitle {
  margin-top: 6px;
  opacity: 0.95;
}

.bio-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 26px 26px 14px 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.bio-card .lead {
  font-size: 17px;
  line-height: 1.65em;
}

.bio-facts {
  margin-top: 18px;
}

.bio-facts .fact {
  margin-bottom: 10px;
}

.bio-facts .label {
  font-weight: 700;
  margin-right: 6px;
}

.bio-social a {
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
}

.backlink {
  margin-top: 18px;
  display: inline-block;
  color: #ab7442;
  text-decoration: none;
}

.backlink:hover {
  text-decoration: underline;
}

/* ===== CLEAN 3-COLUMN TRUE MASONRY ===== */

.bio-gallery {
  margin-top: 26px;
}

.bio-gallery .bio-grid {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Masonry tiles */
.bio-gallery figure.bio-tile {
  position: absolute;
  margin: 0;
  /*border-radius:16px;*/
  border-radius: 0px;
  overflow: hidden;
  background: #fff;
  /*border:1px solid rgba(0,0,0,.06);
      box-shadow:0 12px 26px rgba(0,0,0,.06);*/
  border: none;
  display: block;
}

/* Image */
.bio-gallery .bio-photo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Caption */
.bio-gallery .bio-caption {
  padding: 14px 16px 16px;
  /*border-top:1px solid rgba(0,0,0,.06);*/
  border: none;
  background: #fff;
}

.bio-gallery .bio-cap-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 6px;
  color: #353535;
}

.bio-gallery .bio-cap-text {
  font-size: 14px;
  line-height: 1.5em;
  color: rgba(0, 0, 0, 0.72);
}

/* ===== Lazy-load blur-in ===== */
.bio-gallery img.lazy-img {
  filter: blur(14px);
  transform: scale(1.02);
  opacity: 0.85;
  transition:
    filter 0.35s ease,
    transform 0.35s ease,
    opacity 0.35s ease;

  will-change: filter, transform, opacity;
}

.bio-gallery img.lazy-img.is-loaded {
  filter: blur(0);
  transform: scale(1);
  opacity: 1;
}

/* subtle reading progress */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  z-index: 999;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 18px 90px;
}

/* hero cover */
.hero {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.015)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  display: grid;
  gap: 14px;
}

/* hero layout with photo */
.heroTop {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: center;
}

@media (max-width: 680px) {
  .heroTop {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

.heroPhoto {
  width: 132px;
  height: 132px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
  position: relative;
}

.heroPhoto img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* placeholder styling (shows if you keep placeholder.jpg) */
.heroPhoto.placeholder::after {
  content: "Chuck photo";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(234, 240, 247, 0.7);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
  background:
    radial-gradient(
      500px 220px at 25% 10%,
      rgba(217, 179, 108, 0.18),
      transparent 60%
    ),
    radial-gradient(
      460px 220px at 85% 20%,
      rgba(119, 199, 255, 0.14),
      transparent 60%
    );
  text-align: center;
  padding: 10px;
}

.kicker {
  color: var(--soft);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
}

h1 {
  color: white;
  margin: 0;
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: 0.01em;
  line-height: 1.1;
}

.sub {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 82ch;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 179, 108, 0.16);
}

/* layout */
.grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

/* index card */
.indexCard {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}

.indexCard h2 {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.catGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 680px) {
  .catGrid {
    grid-template-columns: 1fr;
  }
}

.cat {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 14px;
  border-radius: 16px;
  border: 1px solid transparent;
  text-decoration: none;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
}

.cat:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line);
}

.cat.is-active {
  background: rgba(217, 179, 108, 0.1);
  border-color: rgba(217, 179, 108, 0.3);
  box-shadow: inset 0 0 0 1px rgba(217, 179, 108, 0.1);
}

.cat.is-active b {
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cat.is-active b::after {
  content: "Open";
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
  color: #1e1e1e;
  background: #f2c982;
  border: 1px solid rgba(242, 201, 130, 0.55);
}

.cat.is-active small {
  color: var(--muted);
}

.cat.is-active .ic {
  background: rgba(217, 179, 108, 0.18);
  border-color: rgba(217, 179, 108, 0.34);
  color: #f2c982;
  box-shadow: 0 0 0 4px rgba(217, 179, 108, 0.08);
}

.cat .ic {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(217, 179, 108, 0.12);
  border: 1px solid rgba(217, 179, 108, 0.22);
  color: var(--accent);
  flex: 0 0 auto;
}

.cat b {
  display: block;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.cat small {
  display: block;
  color: var(--soft);
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.35;
}

/* sticky sidebar */
.jump {
  position: sticky;
  top: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.jump h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.jump a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 10px;
  border-radius: 14px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
}

.jump a:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}

.jump a.is-active {
  background: rgba(119, 199, 255, 0.1);
  border-color: rgba(119, 199, 255, 0.24);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(119, 199, 255, 0.1);
}

.jump a.is-active .mini {
  background: rgba(119, 199, 255, 0.18);
  border-color: rgba(119, 199, 255, 0.28);
  color: #a8deff;
  box-shadow: 0 0 0 4px rgba(119, 199, 255, 0.08);
}

.jump .mini {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(119, 199, 255, 0.1);
  border: 1px solid rgba(119, 199, 255, 0.18);
  color: var(--accent2);
  flex: 0 0 auto;
}

/* bio sections */
.bio-section {
  display: none;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-top: 18px;
}

.bio-section.is-active {
  display: block;
  animation: bioFadeIn 0.25s ease;
}

@keyframes bioFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bio-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.bio-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(217, 179, 108, 0.12);
  border: 1px solid rgba(217, 179, 108, 0.22);
  font-weight: 900;
  color: var(--accent);
  flex: 0 0 auto;
}

.bio-head h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.01em;
}

.bio-sub {
  margin: 6px 0 0 0;
  color: var(--muted);
  max-width: 82ch;
}

.bio-section p {
  margin: 12px 0;
  color: var(--ink);
  font-size: 16px;
  max-width: 86ch;
}

/* drop cap */
.drop:first-letter {
  float: left;
  font-size: 46px;
  line-height: 0.92;
  padding-right: 10px;
  padding-top: 6px;
  font-weight: 900;
  color: var(--accent);
}

/* pull quote */
blockquote.pull {
  margin: 18px auto;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(217, 179, 108, 0.22);
  background: rgba(217, 179, 108, 0.08);
  font-style: italic;
  font-weight: 850;
  text-align: center;
  max-width: 74ch;
}

blockquote.pull.alt {
  border-color: rgba(119, 199, 255, 0.22);
  background: rgba(119, 199, 255, 0.08);
}

blockquote.pull p {
  margin: 0;
}

/* section footer nav */
.nextRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.btn .arr {
  width: 26px;
  height: 26px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

/* small note style */
.note {
  margin-top: 10px;
  color: var(--soft);
  font-size: 13px;
}
/* Bio Styles*/
.bio-subnav-wrap {
  max-width: 1200px;
  margin: 0 auto 18px;
  padding: 0 20px;
}

.bio-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #6b7280;
}

.bio-subnav-label {
  font-weight: 600;
  color: #647288;
  margin-right: 4px;
}

.bio-subnav a {
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #b5b5b5;
  color: #111827;
  transition: all 0.2s ease;
}

.bio-subnav a:hover {
  background: #ececec;
}

.bio-subnav a.is-active {
  background: #111827;
  color: #fff;
  border-color: #111827;
  font-weight: 600;
}

@media (max-width: 767px) {
  .bio-subnav-wrap {
    padding: 0 14px;
  }
}
