/* lawcuments.com — brand tokens & chrome primitives (Direction B, "Legal Pad").
   Decided 2026-07-10; spec: docs/superpowers/specs/2026-07-10-marketing-front-door-design.md

   TWO DELIVERY PATHS — keep this file self-contained and portable:
     1. Inlined FIRST into the site's content-hashed CSS bundle (base.njk).
     2. Served byte-identical at the STABLE URL /assets/css/brand.css for the
        basilica app's runtime consumption (Story 2.1.2; docs/seam-contract.md).
   Rules: tokens + brand-wide primitives ONLY — page/section layout lives in
   style.css. Font URLs are root-relative on purpose: a cross-origin consumer
   resolves them against THIS stylesheet's origin (lawcuments.com).

   Since the @fgl/vituno adoption (Story 2.2.1): buttons and the focus ring
   moved to the framework layer — .btn* ships in the vendored fgl/buttons.css
   skinned by the token overrides in lawcuments.css, and the focus indicator
   is the framework ring (fgl/base.css) with --focus-ring re-valued to the
   Legal Pad red. What remains here is what the seam consumer needs and the
   framework does not own: the faces, the --lc-* palette, the reduced-motion
   floor, and the pad-panel signature surfaces. */

/* ── Self-hosted faces (SIL OFL — see src/assets/fonts/OFL-*.txt) ─────────── */
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("/assets/fonts/jost-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Caveat";
  src: url("/assets/fonts/caveat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ── Design tokens ────────────────────────────────────────────────────────── */
:root {
  /* palette (spec: Visual direction, Direction B) */
  --lc-canary: #FFE977;      /* pad panels, highlight marks */
  --lc-ink: #1E2A3A;         /* type, CTAs */
  --lc-rule-blue: #9CB6D8;   /* pad rule lines, link underlines */
  --lc-margin-red: #D9503F;  /* margin line, focus rings, arrows */
  --lc-paper: #FEFEF9;       /* page ground */
  /* derived */
  --lc-ink-soft: #3C4859;    /* body copy on paper */
  --lc-ink-hover: #2E415C;   /* CTA hover */
  --lc-hairline: #E0DCCC;    /* card borders, separators */
  /* type roles */
  --lc-display: "Jost", Futura, "Avenir Next", "Century Gothic", "Trebuchet MS", sans-serif;
  --lc-body: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --lc-hand: "Caveat", "Noteworthy", cursive;
  /* rhythm: pad rule spacing — type in pad panels sits ON these lines */
  --lc-line: 30px;
  /* --lc-measure retired at Story 2.2.1: page geometry now rides the
     framework's --content-full token, re-valued to the same 64rem in
     lawcuments.css. */
}

/* ── Accessibility floor: reduced motion ──────────────────────────────────── */
/* The focus indicator moved to the framework ring (fgl/base.css +
   --focus-ring in lawcuments.css) at Story 2.2.1 — a global :focus-visible
   outline here would stack a second ring on top of it. A future seam
   consumer (basilica, Story 2.1.2) decides its own focus treatment. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Pad panel — the signature surface ────────────────────────────────────── */
.pad-lines {
  position: relative;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(var(--lc-line) - 1px),
      var(--lc-rule-blue) calc(var(--lc-line) - 1px),
      var(--lc-rule-blue) var(--lc-line)
    ),
    var(--lc-canary);
}
.pad-lines--margin::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 62px;
  width: 4px;
  border-left: 1px solid var(--lc-margin-red);
  border-right: 1px solid var(--lc-margin-red);
}
/* lawcuments.com — site styles (Direction B, "Legal Pad").
   Since the @fgl/vituno adoption (Story 2.2.1) this file layers ON TOP of the
   vendored framework CSS (fgl/*.css, linked in base.njk) and the token
   overrides in lawcuments.css: page/section layout, the brand's signature
   surfaces (hero, pad rules, CTA band), and the small, deliberate Legal Pad
   re-pins on framework components — each marked "Legal Pad:" below, the
   review-visible site-owned layer KB fgl-frontend-pattern's honesty clause
   describes. Tokens + seam-portable primitives live in brand.css. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--lc-body);
  color: var(--lc-ink);
  background: var(--lc-paper);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--lc-ink);
}

main {
  flex: 1 0 auto;
  width: 100%;
}

/* Skip link: framework-owned since Story 2.2.1 (fgl/base.css .skip-link —
   same class, same offscreen-until-focus mechanics; colors ride the
   --brand-primary/--surface-elevated overrides). */

