:root {
  color-scheme: light;
  --ink: #22252b;
  --ink-soft: #3d424b;
  --muted: #626a75;
  --paper: #fafafa;
  --surface: #ffffff;
  --surface-alt: #f2f5f3;
  --line: #dfe2e6;
  --wine: #79333b;
  --wine-dark: #5b232b;
  --green: #416753;
  --blue: #3f556f;
  --shadow: 0 20px 60px rgba(27, 31, 38, 0.12);
  --max: 1120px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--wine);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--wine-dark);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  font-size: 4.4rem;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  transform: translateY(-200%);
  background: var(--surface);
  color: var(--ink);
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem max(1.25rem, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 250, 0.94);
  backdrop-filter: blur(18px);
}

.home .site-header {
  position: absolute;
  left: 0;
  right: 0;
  border-bottom-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(rgba(15, 17, 20, 0.72), rgba(15, 17, 20, 0));
  backdrop-filter: none;
}

.brand {
  display: grid;
  gap: 0.05rem;
  color: var(--ink);
  text-decoration: none;
}

.home .brand,
.home .site-nav a {
  color: #ffffff;
}

.brand__name {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand__role {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.2;
  text-transform: uppercase;
}

.home .brand__role {
  color: rgba(255, 255, 255, 0.74);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.3rem 1rem;
  font-size: 0.94rem;
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--wine);
}

.home .site-nav a:hover,
.home .site-nav a[aria-current="page"] {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 76svh;
  overflow: hidden;
  background: #15171a;
}

.hero__media,
.hero__media img,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__shade {
  background:
    linear-gradient(90deg, rgba(9, 11, 14, 0.08) 0%, rgba(9, 11, 14, 0.18) 42%, rgba(9, 11, 14, 0.76) 100%),
    rgba(9, 11, 14, 0.12);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding-top: 5rem;
  color: #ffffff;
}

.hero__content > * {
  max-width: 620px;
  margin-left: auto;
}

.hero h1 {
  color: #ffffff;
  font-size: 5rem;
}

.hero__lead {
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.25rem;
  line-height: 1.65;
}

.hero__lead a {
  color: inherit;
  text-decoration-color: rgba(255, 255, 255, 0.46);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
}

.section--ruled {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.section-heading h2 {
  max-width: 720px;
}

.section-heading--stacked {
  align-items: start;
}

.section-heading--stacked p:not(.kicker) {
  margin-top: 0.7rem;
  color: var(--ink-soft);
}

.kicker,
.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: uppercase;
}

.kicker {
  margin-bottom: 0.75rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
}

.split h2,
.two-column h2 {
  margin-bottom: 1rem;
}

