:root {
  --paper: #F7F3EC;
  --paper-alt: #F0EAE0;
  --ink: #1C1B18;
  --ink-soft: #4A473F;
  --brick: #8B2E2E;
  --slate: #2B4C6F;
  --rule: #D8D0C0;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171613;
    --paper-alt: #1E1C18;
    --ink: #F2EEE4;
    --ink-soft: #C9C4B6;
    --brick: #D9756A;
    --slate: #7FA3C9;
    --rule: #35322C;
  }
}
:root[data-theme="dark"] {
  --paper: #171613;
  --paper-alt: #1E1C18;
  --ink: #F2EEE4;
  --ink-soft: #C9C4B6;
  --brick: #D9756A;
  --slate: #7FA3C9;
  --rule: #35322C;
}

html { scroll-padding-top: env(safe-area-inset-top, 0px); height: 100%; }
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Source Sans 3', -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Top nav */
.topnav {
  position: sticky;
  top: 0;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  z-index: 10;
}
.topnav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  font-family: 'Fraunces', serif;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.navlinks {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  .navlinks { gap: 14px 16px; }
  .navlinks a { font-size: 0.88rem; }
}
.navlinks a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.96rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}
.navlinks a:hover { color: var(--ink); }
.navlinks a.active {
  color: var(--ink);
  border-bottom-color: var(--brick);
}

main { padding: 64px 0 80px; }

.page-title {
  font-size: clamp(2.1rem, 6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 28px;
}

.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--brick);
  margin-bottom: 20px;
}
.eyebrow-rule::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--brick);
  display: inline-block;
}

/* Home hero */
.hero { padding-bottom: 8px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 780px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
}
.hero-headline {
  font-size: clamp(2.2rem, 5.2vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
  color: var(--ink);
}
.hero-headline em {
  font-style: italic;
  color: var(--brick);
  font-weight: 600;
}
.hero .tagline {
  margin-top: 22px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  line-height: 1.55;
}
.hero-photo-frame {
  position: relative;
  padding: 14px;
  border: 1px solid var(--brick);
  border-radius: 4px;
}
.hero-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-photo-caption {
  position: absolute;
  left: 28px;
  bottom: -18px;
  background: var(--brick);
  color: #fff;
  padding: 12px 18px;
  border-radius: 4px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.caption-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 1rem;
}
.caption-role {
  font-size: 0.76rem;
  color: rgba(255,255,255,0.85);
}
.sub-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 28px;
  padding: 8px 16px;
  background: var(--brick);
  border-radius: 30px;
}
.sub-badge-num {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
}
.sub-badge-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}
.home-video {
  margin-top: 48px;
  margin-bottom: 0;
}
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 8px;
  margin-top: 24px;
  padding-bottom: 8px;
}
.quick-links a {
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  white-space: nowrap;
}
.quick-links a:hover {
  color: var(--ink);
  border-color: var(--ink-soft);
}
.stats-strip {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
@media (max-width: 620px) {
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
.stat-num {
  font-family: 'Fraunces', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.stat-unit { color: var(--brick); }
.stat-label {
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  line-height: 1.3;
}

/* Homepage section previews */
.home-section {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.home-section-title {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
}
.home-section-link {
  font-size: 0.9rem;
  color: var(--slate);
  text-decoration: none;
  white-space: nowrap;
}
.home-section-link:hover { color: var(--brick); }
.home-section-lead {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 52ch;
  margin-bottom: 20px;
}
.home-teaser-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 22px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.home-teaser-card:hover { border-color: var(--brick); }
.teaser-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
}
.teaser-card-sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.teaser-avatars {
  display: flex;
  margin-bottom: 16px;
}
.teaser-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--slate);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.8rem;
  border: 2px solid var(--paper);
  margin-left: -10px;
}
.teaser-avatar:first-child { margin-left: 0; }
.teaser-avatar-more {
  background: var(--brick);
  font-size: 0.72rem;
}

.teaser-covers {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.teaser-covers img {
  width: 56px;
  height: 84px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--rule);
  box-shadow: 2px 2px 6px rgba(0,0,0,0.06);
}

.home-do-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 700px) {
  .home-do-grid { grid-template-columns: 1fr; }
}
.home-do-card {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}
.home-do-card:hover { border-color: var(--brick); }
.home-do-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
  line-height: 1;
}
.home-do-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.home-do-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
}