/* Shared section shell — geometry rides the framework token (--content-full,
   re-valued to the shipped 64rem in lawcuments.css). */
.section {
  max-width: var(--content-full);
  margin-inline: auto;
  padding: 3rem 1.75rem;
}
/* Prose pages compose both (`class="prose section"`): the reading measure
   must beat the section cap. Pre-adoption this won by declaration order;
   now .section loads after fgl/base.css's .prose, so pin it by specificity. */
.section.prose {
  max-width: var(--measure);
}
.section__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e7480;
  margin: 0 0 0.5rem;
}
.section__title {
  font-family: var(--lc-display);
  font-weight: 700;
  font-size: 1.7rem;
  margin: 0 0 1.5rem;
}

/* Header / nav — the framework topnav shell (fgl/nav.css) since Story 2.2.1.
   Legal Pad re-pins below; everything structural (flex shell, mobile
   <details> disclosure + sheet) is framework-owned. */
/* Legal Pad: the shipped header has no rule under it — the pad's first line
   is the hero's. */
.topnav {
  border-bottom: none;
}
/* Legal Pad: wordmark in the display face; the red underline is the pad's
   margin line (Direction B). */
.topnav__brand {
  font-family: var(--lc-display);
}
.topnav__wordmark u {
  text-decoration-color: var(--lc-margin-red);
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}
/* Legal Pad: quiet links (regular weight, shipped size), hover underlined in
   rule blue — never a color shift. */
.topnav__links a {
  font-weight: 400;
  font-size: 0.95rem;
}
.topnav__links a:hover {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--lc-rule-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
/* Legal Pad: the current page carries the margin-red underline — the same
   stroke as the wordmark — riding aria-current="page" (Story 1.6.2). The
   cue is the underline's presence, not its color; placed after :hover so
   red wins the same-specificity tie on a hovered current link, and the
   attribute selector outranks fgl/nav.css's text-decoration: none on the
   mobile rows. */
.topnav__links a[aria-current="page"],
.mobile-menu__links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--lc-margin-red);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Footer — the framework footer shell (fgl/footer.css) since Story 2.2.1;
   lawcuments ships only the legal bottom bar (no link grid). */
.footer {
  flex-shrink: 0;
}
/* Legal Pad: the strong ink rule closes the page (the shell's hairline would
   read as a second, gray rule) — site color choices stay site-local, per the
   framework footer's own contract. */
.footer__bottom {
  border-top: 2px solid var(--lc-ink);
  font-size: 0.85rem;
  color: #6e7480;
}
.footer__bottom-inner {
  gap: 0.4rem 1.25rem;
  align-items: baseline;
}
.footer__bottom-inner a {
  color: var(--lc-ink);
}
.site-footer__legal {
  margin: 0;
}
.site-footer__disclaimer {
  margin: 0;
  flex-basis: 100%;
}

