/* yannlemasson.com | shared styles */
:root {
  --ink: #18213a;
  --ink-hover: #2a3657;
  --muted: #4a5470;
  --paper: #f4f5f1;
  --white: #ffffff;
  --line: #d9dccf;
  /* Script revision-page tints: one per box of the framework */
  --problem: #f6d9df;
  --solution: #d9e6f7;
  --proof: #f8ebb5;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Courier Prime", "Courier New", Courier, monospace;
  --wrap: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }

/* Header */
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: 1.25rem; padding-bottom: 1.25rem;
}
.brand { font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.nav { display: flex; gap: 1.25rem; align-items: center; font-size: 1rem; }
.nav a:not(.btn) { text-decoration: none; }
.nav a:not(.btn):hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block; background: var(--ink); color: var(--white);
  text-decoration: none; font-weight: 600; line-height: 1.2;
  padding: .9rem 1.4rem; border-radius: 6px; border: 2px solid var(--ink);
}
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
.btn-quiet { background: transparent; color: var(--ink); }
.btn-quiet:hover { background: var(--white); border-color: var(--ink); }
.btn-small { padding: .5rem 1rem; font-size: .95rem; }

/* Type */
h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.04;
  letter-spacing: -.025em; margin: 0 0 1.25rem; font-weight: 800;
}
h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem); line-height: 1.1;
  letter-spacing: -.02em; margin: 0 0 1rem; font-weight: 800;
}
h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 .4rem; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 36ch; margin: 0 0 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.fineprint { font-size: .95rem; color: var(--muted); margin: .9rem 0 0; }

/* Hero */
.hero { padding: 3.5rem 0 4.5rem; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: center; }

/* The demo plan card: the signature element */
.plan {
  margin: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.25rem; box-shadow: 0 18px 40px -24px rgba(24, 33, 58, .45);
}
.plan-title {
  display: flex; justify-content: space-between; gap: 1rem;
  font-size: .95rem; color: var(--muted); margin: 0 0 1rem;
}
.plan ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; counter-reset: box; }
.plan li { counter-increment: box; position: relative; border-radius: 6px; padding: 1rem 1rem 1rem 3.25rem; }
.plan li::before {
  content: counter(box); position: absolute; left: 1rem; top: 1rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--ink); color: var(--white);
  font-size: .85rem; font-weight: 700; display: grid; place-items: center;
}
.plan .problem { background: var(--problem); }
.plan .solution { background: var(--solution); }
.plan .proof { background: var(--proof); }
.plan strong { display: block; font-size: 1rem; }
.plan li span { display: block; font-family: var(--script); font-size: 1rem; line-height: 1.45; margin-top: .2rem; }
.plan-blank li span { color: var(--muted); }
.plan-blank li span::after {
  content: ""; display: block; height: 2.6em; margin-top: .35rem;
  background: repeating-linear-gradient(transparent 0 1.25em, rgba(24, 33, 58, .3) 1.25em calc(1.25em + 1px));
}

@media (prefers-reduced-motion: no-preference) {
  .plan li { animation: drop .55s cubic-bezier(.2, .7, .2, 1) both; }
  .plan li:nth-child(1) { animation-delay: .15s; }
  .plan li:nth-child(2) { animation-delay: .35s; }
  .plan li:nth-child(3) { animation-delay: .55s; }
  @keyframes drop { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* Sections */
.section { padding: 4.5rem 0; border-top: 1px solid var(--line); }
.section-white { background: var(--white); }
.intro { max-width: 44rem; margin-bottom: 2.5rem; }
.intro p { color: var(--muted); margin: 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.pair p { margin: 0; color: var(--muted); }
.section-close { margin: 2.5rem 0 0; font-weight: 600; }

/* Before / after scripts */
.script { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 1.5rem; }
.script blockquote { margin: 0 0 1.25rem; font-family: var(--script); font-size: 1rem; line-height: 1.55; }
.script blockquote p { margin: 0 0 .75rem; }
.cue { display: block; font-weight: 700; }
.notes { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: 1rem; }
.notes li { position: relative; padding-left: 1.6rem; }
.before .notes li::before { content: "\2715"; position: absolute; left: 0; color: #a3243b; font-weight: 700; }
.after .notes li::before {
  content: ""; position: absolute; left: 0; top: .4em; width: .85rem; height: .85rem;
  border-radius: 3px; background: var(--chip); border: 1px solid rgba(24, 33, 58, .35);
}
.script .verdict { margin: 1.25rem 0 0; font-size: 1rem; color: var(--muted); }

/* About */
.about .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 2.5rem; align-items: center; }
.about img { width: 220px; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--solution); }
.about p { color: var(--muted); max-width: 40rem; }

/* Closing call to action */
.cta-band { padding: 4.5rem 0; background: var(--ink); color: var(--white); }
.cta-band p { color: #c9cfdf; max-width: 40rem; }
.cta-band .btn { background: var(--proof); color: var(--ink); border-color: var(--proof); }
.cta-band .btn:hover { background: var(--white); border-color: var(--white); }
.cta-band .fineprint { color: #aab2c8; }

/* Footer */
.site-footer { padding: 2rem 0; font-size: .95rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer nav { display: flex; gap: 1.25rem; }

@media (max-width: 820px) {
  .hero .wrap, .pair, .about .wrap { grid-template-columns: 1fr; }
  .hero { padding: 2rem 0 3.5rem; }
  .hero .wrap { gap: 2.5rem; }
  .about img { width: 160px; }
  .hide-sm { display: none; }
}
