@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Geist:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #f3efe7;
  --surface: #f8f5ef;
  --surface-soft: #ece6db;
  --text: #1f2a25;
  --muted: #68716b;
  --line: rgba(31, 42, 37, .20);
  --line-strong: rgba(31, 42, 37, .42);
  --accent: #52695d;
  --accent-soft: rgba(82, 105, 93, .12);
  --shadow: 0 18px 60px rgba(46, 51, 45, .08);
  --max: 1120px;
  --reading: 760px;
}

html[data-theme="dark"] {
  --bg: #111815;
  --surface: #17201c;
  --surface-soft: #1c2823;
  --text: #e9e4d8;
  --muted: #9ea9a2;
  --line: rgba(233, 228, 216, .18);
  --line-strong: rgba(233, 228, 216, .42);
  --accent: #a8c0b2;
  --accent-soft: rgba(168, 192, 178, .10);
  --shadow: 0 18px 60px rgba(0, 0, 0, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
button { font: inherit; }
::selection { background: var(--accent-soft); }

.site-shell { width: min(calc(100% - 36px), var(--max)); margin: 0 auto; }
.reading-shell { width: min(calc(100% - 36px), var(--reading)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(16px);
}
.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.035em;
  text-decoration: none;
  white-space: nowrap;
}
.brand span { color: var(--accent); }
.nav {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a, .utility-button {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header-tools { display: flex; gap: 7px; margin-left: 3px; }
.utility-button {
  display: inline-flex;
  min-width: 39px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.utility-button:hover { border-color: var(--line-strong); background: var(--accent-soft); }

main { padding: 82px 0 92px; }
.eyebrow, .meta, .tag, .section-index, .status, .footer-note, .project-links, .tiny {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .055em;
  line-height: 1.6;
  text-transform: uppercase;
  color: var(--muted);
}
.hero { max-width: 880px; }
.hero-with-photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: 62px;
  align-items: start;
  max-width: none;
}
.hero-copy { max-width: 880px; }
.hero-profile-column {
  display: flex;
  width: 276px;
  flex-direction: column;
  align-items: flex-end;
  justify-self: end;
}
.profile-photo-frame {
  position: relative;
  display: grid;
  width: 276px;
  height: 276px;
  place-items: center;
  justify-self: end;
  isolation: isolate;
  margin-top: 78px;
}
.profile-photo-ring {
  position: absolute;
  inset: 5px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: translate(11px, -9px);
  transition: transform .35s ease, border-color .35s ease;
}
.profile-photo-frame::before {
  position: absolute;
  inset: 18px;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent-soft);
  content: "";
  transform: translate(-16px, 15px);
}
.profile-photo {
  position: relative;
  width: 246px;
  height: 246px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}
.profile-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: saturate(.76) contrast(.98);
  transform: scale(1.035);
  transition: filter .35s ease, transform .35s ease;
}
.profile-photo-dot {
  position: absolute;
  right: 23px;
  bottom: 30px;
  width: 13px;
  height: 13px;
  border: 3px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--line-strong);
}
.profile-photo-frame:hover .profile-photo-ring { border-color: var(--line-strong); transform: translate(7px, -5px); }
.profile-photo-frame:hover img { filter: saturate(.92) contrast(1); transform: scale(1.065); }
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.08;
  letter-spacing: -.045em;
  margin: 0;
}
h1 { max-width: 900px; font-size: clamp(52px, 6.4vw, 84px); font-weight: 600; }
.hero h1 { max-width: 760px; font-size: clamp(42px, 4.85vw, 64px); }
h2 { font-size: clamp(36px, 5vw, 58px); font-weight: 600; }
h3 { font-size: clamp(25px, 3vw, 35px); font-weight: 600; }
h4 { font-size: 22px; font-weight: 600; }
.hero .eyebrow { margin-bottom: 18px; }
.hero-subtitle {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
}
.hero-about { max-width: 760px; margin-top: 30px; color: var(--muted); font-size: 16px; line-height: 1.68; }
.hero-about strong { color: var(--text); font-weight: 600; }
.hero-focus { width: 246px; margin-top: 58px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 29px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: .035em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { background: var(--accent-soft); border-color: var(--accent); transform: translateY(-2px); }
.button.secondary { border-color: var(--line); color: var(--muted); }

.divider { height: 1px; margin: 72px 0; background: var(--line); }
.section-head { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.section-head p { max-width: 560px; margin: 0; color: var(--muted); }
.section-link { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }

.intro-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); gap: 78px; }
.prose p { margin: 0 0 19px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); }
.side-note { border-left: 1px solid var(--line); padding-left: 23px; color: var(--muted); font-size: 15px; }
.side-note .tiny { display: block; margin-bottom: 10px; color: var(--accent); }