/* ── Hero: pad → typed split ─────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(300px, 44%) 1fr;
}
.hero__pad {
  padding: calc(var(--lc-line) * 1.5) 2rem calc(var(--lc-line) * 1.5) 86px;
  min-height: 340px;
  background-position: 0 8px;
  border-right: 1px solid #e8d98a;
}
.hero__scribble-date {
  font-family: var(--lc-hand);
  font-weight: 600;
  font-size: 1rem;
  color: #7a6a2f;
  line-height: var(--lc-line);
  margin: 0 0 var(--lc-line);
}
.hero__scribble {
  font-family: var(--lc-hand);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: var(--lc-line);
  color: #33415c;
  transform: rotate(-0.6deg);
  margin: 0;
}
.hero__scribble em {
  font-style: normal;
  background: #fff68f;
}
.hero__becomes {
  position: absolute;
  right: -21px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--lc-margin-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: 0 2px 8px #0002;
}
.hero__typed {
  padding: calc(var(--lc-line) * 1.5) 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero__title {
  font-family: var(--lc-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 4.6vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}
.hero__underline {
  box-shadow: inset 0 -0.28em 0 var(--lc-canary);
}
.hero__sub {
  font-size: 1.05rem;
  color: var(--lc-ink-soft);
  max-width: 46ch;
  margin: 0;
}
.hero__doc {
  margin-top: 1.4rem;
  border: 1px solid #d8d5c8;
  background: #fff;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: #33415c;
  max-width: 52ch;
}
.hero__doc b {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6e7480;
  margin-bottom: 0.4rem;
}
.hero__typing {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 100%;
  animation: lc-type-in 1.4s steps(47) 0.4s both;
}
@keyframes lc-type-in {
  from { width: 0; }
  to { width: 100%; }
}
.hero__ctas {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

/* ── Why / Features / Pricing / CTA band / Questions ─────────────────────── */
.why__grid,
.features__grid {
  display: grid;
  /* 215px minimum lets all four feature cards share one row inside the 64rem
     measure (230px forced a 3+1 orphan); the 3-item why-grid is unaffected. */
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.15rem;
}
.why__item h3,
.card h3 {
  font-family: var(--lc-display);
  font-weight: 500;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}
.why__item p,
.card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--lc-ink-soft);
  margin: 0;
}
/* Cards: the base shell is framework-owned (fgl/cards.css — surface, hairline,
   both riding the token overrides). Legal Pad: the pad-rule construction
   needs the shipped geometry — zero top padding so .card__rules sits flush,
   1.1rem sides its negative margins assume, the 4px radius and whisper
   shadow of the feature cards (census: pad-rule styling stays site-owned). */
.card {
  padding: 0 1.1rem 1.1rem;
  border-radius: 4px;
  box-shadow: 0 1px 3px #0000000a;
}
.card__rules {
  height: 26px;
  border-bottom: 1px solid var(--lc-rule-blue);
  box-shadow: 0 8px 0 -7px var(--lc-rule-blue);
  margin: 0 -1.1rem 0.9rem;
  background: #fbfaf3;
  border-radius: 4px 4px 0 0;
}
.pricing__list {
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 1.05rem;
}
.pricing__list li {
  line-height: 1.9;
}
.pricing__more {
  color: var(--lc-ink-soft);
  margin: 0 0 1.25rem;
}
.cta-band {
  padding: calc(var(--lc-line) * 1.3) 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}
.cta-band__lede {
  font-family: var(--lc-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: var(--lc-line);
  margin: 0;
}
.questions p {
  margin: 0 0 0.5rem;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero__pad {
    border-right: none;
    border-bottom: 1px solid #e8d98a;
  }
  .hero__becomes {
    right: 24px;
    top: auto;
    bottom: -21px;
    transform: none;
  }
  /* Narrow screens can't fit the one-line typewriter reveal — show the
     generated line statically, wrapped, instead of clipping it. */
  .hero__typing {
    white-space: normal;
    animation: none;
  }
}

/* ── Prose pages (about) ─────────────────────────────────────────────────── */
/* .prose is framework-owned since Story 2.2.1 (fgl/base.css, max-width
   --measure — re-valued to the shipped 42rem in lawcuments.css). */
.prose p {
  color: var(--lc-ink-soft);
  margin: 0 0 1.1rem;
}

/* ── Legal Pad button extensions (on fgl/buttons.css) ────────────────────── */
/* The skins ride the token overrides (--brand-primary*, --border-strong,
   --radius-md); these re-pin the shipped type and the two brand behaviors
   the token vocabulary cannot express. */
.btn {
  font-weight: 500;
  font-size: 1rem;
}
.btn--quiet {
  border-width: 2px;
}
/* Legal Pad: quiet hover fills with canary — a highlight, not a darken. */
.btn--quiet:hover {
  background: var(--lc-canary);
  color: var(--lc-ink);
  border-color: var(--lc-ink);
}