/* Who I Am page */
.about p {
  font-size: 1.12rem;
  max-width: 62ch;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.about p strong { color: var(--ink); font-weight: 600; }
.about-subhead {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  margin: 36px 0 16px;
}
.about .timeline {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
}
.about .timeline .row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.about .timeline .row:last-child { border-bottom: 1px solid var(--rule); }
.about .timeline .yr {
  font-family: 'Fraunces', serif;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.about .timeline .what strong { display: block; color: var(--ink); font-weight: 600; }
.about .timeline .what span { color: var(--ink-soft); font-size: 0.95rem; }
.about-photo {
  margin: 8px 0 36px;
  width: 220px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.about-photo img { width: 100%; display: block; }

/* What I Do cards */
.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 40px;
}
@media (max-width: 620px) {
  .cards { grid-template-columns: 1fr; gap: 32px; }
}
.card {
  border-top: 2px solid var(--brick);
  padding-top: 16px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: opacity 0.15s ease;
}
.card:hover { opacity: 0.7; }
.card:nth-child(3n+2) { border-top-color: var(--slate); }
.card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }

/* Detail pages (What I Do sub-pages) */
.back-link {
  display: inline-block;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 28px;
}
.back-link:hover { color: var(--ink); }
.detail-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 24px;
}
.detail p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 0 20px;
}
.detail-cta {
  display: inline-block;
  margin-top: 16px;
  color: var(--slate);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.detail-cta:hover { border-bottom-color: var(--slate); }

/* Books page */
.books-lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom: 36px;
}
.books-photo {
  margin: 0 0 36px;
  max-width: 320px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.books-photo img { width: 100%; display: block; }
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 28px;
}
@media (max-width: 620px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
}
.book-item { display: flex; flex-direction: column; }
.book-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--rule);
  margin-bottom: 12px;
  background: var(--paper-alt);
}
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 8px;
  width: fit-content;
}
.tag-institutions { background: rgba(43,76,111,0.12); color: var(--slate); }
.tag-students { background: rgba(139,46,46,0.12); color: var(--brick); }
.tag-leaders { background: rgba(74,71,63,0.14); color: var(--ink-soft); }
.book-name {
  font-family: 'Fraunces', serif;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}
.book-desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 8px 0 12px;
}
.book-amazon-btn {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  background: var(--brick);
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  width: fit-content;
}
.book-amazon-btn:hover { opacity: 0.88; }
.books-cta {
  display: inline-block;
  margin-top: 32px;
  color: var(--slate);
  text-decoration: none;
  font-size: 1rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.books-cta:hover { border-bottom-color: var(--slate); }

/* Video embed */
.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid var(--rule);
  margin-bottom: 40px;
  background: var(--paper-alt);
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

.video-card-embed {
  margin-bottom: 40px;
}
.video-card-link {
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px;
  background: var(--paper-alt);
  transition: border-color 0.15s ease;
}
.video-card-link:hover { border-color: var(--brick); }
.video-card-thumb {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--brick);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-button {
  color: #fff;
  font-size: 1.6rem;
  margin-left: 4px;
}
.video-card-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.video-card-sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
@media (max-width: 480px) {
  .video-card-link { flex-direction: column; text-align: center; gap: 14px; }
}

/* Content / Follow page */
.follow .lead {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom: 32px;
}
.follow-links { display: flex; flex-direction: column; gap: 0; }
.follow-link {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: var(--ink);
}
.follow-links > *:last-child { border-bottom: 1px solid var(--rule); }
.follow-link .platform { font-family: 'Fraunces', serif; font-size: 1.25rem; font-weight: 500; }
.follow-link .handle { color: var(--ink-soft); font-size: 0.98rem; white-space: nowrap; }
.follow-link:hover .handle { color: var(--brick); }

.content-subsection {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--rule);
}
.subsection-title {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
}
.subsection-lead {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 48ch;
  margin-bottom: 20px;
}
.shorts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 780px) {
  .shorts-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .shorts-grid { grid-template-columns: repeat(2, 1fr); }
}
.short-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding-bottom: 177.77%;
  height: 0;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--paper-alt);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.short-card:hover { border-color: var(--brick); }
.short-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brick);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.blog-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 700px) {
  .blog-category-grid { grid-template-columns: 1fr; }
}
.blog-category-card {
  padding: 20px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  display: block;
  color: inherit;
  transition: border-color 0.15s ease;
}
.blog-category-card:hover { border-color: var(--brick); }
.blog-category-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.blog-category-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) {
  .testimonial-grid { grid-template-columns: 1fr; }
}
.testimonial-card {
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 22px;
  background: var(--paper-alt);
}
.t-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.t-avatar {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--slate);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 0.92rem;
}
.t-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 0.98rem; color: var(--ink); }
.t-role { font-size: 0.78rem; color: var(--ink-soft); line-height: 1.3; margin-top: 2px; }
.t-stars { color: var(--brick); font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 10px; }
.t-quote { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; font-style: italic; margin: 0; }

/* Contact page */
.contact p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 48ch;
  margin-bottom: 32px;
}
.contact .email-link {
  font-size: 1.3rem;
  color: var(--slate);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 3px;
  font-family: 'Fraunces', serif;
}
.contact .email-link:hover { border-bottom-color: var(--slate); }

.invite-block {
  margin-top: 56px;
  padding: 28px;
  background: var(--paper-alt);
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.invite-title {
  font-family: 'Fraunces', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}
.invite-text {
  color: var(--ink-soft);
  font-size: 1rem;
  max-width: 54ch;
  margin-bottom: 20px;
}
.invite-cta {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--brick);
  padding: 10px 18px;
  border-radius: 4px;
  text-decoration: none;
}
.invite-cta:hover { opacity: 0.88; }

/* Blog post / listing pages */
.post-list { display: flex; flex-direction: column; }
.post-item {
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  display: block;
}
.post-list > *:last-child { border-bottom: 1px solid var(--rule); }
.post-item-title {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.post-item-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.post-item-excerpt {
  font-size: 0.96rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.post-empty {
  padding: 40px 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
  border-top: 1px solid var(--rule);
}

footer {
  border-top: 1px solid var(--rule);
  padding: 32px 0 56px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}
