@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Brand colors from the Skyleaf logo: cyan #02DBF8 and black. The bright cyan is
   too light for text on white (1.7:1), so text accents use a deeper cyan (5.4:1). */
:root {
  --ink: #000000;
  --ink-2: #2E3238;
  --muted: #474C55;
  --subtle: #5B6168;
  --line: #DCE4E7;
  --wash: #F2F7F8;
  --cyan: #02DBF8;
  --accent: #007488;
  --accent-dark: #004C59;
  --night: #000000;
  --night-text: #C9CDD3;
  --night-line: #2A2F33;
  --night-accent: var(--cyan);
  --wrap: 1040px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--ink);
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  margin: 0 0 12px; font-size: 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent);
}
.section-title {
  margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.1;
  letter-spacing: -0.02em; font-weight: 800;
}

/* Header */
.site-header { border-top: 4px solid var(--cyan); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  align-items: center; padding-top: 28px; padding-bottom: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand-photo { width: 48px; height: 48px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cyan); }
.brand:hover { color: var(--ink); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-nav a { display: inline-block; padding: 12px 0; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }

/* Intro */
.intro { padding: 72px 0 96px; }
.intro h1 { margin: 0 0 20px; font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.intro p { margin: 0; font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 34em; }
.intro p + p { margin-top: 16px; }

/* Day job */
.dayjob { background: var(--wash); padding: 88px 0; }
.dayjob .wrap { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.dayjob-head { flex: 1 1 240px; min-width: 0; }
.dayjob-head h2 { margin: 0; font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
.dayjob-body { flex: 999 1 420px; min-width: 0; }
.dayjob-body p { margin: 0; font-size: 19px; line-height: 1.65; color: var(--ink-2); }
.dayjob-body p + p { margin-top: 16px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px;
  border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none;
  background: var(--ink); color: #fff;
}
.btn:hover { background: var(--cyan); color: #000; }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid #C2CDD1; }
.btn-outline:hover { background: #fff; color: var(--ink); }

/* Photo */
.photo { margin: 0; }
.photo img { width: 100%; height: clamp(280px, 42vw, 560px); object-fit: cover; object-position: 50% 60%; }
.photo figcaption { padding-top: 14px; font-size: 14px; color: var(--subtle); }

/* Off the clock */
.offclock { padding: 104px 0 96px; }
.offclock .section-title { max-width: 22ch; }
.cards { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.card h3 { margin: 0 0 10px; font-size: 20px; font-weight: 700; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); }

/* Books */
.books { padding: 0 0 104px; }
.books .lede { margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 36em; }
.book-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; }
.book-list li { border-top: 1px solid var(--line); padding: 18px 0; }
.book-title { display: block; font-size: 18px; font-weight: 700; font-style: normal; }
.book-meta { display: block; margin-top: 4px; font-size: 15px; color: var(--subtle); }

/* Q&A */
.qa { background: var(--night); color: #fff; padding: 104px 0; }
.qa .eyebrow { color: var(--night-accent); }
.qa-list { margin: 48px 0 0; border-bottom: 1px solid var(--night-line); }
.qa-item { display: flex; flex-wrap: wrap; gap: 8px 48px; padding: 28px 0; border-top: 1px solid var(--night-line); }
.qa-item h3 { flex: 1 1 260px; margin: 0; font-size: 19px; font-weight: 700; line-height: 1.4; }
.qa-item p { flex: 999 1 420px; min-width: 0; margin: 0; font-size: 17px; line-height: 1.65; color: var(--night-text); }

/* Faith */
.faith { max-width: 760px; margin: 0 auto; padding: 112px 24px; text-align: center; }
.faith blockquote { margin: 0; }
.faith blockquote p {
  margin: 0; font-family: "Newsreader", Georgia, serif; font-style: italic;
  font-size: clamp(24px, 3.2vw, 34px); line-height: 1.4; color: var(--ink);
}
.faith cite { display: block; margin-top: 20px; font-size: 16px; font-style: normal; font-weight: 600; color: var(--muted); }
.faith .note { margin: 24px auto 0; font-size: 17px; line-height: 1.6; color: var(--muted); max-width: 34em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  padding-top: 32px; padding-bottom: 32px; font-size: 14px; color: var(--subtle);
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--subtle); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media print {
  .site-nav, .skip, .photo { display: none; }
  .qa { background: none; color: var(--ink); }
  .qa-item p { color: var(--muted); }
}
