/* ============================================================================
   PORT - carried from ragazzi-site/mission/css/sections/text-2.css by script.

   ONE EDIT: the root `.text2` -> `.ragazzi-statement` at 5 sites. The 3
   `.text2__*` parts keep their names; every selector in the file already began
   with the root, so they are scoped by it and cannot collide in a flat assets/.

   THIS FILE IS DESKTOP-FIRST - base is the 1024+ layer and the two bands below
   it are `max-width` overrides, the opposite of every other section carried in
   this port. Left exactly as written: rewriting it mobile-first would reorder
   the cascade for no gain and invite a transcription error in the one file
   where the reader's habit is wrong.

   `--font-body` is the only token it reads from outside, and mission's page
   scope defines its own - the site stack with `Arial` inserted before the
   generic fallback. NOT carried: the page's own comment says it is inert while
   Onest loads, "which is always", and the theme's stack names the same primary
   family. (Contrast the comparison table and faq, where the page really did
   override `--text-body` with a different scale.)
============================================================================ */

/* css/sections/text-2.css - section 2 of 5, `text 2`
   Figma desktop 3111:603 (1920 x 362) / mobile 3111:643 (375 x 248).

   Scoped to .ragazzi-statement only. No global selector, no token definition, no template link -
   every value below either references a page token from css/tokens.css or is a Figma
   number that belongs to this section alone.

   MOBILE-FIRST, and there is deliberately NO @media block in this file.
   The section has no responsive layout switch of any kind: one column, left-aligned,
   full content width on both layers (brief slice section 6). The only things that change
   between layers are --section-pad-y / --gutter / --text-statement, and all three already
   carry their own mobile / pseudo-tablet / desktop bands in tokens.css. A @media block here
   would restate a value that the token band already returns and could only drift from it. */

/* ---------------------------------------------------------------------------
   SECTION TOKENS — moved out of the page's tokens.css on 2026-08-13.

   These values are read by THIS block and nothing else on the site, so they
   belong here rather than in a site-wide :root. In Shopify a section can be
   dropped onto any template from the theme editor, so a section that reads a
   token from a page-level scope breaks the moment it is moved; scoped to the
   block's own class, it travels with it.

   All three bands are carried verbatim from the old tokens.css — desktop
   first, then the mobile and pseudo-tablet overrides — so the cascade is
   unchanged. Verified by computed-style diff at 375/768/1024/1440/1920.
--------------------------------------------------------------------------- */

.ragazzi-statement {
  --text-statement: clamp(24px, calc(45px * (var(--max-vw) / var(--vw-base))), 45px);
  --lh-statement:   1.2;
  --color-ink:      #000000;
  --color-on-dark:  #ffffff;
  --gutter:         clamp(53px, calc(100px * (var(--max-vw) / var(--vw-base))), 100px);
  --section-pad-y:  clamp(53px, calc(100px * (var(--max-vw) / var(--vw-base))), 100px);
}

@media (max-width: 767px) {
  .ragazzi-statement {
    --text-statement: clamp(17px, calc(20px + (var(--max-vw) - 375px) * 0.015), 41px);
    --gutter:         clamp(17px, calc(20px + (var(--max-vw) - 375px) * 0.015), 41px);
    --section-pad-y:  clamp(34px, calc(40px + (var(--max-vw) - 375px) * 0.015), 82px);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .ragazzi-statement {
    --text-statement: clamp(20px, calc(20px + (var(--max-vw) - 768px) * 0.025), 45px);
    --gutter:         clamp(20px, calc(20px + (var(--max-vw) - 768px) * 0.025), 100px);
    --section-pad-y:  clamp(40px, calc(40px + (var(--max-vw) - 768px) * 0.025), 100px);
  }
}

/* 3111:603 / 3111:643 - the only black section on the page.
   `fill` is a SINGLE value #000000ff on both layers, not a fills array: no scrim,
   no stacked layer, nothing hidden underneath (brief slice D-10).
   Figma padding D [100,100,100,100] / M [40,20,40,20] lives on THIS element, because this is
   the element the gate maps to 3111:603 - moving it to an inner wrapper would report a
   padding mismatch on the section node itself (D-6).
   Written as padding-block + padding-inline, never a `padding` shorthand: the shorthand on a
   container-role element wipes the gutter (project gotcha, D-5).
   No `height` - 362 / 248 are content-driven and land exactly. */
.ragazzi-statement {
  background: var(--color-ink);
  padding-block: var(--section-pad-y);
  padding-inline: var(--gutter);
}

/* 3111:604 / 3111:644 - Figma frame named "Heading 3". It is a real node, so it stays a real
   element; collapsing it would leave 3111:604 / 3111:644 unresolvable in the gate's node->DOM
   map. It is a <div>, never an <h*> - see .text2__copy below.
   Node: vertical flex, justify MIN, align MIN, gap 0, padding 0, no fill.
   max-width 1720 (= 1920 - 2 x 100) reproduces the desktop content box; it binds only where
   the padded box is wider than 1720. */
.text2__heading {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  max-width: 1720px;
  margin-inline: auto;
}

/* 3111:605 / 3111:645 - Onest 400, 45px desktop / 20px mobile, lineHeight 120%,
   letterSpacing 0%, textAlign LEFT, fill #ffffffff.
   Despite its parent frame's name this is BODY COPY set at display size, not a heading:
   weight 400 and the `statement` token, where the page's h2 is weight 500 / #161616 (D-3).

   Width: the text node is declared 1716.83 desktop / 337.5 mobile against a 1720 / 335
   content box. Both deviations are ACCEPTED (D-1, D-2) and built at the content box via
   width:100% - measured in real Onest, the line count and block height are unchanged
   (3 lines / 162px desktop, 7 lines / 168px mobile).

   Deliberately absent, each one would change the Figma line count or split a word:
   no max-width in ch, no text-wrap: balance/pretty, no white-space, no word-break,
   no hyphens, no text-overflow. */
.text2__copy {
  width: 100%;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-statement);
  line-height: var(--lh-statement);
  letter-spacing: 0;
  color: var(--color-on-dark);
  text-align: left;
}
