/* Saela palette and typography, applied as a restrained professional profile. */
@font-face {
  font-family: "DM Serif Display";
  src: url("./assets/dm-serif-display.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./assets/inter-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./assets/inter-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./assets/inter-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  --forest: #26453d;
  --ink: #26453d;
  --muted: #59675f;
  --sand: #f5f5eb;
  --line: #dce2da;
  --sunset: #ea9230;
  --page-width: 1120px;
  --page-edge: 24px;
  --inset: 40px;
  --space: 88px;
  --body-font: Inter, Arial, sans-serif;
  --display-font: "DM Serif Display", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 16px/1.75 var(--body-font);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display-font); font-weight: 400; }
h2 { font-size: 38px; line-height: 1.15; letter-spacing: -.025em; text-wrap: balance; }
h3 { font-size: 22px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; text-wrap: balance; }
p { color: var(--muted); }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: #152d25; }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 6px; }
::selection { background: #dae4d5; color: var(--ink); }
.wrap { width: min(var(--page-width), calc(100% - 2 * var(--page-edge))); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; background: #fff; }
.skip-link:focus { top: 20px; }
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.text-link { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; font-weight: 600; }

/* A single introduction, with every line sharing the same left edge. */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 640px;
  margin-top: 24px;
  padding: 48px var(--inset) 0;
  background: var(--sand);
  border-radius: 16px;
  overflow: hidden;
}
.portrait-panel { align-self: end; width: 144%; margin-inline: -22%; }
.portrait-panel img { display: block; width: 100%; height: auto; }
.hero-copy { position: relative; min-width: 0; padding-bottom: 48px; }
h1 { font-size: clamp(64px, 7.5vw, 88px); line-height: 1.02; letter-spacing: -.035em; }
.hero-credential { margin-top: 22px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 1.55; }
.hero-roles { display: grid; gap: 20px; margin-top: 32px; }
.hero-role strong { display: block; color: var(--ink); font-size: 22px; font-weight: 600; line-height: 1.35; letter-spacing: -.025em; }
.hero-role span { display: block; margin-top: 3px; font-size: 15px; line-height: 1.6; }

/* Expertise is a short reading row, not a second introduction. */
.specialties { padding: 56px var(--inset) 0; }
.specialties h2 { font-size: 30px; margin-bottom: 32px; text-align: center; }
.specialty-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.specialty-heading { display: flex; align-items: center; gap: 12px; }
.specialty-icon { width: 28px; height: 28px; flex: 0 0 28px; }
.specialty-card h3 { margin: 0; font-size: 19px; }

/* Career and background records share one grid and one typographic hierarchy. */
.experience { margin-block: var(--space); padding-inline: var(--inset); }
.career-intro { text-align: center; margin-bottom: 40px; }
.career-intro h2 { margin-bottom: 24px; }
.experience .employer-heading { text-align: center; }
.experience .logo-frame--saela { margin-bottom: 10px; }
.career-timeline, .career-details { width: min(100%, 760px); margin-inline: auto; }
.employer-heading p { font-size: 14px; line-height: 1.6; }
.career-timeline { padding: 0; list-style: none; }
.timeline-item + .timeline-item { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.timeline-content h3 { font-size: 23px; }
.timeline-date { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.timeline-content p { margin-top: 10px; }
.role-details { margin-top: 12px; }
summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary > span { font-size: 20px; font-weight: 400; }
details[open] summary > span { transform: rotate(45deg); }
.role-details ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }
.role-details li + li { margin-top: 8px; }

/* One dark section gives the association role its own clear place. */
.leadership-feature { padding: 44px var(--inset); background: var(--forest); color: #fff; border-radius: 12px; }
.leadership-heading { margin-bottom: 32px; }
.leadership-feature .profile-content { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; row-gap: 28px; }
.leadership-feature .organization-heading { display: flex; align-items: center; gap: 20px; grid-column: 1; }
.leadership-feature p { color: #e1e8df; font-size: 15px; }
.leadership-feature .role-company { margin-top: 5px; }
.current-leadership > p, .prior-leadership > p { margin-top: 18px; }

.prior-leadership h3 { font-size: 22px; margin-bottom: 14px; }
.leadership-feature a:hover { color: #fff; }
.leadership-feature :focus-visible { outline-color: #fff; }
.leadership-feature .association-partner { grid-column: 1 / -1; max-width: 90ch; }

/* A focused reading column gives the biography the depth of an article. */
.about-justin { margin-top: 56px; padding: 48px var(--inset) 0; border-top: 1px solid var(--line); }
.about-justin > h2 { max-width: 28ch; margin: 0 auto 32px; text-align: center; }
.about-justin-copy { max-width: 760px; margin-inline: auto; }
.about-justin-lead { color: var(--ink); font: 24px/1.55 var(--display-font); letter-spacing: -.015em; }
.about-justin-copy h3 { margin: 30px 0 12px; font-size: 20px; line-height: 1.35; }
.about-justin-copy > p:not(.about-justin-lead) { font-size: 17px; line-height: 1.8; text-wrap: pretty; }

.background-sections { margin-top: 64px; padding-inline: var(--inset); }
.background-sections .profile-section { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.35fr); gap: 72px; padding-block: 44px; border-top: 1px solid var(--line); }
.background-sections h2 { font-size: 32px; }
.background-sections .profile-content { min-width: 0; }
.background-entry { display: grid; grid-template-columns: var(--logo-size) minmax(0, 1fr); align-items: start; gap: 22px; }
.background-entry + .background-entry { margin-top: 30px; }
.background-entry-text { grid-column: 2; }
.background-entry h3 { font-size: 21px; }
.entry-organization { margin-top: 6px; font-size: 15px; }
.entry-date { margin-top: 8px; font-size: 14px; }
.background-entry-text > p:last-child:not(.entry-date):not(.entry-organization) { margin-top: 16px; font-size: 15px; }
.education-source { margin-top: 24px; padding-left: calc(var(--logo-size) + 22px); font-size: 14px; }

/* One clear point of contact. */
.contact { margin-bottom: 32px; display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 32px; padding: 44px var(--inset); background: var(--sand); border-radius: 12px; }
.contact-link { display: inline-flex; align-items: center; gap: 24px; flex-shrink: 0; padding: 15px 24px; background: var(--sunset); color: #1d3730; border-radius: 4px; text-decoration: none; font-size: 16px; font-weight: 600; }
.contact-link:hover { background: #f0a149; }

@media (max-width: 1050px) {
  :root { --inset: 32px; --space: 72px; }
  h1 { font-size: 72px; }
  .hero { min-height: 600px; }
  .hero-role strong { font-size: 20px; }
  .background-sections .profile-section { grid-template-columns: minmax(0, .7fr) minmax(0, 1.4fr); gap: 40px; }
  .specialty-grid { gap: 28px; }
}
@media (max-width: 850px) {
  :root { --inset: 28px; --space: 64px; }
  h1 { font-size: 58px; }
  h2 { font-size: 34px; }
  .hero { gap: 16px; padding-top: 36px; min-height: 560px; }
  .hero-copy { padding-bottom: 36px; }
  .hero-roles { gap: 16px; margin-top: 24px; }
  .hero-role strong { font-size: 18px; }
  .hero-role span, .hero-credential { font-size: 14px; }
  .specialty-grid { grid-template-columns: 1fr; gap: 24px; }
  .specialty-card h3 { margin: 0; }
  .background-sections .profile-section { grid-template-columns: 1fr; gap: 30px; }
  .leadership-feature .profile-content { gap: 20px 32px; }
}
@media (max-width: 620px) {
  :root { --page-edge: 16px; --inset: 24px; --space: 56px; }
  h2 { font-size: 32px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 24px; min-height: 0; margin-top: 16px; padding-top: 32px; border-radius: 10px; }
  .hero-copy { order: -1; padding-bottom: 0; }
  h1 { font-size: clamp(50px, 13vw, 76px); }
  .hero-credential { margin-top: 18px; font-size: 14px; }
  .hero-roles { gap: 18px; margin-top: 28px; }
  .hero-role strong { font-size: 20px; }
  .hero-role span { font-size: 14px; }
  .portrait-panel { width: 144%; margin-inline: -22%; }
  .specialties { padding-top: 44px; }
  .specialties h2 { font-size: 28px; }
  .about-justin { margin-top: 40px; padding-top: 36px; }
  .about-justin > h2 { font-size: 30px; margin-bottom: 28px; text-align: left; }
  .about-justin-lead { font-size: 21px; }
  .about-justin-copy > p:not(.about-justin-lead) { font-size: 16px; }
  .timeline-content h3 { font-size: 22px; }
  .timeline-content p { font-size: 15px; }
  .leadership-feature { padding-block: 32px; border-radius: 8px; }
  .leadership-feature .profile-content { display: block; }
  .leadership-feature .organization-heading { align-items: start; gap: 16px; }
  .leadership-feature h3 { font-size: 20px; }
  .leadership-feature .profile-content > p { margin-top: 18px; }
  .prior-leadership { margin-top: 28px; }
  .prior-leadership h3 { margin-bottom: 10px; }
  .leadership-feature .association-partner { margin-top: 18px; }
  .background-sections .profile-section { padding-block: 32px; gap: 26px; }
  .background-sections h2 { font-size: 30px; }
  .background-entry { grid-template-columns: var(--logo-size) minmax(0, 1fr); gap: 16px; }
  .background-entry h3 { font-size: 18px; }
  .entry-organization, .entry-date { font-size: 14px; }
  .education-source { padding-left: 0; }
  .contact { display: block; padding-block: 32px; border-radius: 8px; }
  .contact-link { margin-top: 24px; font-size: 15px; }
}
@media (max-width: 380px) {
  :root { --inset: 20px; }
  h1 { font-size: 48px; }
  .hero-role strong { font-size: 19px; }
  .background-entry { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Short summaries first; the complete record remains available on demand. */
.career-details { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 6px; }
.detail-body { padding-block: 6px 12px; font-size: 15px; color: var(--muted); }
.detail-body ul { margin: 0 0 16px; padding-left: 20px; }
.detail-body li + li { margin-top: 8px; }
.prior-leadership { padding-left: 32px; border-left: 1px solid #ffffff30; }
@media(min-width:701px) {
  .timeline-content { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 20px; }
  .timeline-date { grid-column: 2; grid-row: 1; margin-top: 5px; font-size: 14px; }
  .timeline-content > p { grid-column: 1 / -1; }
}
@media(max-width:620px) {
  .prior-leadership { padding-left: 0; border-left: 0; padding-top: 24px; border-top: 1px solid #ffffff30; }
  .background-sections { margin-top: 48px; }
}


/* Consistent frames, with optical corrections for padding inside source files. */
:root { --logo-size: 80px; }
.logo-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 var(--logo-size);
  width: var(--logo-size);
  height: var(--logo-size);
  padding: 8px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.logo-frame .organization-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  object-fit: contain;
}
.logo-frame--saela { margin-bottom: 14px; }
.logo-frame--upma .organization-logo { transform: scale(1.25); }
.logo-frame--ace .organization-logo { transform: none; }
.logo-frame--uvu .organization-logo { transform: scale(1.7); }
.logo-frame--church .organization-logo { transform: scale(1.55); }
.logo-frame--church { background: #f7f7f7; }
.logo-frame--suu { background: #222; border-color: #222; }
.logo-frame[hidden], .organization-logo[hidden] { display: none; }
@media(max-width:620px) { :root { --logo-size: 64px; } }

.leadership-feature .prior-leadership .organization-heading h3 { margin-bottom: 0; }

/* Consistent organization marks beside the hero credential and roles. */
.hero-credential, .hero-role { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; column-gap: 14px; }
.hero-detail-logo { display: block; width: 44px; height: 44px; object-fit: contain; background: #fff; }
.hero-role-copy { min-width: 0; }
