/* Sara Dupont: shared by every page of saradupont.com */
@font-face { font-family: "Manrope"; src: url("assets/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("assets/playfair.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --ink: #1E1726;
  --ink-2: #5A5163;
  --plum: #4A306D;
  --plum-deep: #2D1B4E;
  --periwinkle: #B3CBF2;
  --lavender: #F5F0FA;
  --lavender-2: #E8E0F4;
  --rose: #C47A9E;
  --white: #FFFFFF;
  --line: #DDD3EA;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--lavender); color: var(--ink); font: 400 16px/24px var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--plum); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }

/* text styles (Tailwind scale) */
.heading-1 { font: 600 36px/40px var(--serif); letter-spacing: -0.01em; }
.heading-2 { font: 600 30px/36px var(--serif); letter-spacing: -0.01em; }
.heading-5 { font: 600 24px/32px var(--serif); }
.title-2 { font: 600 18px/28px var(--sans); }
.body-lg { font: 400 18px/28px var(--sans); color: var(--ink-2); }
.body-3 { font: 400 16px/24px var(--sans); color: var(--ink-2); }
.caption-2 { font: 400 14px/20px var(--sans); color: var(--ink-2); }
@media (min-width: 768px) {
  .heading-1 { font-size: 60px; line-height: 60px; }
  .heading-2 { font-size: 48px; line-height: 48px; }
}

.skip { position: absolute; left: 16px; top: -64px; z-index: 100; background: var(--plum); color: var(--white); padding: 8px 16px; border-radius: 999px; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section--white { background: var(--white); }
.section--dark { background: var(--plum-deep); color: var(--lavender); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p { margin-top: 16px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 12px 24px; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none;
  font: 600 16px/24px var(--sans); background: var(--plum); color: var(--white);
  transition: background-color 300ms var(--ease), transform 300ms var(--ease);
}
.btn:hover { background: var(--plum-deep); }
.btn:active { transform: scale(0.98); }
.btn--lg { font-size: 18px; line-height: 28px; padding: 16px 32px; min-height: 56px; }
.btn--quiet { background: transparent; color: var(--plum); box-shadow: inset 0 0 0 1px var(--line); }
.btn--quiet:hover { background: var(--white); }
.btn--sm { font-size: 14px; line-height: 20px; padding: 8px 16px; min-height: 40px; }

/* nav: floats off the top, sized to its content */
.nav {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: calc(100% - 24px); max-width: 1120px; display: flex; align-items: center; gap: 24px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(74, 48, 109, 0.06), 0 8px 24px rgba(74, 48, 109, 0.08);
}
.nav__logo img { height: 48px; width: auto; }
.nav > nav { margin: 0 auto; }
.nav__links { display: none; gap: 24px; margin: 0; padding: 0; list-style: none; }
.nav__links a { color: var(--ink); text-decoration: none; font: 500 14px/20px var(--sans); transition: color 300ms var(--ease); }
.nav__links a:hover { color: var(--plum); }
.nav .btn { display: none; }
.nav__toggle { margin-left: auto; width: 48px; height: 48px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 14px; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 500ms var(--ease); }
.nav__toggle span:first-child { top: 19px; }
.nav__toggle span:last-child { top: 27px; }
.nav[data-open="true"] .nav__toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav .btn { display: inline-flex; }
  .nav__toggle { display: none; }
}

.menu {
  position: fixed; inset: 0; z-index: 40; padding: 112px 24px 48px; display: flex; flex-direction: column; gap: 8px;
  background: rgba(245, 240, 250, 0.94); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  visibility: hidden; opacity: 0; transition: opacity 300ms var(--ease), visibility 0s 300ms;
}
.menu[data-open="true"] { visibility: visible; opacity: 1; transition: opacity 300ms var(--ease); }
.menu a { font: 600 30px/36px var(--serif); color: var(--ink); text-decoration: none; padding: 8px 0;
  opacity: 0; transform: translateY(24px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.menu .btn { margin-top: 24px; font: 600 18px/28px var(--sans); color: var(--white); padding: 16px 32px; }
.menu[data-open="true"] a { opacity: 1; transform: none; }
.menu[data-open="true"] a:nth-child(2) { transition-delay: 60ms; }
.menu[data-open="true"] a:nth-child(3) { transition-delay: 120ms; }
.menu[data-open="true"] a:nth-child(4) { transition-delay: 180ms; }
.menu[data-open="true"] a:nth-child(5) { transition-delay: 240ms; }
.menu[data-open="true"] a:nth-child(6) { transition-delay: 300ms; }

/* hero: the SD monogram, huge and cropped, is the one loud thing on the page */
.hero { position: relative; overflow: hidden; min-height: 100svh; display: flex; align-items: center; padding: 128px 0 80px; }
.hero__mono {
  position: absolute; right: -0.08em; bottom: -0.2em; z-index: 0; pointer-events: none; user-select: none;
  font: 400 clamp(280px, 52vw, 720px)/1 var(--serif); letter-spacing: -0.04em; color: var(--periwinkle); opacity: 0.55;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 {
  max-width: 680px;
  background: linear-gradient(90deg, var(--ink), var(--plum)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 560px; margin-top: 24px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 40px; }
.hero__trust { margin-top: 24px; display: flex; align-items: center; gap: 8px; }

/* about */
.about { max-width: 720px; }
.about p { margin-top: 24px; }

/* services */
.services { display: grid; gap: 16px; }
@media (min-width: 768px) { .services { grid-template-columns: 1fr 1fr; gap: 24px; } }
.service { background: var(--white); border-radius: 24px; padding: 32px; }
.service svg { width: 32px; height: 32px; color: var(--plum); }
.service h3 { margin-top: 24px; }
.service p { margin-top: 12px; }

/* tools: drop and anon */
.tools { display: grid; gap: 16px; }
@media (min-width: 768px) { .tools { grid-template-columns: 1fr 1fr; gap: 24px; } }
.tool { display: flex; flex-direction: column; gap: 16px; padding: 32px; border-radius: 24px; background: var(--white); border: 1px solid var(--line); }
.tool__tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--lavender-2); color: var(--plum); font: 600 12px/16px var(--sans); }
.tool ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tool li { display: flex; gap: 8px; color: var(--ink-2); }
.tool li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--plum); }
.tool .btn { align-self: flex-start; margin-top: auto; }

/* process: a real sequence, so it is numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-bottom: 24px;
  border-radius: 999px; border: 1px solid var(--periwinkle); color: var(--plum); font: 600 20px/28px var(--serif);
}
.steps p { margin-top: 8px; }

/* philosophy */
.philosophy { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .philosophy { grid-template-columns: 5fr 7fr; gap: 64px; } }
.philosophy img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 24px; }
.philosophy h2 { color: var(--lavender); }
.philosophy p { color: rgba(245, 240, 250, 0.8); margin-top: 24px; }

/* tagline: words light up one by one as it scrolls in */
.tagline { padding: 96px 0; }
.tagline p { max-width: 880px; font: 600 36px/40px var(--serif); color: var(--ink); }
@media (min-width: 768px) { .tagline p { font-size: 60px; line-height: 60px; } }
.tagline .line { display: block; }
.tagline .w { opacity: 0.3; transition: opacity 600ms var(--ease); }
.tagline .w.on { opacity: 1; }

/* faq */
.faq { max-width: 760px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--white); border-radius: 16px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 24px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/28px var(--sans); color: var(--plum); transition: transform 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 24px; }

/* final cta */
.cta { text-align: center; }
.cta .wrap { max-width: 680px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cta img { height: 80px; width: auto; }

/* footer */
.footer { background: var(--ink); color: rgba(245, 240, 250, 0.72); padding: 64px 0 40px; }
.footer a { color: var(--lavender); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h2 { font: 600 14px/20px var(--sans); color: var(--lavender); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer__brand { font: 600 24px/32px var(--serif); color: var(--lavender); }
.footer__legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(245, 240, 250, 0.12); font-size: 14px; line-height: 20px; }

/* legal and 404 pages */
.page { padding: 128px 0 80px; }
.page .wrap { max-width: 720px; }
.page h1 { margin-bottom: 16px; }
.page h2 { font: 600 20px/28px var(--sans); margin: 40px 0 12px; }
.page p, .page li { color: var(--ink-2); margin-top: 12px; }
.page ul { padding-left: 24px; margin: 0; }
.draft { margin: 24px 0 0; padding: 16px 24px; border-radius: 16px; background: #FFF3D6; color: #6B4A00; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .tagline .line { display: block; }
.tagline .w { opacity: 1; }
  .menu a { opacity: 1; transform: none; }
}
@media (max-width: 767px) { .service, .tool { padding: 24px; } }
