/* christelleprophete.com
   Cream ground, tall serif type, black-bordered cards, primary-color doodles. */

:root {
  --bg: #F2F1EC;
  --fg: #0D0D0B;
  --muted: #55544E;
  --slash: #9A988F;
  --hl: #FFDD44;
  --hl-h: .46em;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --shadow: 0 50px 80px -20px rgba(0, 0, 0, .35), 0 10px 30px rgba(0, 0, 0, .12);
  --shadow-sm: 0 26px 40px -18px rgba(0, 0, 0, .35), 0 6px 16px rgba(0, 0, 0, .08);
  --surface: var(--bg);
  --gutter: max(40px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
/* Dark mode: same layout, colors flipped. Cards sit on a slightly lighter surface so they still read as layered. */
:root[data-theme="dark"] {
  --bg: #0D0D0B;
  --fg: #F2F1EC;
  --muted: #A9A79F;
  --slash: #5F5D57;
  --hl: #F7D43A;
  --hl-h: .14em;
  --surface: #1B1A17;
  --shadow: 0 50px 80px -20px rgba(0, 0, 0, .9), 0 10px 30px rgba(0, 0, 0, .6);
  --shadow-sm: 0 26px 40px -18px rgba(0, 0, 0, .9), 0 6px 16px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
body { transition: background-color .3s, color .3s; }
.knock { fill: var(--bg); }

/* Theme switch */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin: 0 -4px;
  padding: 0; border: 0; border-radius: 50%;
  background: none; color: inherit; cursor: pointer;
}
.theme-toggle svg { width: 26px; height: 26px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .theme-toggle:hover svg { animation: wobble 420ms ease-in-out infinite; }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--fg); outline-offset: 4px; border-radius: 6px; }
img { max-width: 100%; }
svg { overflow: visible; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.page {
  max-width: 1440px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 18px var(--gutter) 44px;
  overflow-x: clip;
}

.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin: 0 -12px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.2;
  position: relative;
  z-index: 10;
}
.topbar a { text-decoration: none; }
.topbar a:hover, .topbar a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.topbar nav { display: flex; gap: 16px; align-items: center; }
.topbar nav .slash { color: var(--slash); }

/* Wordmarks: SVG text squeezed to fill its box, so it reads tall and narrow */
.word { display: block; width: 100%; height: auto; pointer-events: none; }
.word text { font-family: var(--serif); fill: var(--fg); }

/* Cards */
.card {
  background: var(--surface);
  border: 6px solid var(--fg);
  border-radius: 46px;
  box-shadow: var(--shadow);
}
.box {
  display: block;
  background: var(--surface);
  border: 5px solid var(--fg);
  border-radius: 34px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px 14px 20px;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.pill svg { width: 26px; height: 26px; }
.pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* Doodle links */
.doodle-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.doodle-link .dd { display: flex; align-items: center; justify-content: center; transform: rotate(var(--tilt, 0deg)); }
.doodle-link .label { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; line-height: 1; }
.doodle-link:hover .label { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Landing ---------- */
.hero { position: relative; margin: 24px -20px 0; }
.hero .line:last-child { margin-top: 3.9%; }
.hero-card {
  position: absolute;
  left: 50%;
  top: 51%;
  width: 55%;
  padding: clamp(22px, 2.7vw, 34px) clamp(20px, 2.5vw, 32px) clamp(18px, 2vw, 24px);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.hero-card .greeting {
  margin: 0;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(60px, 9.2vw, 118px);
  line-height: 1;
}
.hero-card nav { display: flex; justify-content: space-evenly; margin-top: clamp(14px, 2.4vw, 30px); }
.hero-card .doodle-link { width: 30%; }
.hero-card .doodle-link .dd svg { width: clamp(68px, 10vw, 128px); height: auto; }

.summary {
  margin: 48px 0 0;
  text-align: center;
  font-family: var(--serif);
  font-size: clamp(24px, 2.7vw, 34px);
  line-height: 1.2;
}

.about {
  margin-top: 96px;
  border-top: 2px solid var(--fg);
  padding-top: 44px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.about p { margin: 14px 0 0; max-width: 40ch; font-family: var(--serif); font-size: 34px; line-height: 1.28; }

.headshot-wrap {
  position: relative;
  width: 240px;
  aspect-ratio: 1;
  margin-left: -14px;
  display: grid;
  place-items: center;
  transform: rotate(-4deg);
}
.headshot-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.headshot {
  position: relative;
  width: 62%;
  aspect-ratio: 1;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 4px solid var(--fg);
}

/* ---------- Inner pages ---------- */
.title-row { display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); margin: 40px 0 0; }
.title-row .word { flex: none; }
/* Every page title scales by the same amount, set by the widest one (WORK, 924 wide), so the letters always match */
.title-row .word { width: auto; height: min(calc(var(--h) * 1px), calc(var(--h) * 72vw / 924)); }
/* The drawing sits on the title's baseline, like a period after the word */
.title-word { position: relative; display: block; width: fit-content; }
.title-doodle { position: absolute; left: calc(100% + clamp(10px, 1.6vw, 22px)); bottom: calc(var(--base, 0%) + 0.6%); transform: rotate(var(--tilt, 0deg)); transform-origin: bottom left; }
.title-doodle svg { display: block; width: clamp(77px, 13.8vw, 180px); height: auto; }



.section-head {
  margin-top: 110px;
  border-top: 2px solid var(--fg);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(72px, 9.4vw, 120px); line-height: 1; }
.section-head p { margin: 0; max-width: 24ch; text-align: right; font-family: var(--serif); font-style: italic; font-size: 30px; line-height: 1.25; }


.acks { margin: 56px 0 0; font-size: 17px; line-height: 1.7; }
.acks .eyebrow { margin-right: 14px; }
.acks a { text-underline-offset: 3px; }


/* 404 */
.lost { margin: 60px auto 0; max-width: 820px; padding: 48px 60px; }
.lost p { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; }

/* Footer */
.footer {
  margin-top: auto;
  padding-top: 120px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
}
.elsewhere { display: flex; gap: 4px; align-items: center; margin-left: -7px; }
.elsewhere a { display: flex; padding: 7px; color: var(--fg); }
.elsewhere svg { width: 30px; height: 30px; }
.footer .mono { text-decoration: none; }
.footer .mono:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Movement */
@media (prefers-reduced-motion: no-preference) {
  .lift { transition: translate .4s cubic-bezier(.2, .8, .2, 1), rotate .4s cubic-bezier(.2, .8, .2, 1), box-shadow .4s; }
  .card.lift:hover { translate: 0 -10px; box-shadow: 0 70px 90px -24px rgba(0, 0, 0, .42), 0 14px 34px rgba(0, 0, 0, .14); }
  .box.lift:hover { z-index: 5; translate: 0 -6px; box-shadow: 0 40px 50px -18px rgba(0, 0, 0, .4), 0 8px 20px rgba(0, 0, 0, .1); }
  .doodle-link:hover .dd svg,
  .title-doodle:hover svg,
  .elsewhere a:hover svg { animation: wobble 420ms ease-in-out infinite; }
  @keyframes wobble {
    0%, 100% { rotate: 0deg; }
    25% { rotate: -5deg; }
    75% { rotate: 5deg; }
  }
}

/* ---------- Mid-size screens ---------- */
@media (max-width: 1100px) {
  .about p { font-size: 30px; }
}

/* ---------- Tablets and phones ---------- */
@media (max-width: 820px) {
  :root { --gutter: max(20px, env(safe-area-inset-left, 0px)); }
  body { font-size: 16px; }
  .page { padding-top: 16px; padding-bottom: 30px; }
  .topbar { margin: 0; font-size: 19px; gap: 8px 12px; }
  .topbar nav { gap: 7px; }
  .theme-toggle + .slash { display: none; }
  .theme-toggle svg { width: 20px; height: 20px; }
  .theme-toggle { width: 30px; height: 30px; }
  .landing .topbar .home { display: none; }

  .hero { margin: 18px -6px 0; }
  .hero .line:last-child { margin-top: 0; }
  .hero-card {
    position: relative;
    left: auto; top: auto;
    width: auto;
    margin: -12px 6px -12px;
    padding: 20px 10px 16px;
    border-width: 4px;
    border-radius: 30px;
    box-shadow: 0 30px 40px -16px rgba(0, 0, 0, .35), 0 6px 16px rgba(0, 0, 0, .1);
    transform: none;
  }
  .hero-card .greeting { font-size: clamp(48px, 16vw, 72px); }
  .hero-card nav { margin-top: 14px; }
  .hero-card .doodle-link { gap: 6px; }
  .hero-card .doodle-link .dd svg { width: clamp(56px, 17vw, 80px); }
  .hero-card .doodle-link .label { font-size: 12px; }

  .summary { margin-top: 22px; text-align: left; font-size: 24px; }

  .about { margin-top: 44px; padding-top: 26px; display: block; }
  .about-head { display: flex; align-items: center; gap: 18px; }
  .about-head .eyebrow { order: 2; }
  .headshot-wrap { width: 132px; margin-left: -8px; }
  .headshot { border-width: 3px; }
  .about p { margin-top: 16px; font-size: 23px; line-height: 1.3; max-width: none; }

  .title-row { margin-top: 28px; gap: 18px; }
  .title-row .word { height: min(calc(var(--h) * 1px), calc(var(--h) * 64vw / 924)); }



  .section-head { margin-top: 64px; display: block; }
  .section-head h2 { font-size: 64px; }
  .section-head p { margin-top: 8px; text-align: left; font-size: 24px; }

  .acks { margin-top: 36px; font-size: 16px; }
  .acks .eyebrow { display: block; margin: 0 0 6px; }

  .pill { font-size: 16px; padding: 12px 20px 12px 16px; }

  .lost { box-shadow: 0 30px 40px -16px rgba(0, 0, 0, .35), 0 6px 16px rgba(0, 0, 0, .1); }
  .lost { margin-top: 32px; padding: 30px 26px; border-width: 4px; border-radius: 30px; }

  .footer { padding-top: 64px; flex-direction: column; align-items: flex-start; gap: 8px; }
}

/* About label: beside the photo on phones, above the bio on larger screens */
.about h2.eyebrow { margin: 0; font-weight: 400; }
.about-label-m { display: none; }
@media (max-width: 820px) {
  .about-label-m { display: block; }
  .about-label-d { display: none; }
}

@media (max-width: 820px) { .wide-only { display: none; } }
.summary a { text-decoration-thickness: 1.5px; text-underline-offset: 5px; }


/* ---------- Work: job cards ---------- */
.jobgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 50px; }
.jobcard { padding: 32px 36px 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.jobcard.wide { grid-column: span 2; }
.jobcard .org { margin: 6px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 4.2vw, 54px); line-height: 1; }
.jobcard .role { color: var(--muted); font-size: 16px; }
.jobcard p { margin: 8px 0 0; font-size: 18px; line-height: 1.5; max-width: 52ch; }
.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--fg); color: var(--bg); font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.publist { margin-top: 30px; border-top: 2px solid var(--fg); }
.publist a { display: grid; grid-template-columns: minmax(0, 1fr) 260px 70px 30px; gap: 24px; align-items: baseline; padding: 24px 0; border-bottom: 2px solid var(--fg); text-decoration: none; }
.publist .t { font-family: var(--serif); font-size: 34px; line-height: 1.1; }
.publist .arrow { font-size: 24px; text-align: right; }
.publist a:hover .t { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
@media (prefers-reduced-motion: no-preference) {
  .publist .arrow { transition: translate .25s; }
  .publist a:hover .arrow { translate: 4px -4px; }
}

/* ---------- Q&A: one question at a time ---------- */
.stage { position: relative; width: min(860px, 100%); margin: 56px auto 0; }
.stage .back, .stage .back2 { position: absolute; inset: 0; }
.stage .back { transform: translate(16px, 16px); }
.stage .back2 { transform: translate(32px, 32px); }
.stage .front { position: relative; padding: 38px 48px 104px; min-height: 382px; }
.qa-js .slide:not(.on) { display: none; }
html:not(.qa-js) .slide + .slide { margin-top: 48px; padding-top: 40px; border-top: 2px solid var(--fg); }
.slide .big { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; max-width: 20ch; }
.slide .ans { margin: 20px 0 0; font-size: 20px; line-height: 1.5; max-width: 44ch; }
.ans.typing::after { content: ""; display: inline-block; width: .5em; height: 1em; margin-left: 3px; vertical-align: -.12em; background: var(--fg); }
.qlist { list-style: none; padding: 0; margin: 48px auto 0; width: min(860px, 100%); display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.qlist button { all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%; height: 100%; padding-top: 12px; border-top: 2px solid var(--fg); font-family: var(--serif); font-size: 21px; line-height: 1.15; }
.qlist button:focus-visible { outline: 3px solid var(--fg); outline-offset: 4px; }
.qlist button.on { border-top-width: 6px; padding-top: 8px; }
.qlist button:hover { text-decoration: underline; text-underline-offset: 4px; }
.qlist span { display: block; font-family: var(--mono); font-size: 12px; margin-bottom: 6px; }
html:not(.qa-js) .qlist { display: none; }
.pager { position: absolute; right: 32px; bottom: 28px; display: flex; align-items: center; gap: 12px; }
.pager button { font: inherit; cursor: pointer; padding: 0; }
.pager .arrowbtn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--fg); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 24px; }
html:not(.qa-js) .pager { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .pager .arrowbtn { transition: translate .2s; }
  .pager .arrowbtn:hover { translate: 0 -3px; }
}

@media (max-width: 1100px) {
  .publist a { grid-template-columns: minmax(0, 1fr) 200px 60px 24px; }
  .publist .t { font-size: 28px; }
}
@media (max-width: 820px) {
  .jobgrid { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; }
  .jobcard.wide { grid-column: auto; }
  .jobcard { padding: 22px 22px 24px; border-width: 4px; border-radius: 26px; }
  .jobcard .org { font-size: 36px; }
  .jobcard .role { font-size: 15px; }
  .jobcard p { font-size: 17px; }
  .publist a { grid-template-columns: minmax(0, 1fr) 24px; gap: 4px 12px; padding: 18px 0; }
  .publist .t { font-size: 24px; grid-column: 1; }
  .publist .arrow { grid-column: 2; grid-row: 1; }
  .publist .src, .publist .yr { grid-column: 1; font-size: 12px; }
  .publist .src::after { content: none; }

  .stage { margin-top: 36px; margin-right: 16px; }
  .stage .back { transform: translate(8px, 8px); }
  .stage .back2 { transform: translate(16px, 16px); }
  .stage .front { padding: 22px 20px 74px; min-height: 307px; border-width: 4px; border-radius: 26px; }
  .stage .back, .stage .back2 { border-width: 4px; border-radius: 26px; }
  .slide .big { margin-top: 0; font-size: 30px; }
  .slide .ans { margin-top: 14px; font-size: 17px; }
  .qlist { grid-template-columns: 1fr; gap: 0; margin-top: 36px; }
  .qlist button { padding: 12px 0; font-size: 20px; }
  .qlist button.on { padding-top: 8px; }
  .pager { right: 16px; bottom: 16px; gap: 8px; }
  .pager .arrowbtn { width: 42px; height: 42px; font-size: 20px; }
}

/* ---------- Accent: highlighter yellow ---------- */
::selection { background: var(--hl); color: #0D0D0B; }
.hl, .summary a, .about p a {
  color: inherit;
  background: linear-gradient(var(--hl), var(--hl)) 0 100% / 100% var(--hl-h) no-repeat;
  text-decoration: none;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .08em; margin: 0 -.08em;
}
.summary a:hover { background-size: 100% 100%; color: #0D0D0B; }
.ans.typing::after { background: var(--hl); box-shadow: 0 0 0 2px var(--fg); }
.headshot { transition: box-shadow .3s; }

@media (prefers-reduced-motion: no-preference) {
  .summary a, .hl { transition: background-size .25s ease, color .25s; }

  /* Headshot: the sunburst turns slowly, the photo leans in on hover */
  .headshot-wrap svg { animation: spin 70s linear infinite; }
  .headshot-wrap { transition: transform .45s cubic-bezier(.3, 1.5, .5, 1); }
  .headshot-wrap:hover { transform: rotate(3deg) scale(1.05); }
  .headshot-wrap:hover .headshot { box-shadow: 0 0 0 7px var(--hl); }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Page load: titles rise from the baseline, drawings pop in last */
  .title-row .word, .hero .word { animation: rise .8s cubic-bezier(.2, .9, .25, 1) backwards; }
  .hero .line:last-child .word { animation-delay: .12s; }
  .title-doodle { animation: pop .55s .7s cubic-bezier(.3, 1.6, .5, 1) backwards; }
  .hero-card { animation: settle .7s .3s cubic-bezier(.2, .9, .25, 1) backwards; }
  .hero-card .doodle-link .dd { animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) backwards; }
  .hero-card .doodle-link:nth-child(1) .dd { animation-delay: .75s; }
  .hero-card .doodle-link:nth-child(2) .dd { animation-delay: .85s; }
  .hero-card .doodle-link:nth-child(3) .dd { animation-delay: .95s; }
  @keyframes rise { from { clip-path: inset(100% 0 0 0); translate: 0 14%; } to { clip-path: inset(0); translate: 0 0; } }
  @keyframes pop { from { scale: 0; } to { scale: 1; } }
  @keyframes settle { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
}
