/* priyankabharadwaj.com
   Design system: the book, opened. Interior calm (Garamond, cream paper,
   letterspaced caps) with the cover's green, yellow and red used sparingly. */

:root {
  --paper: #fbf8f1;
  --paper-2: #f4efe4;
  --ink: #1e1c19;
  --ink-2: #4a463f;
  --muted: #6e685e;
  --rule: #e2dbcd;
  --green: #57b68c;        /* cover green: panels only */
  --green-ink: #2b7452;    /* text-safe green on paper */
  --green-deep: #1f5a3f;
  --yellow: #ffee00;       /* cover yellow: highlighter only */
  --heart: #e73640;        /* the heart: ornament only */

  --serif: "EB Garamond", "Adobe Garamond Pro", Garamond, Georgia, serif;
  --sans: "Jost", "Futura", "Avenir Next", system-ui, sans-serif;

  --measure: 36rem;
  --wide: 70rem;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 1.05rem + 0.25vw, 20px);
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--rule); transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--green-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--green-ink); outline-offset: 3px; }

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: var(--measure); }
.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 400; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
.lede { font-size: 1.2em; color: var(--ink-2); line-height: 1.55; }
em, i { font-style: italic; }

.label {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2rem;
}
.label .dot { display: inline-block; margin: 0 .6em; color: var(--rule); }

mark, .hl {
  background: linear-gradient(transparent 58%, rgba(255, 238, 0, .55) 58%, rgba(255, 238, 0, .55) 92%, transparent 92%);
  color: inherit;
  padding: 0 .08em;
}

/* the heart dinkus, as in the book */
.dinkus { text-align: center; margin: clamp(2.2rem, 5vw, 3.5rem) 0; color: var(--heart); font-size: 1rem; line-height: 1; }
.dinkus::before { content: "\2665"; }

