:root {
  color-scheme: light;
  --paper: #f4f7f5;
  --white: #fff;
  --ink: #152d33;
  --muted: #60777b;
  --line: #d4e1df;
  --ocean: #183d43;
  --ocean-soft: #24545a;
  --mint: #b7d8ca;
  --coral: #d98b6b;
  --display: "Outfit", sans-serif;
  --body: "Figtree", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { display: block; width: 100%; border-radius: 12px; }
a { color: inherit; text-decoration: none; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.site-header { position: sticky; z-index: 5; top: 0; background: rgb(244 247 245 / 94%); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.wordmark { font: 700 25px/1 var(--display); letter-spacing: 0; white-space: nowrap; }
.wordmark span { color: var(--coral); }
.nav-links { display: flex; align-items: center; gap: 30px; color: var(--muted); font-size: 13px; font-weight: 600; }
.nav-links a, .mobile-nav a { transition: color .2s ease; }
.nav-links a:hover, .mobile-nav a:hover { color: var(--ocean); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 12px; padding: 0 21px; border: 1px solid transparent; border-radius: 999px; font-size: 13px; font-weight: 700; transition: transform .2s ease, background-color .2s ease; }
.button, .contact-close { cursor: pointer; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ocean); color: var(--white); }
.button-dark:hover { background: var(--ocean-soft); }
.button-outline { border-color: #b6c6c4; color: var(--ink); }
.button-outline:hover { background: var(--white); }
.button-light { background: var(--mint); color: var(--ink); }
.button-light:hover { background: var(--white); }
[data-waitlist-open] { background: #f0a17e; color: var(--ink); }
[data-waitlist-open]:hover { background: #ffc09f; }
.mobile-nav { display: none; }
.contact-modal { width: min(620px, calc(100% - 32px)); max-width: none; max-height: min(90vh, 820px); padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 24px 80px rgb(21 45 51 / 25%); }
.contact-modal::backdrop { background: rgb(13 31 35 / 62%); backdrop-filter: blur(4px); }
.contact-modal-inner { position: relative; padding: 38px; }
.contact-close { position: absolute; top: 17px; right: 19px; display: grid; width: 38px; aspect-ratio: 1; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ocean); font: 28px/1 var(--body); }
.contact-modal h2 { margin-top: 15px; font-size: clamp(32px, 5vw, 43px); }
.contact-intro { margin-top: 10px; color: var(--muted); }
.contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 25px; }
.contact-field { display: grid; gap: 6px; color: var(--ocean); font-size: 13px; font-weight: 700; }
.contact-field-wide { grid-column: 1 / -1; }
.contact-field input, .contact-field textarea { width: 100%; border: 1px solid #b6c6c4; border-radius: 9px; padding: 11px 12px; background: var(--white); color: var(--ink); font: 400 15px/1.5 var(--body); }
.contact-field textarea { resize: vertical; }
.contact-field input:focus, .contact-field textarea:focus { outline: 2px solid var(--ocean-soft); outline-offset: 2px; }
.field-error { color: #a23d2b; font-size: 12px; font-weight: 500; }
.contact-status { min-height: 24px; margin-top: 14px; color: var(--ocean-soft); font-size: 14px; }
.contact-status.is-error { color: #a23d2b; }
.contact-submit { min-width: 150px; }
body.contact-modal-open { overflow: hidden; }
.intro { position: relative; display: grid; grid-template-columns: 1.03fr .78fr; align-items: center; gap: 10%; min-height: 650px; padding-block: 72px 92px; }
.intro-copy { position: relative; z-index: 1; padding-bottom: 14px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--ocean-soft); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.eyebrow-mark { width: 21px; height: 1px; background: var(--coral); }
.intro h1 { max-width: 680px; margin-top: 25px; font-size: clamp(56px, 6.2vw, 82px); letter-spacing: 0; }
.intro h1 span, .about h2 span { color: var(--ocean-soft); }
.lead { max-width: 500px; margin-top: 24px; color: var(--muted); font-size: 18px; line-height: 1.75; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.intro-note { margin-top: 30px; color: var(--muted); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.portrait-frame { position: relative; padding: 15px 15px 44px; background: var(--white); transform: rotate(2deg); box-shadow: 0 20px 45px rgb(21 45 51 / 12%); }
.portrait-frame::before { position: absolute; z-index: -1; inset: 23px -21px -17px 25px; border: 1px solid var(--coral); content: ""; }
.portrait-frame img { aspect-ratio: 4 / 4.65; object-fit: cover; }
.portrait-frame figcaption { display: flex; justify-content: space-between; padding-top: 14px; color: var(--muted); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.scroll-cue { position: absolute; bottom: 32px; left: 0; display: grid; width: 39px; aspect-ratio: 1; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ocean); font-size: 19px; }
.section-pad { padding-block: 112px; }
.about { display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: 12%; }
.about-photo { position: relative; padding: 0 22px 22px 0; }
.about-photo::after { position: absolute; z-index: -1; right: 0; bottom: 0; width: 83%; height: 83%; background: var(--mint); content: ""; }
.about-photo img { aspect-ratio: 5 / 4; object-fit: cover; }
.about-copy h2 { margin-top: 18px; font-size: clamp(42px, 5vw, 61px); letter-spacing: 0; }
.body-copy { max-width: 480px; margin-top: 25px; font-size: 17px; line-height: 1.8; }
.body-copy.muted { margin-top: 13px; color: var(--muted); font-size: 15px; }
.text-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 27px; padding-bottom: 7px; border-bottom: 1px solid var(--coral); color: var(--ocean); font-size: 13px; font-weight: 700; }
.workshops { overflow: hidden; background: #e8efec; }
.workshops .section-heading { margin-bottom: 32px; }
.workshop-controls { display: none; gap: 10px; }
.workshops.has-overflow .workshop-controls { display: flex; }
.carousel-button { display: grid; width: 42px; aspect-ratio: 1; place-items: center; border: 1px solid #b6c6c4; border-radius: 50%; background: transparent; color: var(--ocean); font: 20px/1 var(--body); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.carousel-button:hover:not(:disabled) { background: var(--ocean); color: var(--white); }
.carousel-button:disabled { opacity: .4; cursor: default; }
.carousel-button:focus-visible, .workshop-carousel:focus-visible { outline: 2px solid var(--ocean-soft); outline-offset: 4px; }
.workshop-carousel { display: grid; grid-auto-columns: minmax(260px, 31%); grid-auto-flow: column; gap: 22px; overflow-x: auto; padding: 5px 2px 18px; scroll-snap-type: x mandatory; scrollbar-color: #9ab5ad transparent; scrollbar-width: thin; }
.workshop-card { min-width: 0; overflow: hidden; border: 1px solid #d4e1df; border-radius: 16px; background: var(--white); scroll-snap-align: start; }
.workshop-card img { aspect-ratio: 1.45; object-fit: cover; }
.workshop-card-copy { padding: 18px 20px 21px; }
.workshop-card h3 { font-size: 20px; }
.workshop-card p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.portfolio { background: var(--ocean); color: var(--white); }
.portfolio-inner { padding-block: 72px 82px; }
.portfolio .section-heading { margin-bottom: 42px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 38px; margin-bottom: 62px; }
.section-heading h2 { margin-top: 17px; font-size: clamp(42px, 5vw, 61px); letter-spacing: 0; }
.section-heading > p { max-width: 345px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.eyebrow-light { color: var(--mint); }
.portfolio .section-heading h2 span { color: var(--mint); }
.portfolio .section-heading > p { color: rgb(255 255 255 / 68%); }
.project-row { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); align-items: center; gap: 8%; padding-block: 20px 42px; }
.project-row + .project-row { padding-top: 42px; border-top: 1px solid rgb(255 255 255 / 20%); }
.project-row > img { min-width: 0; height: clamp(220px, 25vw, 300px); object-fit: cover; }
.project-reverse > img { order: 2; }
.project-copy { position: relative; padding: 12px 0 12px 10px; }
.project-number { display: block; color: rgb(183 216 202 / 30%); font: 600 53px/1 var(--display); }
.project-type { margin-top: 14px; color: var(--mint); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.project-copy h3 { margin-top: 10px; font-size: 35px; }
.project-copy > p:not(.project-type) { max-width: 420px; margin-top: 16px; color: rgb(255 255 255 / 70%); line-height: 1.8; }
.text-link-light { color: var(--white); }
.section-heading-dark { color: var(--ink); }
.experience { padding-block: 108px 95px; }
.experience .section-heading { margin-bottom: 40px; }
.timeline { border-top: 1px solid var(--line); }
.timeline-row { display: grid; grid-template-columns: 1fr 2fr auto; align-items: center; gap: 24px; min-height: 109px; border-bottom: 1px solid var(--line); }
.date { color: var(--ocean-soft); font-size: 13px; font-weight: 700; }
.timeline-row h3, .education-row h3 { font-size: 23px; }
.timeline-row div p { margin-top: 7px; color: var(--muted); font-size: 14px; }
.timeline-icon { display: grid; width: 34px; aspect-ratio: 1; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--ocean-soft); }
.education { background: #e8efec; }
.education .section-pad { padding-block: 103px 112px; }
.education .section-heading { margin-bottom: 35px; }
.education-list { border-top: 1px solid #cbd9d5; }
.education-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 24px; padding-block: 29px; border-bottom: 1px solid #cbd9d5; }
.education-meta { display: flex; flex-direction: column; gap: 6px; color: var(--ocean-soft); font-size: 12px; font-weight: 700; }
.institution { margin-top: 7px; color: var(--ocean-soft); font-weight: 600; }
.education-desc { max-width: 520px; margin-top: 13px; color: var(--muted); font-size: 14px; }
.education-index { color: #90aaa3; font: 600 24px/1 var(--display); }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; min-height: 85px; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner p, .footer-inner > a:last-child, .footer-phone, .footer-legal a { color: var(--muted); font-size: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-legal a:hover { color: var(--ocean); }
.legal-modal .contact-modal-inner { max-height: min(90vh, 820px); overflow-y: auto; }
.legal-copy { margin-top: 20px; color: var(--muted); line-height: 1.8; }
.legal-copy p + p { margin-top: 1em; }
.book-intro { overflow: hidden; background: var(--ocean); color: var(--white); }
.book-grid { display: grid; grid-template-columns: .85fr 1fr; align-items: center; gap: 7%; min-height: 650px; padding-block: 82px; }
.book-art { position: relative; width: min(100%, 440px); justify-self: end; transform: rotate(-2deg); }
.book-art img { aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 16px 20px 40px rgb(0 0 0 / 28%); }
.book-art figcaption { padding-top: 13px; color: var(--mint); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.book-art figcaption span { padding-inline: 7px; color: var(--coral); }
.book-copy h1 { margin-top: 22px; font-size: clamp(68px, 9vw, 112px); letter-spacing: 0; }
.book-copy h1 span { color: var(--mint); }
.book-subtitle { margin-top: 18px; color: var(--mint); font: 500 23px/1.4 var(--display); }
.book-description { max-width: 530px; margin-top: 22px; color: rgb(255 255 255 / 73%); font-size: 17px; line-height: 1.8; }
.book-copy .button { margin-top: 29px; }
.back-link { display: block; width: fit-content; margin-top: 22px; color: rgb(255 255 255 / 72%); font-size: 13px; }
.back-link span { margin-right: 8px; }
.book-details { padding-block: 96px 115px; }
.book-details .section-heading { margin-bottom: 45px; }
.book-facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.book-facts article { min-height: 170px; padding: 20px 26px 24px 0; }
.book-facts article + article { padding-left: 26px; border-left: 1px solid var(--line); }
.fact-number { display: block; margin-bottom: 19px; color: #91aaa5; font: 600 19px/1 var(--display); }
.book-facts h3 { margin-top: 8px; font-size: 23px; }
.book-details blockquote { max-width: 870px; margin: 67px auto 0; color: var(--ocean); font: 500 clamp(27px, 4vw, 43px)/1.25 var(--display); text-align: center; }
.book-details cite { display: block; margin-top: 22px; color: var(--muted); font: 700 11px/1.4 var(--body); letter-spacing: .15em; text-transform: uppercase; }

@media (max-width: 760px) {
  .wrap { width: min(100% - 40px, 560px); }
  .nav { min-height: 67px; }
  .nav-links { display: none; }
  .nav-actions { gap: 7px; }
  .nav-actions .button { min-height: 39px; padding-inline: 11px; font-size: 11px; }
  .nav-cta { gap: 6px; }
  .mobile-nav { display: flex; gap: 23px; overflow-x: auto; padding: 11px 20px 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
  .contact-modal-inner { padding: 32px 22px 24px; }
  .contact-fields { grid-template-columns: 1fr; gap: 12px; margin-top: 19px; }
  .contact-field-wide { grid-column: auto; }
  .intro { grid-template-columns: 1fr; gap: 48px; min-height: auto; padding-block: 66px 90px; }
  .intro h1 { max-width: 530px; font-size: clamp(52px, 12vw, 75px); }
  .lead { font-size: 16px; }
  .portrait-frame { width: min(82%, 400px); justify-self: center; }
  .scroll-cue { bottom: 28px; }
  .section-pad { padding-block: 75px; }
  .about { grid-template-columns: 1fr; gap: 42px; }
  .about-photo { width: min(100%, 480px); }
  .about-copy h2 { font-size: 48px; }
  .workshops .section-heading { flex-direction: row; align-items: end; }
  .workshop-carousel { grid-auto-columns: minmax(76%, 310px); gap: 16px; }
  .workshop-card-copy { padding: 16px; }
  .portfolio-inner { padding-block: 54px 60px; }
  .portfolio .section-heading { margin-bottom: 30px; }
  .section-heading { align-items: start; flex-direction: column; gap: 17px; margin-bottom: 35px; }
  .section-heading h2 { font-size: 47px; }
  .project-row, .project-reverse { grid-template-columns: 1fr; gap: 20px; padding-block: 16px 30px; }
  .project-row + .project-row { padding-top: 30px; }
  .project-reverse > img { order: 0; }
  .project-copy h3 { font-size: 30px; }
  .experience { padding-block: 76px; }
  .timeline-row { grid-template-columns: 1fr auto; gap: 8px 18px; padding-block: 20px; }
  .date { grid-column: 1; }
  .timeline-row div { grid-column: 1; }
  .timeline-icon { grid-column: 2; grid-row: 1 / span 2; }
  .education .section-pad { padding-block: 75px; }
  .education-row { grid-template-columns: 1fr auto; gap: 14px; }
  .education-meta { grid-column: 1; }
  .education-row > div:nth-child(2) { grid-column: 1; }
  .education-index { grid-column: 2; grid-row: 1 / span 2; }
  .footer-inner { min-height: 80px; flex-wrap: wrap; padding-block: 16px; }
  .footer-inner p { order: 3; width: 100%; }
  .footer-legal { gap: 12px; }
  .book-grid { grid-template-columns: 1fr; gap: 50px; padding-block: 65px 75px; }
  .book-art { width: min(76%, 340px); }
  .book-copy h1 { font-size: 76px; }
  .book-subtitle { font-size: 20px; }
  .book-description { font-size: 16px; }
  .book-details { padding-block: 75px 85px; }
  .book-facts { grid-template-columns: 1fr; }
  .book-facts article { min-height: auto; padding: 20px 0; }
  .book-facts article + article { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .fact-number { margin-bottom: 9px; }
  .book-details blockquote { margin-top: 50px; }
}

@media (max-width: 380px) {
  .wrap { width: calc(100% - 28px); }
  .wordmark { font-size: 22px; }
  .nav { gap: 8px; }
  .nav-actions { gap: 5px; }
  .nav-actions .button { padding-inline: 9px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ===== Additions for content that is now editable from the admin ===== */

/* Work experience: roles & responsibilities */
@media (min-width: 761px) { .timeline-row { padding-block: 24px; } }
.responsibilities { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; max-width: 560px; list-style: none; color: var(--muted); font-size: 14px; line-height: 1.65; }
.responsibilities li { position: relative; padding-left: 20px; }
.responsibilities li::before { position: absolute; top: .8em; left: 0; width: 10px; height: 1px; background: var(--coral); content: ""; }

/* Book: secondary button on the dark hero */
.button-ghost { border-color: rgb(255 255 255 / 35%); color: var(--white); }
.button-ghost:hover { background: rgb(255 255 255 / 10%); }
.book-copy .actions { margin-top: 29px; }
.book-copy .actions .button { margin-top: 0; }

/* Book: fewer than three facts */
.book-facts-1 { grid-template-columns: 1fr; }
.book-facts-2 { grid-template-columns: repeat(2, 1fr); }

/* Book: topics */
.book-topics { padding-block: 0 104px; }
.book-topics .section-heading { margin-bottom: 35px; }
.topic-list { border-top: 1px solid var(--line); }
.topic-row { display: grid; grid-template-columns: 64px 1fr 1.6fr; align-items: baseline; gap: 24px; padding-block: 28px; border-bottom: 1px solid var(--line); }
.topic-row .fact-number { margin: 0; }
.topic-row h3 { font-size: 23px; }
.topic-row p { color: var(--muted); font-size: 15px; line-height: 1.8; }

/* Book: chapter previews */
.book-preview { background: #e8efec; }
.book-preview .section-pad { padding-block: 100px 112px; }
.book-preview .section-heading { margin-bottom: 35px; }
.chapter-list { border-top: 1px solid #cbd9d5; }
.chapter { border-bottom: 1px solid #cbd9d5; }
.chapter summary { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 24px; min-height: 92px; cursor: pointer; list-style: none; }
.chapter summary::-webkit-details-marker { display: none; }
.chapter summary:focus-visible { outline: 2px solid var(--ocean-soft); outline-offset: 4px; }
.chapter-label { color: var(--ocean-soft); font-size: 13px; font-weight: 700; }
.chapter-title { font: 600 23px/1.2 var(--display); }
.chapter-toggle { display: grid; width: 34px; aspect-ratio: 1; place-items: center; border: 1px solid #b6c6c4; border-radius: 50%; color: var(--ocean-soft); transition: transform .2s ease; }
.chapter[open] .chapter-toggle { transform: rotate(45deg); }
.chapter-body { max-width: 680px; padding: 0 0 44px 134px; font-size: 17px; line-height: 1.9; }
.chapter-body p + p { margin-top: 1.1em; }
.chapter-cta { margin-top: 40px; }

@media (max-width: 760px) {
  .book-facts-2 { grid-template-columns: 1fr; }
  .book-topics { padding-block: 0 75px; }
  .topic-row { grid-template-columns: 1fr; gap: 8px; padding-block: 22px; }
  .book-preview .section-pad { padding-block: 75px; }
  .chapter summary { grid-template-columns: 1fr auto; gap: 4px 16px; min-height: 80px; padding-block: 16px; }
  .chapter-label { grid-column: 1; }
  .chapter-title { grid-column: 1; font-size: 21px; }
  .chapter-toggle { grid-column: 2; grid-row: 1 / span 2; }
  .chapter-body { padding: 0 0 32px; font-size: 16px; }
}
