/* 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:#FAF8F3;         /* the cream paper ground of the approved LOOK, not white */
  --rule:rgba(22,24,26,.13);
  --measure:64ch;
}

@media (prefers-color-scheme: dark){
  :root{
    --ink:#F3F4F5; --body:#C7CACC; --mute:#8D9295;
    /* the dark counterpart of the cream, warm rather than the old cool near-black */
    --paper:#181613; --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:'Figtree',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}

/* A section head carries no yellow. Yellow does three jobs only: the line
   carrying the argument, the team block, the $495 rung. A decorative rule above
   every h2 was a fourth job, so it is gone. */
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;
}
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}

/* The one yellow on the page: the highlighter behind the line carrying the
   argument. Driven by a -BIG tag in the docx, never guessed. Clone the box
   decoration so a line that wraps gets the pen on both rows, and never yellow
   text on paper, so the ink stays dark on the yellow in both schemes. */
.hl{
  background:var(--yellow);color:#16181A;
  padding:.06em .2em;
  -webkit-box-decoration-break:clone;box-decoration-break:clone;
}

/* A labelled state row: the greek name sits in the left column, the sentence
   naming the state leads, the description follows. Driven by a STATE-<GREEK>
   tag, so any page tagged that way gets it. */
.state{
  display:grid;grid-template-columns:5.5rem 1fr;gap:0 18px;
  padding-top:16px;margin:0 0 18px;border-top:1px solid var(--rule);
}
.state .lbl{
  font-size:.72rem;letter-spacing:.14em;font-weight:700;color:var(--mute);
  padding-top:.5rem;
}
.state .lead{color:var(--ink);font-weight:700;margin:0 0 6px}
.state p{margin:0}
@media (max-width:640px){
  .state{grid-template-columns:1fr;gap:6px 0}
  .state .lbl{padding-top: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}
