/* Everholt & Co. · V2 · 03 signature — the ledger rule, the plum corner, the ampersand, the editorial voice.
   Everything here is the look of direction A; the base holds the geometry. */
@layer signature {
  /* the ledger rule: a double hairline over every section head */
  .eh-section-heading { padding-block-start: var(--s-5); border-block-start: 3px double var(--r-3); }
  [data-shape="brief"] .eh-section-heading, .eh-cta .eh-section-heading { border: 0; padding: 0; }
  .eh-eyebrow { color: var(--accent); }
  .eh-hero .eh-eyebrow { color: var(--t-soft); }

  /* tiles are ruled columns, not boxes */
  .eh-feature-card, .eh-pain, .eh-minicard, .eh-standard, .eh-pillar { border-block-start: 1px solid var(--t-head); }
  .eh-card--interactive, a.eh-minicard { transition: border-color var(--t-fast) var(--ease); }
  .eh-card--interactive:hover, a.eh-minicard:hover { border-color: var(--accent); }
  .eh-card--interactive:hover .eh-pain__quote, .eh-card--interactive:hover .eh-feature-card__title, a.eh-minicard:hover .eh-minicard__name { color: var(--accent); }
  .eh-feature-card__icon, .eh-icon-tile, .eh-spec__icon { border: 0; background: var(--accent-tint); border-radius: 50%; }
  .eh-pillar__num { color: var(--accent); }

  /* plates: the paper sheet with the plum corner */
  .eh-plate, .eh-quickanswer, .eh-fig__frame, .eh-compare__scroll, [data-shape="pair"] .eh-flow, .eh-card.eh-flow, .eh-form-card, .eh-video {
    background-image: linear-gradient(225deg, var(--accent) 0 9px, transparent 9px); background-repeat: no-repeat; }
  [data-shape="sheet"] .eh-form-card > .eh-card.eh-flow { background-image: none; }
  [data-shape="pair"] .eh-flow > .eh-card.eh-flow { background-image: none; }   /* the result block is ruled inside the sheet, not a second plate */
  .eh-versus__us { border-inline-start: 2px solid var(--accent); padding-inline-start: var(--s-3); }
  .eh-template-label { color: var(--accent); }
  .eh-doc { background-image: linear-gradient(225deg, var(--accent) 0 9px, transparent 9px); background-repeat: no-repeat; }
  .eh-doc .eh-compare__scroll, [data-shape="boxed-table"] .eh-compare__scroll { background-image: none; }   /* one corner per sheet; the boxed table has no frame */
  .eh-receipt .eh-watermark { opacity: 0.06; }
  [data-shape="framed"] :is(.eh-grid, .eh-pain-grid, .eh-standards, .eh-speclist, .eh-pillars) > * { border-block-start: 1px solid var(--r-2);
    background-image: linear-gradient(225deg, var(--accent) 0 9px, transparent 9px); background-repeat: no-repeat; }
  [data-shape="framed"] .eh-card .eh-speclist--single > .eh-spec { background-image: none; border-block-start: 0; }
  .eh-quickanswer { border-inline-start: 3px solid var(--accent); }
  .eh-step__num { font-family: var(--font-display); font-size: 1.1rem; border-color: var(--accent); color: var(--accent); }
  .eh-stat { border-block-start: 3px double var(--r-3); }
  .eh-rate__price { font-weight: 430; }
  .eh-faq__question { letter-spacing: -0.005em; }
  .eh-onthispage__summary { color: var(--accent); }

  /* the statement: plum italic on the plum wash, never ink */
  [data-shape="statement"] { position: relative; overflow: hidden; }
  .eh-statement__text { font-style: italic; font-weight: 400; color: var(--accent-strong); }

  /* the closing: light paper, the ampersand as a watermark, the plum Call */
  .eh-cta { position: relative; overflow: hidden; border-block-start: 1px solid var(--r-2); }
  .eh-watermark { position: absolute; right: -2%; bottom: -14%; width: clamp(220px, 32vw, 460px); height: auto; color: var(--accent);
    opacity: 0.07; pointer-events: none; }
  @media (max-width: 1023.98px) { .eh-watermark { width: 52vw; right: -12%; bottom: -10%; opacity: 0.06; } }
  .eh-cta__inner { position: relative; }
  .eh-cta__assurance .eh-icon { color: var(--accent); }

  /* the footer: the one ink ground; the ampersand sits large and faint in its corner */
  .eh-footer { position: relative; overflow: hidden; }
  .eh-footer .eh-watermark { color: var(--t-on-ink); opacity: 0.045; right: -4%; bottom: -34%; }
  .eh-footer__inner { position: relative; }

  /* the wordmark: drawn from the brand face; the ampersand in plum where the ground allows */
  .eh-logo__mark { height: 22px; width: auto; }
  .eh-logo__amp { color: var(--logo-amp, var(--accent)); }   /* the wordmark is one sprite symbol: each use sets the ampersand's colour through the custom property */
  .eh-logo--inverse { --logo-amp: var(--accent-on-ink); }
  .eh-footer .eh-logo__mark { height: 26px; }
  @media (max-width: 639.98px) { .eh-logo__mark { height: 19px; } }
  @media (max-width: 419.98px) { .eh-logo__mark { height: 17px; } }

  /* motion: the hero copy paints at once (the H1 is the largest paint; no fade holds it back); the plate settles in once beside it;
     functional transitions elsewhere; nothing under reduced motion */
  @media (prefers-reduced-motion: no-preference) {
    .eh-hero__object { animation: eh-rise 420ms var(--ease) 60ms both; }
    .eh-dd__menu { animation: eh-fade var(--t-fast) var(--ease) both; }
    /* the FAQ is a native details: the browser shows the answer when it opens, and the answer only settles in; nothing hides it (F-40, d2g) */
    .eh-faq__item[open] > .eh-faq__answer { animation: eh-fade var(--t-fast) var(--ease) both; }
  }
  @keyframes eh-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes eh-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}