/* ---------- header ---------- */
.site-header { padding: 1.6rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.wordmark {
  font-family: var(--sans); font-weight: 300; font-size: 0.95rem;
  letter-spacing: 0.32em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.nav { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 1.8rem); flex-wrap: wrap; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--ink-2); padding: .3rem 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--green-ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.nav a.nav-cta { border: 1px solid var(--ink); padding: .45rem .95rem; color: var(--ink); }
.nav a.nav-cta:hover { background: var(--ink); color: var(--paper); }
.nav a.nav-cta[aria-current="page"] { background: var(--ink); color: var(--paper); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; padding: .95rem 1.5rem; border: 1px solid var(--ink); background: var(--ink); color: var(--paper);
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; margin-top: 1.8rem; }
.link-arrow { font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: .2rem; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { border-bottom-color: currentColor; }

/* ---------- hero ---------- */
.hero { padding: clamp(2rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: stretch; }
.hero h1, .hero h2 { margin-bottom: .45em; }
.hero h2 { font-size: clamp(2.3rem, 1.6rem + 3vw, 3.9rem); }
.hero p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.hero-pre { font-size: 1.15em; color: var(--muted); margin-bottom: .5rem; }
/* desktop: photo fills the full height of the text column */
.hero-photo { position: relative; margin: 0; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 100% 30%; }
.hero-photo figcaption { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .8rem; }

/* page header for inner pages */
.page-head { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(1.5rem, 4vw, 3rem); }
.page-head h1 { max-width: 18ch; }
.page-head .lede { max-width: 36rem; }
.page-head-full h1, .page-head-full .lede { max-width: none; }
.justify { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.page-head-full .lede { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }

/* ---------- credentials strip ---------- */
.creds { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.creds ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.creds li { padding: 1.4rem 1.2rem 1.4rem 0; font-size: 1rem; line-height: 1.45; color: var(--ink-2); }
.creds li + li { padding-left: 1.4rem; border-left: 1px solid var(--rule); }
.creds b { display: block; font-family: var(--sans); font-weight: 400; font-size: .68rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: .35rem; }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: start; }
.split-narrow { grid-template-columns: .9fr 1.1fr; }

/* the one cover-green moment */
.cover-panel { background: var(--green); color: #fff; }
.cover-panel .wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.cover-panel .label { color: rgba(255,255,255,.85); }
.cover-panel h1, .cover-panel h2 { color: #fff; margin-bottom: .2em; }
.cover-panel h1 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.6rem); }
.cover-panel .subtitle { font-style: italic; font-size: 1.25em; color: var(--yellow); margin-bottom: 1.4rem; }
.cover-panel p { color: #fff; }
.cover-panel a:not(.btn) { color: #fff; text-decoration-color: rgba(255,255,255,.5); }
.cover-panel .btn { background: #fff; color: var(--green-deep); border-color: #fff; }
.cover-panel .btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.cover-panel .btn-quiet { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.cover-panel .btn-quiet:hover { background: #fff; color: var(--green-deep); }
.book-cover { box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 18px 40px -12px rgba(0,0,0,.35); max-width: 340px; margin: 0 auto; }

/* sliders: the cover motif, drawn as line art */
.sliders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 22rem; margin: 0 auto; }
.slider { text-align: center; }
.slider span { display: block; font-family: var(--sans); font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; white-space: nowrap; }
.slider svg { width: 46px; height: 190px; margin: 0 auto; overflow: visible; }

/* price */
.price { font-size: 1.35rem; margin: 1.6rem 0 .4rem; }
.price small { display: block; font-size: .95rem; color: var(--muted); margin-top: .2rem; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card { border-top: 1px solid var(--ink); padding-top: 1.2rem; }
.card h3 { margin-bottom: .35em; }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--green-ink); }
.card .meta { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.card p { font-size: 1rem; color: var(--ink-2); }

/* course blocks */
.course { border-top: 1px solid var(--ink); padding-top: 1.4rem; }
.course .code { font-family: var(--sans); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stat { font-size: 2.8rem; line-height: 1; color: var(--green-ink); margin: .6rem 0 .3rem; }
.stat-note { font-size: .95rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.8rem; }
.stats .stat-note { margin: 0; }
.small-note { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }
/* teaching: course blocks, left and right columns same width and height */
.course-split { align-items: stretch; }
.course-split > div { display: flex; flex-direction: column; }
.course-split .stats { margin-top: auto; padding-top: 1.8rem; }
.course-split .toc { flex: 1; display: flex; flex-direction: column; }
.course-split .toc li { flex: 1; align-items: center; font-size: 1.1rem; }
.course-split .toc li span { padding-top: 0; }

/* quotes */
.quote { max-width: 46rem; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.45; font-style: italic; color: var(--ink); }
.quote blockquote p { margin: 0 0 .7em; }
.quote cite, .quote-cite { display: block; font-style: normal; font-family: var(--sans); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 1.2rem; }
.quote-feature blockquote::before { content: "\201C"; display: block; font-family: var(--serif, Georgia, serif); font-style: normal; font-size: 4.5rem; line-height: .6; color: var(--muted); margin-bottom: .5rem; }
.quote-feature .quote-punch { font-style: normal; margin-top: 1.1em; }
.quote-more { margin: 1rem 0 0; font-family: var(--sans); font-size: .85rem; }
.quote-more a { color: var(--ink); }
.hero-quote { margin: 0 0 1.8rem; padding-left: 1.1rem; border-left: 2px solid var(--yellow); }
.hero-quote blockquote { margin: 0; font-style: italic; font-size: 1.25rem; line-height: 1.5; }
.hero-quote blockquote p { margin: 0; }
.hero-quote .quote-cite { margin-top: .7rem; color: rgba(255,255,255,.85); }
.quotes { columns: 2 22rem; column-gap: clamp(2rem, 5vw, 4rem); }
.quotes figure { break-inside: avoid; margin: 0 0 2.6rem; }
.quotes blockquote { margin: 0; font-style: italic; font-size: 1.1rem; line-height: 1.55; }
.quotes blockquote p { margin: 0 0 .7em; }

/* lists: media, essays */
.list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.list li { display: grid; grid-template-columns: 8rem 1fr; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.list .when { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: .3rem; }
.list .what a { text-decoration: none; font-size: 1.12rem; }
.list .what a:hover { color: var(--green-ink); }
.list .what span { display: block; color: var(--muted); font-size: .95rem; margin-top: .15rem; }

/* steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.6rem 3.2rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: .1rem; width: 2rem; height: 2rem; border: 1px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-family: var(--sans); font-size: .8rem; }
.steps b { font-weight: 500; }

.plain-list { padding-left: 1.1rem; margin: 0 0 1.4rem; }
.plain-list li { margin-bottom: .5rem; }
.plain-list li::marker { color: var(--green-ink); }

.note { font-size: .95rem; color: var(--muted); font-style: italic; }
.panel { background: var(--paper-2); padding: clamp(1.6rem, 4vw, 2.6rem); }

/* embeds */
.embed { border: 1px solid var(--rule); background: #fff; width: 100%; }
.placeholder { border: 1px dashed #c9a; background: #fff6f6; color: #934; font-family: var(--sans); font-size: .8rem; padding: .8rem 1rem; }

/* newsletter signup */
.subscribe { display: flex; flex-wrap: wrap; gap: .6rem; max-width: 480px; margin-top: 1.2rem; }
.subscribe input { flex: 1 1 14rem; min-width: 0; font: inherit; font-size: 1rem; padding: .85rem 1rem; border: 1px solid var(--rule); background: #fff; color: var(--ink); }
.subscribe input:focus { outline: 2px solid var(--green-deep); outline-offset: 1px; }
.subscribe .btn { cursor: pointer; }
.cover-panel .subscribe input { border-color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); margin-top: clamp(3rem, 8vw, 6rem); padding: 1.6rem 0; font-family: var(--sans); font-size: .8rem; color: var(--muted); text-align: center; }
.site-footer p { margin: 0; line-height: 2; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .sep { margin: 0 .35em; }
.site-footer .nw { white-space: nowrap; }
@media (max-width: 560px) { .site-footer .nw { display: block; } .site-footer .nw + .sep { display: none; } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap, .split, .split-narrow, .cover-panel .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; max-width: 26rem; }
  .hero-photo img { height: auto; aspect-ratio: 4 / 5; }
  .creds ul { grid-template-columns: 1fr; }
  .creds li, .creds li + li { padding: 1rem 0; border-left: 0; }
  .creds li + li { border-top: 1px solid var(--rule); }
  .cards, .cards-2 { grid-template-columns: 1fr; }
  .list li { grid-template-columns: 1fr; gap: .2rem; }
  .book-cover { max-width: 240px; }
}
@media (max-width: 560px) {
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .nav { gap: .5rem 1rem; font-size: .74rem; }
}

/* book contents */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.toc li { display: grid; grid-template-columns: 5.5rem 1fr; padding: .55rem 0; border-bottom: 1px solid var(--rule); font-size: 1.02rem; }
.toc li span { font-family: var(--sans); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: .3rem; }

/* newsletter post cards (image on top) */
.card.post { border-top: 0; padding-top: 0; }
.card.post .thumb { display: block; margin-bottom: 1rem; background: var(--paper-2); }
.card.post .thumb img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; transition: opacity .2s; }
.card.post .thumb:hover img { opacity: .88; }

/* newsletter signup panel */
.signup-panel { margin-top: clamp(2.6rem, 5vw, 3.6rem); background: var(--ink); color: var(--paper); padding: clamp(1.6rem, 3.5vw, 2.4rem) clamp(1.6rem, 4vw, 2.8rem); display: grid; grid-template-columns: 1fr minmax(18rem, 26rem); gap: clamp(1.4rem, 4vw, 3rem); align-items: center; }
.signup-panel h3 { color: var(--paper); margin: 0 0 .35em; }
.signup-panel p { color: rgba(251,248,241,.78); font-size: 1rem; margin: 0; }
.signup-panel .subscribe { margin-top: 0; max-width: none; }
.signup-panel .subscribe input { border-color: var(--paper); }
.signup-panel .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.signup-panel .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
@media (max-width: 760px) { .signup-panel { grid-template-columns: 1fr; } }

/* video cards */
.card.video { border-top: 0; padding-top: 0; }
.card.video .thumb { display: block; position: relative; margin-bottom: 1rem; background: var(--paper-2); }
.card.video .thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: opacity .2s; }
.card.video .thumb:hover img { opacity: .88; }
.card.video .play { position: absolute; left: 1rem; bottom: 1rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(251,248,241,.92); }
.card.video .play::after { content: ""; position: absolute; left: 1.02rem; top: .78rem; border-style: solid; border-width: .52rem 0 .52rem .8rem; border-color: transparent transparent transparent var(--ink); }
/* Narrow screens: thumbnail beside the text, so the low-res stills are never blown up */
@media (max-width: 860px) {
  .card.video { display: grid; grid-template-columns: minmax(0, 40%) 1fr; column-gap: 1.1rem; align-items: start; }
  .card.video .thumb { grid-row: 1 / span 3; margin-bottom: 0; }
  .card.video .meta, .card.video h3, .card.video > p { grid-column: 2; }
  .card.video .play { left: .5rem; bottom: .5rem; transform: scale(.72); transform-origin: left bottom; }
}

/* Phrase cloud of student feedback (home, Teaching) */
.phrase-cloud { margin: 2.8rem auto 0; max-width: 54rem; text-align: center; }
.phrase-cloud p { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: .5rem 1.6rem; margin: 0; line-height: 1.2; }
.phrase-cloud span { font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.phrase-cloud .pc-s { font-size: 1.05rem; color: var(--muted); }
.phrase-cloud .pc-m { font-size: 1.45rem; }
.phrase-cloud .pc-l { font-size: 2.1rem; color: var(--ink); }
.phrase-cloud .pc-g { color: var(--green-ink); }
.phrase-cloud figcaption { margin-top: 1.4rem; }
@media (max-width: 600px) {
  .phrase-cloud p { gap: .4rem 1rem; }
  .phrase-cloud .pc-l { font-size: 1.7rem; }
  .phrase-cloud .pc-m { font-size: 1.25rem; }
}

/* proof: two-column quote groups (replaces scattered cloud) */
.phrase-cloud.proof { max-width: 64rem; text-align: left; }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.4rem 3.2rem; }
.proof-col { border-top: 1px solid var(--ink); padding-top: 1rem; }
.proof-col .label { margin: 0 0 1.1rem; }
.phrase-cloud.proof .proof-words { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; margin: 0; line-height: 1.2; }
.phrase-cloud.proof .pc-l { font-size: 1.9rem; }
.phrase-cloud.proof .pc-m { font-size: 1.35rem; }
.phrase-cloud.proof .pc-s { font-size: 1.05rem; }
.phrase-cloud.proof span::before { content: "\201C"; } .phrase-cloud.proof span::after { content: "\201D"; }
.phrase-cloud.proof figcaption { margin-top: 1.8rem; text-align: left; }
@media (max-width: 760px) {
  .proof-grid { grid-template-columns: 1fr; }
  .phrase-cloud.proof .pc-l { font-size: 1.55rem; }
  .phrase-cloud.proof .pc-m { font-size: 1.2rem; }
}
.phrase-cloud.proof { max-width: none; margin-left: 0; margin-right: 0; }
.phrase-cloud.proof .proof-col .label { text-align: left; }
.phrase-cloud.proof .proof-col .label { display: block; }

/* proof: single group, wrapped */
.phrase-cloud.proof .proof-words { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: .6rem 1.8rem; }
.phrase-cloud.proof, .phrase-cloud.proof .proof-col .label, .phrase-cloud.proof figcaption { text-align: center; }
.phrase-cloud.proof .proof-words { justify-content: center; }

/* work with me: testimonials as centred cards, three to a row */
.t-head { text-align: center; margin-bottom: 2rem; }
.page-justify .t-head { text-align: center; }
.t-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.t-card { margin: 0; background: var(--paper-2); padding: 1.8rem 1.6rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.2rem; text-align: center; }
.t-card blockquote { margin: 0; }
.page-justify .t-card blockquote p { margin: 0; font-style: italic; text-align: center; -webkit-hyphens: manual; hyphens: manual; }
.t-card figcaption { font-family: var(--sans); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.teach-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: 2.2rem; }
.teach-photo { margin: 0; }
.teach-photo img { display: block; width: 100%; height: auto; }
.teach-courses { display: grid; gap: 2rem; }
@media (max-width: 860px) { .teach-split { grid-template-columns: 1fr; } }

/* home: student quotes as a slow scrolling strip on the shaded teaching band */
.t-card blockquote p { margin: 0; font-style: italic; }
.t-strip { margin: 2.6rem 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.t-track { display: flex; gap: 1.4rem; width: max-content; animation: t-scroll 180s linear infinite; }
.t-strip:hover .t-track, .t-strip:focus-within .t-track { animation-play-state: paused; }
.t-strip .t-card { background: var(--paper); width: 21rem; flex: none; }
@keyframes t-scroll { to { transform: translateX(calc(-50% - .7rem)); } }
@media (prefers-reduced-motion: reduce) {
  .t-strip { overflow-x: auto; scroll-snap-type: x mandatory; }
  .t-track { animation: none; }
  .t-strip .t-card { scroll-snap-align: start; }
  .t-strip .t-card[aria-hidden] { display: none; }
}
@media (max-width: 560px) { .t-strip .t-card { width: 17rem; } }
@media (max-width: 860px) { .t-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .t-cards { grid-template-columns: 1fr; } }

/* work with me: justified text so every column has straight edges */
.page-justify p, .page-justify li, .page-justify blockquote p { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.page-justify .label, .page-justify .quote-cite, .page-justify .price, .page-justify .btn-row { text-align: left; }
.page-justify .faq h3:first-child { margin-top: 0; }

/* work with me: one text size throughout; weight for run-in labels, italic only for quotes */
.page-justify .lede { font-size: 1em; color: var(--ink); }
.page-justify .note { font-size: 1em; font-style: normal; color: var(--ink-2); }
.page-justify .faq h3 { font-size: 1em; font-weight: 500; line-height: inherit; letter-spacing: 0; margin: 1.6em 0 .25em; }
.page-justify .faq h3:first-child { margin-top: 0; }
.page-justify .price { font-size: 1em; font-weight: 500; }
.page-justify .price small { font-size: 1em; font-weight: 400; }

/* work with me: closing apply button, centred, no heading */
.apply-end .wrap { text-align: center; }
.page-justify .apply-end .btn-row { justify-content: center; text-align: center; margin-top: 0; }
.page-justify .apply-end .note { text-align: center; margin-top: 1.4rem; }
.t-cards.on-shade .t-card { background: var(--paper); }

/* home teaching: label and heading sit in the text column, like the book panel */
.wrap > .teach-split:first-child { margin-top: 0; }
.teach-split h2 + .teach-courses { margin-top: 1.8rem; }
/* photo fills the full height of the text column */
.teach-split { align-items: stretch; }
.teach-photo img { height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 860px) { .teach-photo img { height: auto; } }
/* wider photo, tighter course blocks */
.teach-split { grid-template-columns: 1.45fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.teach-courses { gap: 1.1rem; }
.teach-courses .course { padding-top: .9rem; }
.teach-courses .course h3 { margin-bottom: .3em; }
.teach-courses .course p:last-child { margin-bottom: 0; }
.teach-split h2 + .teach-courses { margin-top: 1.2rem; }
.teach-split .btn-row { margin-top: 1.3rem; }
@media (max-width: 860px) { .teach-split { grid-template-columns: 1fr; } }
.teach-courses .course p:not(.code) { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.teach-courses .course p:not(.code) { font-size: .9em; line-height: 1.55; }

/* home work-with-me: sliders one-third, text two-thirds, sliders as tall as the text */
.wwm-split { grid-template-columns: 1fr 2fr; align-items: stretch; }
.wwm-split .sliders { height: 100%; max-width: 18rem; width: 100%; }
.wwm-split .slider { display: flex; flex-direction: column; }
.wwm-split .slider-track { position: relative; flex: 1; width: 46px; margin: 0 auto; }
.wwm-split .slider svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wwm-split .slider .slider-heart { inset: auto; left: 5px; top: calc(74 / 190 * 100% - 6px); width: 36px; height: 36px; }
.wwm-split .measure { max-width: none; }
.wwm-split .measure > .label + p { margin-top: 0; }
@media (max-width: 860px) { .wwm-split { grid-template-columns: 1fr; } .wwm-split .slider-track { flex: none; height: 190px; } }
/* sliders at their drawn size, centred against the text */
.wwm-split .sliders { height: auto; align-self: center; }
.wwm-split .slider-track { flex: none; height: 190px; }

/* left column: sliders, then price and button underneath; questions as a list on the right */
.wwm-side { display: flex; flex-direction: column; align-items: center; text-align: center; align-self: center; }
.wwm-side .sliders { width: 100%; }
.wwm-side .price { margin-top: 2rem; }
.wwm-side .btn-row { justify-content: center; }
.wwm-qs { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.wwm-qs li { margin-bottom: .45rem; padding-left: .2rem; }
@media (max-width: 860px) {
  .wwm-side { display: contents; }
  .wwm-side .sliders { order: 0; }
  .wwm-split .measure { order: 1; }
  .wwm-side .price { order: 2; margin-top: 0; text-align: left; }
  .wwm-side .btn-row { order: 3; justify-content: flex-start; margin-top: 0; }
}

/* "As featured in" strip under the book panel */
.featured { border-bottom: 1px solid var(--rule); }
.featured .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .4rem 1.6rem; padding-top: 1.6rem; padding-bottom: 1.6rem; text-align: center; }
.featured .label { margin: 0; }
.featured-names { display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.1rem; font-size: 1.05rem; color: var(--ink-2); text-decoration: none; }
.featured-names:hover span { text-decoration: underline; }
.featured-names span { white-space: nowrap; }
@media (min-width: 760px) {
  .featured-names { gap: 0; }
  .featured-names span + span::before { content: "\00b7"; display: inline-block; margin: 0 .9em; color: var(--muted); }
}


.teach-split > div { align-self: center; }

/* Podcast / talk cards: six to a row, show artwork above the name */
.cards.pods { grid-template-columns: repeat(6, 1fr); column-gap: 1.25rem; row-gap: 2rem; }
.card.pod { display: block; text-decoration: none; }
.card.pod .art { display: block; width: 3.5rem; height: 3.5rem; margin-bottom: .7rem; background: var(--paper-2); border: 1px solid var(--rule); }
.card.pod .art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.card.pod:hover .art img { opacity: .88; }
.card.pod .show, .card.pod .sub { display: block; }
.card.pod .show { font-size: 1rem; line-height: 1.3; }
.card.pod .sub { font-size: .83rem; line-height: 1.35; color: var(--muted); margin-top: .15rem; }
.card.pod:hover .show { color: var(--green-ink); }

@media (max-width: 1180px) { .cards.pods { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 860px) { .cards.pods { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .cards.pods { grid-template-columns: repeat(2, 1fr); } }

/* Home: Content hub cards */
.card.hub { border-top: 0; padding-top: 0; }
.card.hub .thumb { display: block; position: relative; margin-bottom: 1rem; background: var(--paper-2); aspect-ratio: 16 / 9; overflow: hidden; }
.card.hub .thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity .2s; }
.card.hub .thumb:hover img { opacity: .88; }
.card.hub .play { position: absolute; left: 1rem; bottom: 1rem; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(251,248,241,.92); }
.card.hub .play::after { content: ""; position: absolute; left: 1.02rem; top: .78rem; border-style: solid; border-width: .52rem 0 .52rem .8rem; border-color: transparent transparent transparent var(--ink); }
.card.hub .pod-mosaic { display: flex; align-items: center; justify-content: center; gap: 6%; }
.card.hub .pod-mosaic img { width: 26%; height: auto; aspect-ratio: 1; border: 1px solid var(--rule); }
.card.hub .meta a { color: inherit; text-decoration: none; }
.card.hub .meta a:hover { color: var(--green-ink); }
.card.hub .pod-mosaic img:only-child { width: 42%; }

/* Work with me: testimonial cards, easier to read */
#testimonials .t-card blockquote p { font-style: normal; font-size: 1.12rem; line-height: 1.6; color: var(--ink); text-align: left; }
#testimonials .t-card { text-align: left; }
#how .steps { margin-top: 1.4rem; }
.wwm-head { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.wwm-head .lede { margin: 0; }
.wwm-head .btn-row { margin: 0; justify-content: center; }
@media (max-width: 860px) { .wwm-head { grid-template-columns: 1fr; } .wwm-head .btn-row { justify-content: flex-start; } }
.stack > * + * { margin-top: clamp(2rem, 4vw, 3rem); }

/* desktop: smaller sliders so the left column is no taller than the questions */
@media (min-width: 861px) {
  .wwm-side { align-self: start; }
  .wwm-side .slider span { margin-bottom: .5rem; }
  .wwm-split .slider-track { height: 66px; }
  .wwm-split .slider .slider-heart { left: 12px; top: calc(74 / 190 * 100% - 11px); width: 22px; height: 22px; }
  .wwm-side .price { margin-top: 1.1rem; }
  .wwm-side .btn-row { margin-top: 1rem; }
}
.qs-panel { background: var(--paper-2); padding: clamp(1.4rem, 3vw, 2rem) clamp(1.6rem, 4vw, 2.6rem) clamp(1.4rem, 3vw, 2rem) clamp(2.6rem, 5vw, 3.6rem); margin: 1.2rem 0 0; }
.qs-panel li:last-child { margin-bottom: 0; }

/* home: client quote sits right under the photo section; page ends on the shaded Work with me band */
.hero + .home-quote { padding-top: 0; }
body:has(.wwm-split) .site-footer { margin-top: 0; }
body:has(.wwm-split) .section + .hero { padding-top: 0; }

/* writing & talks page */
.wr-jump { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; margin-top: 1.8rem; }
.wr-jump a { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--rule); padding-bottom: .2rem; }
.wr-jump a::after { content: " \2193"; }
.wr-jump a:hover { border-bottom-color: currentColor; }
.wr-grid { grid-template-columns: repeat(4, 1fr); row-gap: 2.4rem; }
.wr-grid .card h3 { font-size: 1.18rem; }
.wr-grid .card:not(.video) { border-top: 0; padding-top: 0; }
.wr-head { padding-bottom: 0; }
.wr-head .lede { font-size: 1em; color: inherit; line-height: inherit; }
.wr-essays { padding-top: 1.6rem; }
.wr-grid .card p:not(.meta) { font-size: .95rem; }
/* Essay cards: image, title and description line up across each row; descriptions justified */
.wr-essays .wr-grid { row-gap: 0; }
.wr-essays .card.post { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding-bottom: 2.4rem; }
.wr-essays .card.post .thumb img { aspect-ratio: 2 / 1; height: auto; }
.wr-essays .card.post p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
/* Video cards: same treatment; row alignment only where they sit in columns (above 860px) */
#videos .card.video > p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
@media (min-width: 861px) {
  #videos .wr-grid { row-gap: 0; }
  #videos .card.video { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding-bottom: 2.4rem; }
}
.wr-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.wr-list li { padding: .75rem 0; border-bottom: 1px solid var(--rule); font-size: 1.08rem; line-height: 1.4; }
.wr-list a { text-decoration: none; }
.wr-list a:hover { color: var(--green-ink); }
.wr-list .yr { font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; color: var(--muted); margin-left: .4rem; white-space: nowrap; }
.wr-sub { border-bottom: 1px solid var(--rule); }
.wr-sub .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem clamp(2rem, 6vw, 5.5rem); align-items: center; padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.wr-sub h2 { margin-bottom: .3em; }
.wr-sub p:not(.label) { margin: 0; color: var(--ink-2); }
.wr-sub .subscribe { margin-top: 0; margin-left: auto; }
.wr-items { list-style: none; margin: 0; padding: 0; }
.wr-items li { padding: 1.05rem 0; border-bottom: 1px solid var(--rule); }
.wr-items p { margin: 0; }
.wr-items .meta { font-family: var(--sans); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.wr-items .t { font-size: 1.12rem; line-height: 1.35; }
.wr-items .t a { text-decoration: none; }
.wr-items .t a:hover { color: var(--green-ink); }
.wr-items .n { color: var(--muted); font-size: .95rem; margin-top: .2rem; }
@media (max-width: 1100px) { .wr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) {
  .wr-sub .wrap { grid-template-columns: 1fr; }
  .wr-press { grid-template-columns: 1fr; }
  .wr-sub .subscribe { margin-left: 0; }
}
@media (max-width: 560px) { .wr-grid { grid-template-columns: 1fr; } }
body:has(.wr-pods) .site-footer { margin-top: 0; }
.wr-sub-h { font-family: var(--sans); font-weight: 400; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); padding-bottom: .9rem; border-bottom: 1px solid var(--ink); margin: 2.6rem 0 1.6rem; }
.wr-pods { row-gap: 2.2rem; }
.card.wr-pod { border-top: 0; padding-top: 0; }
.wr-pod p { margin: 0; }
.wr-pod .meta { margin-bottom: .2rem; }
.wr-pod .show a { text-decoration: none; }
.wr-pod .show a:hover { color: var(--green-ink); }
.card.pod .art.art-text { display: flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: .72rem; letter-spacing: .14em; color: var(--muted); }
.wr-press { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: clamp(1.2rem, 3vw, 2.2rem); }
.wr-press li { padding-top: 0; }

/* Writing: Mint columns line, press logos */
.wr-cols { margin: 2.4rem 0 0; font-size: 1rem; color: var(--ink-2); }
.wr-cols a { color: var(--ink); }
.press-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.8rem 2.4rem; }
.press-logos a { display: block; line-height: 0; }
.press-logos img { display: block; height: auto; filter: grayscale(1) brightness(0); opacity: .62; transition: opacity .2s, filter .2s; }
.press-logos a:hover img { opacity: 1; }
.press-logos .lg-mint { width: 4.2rem; }
.press-logos .lg-tnie { width: 10rem; }
.press-logos .lg-wide { width: 11rem; }
@media (max-width: 1100px) { .press-logos { justify-content: flex-start; gap: 1.6rem 2.6rem; } }

/* Writing page: podcasts as a cover-art grid (whole card is the link) */
.wr-pods { column-gap: 1.5rem; row-gap: 2.4rem; }
.card.wr-pod .art { width: 100%; height: auto; aspect-ratio: 1; margin-bottom: .85rem; border: 1px solid var(--rule); background: #fff; overflow: hidden; }
.card.wr-pod .art img { transition: transform .3s ease, opacity .2s; }
a.card.wr-pod:hover .art img { transform: scale(1.03); opacity: 1; }
.card.wr-pod .show { font-size: 1.05rem; line-height: 1.25; color: var(--ink); }
.card.wr-pod .sub { font-family: var(--sans); font-size: .74rem; letter-spacing: .02em; line-height: 1.4; color: var(--muted); margin-top: .3rem; }
a.card.wr-pod:hover .show { color: var(--green-ink); }
#talks .wr-sub-h { margin: 3.5rem 0 1.2rem; border-bottom: 0; padding-bottom: 0; color: var(--muted); letter-spacing: .24em; }
/* Podcasts & Talks: all logos in a single row, no text */
.cards.pods.wr-pods-row { grid-template-columns: repeat(12, 1fr); column-gap: 1rem; row-gap: 1rem; }
.wr-pods-row .card.wr-pod .art { margin-bottom: 0; }
@media (max-width: 1180px) { .cards.pods.wr-pods-row { grid-template-columns: repeat(6, 1fr); } }
@media (max-width: 560px) { .cards.pods.wr-pods-row { grid-template-columns: repeat(4, 1fr); column-gap: .75rem; row-gap: .75rem; } }
.btn-row.btn-stack { flex-direction: column; align-items: flex-start; gap: 1rem; }

/* About page: story + photo, contact form, book quote, newsletter */
.ab-hero-2{padding:clamp(2.5rem,6vw,4.5rem) 0}
.ab-hero-top{padding:clamp(3rem,7vw,5rem) 0 clamp(.5rem,2vw,1.5rem)}
.ab-single blockquote{margin:0;font-family:var(--serif);font-weight:500;font-size:clamp(1.9rem,1.2rem + 2.6vw,3.4rem);line-height:1.15;color:var(--green-deep)}
.ab-single{max-width:50rem;margin:0 auto;text-align:center}
.ab-single blockquote{font-size:clamp(1.6rem,1.1rem + 1.8vw,2.6rem)}
.ab-single figcaption{margin-top:1.2rem;font-family:var(--serif);font-size:inherit;color:var(--ink-2)}
.ab-split{display:grid;grid-template-columns:1.25fr .75fr;gap:clamp(2rem,6vw,5rem);align-items:start;max-width:62rem;margin:0 auto}
.ab-head{font-family:var(--sans);font-weight:600;font-size:1rem;letter-spacing:.24em;text-transform:uppercase;text-decoration:underline;text-underline-offset:.35em;text-decoration-thickness:2px;color:var(--green-deep);margin:0 0 1rem}
.ab-split-eq{align-items:stretch}
.ab-split-eq > div > p{text-align:justify;hyphens:auto;-webkit-hyphens:auto}
.ab-split-eq > div > p:first-child{margin-top:0}
.ab-split-eq > div > p:last-child{margin-bottom:0}
.ab-side{display:flex;flex-direction:column;gap:1rem}
.ab-li{align-self:stretch;text-align:center}
.ab-split-eq .ab-photo{position:relative;min-height:20rem;flex:1}
.ab-split-eq .ab-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 30%}
.ab-photo{margin:0}
.ab-chat{margin:0 auto}
.ab-big{margin:0 0 1.8rem;text-align:center}
.ab-chat > .note{text-align:center}
.ab-form{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem 2.5rem}
.ab-form label{display:block;font-family:var(--sans);font-size:.72rem;font-weight:400;letter-spacing:.24em;text-transform:uppercase;color:var(--muted)}
.ab-form input,.ab-form select,.ab-form textarea{display:block;width:100%;margin-top:.5rem;font:inherit;font-family:var(--serif);font-size:1.05rem;letter-spacing:0;text-transform:none;color:var(--ink);background:transparent;border:0;border-bottom:1px solid var(--ink-2);padding:.45rem 0;border-radius:0}
.ab-form textarea{resize:vertical}
.ab-form input:focus,.ab-form select:focus,.ab-form textarea:focus{outline:none;border-bottom-width:2.5px}
.ab-full{grid-column:1/-1}
.ab-form > .ab-full:last-of-type{text-align:center}
.ab-form .btn{cursor:pointer}
.ab-hp{position:absolute;left:-9999px}
.ab-sent,.ab-err{padding:.8rem 1rem;background:var(--paper-2)}
@media (max-width:760px){.ab-split{grid-template-columns:1fr}.ab-side{order:-1;max-width:22rem}.ab-split-eq .ab-photo{min-height:0}.ab-split-eq .ab-photo img{position:static;height:auto}.ab-form{grid-template-columns:1fr}}
.pr-top{padding:clamp(3.5rem,7vw,5.5rem) 0}
.pr-top .label{margin-bottom:1.6rem}
.pr-top .wr-pods-row + *{margin-top:clamp(2.5rem,5vw,3.5rem)}
.pr-sec + .pr-sec{padding-top:0}
#contact .ab-big{margin-bottom:clamp(2rem,4vw,3rem)}
.pr-sec .panel{padding:clamp(1.8rem,4vw,2.8rem)}
.pr-sec .label{margin-bottom:1.4rem}
.pr-sec figcaption.note{margin-top:.7rem}
.pr-bio p{text-align:justify;-webkit-hyphens:auto;hyphens:auto}
#talks.pr-top .wr-sub-h{margin-top:clamp(3.5rem,6vw,4.8rem);margin-bottom:1.6rem}
.pr-url{word-break:break-all}
.email-reveal{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer;text-decoration:underline;text-decoration-color:var(--rule);text-underline-offset:.18em}
.email-reveal:hover{color:var(--green-ink);text-decoration-color:currentColor}

/* Home: smaller quotes; content card text matches the Book and Teaching text */
.home-quote .quote blockquote { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
.home-quote .quote-feature blockquote::before { font-size: 3.5rem; }
.home-tcards { margin-top: clamp(1.4rem, 2.5vw, 2rem); gap: 1rem; }
.home-tcards .t-card { padding: 1rem 1.2rem; gap: .6rem; }
.home-tcards .t-card blockquote p { font-size: .88rem; line-height: 1.5; }
.home-tcards .t-card figcaption { font-size: .64rem; }
.home-teach.section-tight { padding: clamp(2rem, 4vw, 2.8rem) 0; }
.card.hub p:not(.meta) { font-size: 1em; color: var(--ink); }

.pr-upcoming { margin: 0 0 2.2rem; font-size: 1.1rem; }
.pr-upcoming .dot { display: inline-block; margin: 0 .6em; color: var(--muted); }
.pr-upcoming .nw { white-space: nowrap; }
