/* behaviours.betterideasfaster.com
   The ten behaviour pages. Long form, so this is the .longform variant from
   README_TEN_BEHAVIOURS.md rather than the house scroll spec: body 1.12rem
   against the house 1.02rem, and a body colour a step darker than muted,
   because 1.02rem muted is right for a scroll you skim and too small and too
   light for two thousand words you actually read. Measure stays 64ch, line
   height stays 1.62. Matt's call, 4 September 2026, test and learn. */

:root{
  --yellow:#FEDB00;        /* measured from the 2024 wordmark files. Not #FFD100. */
  --ink:#16181A;
  --body:#3F4244;          /* the longform step darker, not #5E6062 */
  --mute:#6E7376;
  --paper:#FFFFFF;
  --rule:rgba(22,24,26,.13);
  --measure:64ch;
}

@media (prefers-color-scheme: dark){
  :root{
    --ink:#F3F4F5; --body:#C7CACC; --mute:#8D9295;
    --paper:#141618; --rule:rgba(243,244,245,.15);
  }
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--paper);color:var(--body);
  font-family:'Poppins',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  font-size:1.12rem;line-height:1.62;-webkit-font-smoothing:antialiased;
}

article.longform{max-width:var(--measure);margin:0 auto;padding:64px 24px 0}

a{color:inherit;text-decoration:none;border-bottom:2px solid var(--yellow)}
a:hover{background:var(--yellow);color:#16181A;border-bottom-color:var(--yellow)}

.eyebrow{
  font-size:.72rem;letter-spacing:.15em;text-transform:uppercase;
  color:var(--mute);font-weight:700;margin:0 0 20px;
}

h1{
  font-size:clamp(1.95rem,5.4vw,2.75rem);line-height:1.12;letter-spacing:-.02em;
  color:var(--ink);font-weight:800;margin:0 0 24px;
}
.lede{font-size:1.28rem;line-height:1.48;color:var(--ink);margin:0 0 8px}

/* The yellow rule above a section head is the one brand device on the page.
   One typographic voice: it appears here and nowhere else. */
section{margin-top:44px;padding-top:36px;border-top:1px solid var(--rule)}
h2{
  font-size:1.42rem;line-height:1.25;color:var(--ink);font-weight:700;
  margin:0 0 18px;position:relative;padding-top:14px;
}
h2::before{
  content:"";position:absolute;top:0;left:0;width:44px;height:5px;
  background:var(--yellow);
}
h3{font-size:1.1rem;color:var(--ink);font-weight:700;margin:28px 0 10px}
p{margin:0 0 18px}
p:last-child{margin-bottom:0}

section.door p{color:var(--ink);font-weight:600}

.pager{margin-top:28px;font-size:.95rem;color:var(--mute)}
.pager a{border-bottom-width:1px}

/* the index */
ol.ten{list-style:none;margin:0;padding:0;counter-reset:none}
ol.ten li{border-bottom:1px solid var(--rule)}
ol.ten li:last-child{border-bottom:0}
ol.ten a{display:block;padding:20px 0;border-bottom:0}
ol.ten a:hover{background:none}
ol.ten a:hover .q{background:var(--yellow);color:#16181A}
ol.ten .n{
  display:inline-block;font-size:.72rem;letter-spacing:.14em;font-weight:700;
  color:var(--mute);margin-bottom:6px;
}
ol.ten .q{display:block;font-size:1.24rem;line-height:1.3;font-weight:700;color:var(--ink);margin-bottom:6px}
ol.ten .a{display:block;color:var(--body);font-size:1rem;line-height:1.5}

/* sources */
.sources ol{margin:0;padding-left:1.3em}
.sources li{margin:0 0 12px;font-size:.95rem;line-height:1.5;color:var(--mute)}
.sources a{border-bottom-width:1px}

footer{
  margin-top:48px;padding:28px 0 72px;border-top:1px solid var(--rule);
  color:var(--mute);font-size:.9rem;
}
footer p{margin:0 0 6px}