.simple-list { border-top: 1px solid var(--line); }
.list-row {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 20px 0 21px;
  border-bottom: 1px solid var(--line);
}
.list-row:hover .row-title { color: var(--accent); }
.row-title { display: inline-block; font-family: "Fraunces", Georgia, serif; font-size: 27px; line-height: 1.12; letter-spacing: -.035em; text-decoration: none; }
.row-description { margin: 6px 0 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.row-arrow { color: var(--muted); }

.page-title { max-width: 850px; }
.page-title h1 { font-size: clamp(56px, 8vw, 94px); }
.page-title p { max-width: 680px; margin: 25px 0 0; color: var(--muted); font-size: 20px; }
.page-title .eyebrow { margin-bottom: 15px; }
.page-body { margin-top: 58px; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 32px; }
.filter-chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.filter-chip.active { border-color: var(--line-strong); color: var(--text); background: var(--accent-soft); }

.event-block, .guide-block, .project-card, .note-card {
  border-top: 1px solid var(--line);
  padding: 23px 0 25px;
}
.event-block:last-child, .guide-block:last-child, .project-card:last-child { border-bottom: 1px solid var(--line); }
.event-block h3, .guide-block h3, .project-card h3 { margin: 7px 0 6px; }
.event-block p, .guide-block p, .project-card p { max-width: 730px; margin: 0; color: var(--muted); }
.guide-block { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 22px; }
.guide-status { align-self: center; }
.status.open { color: var(--accent); }

.project-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; }
.project-links { display: flex; gap: 13px; align-self: center; }
.project-links a { color: var(--muted); }
.project-links a:hover { color: var(--text); }

