:root {
  --bg: #FAF6F0;
  --band: #F3ECE3;
  --ink: #2A211B;
  --body: #5A4C42;
  --muted: #7A6556;
  --line: #DCCFC1;
  --accent: #B4532A;
  --accent-dark: #8F3F1E;
  --photo: #EADFD3;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

/* <picture> wrappers (WebP sources) shouldn't affect layout; the img keeps its own classes */
picture { display: contents; }
picture > source { display: none; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2 { font-family: var(--serif); font-weight: 600; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: #A4471F; }
a:hover { color: #7C3415; }

.container { max-width: 1160px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */
.site-header {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  padding-top: 26px; padding-bottom: 26px;
}
.brand { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 26px; align-items: center; font-size: 15px; font-weight: 500; }
.site-header nav a { color: var(--body); text-decoration: none; }
.site-header nav a:hover { color: var(--ink); }
.site-header nav a[aria-current="page"] { color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; text-decoration: none; line-height: 1.2;
  transition: background .15s ease, color .15s ease;
}
.btn-accent, .site-header nav a.btn-accent { background: var(--accent); color: #fff; padding: 12px 18px; }
.btn-accent:hover, .site-header nav a.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.contact .btn-accent { padding: 15px 26px; }
.btn-outline { border: 1.5px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }

a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Hero */
.hero {
  display: flex; flex-wrap: wrap-reverse; gap: 56px; align-items: center;
  padding-top: 48px; padding-bottom: 88px;
}
.hero-text { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-size: 16px; color: var(--muted); font-weight: 500; }
.hero h1 { font-size: clamp(40px, 5.2vw, 60px); line-height: 1.08; }
.lead { font-size: 19px; line-height: 1.65; color: var(--body); max-width: 560px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions.center { justify-content: center; }

.hero-photo {
  flex: 1 1 400px; min-width: 260px; height: 540px;
  border-radius: 28px 28px 28px 120px; object-fit: cover; object-position: center 30%;
  background: var(--photo); max-width: 100%;
}
.placeholder { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 15px; }

/* Bands */
.band { background: var(--band); }
.band .split { padding-top: 80px; padding-bottom: 80px; }
#experience .split { padding-top: 0; padding-bottom: 88px; }
.split { display: flex; flex-wrap: wrap; gap: 48px; }
.split > h2, .section-intro { flex: 1 1 300px; }
.split h2 { font-size: 38px; line-height: 1.15; }
.prose { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; font-size: 18px; line-height: 1.7; color: #4A3D34; }
.section-intro { display: flex; flex-direction: column; gap: 16px; }
.section-intro p { color: var(--body); }
.link { font-weight: 600; }

/* Home: embedded X thread */
.story { padding-top: 80px; padding-bottom: 80px; align-items: center; }
.tweet-embed { flex: 2 1 560px; min-width: 0; }
.tweet-embed .twitter-tweet { margin-left: auto !important; margin-right: auto !important; }
/* Fallback styling, shown until (or if) the X widget loads */
.tweet-embed blockquote.twitter-tweet {
  width: 100% !important; max-width: 550px !important; box-sizing: border-box; margin: 0 auto !important;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px;
  color: var(--body); line-height: 1.6;
}
.tweet-embed blockquote.twitter-tweet p { margin: 0 0 14px; color: var(--ink); font-size: 17px; }

/* Timeline */
.timeline { flex: 2 1 560px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.timeline li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 22px 0; border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.role { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.where { color: var(--muted); }

/* Contact */
.contact {
  display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center;
  padding-top: 96px; padding-bottom: 64px;
}
.contact h2 { font-size: clamp(32px, 4vw, 48px); max-width: 720px; line-height: 1.15; }
.contact p { color: var(--body); font-size: 18px; }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}

/* Inner pages */
h3 { font-family: var(--serif); font-weight: 600; margin: 0; color: var(--ink); font-size: 22px; line-height: 1.25; }

.page-hero {
  display: flex; flex-wrap: wrap-reverse; gap: 48px; align-items: center;
  padding-top: 40px; padding-bottom: 80px;
}
.page-hero-text { flex: 2 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.page-hero h1, .page-intro h1 { font-size: clamp(36px, 4.6vw, 54px); line-height: 1.1; }
.page-hero-photo {
  flex: 1 1 280px; min-width: 220px; max-width: 380px; aspect-ratio: 1; height: auto;
  border-radius: 28px 28px 28px 96px; object-fit: cover; object-position: center 30%;
}

.page-intro { display: flex; flex-direction: column; gap: 22px; padding-top: 40px; padding-bottom: 48px; max-width: 900px; margin-left: auto; margin-right: auto; }
.page-intro .lead { max-width: 680px; }

.stage { margin: 0 auto; padding-bottom: 80px; }
.stage img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: cover; border-radius: 28px; }

.section-title { font-size: 38px; line-height: 1.15; margin-bottom: 32px; }
.values, .topics { padding-top: 88px; padding-bottom: 88px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.card p { color: var(--body); line-height: 1.6; }

#experience > .container { padding-top: 88px; padding-bottom: 88px; }
.roles { display: flex; flex-direction: column; }
.role-block {
  display: flex; flex-wrap: wrap; gap: 16px 48px;
  padding: 32px 0; border-top: 1px solid var(--line);
}
.role-block:last-child { border-bottom: 1px solid var(--line); }
.role-block > header { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; }
.role-block .prose { flex: 2 1 520px; }

.prose.small { font-size: 17px; gap: 14px; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }

.split-pad { padding-top: 88px; padding-bottom: 88px; }

.tags { flex: 2 1 560px; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; font-size: 15px; color: var(--ink); }

.prose ul.checklist { list-style: none; padding-left: 0; gap: 14px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

/* Contact */
.contact-hero { display: flex; flex-wrap: wrap-reverse; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 88px; }
.contact-hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.contact-hero h1 { font-size: clamp(44px, 6vw, 68px); line-height: 1.05; }
.contact-photo {
  flex: 0 1 380px; min-width: 240px; width: 100%; max-width: 380px; aspect-ratio: 1; height: auto;
  object-fit: cover; object-position: center 30%; border-radius: 28px 28px 28px 120px;
}
.btn-lg { padding: 15px 26px; }
.contact-email { color: var(--muted); font-size: 15px; }
.contact-reasons { padding-top: 88px; padding-bottom: 88px; }
a.reason { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.reason:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(42, 33, 27, 0.4); }
.reason-link { margin-top: auto; padding-top: 6px; font-weight: 600; color: #A4471F; }
a.reason:hover .reason-link { color: #7C3415; }
.contact-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 72px; padding-bottom: 72px; }
.meta-item { display: flex; flex-direction: column; gap: 6px; }
.meta-item .eyebrow { font-size: 14px; }
.meta-value { font-family: var(--serif); font-size: 22px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { a.reason { transition: none; } a.reason:hover { transform: none; } }

/* Experience / Recommendations tabs */
.exp-head { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.exp-head .section-title { margin-bottom: 0; }
.exp-head .platform-switch { margin-bottom: 0; }
.recs-panel { display: flex; flex-direction: column; gap: 20px; }
.recs-panel[hidden] { display: none; }
.rec-slides:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 22px; }
.rec-controls { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; margin-top: -12px; }
.rec-arrow { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rec-arrow:hover { border-color: var(--ink); }
.rec-arrow:focus-visible, .rec-dot:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rec-dots { display: flex; gap: 2px; }
.rec-dot { width: 28px; height: 44px; border: 0; background: transparent; cursor: pointer; position: relative; padding: 0; }
.rec-dot::after { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--line); transition: background .15s ease, transform .15s ease; }
.rec-dot[aria-current="true"]::after { background: var(--accent); transform: scale(1.2); }
.rec-count { color: var(--muted); font-size: 14px; font-weight: 500; margin-right: 4px; }

/* Recommendations */
.recs { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 8px; }
.recs-head { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.recs-head .section-title { margin-bottom: 0; }
.recs-head .platform-switch { margin-bottom: 0; flex-wrap: wrap; }
.rec[hidden] { display: none; }
.rec { margin: 0; background: #fff; border-radius: 22px; padding: 72px 40px 40px; display: flex; flex-direction: column; gap: 24px; position: relative; }
.rec::before { content: "\201C"; font-family: var(--serif); font-size: 96px; line-height: 1; color: var(--accent); position: absolute; top: 14px; left: 34px; opacity: .35; }
.rec blockquote { margin: 0; position: relative; max-width: 820px; font-size: 18px; flex: none; }
.rec figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 18px; border-top: 1px solid var(--line); }
.rec-name { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); text-decoration: none; }
.rec-name:hover { color: #A4471F; }
.rec-meta { color: var(--muted); font-size: 15px; }
.rec-source { margin-top: 12px; color: var(--muted); font-size: 14px; }

/* Event status */
.event-status { align-self: center; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.event-status.is-upcoming { background: var(--accent); color: #fff; }
.event-status.is-past { color: var(--muted); border: 1px solid var(--line); }
.events li.is-past .event-name { color: #5A4C42; }
.events li.is-upcoming .event-date { color: var(--accent-dark); }

/* Platform switch */
.platform-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px; }
.seg { font: inherit; font-size: 15px; font-weight: 600; color: var(--body); background: transparent; border: 0; border-radius: 999px; padding: 10px 20px; min-height: 44px; cursor: pointer; }
.seg:hover { color: var(--ink); }
.seg[aria-pressed="true"] { background: var(--accent); color: #fff; }
.seg:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.posts-empty { margin-top: 24px; color: var(--muted); }

/* Writing */
.posts-wrap { padding-top: 64px; padding-bottom: 88px; }
.post-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--body);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; cursor: pointer; min-height: 44px;
}
.chip:hover { border-color: var(--muted); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.post-card {
  position: relative; background: #fff; border-radius: 22px; padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.post-platforms { margin-left: auto; display: inline-flex; gap: 6px; }
.post-platforms .post-platform { margin-left: 0; }
.post-card[hidden] { display: none; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(42, 33, 27, 0.4); }
.post-card:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; color: var(--muted); }
.post-topic { color: #8F3F1E; font-weight: 600; }
.post-platform { margin-left: auto; font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.post-card h2 { font-size: 23px; line-height: 1.25; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 22px; }
.post-card h2 a:focus-visible { outline: none; }
.post-excerpt { color: var(--body); line-height: 1.6; flex: 1; }
.post-link { font-weight: 600; color: #A4471F; margin-top: 4px; }
.post-card:hover .post-link { color: #7C3415; }
@media (prefers-reduced-motion: reduce) { .post-card { transition: none; } .post-card:hover { transform: none; } }

/* Speaking hero */
.speak-hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 88px; }
.speak-hero-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.speak-hero h1 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.1; }
.speak-hero-photo { flex: 1.25 1 460px; min-width: 0; margin: 0; }
.speak-hero-photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% center;
  border-radius: 28px 28px 120px 28px; box-shadow: 0 24px 48px -28px rgba(42, 33, 27, 0.45);
}

/* Speaking lineup */
.lineup { padding-top: 88px; padding-bottom: 88px; }
.lineup-head { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.lineup-head .section-title { margin-bottom: 0; }
.legend { color: var(--muted); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.lineup-cols { display: flex; flex-direction: column; gap: 56px; margin-top: 32px; }
.lineup-col { display: flex; flex-wrap: wrap; gap: 16px 48px; }
.lineup-col > h3 { flex: 1 1 260px; font-size: 26px; }
.events { flex: 3 1 600px; min-width: 0; list-style: none; margin: 0; padding: 0; }
.events li {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: baseline; gap: 4px 24px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.events li:last-child { border-bottom: 1px solid var(--line); }
.event-date { font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.event-body { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; min-width: 0; }
.event-name { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.event-meta { color: var(--muted); }
.badge {
  justify-self: end; font-size: 13px; font-weight: 500; color: #8F3F1E;
  border: 1px solid #E2BFAE; border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}

@media (max-width: 640px) {
  .lineup { padding-top: 64px; padding-bottom: 64px; }
  .rec-controls { justify-content: flex-start; margin-top: -8px; }
  .recs { padding-top: 64px; padding-bottom: 64px; }
  .rec { padding: 60px 22px 28px; }
  .rec::before { left: 20px; font-size: 80px; }
  .rec blockquote { font-size: 17px; }
  .contact-hero { padding-top: 24px; padding-bottom: 64px; gap: 32px; }
  .contact-photo { max-width: 280px; border-radius: 22px 22px 22px 72px; }
  .contact-reasons, .contact-meta { padding-top: 56px; padding-bottom: 56px; }
  .posts-wrap { padding-top: 40px; padding-bottom: 64px; }
  .post-grid { grid-template-columns: 1fr; }
  .speak-hero { padding-top: 24px; padding-bottom: 64px; gap: 32px; }
  .speak-hero-photo img { border-radius: 22px 22px 72px 22px; }
  .events li { grid-template-columns: minmax(0, 1fr) auto; }
  .event-date { grid-column: 1 / -1; }
  .section-title { font-size: 30px; }
  .values, .topics, .split-pad, #experience > .container, .story { padding-top: 64px; padding-bottom: 64px; }
  .tweet-embed blockquote.twitter-tweet { padding: 22px; }
  .container { padding-left: 20px; padding-right: 20px; }
  .site-header nav { gap: 18px; }
  .hero { padding-top: 24px; gap: 32px; }
  .hero-photo { height: 380px; min-width: 0; }
  .split h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