.highlight-grid,
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.book-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.highlight-card,
.book-card {
  min-width: 0;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.book-card {
  background: var(--surface-alt);
}

.highlight-card h3,
.book-card h3 {
  margin-top: 0.4rem;
  margin-bottom: 0.7rem;
}

.book-card h3 a {
  color: inherit;
  text-decoration-color: rgba(121, 51, 59, 0.35);
}

.book-card__subtitle {
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.35;
}

.latest-work {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.latest-work__heading {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.latest-work__heading h3 {
  font-size: 1.55rem;
}

.latest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.latest-card {
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.latest-card h3 {
  margin-top: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: 1.22rem;
  line-height: 1.2;
}

.latest-card h3 a {
  color: inherit;
  text-decoration-color: rgba(121, 51, 59, 0.35);
}

.latest-card small {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.latest-card p {
  margin-top: 0.75rem;
}

.latest-sermon {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 1.25rem;
  align-items: center;
  margin-top: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.latest-sermon__copy h3 {
  margin-bottom: 0.5rem;
  font-size: 1.35rem;
}

.latest-sermon__copy p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}

.latest-sermon__copy p a {
  color: inherit;
  text-decoration-color: rgba(121, 51, 59, 0.35);
}

.latest-sermon small,
.latest-sermon__player p {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.latest-sermon small {
  margin-top: 0.45rem;
}

.latest-sermon audio {
  width: 100%;
}

.latest-sermon__player {
  display: grid;
  gap: 0.55rem;
}

.latest-sermon__player .text-link {
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.8rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--wine);
  border-radius: 6px;
  background: var(--wine);
  color: #ffffff;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: var(--wine-dark);
  background: var(--wine-dark);
  color: #ffffff;
}

.button--light {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--ink);
}

.button--light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
}

.button--outline-light {
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
  color: #ffffff;
}

.button--outline-light:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.text-link {
  display: inline-flex;
  margin-top: 1.25rem;
  font-weight: 700;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3rem;
  align-items: center;
}

.quote-panel {
  padding: 2rem;
  border-left: 4px solid var(--blue);
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.45;
}

.quote-panel cite {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
}

.quote-panel cite::before {
  content: "Source: ";
}

.quote-panel--plain {
  border-left-color: var(--green);
  font-size: 1.35rem;
}

.page-header {
  padding: 7rem 0 4rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface-alt);
}

.page-header__inner {
  max-width: 820px;
  margin-left: max(1.25rem, calc((100vw - var(--max)) / 2));
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p:last-child {
  color: var(--ink-soft);
  font-size: 1.22rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}

.sidebar {
  display: grid;
  gap: 1.25rem;
}

.portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.portrait--square {
  aspect-ratio: 1;
}

.sidebar .photo-credit {
  margin-top: -0.85rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.facts {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.facts div {
  display: grid;
  gap: 0.1rem;
}

.facts dt {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  color: var(--ink-soft);
}

.prose {
  max-width: 780px;
}

.prose p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.writing-groups,
.content-stack {
  display: grid;
  gap: 3.5rem;
}

.writing-group {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: start;
}

.writing-group p {
  color: var(--ink-soft);
}

.item-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.item-list li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.item-list span,
.item-title {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.35;
}

.item-title {
  text-decoration-color: rgba(121, 51, 59, 0.35);
}

.item-list small {
  color: var(--muted);
  font-size: 0.92rem;
}

.note-band {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-alt);
}

.sermon-list {
  display: grid;
  gap: 1rem;
}

.sermon-card {
  display: grid;
  gap: 0.8rem;
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.sermon-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.sermon-card__date,
.sermon-card__speaker,
.sermon-card__details,
.sermon-card__credit {
  color: var(--muted);
}

.sermon-card__speaker {
  font-weight: 700;
}

.sermon-card h3 a {
  color: inherit;
  text-decoration-color: rgba(121, 51, 59, 0.35);
}

.sermon-card__details {
  font-size: 0.94rem;
  line-height: 1.45;
}

.sermon-card audio {
  width: 100%;
}

.sermon-card__credit {
  font-size: 0.84rem;
  line-height: 1.4;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 3rem;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 6rem;
}

.section-action,
.direct-email {
  margin-top: 1.25rem;
  color: var(--ink-soft);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid #c9ced6;
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  padding: 0.78rem 0.85rem;
  font-weight: 400;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(65, 103, 83, 0.22);
  border-color: var(--green);
}

.hidden {
  display: none;
}

.narrow {
  max-width: 720px;
}

.work-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 3rem;
  align-items: start;
}

.work-main {
  min-width: 0;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.work-meta span {
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.work-aside {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 6rem;
}

.link-panel {
  display: grid;
  gap: 0.65rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.link-panel a {
  display: block;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.media-embed {
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  border-radius: 8px;
  background: #111318;
  aspect-ratio: 16 / 9;
}

.media-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.audio-embed {
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.audio-embed audio {
  width: 100%;
}

.toc-list {
  display: grid;
  gap: 0.35rem;
  padding-left: 1.25rem;
}

.source-note {
  margin-top: 1.5rem;
  padding: 1rem;
  border-left: 4px solid var(--green);
  background: var(--surface-alt);
  color: var(--ink-soft);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem max(1.25rem, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}

.site-footer strong {
  color: #ffffff;
  font-family: var(--serif);
  font-size: 1.2rem;
}

.site-footer p {
  margin-top: 0.2rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem 1.2rem;
}

.site-footer a {
  color: #ffffff;
}

@media (max-width: 920px) {
  h1 {
    font-size: 3.3rem;
  }

  h2 {
    font-size: 2rem;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero {
    min-height: 82svh;
  }

  .hero__media img {
    object-position: 38% center;
  }

  .hero__shade {
    background: rgba(9, 11, 14, 0.55);
  }

  .hero__content {
    display: flex;
    align-items: end;
    min-height: 82svh;
    padding-top: 8rem;
    padding-bottom: 3rem;
  }

  .hero__content > * {
    margin-left: 0;
  }

  .hero h1 {
    font-size: 3.8rem;
  }

  .hero__lead {
    font-size: 1.12rem;
  }

  .split,
  .two-column,
  .content-grid,
  .writing-group,
  .contact-grid,
  .work-detail {
    grid-template-columns: 1fr;
  }

  .highlight-grid,
  .book-grid,
  .latest-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    position: static;
  }

  .work-aside {
    position: static;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .site-header {
    padding: 0.9rem 1rem;
  }

  .site-nav {
    gap: 0.25rem 0.75rem;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 86svh;
  }

  .hero__content {
    width: calc(100% - 2rem);
    min-height: 86svh;
    padding-bottom: 2rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .container {
    width: calc(100% - 2rem);
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .page-header {
    padding: 7rem 0 3rem;
  }

  .page-header__inner {
    width: calc(100% - 2rem);
    margin: 0 auto;
  }

  .quote-panel,
  .note-band,
  .contact-form {
    padding: 1.25rem;
  }

  .quote-panel {
    font-size: 1.25rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.5rem 1rem;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
