/* Pell & Daughter: the demo page's own look. The slider's styles are in
   before-after.css. */

:root {
  --ground: #eef0f2;
  --ink: #1e242b;
  --ink-soft: #59636e;
  --cobalt: #2350c8;
  --line: #d3d8dd;
  --focus: #2350c8;
  --head: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--ground); color: var(--ink); }
body { margin: 0; font: 17px/1.6 var(--sans); }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.masthead {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line);
}
.wordmark { font: 700 1.2rem/1 var(--head); text-decoration: none; letter-spacing: -.01em; }
.call { font-weight: 600; color: var(--cobalt); text-decoration: none; }
.call:hover { text-decoration: underline; }

main { max-width: 70rem; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) 5rem; }

.intro { padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2rem, 5vw, 3rem); max-width: 40rem; }
.intro h1 { font: 700 clamp(2.1rem, 5vw, 3.4rem)/1.08 var(--head); letter-spacing: -.02em; margin: 0 0 1rem; }
.intro p { margin: 0; color: var(--ink-soft); font-size: 1.1rem; }

/* spacing lives on .pair, not on the figure: before-after.css sets
   .ba { margin: 0 } and loads later, so a margin on .ba-wide here loses */
.pair { margin-top: clamp(3rem, 7vw, 5rem); display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 48rem) { .pair { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.pair-text h2 { font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--head); letter-spacing: -.01em; margin: 0 0 1rem; }
.pair-text p { margin: 0; color: var(--ink-soft); max-width: 32rem; }

.foot { padding: 2rem clamp(1rem, 4vw, 3rem); border-top: 1px solid var(--line); color: var(--ink-soft); font-size: .9rem; }
