/* Plainsmith's shared page opening: an upright title and a small joinery
   mark on a ruled label. Keep page-specific product colors out of this system.
   The house sheet imports this for marketing pages. Sample businesses use
   their own sheets; product screens retain their more specific UI type. */
:root {
  --ps-title-size:clamp(38px,4.6vw,60px);
  --ps-title-weight:440;
  --ps-title-leading:1.06;
  --ps-label-size:11px;
}

/* An eyebrow label wraps balanced, as the headings do (v3.css, "A HEADING
   TAKES ITS COLUMN'S WIDTH"): at 390, seven left one word alone on their last
   line, "ONE / PLAN." on the homepage among them. Here, not in v3.css, because
   the homepage loads this sheet without v3.css. */
body .kicker { text-wrap:balance; }

body .kicker:has(+ h1),
body .psEyebrow.psEyebrow {
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  max-width:540px;
  margin:0 0 24px;
  color:var(--ink);
  font-family:Inter,-apple-system,sans-serif;
  font-size:var(--ps-label-size);
  font-weight:600;
  font-style:normal;
  line-height:1.6;
  letter-spacing:.13em;
  text-transform:uppercase;
}

/* Two square-ended strokes meet like a joint. The short cut across the
   corner repeats the rust used for actions, without coloring the words. */
body .kicker:has(+ h1)::before,
body .psEyebrow.psEyebrow::before {
  content:"";
  flex:0 0 18px;
  width:18px;
  height:18px;
  background:
    linear-gradient(var(--hand),var(--hand)) 0 0 / 7px 7px no-repeat,
    linear-gradient(var(--ink),var(--ink)) 0 11px / 18px 2px no-repeat,
    linear-gradient(var(--ink),var(--ink)) 11px 0 / 2px 18px no-repeat;
}

/* The rule takes only the room the words leave (basis 0). With a 24px basis it
   squeezed a label made of two pieces, a link and the rest, so each wrapped on
   its own ("Tool / demos · Appointment / Reminders"). And with no room left it
   is gone: a 16px floor left a wrapped label's rule as a stray dash at the
   right edge (a reader, 2026-11-11: f4759). */
body .kicker:has(+ h1)::after,
body .psEyebrow.psEyebrow::after {
  content:"";
  flex:1 1 0;
  min-width:0;
  height:1px;
  background:var(--line);
}

body h1,
body :is(.heroSplit,.hwHero,.seHero,.ntHero,.arHead,.swHero) h1,
body h1.psHeadline.psHeadline,
body #trades-page h1.psHeadline {
  margin:0;
  /* no max-width: the title takes its column and wraps balanced (v3.css,
     "A HEADING TAKES ITS COLUMN'S WIDTH"; it was 20ch, Jason 2026-11-11) */
  text-wrap:balance;
  color:var(--ink);
  font-family:Newsreader,Georgia,serif;
  font-size:var(--ps-title-size);
  font-weight:var(--ps-title-weight);
  font-style:normal;
  font-synthesis:none;
  line-height:var(--ps-title-leading);
  letter-spacing:-.025em;
  overflow-wrap:normal;
}

body h1 :is(em,.psHeadlineEnd),
body .hwHero h1 em {
  display:inline;
  color:inherit;
  font-style:normal;
  font-weight:inherit;
}

/* The homepage keeps its existing delivery line inside the one semantic H1. */
body .psHeadline .heroTitle { display:block; }
body .psHeadline .heroClock {
  margin-top:24px;
  font-family:Inter,-apple-system,sans-serif;
  font-size:17px;
  font-weight:600;
  font-style:normal;
  line-height:1.5;
  letter-spacing:0;
}

body .psHeadline + :is(.sub,.osLead,.prLead) { margin-top:24px; }

@media(min-width:981px) {
  .homeRefined .heroGrid {
    grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);
  }
}

@media(max-width:700px) {
  body .kicker:has(+ h1),
  body .psEyebrow.psEyebrow { gap:10px; margin-bottom:20px; }
  body .psHeadline .heroClock { margin-top:20px; font-size:16px; }
  /* On a phone the label fills its row, so its rule was a dash beside a
     wrapped label (f4759) or a 10px stub after one line (f4785). Phones show
     the mark and the words; the rule stays on wider screens (Jason,
     2026-11-12: "yes drop on phones"). */
  body .kicker:has(+ h1)::after,
  body .psEyebrow.psEyebrow::after { display:none; }
}