.list-100-page { min-height: 62vh; }
.list-100-title h1 { margin-bottom: 0; }
.list-100-title p { max-width: 760px; }
.list-100-body { margin-top: 31px; }
.list-100-meta { margin: 0 0 20px; }
.list-100-message { margin: 0 0 16px; }
.list-100 { padding: 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.goal {
  display: grid;
  grid-template-columns: 52px 26px minmax(0, 1fr);
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.goal-number { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .04em; padding-top: 4px; }
.goal-state { font-family: "JetBrains Mono", monospace; color: var(--muted); }
.goal.done .goal-state { color: var(--accent); }
.goal-text { line-height: 1.5; }

.post-feed-section { margin-top: 8px; }
.post-feed-section .divider { margin: 56px 0 30px; }
.post-feed-section .section-head { margin-bottom: 10px; }
.post-feed-section h2 { font-size: clamp(32px, 4.4vw, 48px); }
.post-feed-note { max-width: 680px; margin: 0 0 22px; color: var(--muted); }

.article-header { margin-bottom: 43px; }
.article-header h1 { font-size: clamp(48px, 7vw, 78px); }
.article-header .meta { margin-top: 19px; }
.article { font-size: 18px; }
.article h2 { margin: 52px 0 17px; font-size: 39px; }
.article h3 { margin: 36px 0 13px; font-size: 28px; }
.article p, .article ul { margin: 0 0 20px; }
.article li { margin-bottom: 6px; }
.article blockquote { margin: 32px 0; padding: 3px 0 3px 20px; border-left: 2px solid var(--accent); color: var(--muted); font-size: 21px; }
.article-back { display: inline-block; margin-bottom: 28px; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .055em; text-transform: uppercase; }

.site-footer { border-top: 1px solid var(--line); padding: 25px 0 34px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; gap: 15px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 920px) {
  .header-inner { align-items: flex-start; flex-wrap: wrap; gap: 4px 16px; padding: 12px 0 10px; }
  .nav { order: 3; width: 100%; margin-left: 0; padding-top: 5px; }
  .header-tools { margin-left: auto; }
  main { padding-top: 62px; }
  .hero-with-photo { grid-template-columns: minmax(0, 1fr) 190px; gap: 30px; }
  .hero-profile-column { width: 190px; }
  .profile-photo-frame { width: 190px; height: 190px; margin-top: 70px; }
  .hero-focus { width: 168px; margin-top: 42px; padding-left: 17px; font-size: 14px; }
  .profile-photo { width: 168px; height: 168px; }
  .profile-photo-frame::before { inset: 13px; transform: translate(-10px, 10px); }
  .profile-photo-ring { inset: 3px; transform: translate(7px, -6px); }
  .profile-photo-dot { right: 14px; bottom: 19px; width: 11px; height: 11px; }
  .intro-grid { grid-template-columns: 1fr; gap: 35px; }
  .side-note { max-width: 650px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .site-shell, .reading-shell { width: min(calc(100% - 26px), var(--max)); }
  h1 { font-size: clamp(46px, 14vw, 66px); }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .hero-with-photo { grid-template-columns: 1fr; gap: 21px; }
  .hero-profile-column { order: -1; width: 100%; align-items: flex-start; }
  .profile-photo-frame { justify-self: start; width: 142px; height: 142px; margin-top: 0; }
  .hero-focus { width: min(100%, 340px); margin-top: 30px; padding-left: 16px; font-size: 14px; }
  .profile-photo { width: 126px; height: 126px; }
  .profile-photo-frame::before { inset: 10px; transform: translate(-8px, 8px); }
  .profile-photo-ring { inset: 3px; transform: translate(6px, -5px); }
  .profile-photo-dot { right: 10px; bottom: 14px; width: 10px; height: 10px; border-width: 2px; }
  .hero-subtitle { font-size: 19px; }
  .divider { margin: 53px 0; }
  .section-head { display: block; }
  .section-link { display: inline-block; margin-top: 13px; }
  .list-row { grid-template-columns: 1fr auto; gap: 5px 14px; padding: 17px 0 18px; }
  .list-row .meta { grid-column: 1 / -1; }
  .row-title { font-size: 24px; }
  .guide-block { grid-template-columns: 48px minmax(0, 1fr); gap: 13px; }
  .guide-status { grid-column: 2; }
  .project-card { grid-template-columns: 1fr; gap: 13px; }
  .project-links { justify-self: start; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}


/* Speaking invitations */
.event-invite { max-width: 900px; }
.event-intro { max-width: 790px; }
.event-intro p { margin: 0 0 19px; color: var(--muted); font-size: 18px; line-height: 1.72; }
.event-request { margin-top: 42px; padding-top: 21px; border-top: 1px solid var(--line); }
.event-checklist { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: event-invite; border-top: 1px solid var(--line); }
.event-checklist li { counter-increment: event-invite; display: grid; grid-template-columns: 42px minmax(160px, .62fr) minmax(0, 1fr); gap: 18px; padding: 17px 0 18px; border-bottom: 1px solid var(--line); }
.event-checklist li::before { content: counter(event-invite, decimal-leading-zero); padding-top: 2px; color: var(--accent); font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: .055em; }
.event-checklist strong { color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.5; }
.event-checklist span { color: var(--muted); font-size: 16px; line-height: 1.55; }
.event-note { max-width: 790px; margin: 42px 0 0; padding: 17px 19px 18px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--text); font-size: 16px; line-height: 1.62; }
.event-contacts { margin-top: 46px; padding-top: 23px; border-top: 1px solid var(--line); }
.event-contacts h3 { margin: 7px 0 17px; }
.contact-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-button { display: inline-flex; min-width: 205px; flex-direction: column; gap: 4px; padding: 12px 15px 13px; border: 1px solid var(--line-strong); border-radius: 16px; color: var(--text); text-decoration: none; transition: background .2s ease, border-color .2s ease, transform .2s ease; }
.contact-button:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--text); transform: translateY(-2px); }
.contact-channel { color: var(--accent); font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .055em; line-height: 1.4; text-transform: uppercase; }
.contact-value { font-size: 15px; line-height: 1.45; }
@media (max-width: 680px) {
  .event-intro p { font-size: 16px; }
  .event-checklist li { grid-template-columns: 32px minmax(0, 1fr); gap: 3px 10px; padding: 15px 0 16px; }
  .event-checklist span { grid-column: 2; font-size: 15px; }
  .event-note { margin-top: 32px; font-size: 15px; }
  .event-contacts { margin-top: 34px; }
  .contact-buttons { display: grid; grid-template-columns: 1fr; }
  .contact-button { min-width: 0; }
}
