/* ============================================================================
   TYPOGRAPHY — the closed set

   Every piece of type on the site is one of these:

     Display    .displayPoster  .display  .displaySmall
     Headings   .headingMedium  .headingSmall
     Running    .lede  .body  .bodySmall  .pullQuote
     Labels     .eyebrow  .label  .labelSmall
     Commerce   .price  .priceDisplay
     Controls   .btn  (the button voice) · form controls (element default)

   THE RULE: components do not declare font-family, font-size, font-weight,
   text-transform or letter-spacing. Components own layout, colour and
   spacing; these classes own type. If something needs a voice that isn't
   here, add it HERE, with a name and a job — that is how the set stays
   closed.

   Type classes deliberately don't set colour. Colour is the one thing that
   legitimately varies by context, and it belongs to the component.

   ── THE WEIGHT LADDER ────────────────────────────────────────────────────────

   This kit (jig2cea) ships gotham at 400/500/700/800/900. THERE IS NO 300.

   SUPERBOLD's house voice for running text is gotham 300 light. It cannot
   port: requesting 300 here synthesises or substitutes a face on every
   paragraph on the site. If you are copying a rule from the SUPERBOLD repo
   and it says 300, it is wrong here. Don't "fix" body back to 300.

     Running text          400   gotham
     Lede / deck           500   gotham
     Labels                500   gotham-narrow
     Eyebrows, rails       700   gotham
     Buttons               500   gelica  (italic)
     Pull quote            600   gelica  (italic)
     .bold / <strong>      500   gotham
     Headings              600   gelica
     Display               700   gelica  (italic — the Figma comps' voice)

   Accepted consequences: body→lede is one step where SUPERBOLD had two
   (compensate with size and measure, not weight), and <strong> at 500 over
   body at 400 is subtle. If it proves too subtle, the fallback is 700 — NOT
   600, which is a gelica weight and would put a serif inside a sans paragraph.
   ============================================================================ */

@layer base {

body {
	font-family: var(--font-body);
	font-size: var(--step-1);
	font-weight: 400;
	line-height: 1.5;
}

.bold, strong, b {
	font-weight: 500;
}

em, i {
	font-style: italic;
}

/* ── Display ──────────────────────────────────────────────────────────────── */

/* The poster voice: the homepage hero, each snap section's product name and
	the PDP hero's product name — the product as its own landing page. The
	largest type on a screen, and only ever one per screen. */
.displayPoster {
	font-family: var(--font-display);
	font-weight: 700;
	font-style: italic;
	font-size: var(--step-8);
	line-height: 0.85;
	letter-spacing: var(--ls-tight);
	text-wrap: balance;
	/* Optical alignment: a glyph's sidebearing is not its edge. */
	margin-inline-start: -0.04em;
}

.display,
.displaySmall {
	font-family: var(--font-display);
	font-weight: 700;
	font-style: italic;
	letter-spacing: var(--ls-tight);
	text-wrap: balance;
}

/* One long word at display size ("Videographer" at 200% text zoom) is wider
   than a phone. Break it rather than push the page sideways. Only ever breaks
   a word that cannot fit on a line of its own. */
.displayPoster,
.display,
.displaySmall,
.headingMedium,
.headingSmall {
	/* anywhere, not break-word: only anywhere lowers the min-content width,
	   which is what a shrink-to-fit flex item sizes from. */
	overflow-wrap: anywhere;
}

/* A page head. */
.display      { font-size: var(--step-6); line-height: 0.9;  max-width: 20ch; }
/* Section heads, the PDP buy block's name, the menu's primary links. */
.displaySmall { font-size: var(--step-5); line-height: 0.95; max-width: 24ch; }

/* ── Headings ─────────────────────────────────────────────────────────────── */

.headingMedium,
.headingSmall {
	font-family: var(--font-display);
	font-weight: 600;
	line-height: 1.1;
	max-width: 34ch;
	text-wrap: balance;
}

/* Sub-heads. */
.headingMedium { font-size: var(--step-3); }
/* Card titles, drawer heads. */
.headingSmall  { font-size: var(--step-2); }

/* ── Running text ─────────────────────────────────────────────────────────── */

/* A deck under a page head. One weight step over body, so it leans on size
   and measure to separate. */
.lede {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: var(--step-2);
	line-height: 1.35;
	max-width: 60ch;
	text-wrap: pretty;
}

/* Running text: PDP copy, About, policies. Also safe to put on a container of
   Shopify-authored HTML (descriptionHtml, policy bodies) — the rhythm rules
   below cover the elements that markup contains. */
.body {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: var(--step-1);
	line-height: 1.5;
	max-width: 65ch;
	text-wrap: pretty;

	:where(p, ul, ol, h2, h3, h4, h5, h6, blockquote, table) + :where(p, ul, ol, h2, h3, h4, h5, h6, blockquote, table) {
		margin-top: 1em;
	}
	:where(ul) { list-style: disc; padding-inline-start: 1.2em; }
	:where(ol) { list-style: decimal; padding-inline-start: 1.2em; }
	:where(li + li) { margin-top: 0.35em; }
	:where(h2, h3, h4, h5, h6) {
		font-weight: 500;
		margin-top: 1.5em;
	}
	:where(a) {
		text-decoration: underline;
		text-underline-offset: 0.2em;
		text-decoration-thickness: 1px;
	}
}

/* NOT a smaller .body — a different job. Overlay copy on photography,
   captions, meta. A description over an image can be 13px; a PDP paragraph
   should be 16px. Don't collapse the two. */
.bodySmall {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: var(--step-0);
	line-height: 1.4;
	max-width: 60ch;
	text-wrap: pretty;
}

/* A pull quote set inside running text: the PDP story's maker quote. Gelica
   semibold italic — 600 is a gelica weight, so this never sits inside a sans
   paragraph; it is its own block. */
.pullQuote {
	font-family: var(--font-display);
	font-weight: 600;
	font-style: italic;
	font-size: var(--step-3);
	line-height: 1.25;
	max-width: 32ch;
	text-wrap: balance;
}

/* ── Labels ───────────────────────────────────────────────────────────────────
   Case is part of the class, never a component's decision. Each upper-case
   voice declares its own tracking, because caps at body tracking read cramped. */

/* The loud label: eyebrows over a headline, the snap sections' vertical spec
   rail and category tag, the PDP's section eyebrows. Gotham 700, wide-tracked
   — the Figma comps' "Eyebrow". It is the label that has to hold its own on
   photography, which is why it is the heavy one. */
.eyebrow {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: var(--step-0);
	line-height: 1.2;
	letter-spacing: var(--ls-wider);
	text-transform: uppercase;
}

/* Category tags, filter legends, nav items. */
.label {
	font-family: var(--font-narrow);
	font-weight: 500;
	font-size: var(--step-0);
	line-height: 1.2;
	letter-spacing: var(--ls-wide);
	text-transform: uppercase;
}

/* Spec rail, stock status, eyebrows. --step--1 is the floor: if this reads too
   fine in the browser, move it to --step-0 — don't invent a step below. */
.labelSmall {
	font-family: var(--font-narrow);
	font-weight: 500;
	font-size: var(--step--1);
	line-height: 1.2;
	letter-spacing: var(--ls-wider);
	text-transform: uppercase;
}

/* ── Commerce ─────────────────────────────────────────────────────────────── */

/* Prices, everywhere. Tabular figures so a grid of prices aligns on the
   decimal — misaligned prices read as sloppy without anyone saying why. */
.price {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: var(--step-1);
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
}

/* The PDP buy block's price, set against the product name. Same tabular
   figures, at heading size. */
.priceDisplay {
	font-family: var(--font-body);
	font-weight: 700;
	font-size: var(--step-3);
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
}

/* ── Controls ─────────────────────────────────────────────────────────────── */

/* The button voice — gelica 500 per the ladder, italic per the PoC. Declared
   here, on .btn itself, so 05-buttons.css can own layout and colour without
   ever touching type. --step-1 keeps every button at ≥16px. */
.btn {
	font-family: var(--font-display);
	font-weight: 500;
	font-style: italic;
	font-size: var(--step-1);
	line-height: 1.1;
	letter-spacing: var(--ls-normal);
	text-transform: none;
}

/* Form controls. --step-1's 1rem floor is what stops iOS Safari zooming the
   viewport on focus. Every input, select and textarea is set in it. Don't
   lower it. */
input,
select,
textarea {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: var(--step-1);
	line-height: 1.3;
}

/* A form label or fieldset legend is an element default, not a class: asking
   every one to carry a class would be bookkeeping with no decision in it. */
label,
legend {
	font-family: var(--font-narrow);
	font-weight: 500;
	font-size: var(--step-0);
	line-height: 1.2;
	letter-spacing: var(--ls-wide);
	text-transform: uppercase;
}

/* A label given a running-text class ("From $") reads as that class, not as
   the upper-case label voice. */
label:is(.body, .bodySmall) {
	letter-spacing: var(--ls-normal);
	text-transform: none;
}

/* A label that wraps a checkbox reads as a sentence, not a heading. */
label:has(> input[type="checkbox"], > input[type="radio"]) {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: var(--step-1);
	letter-spacing: var(--ls-normal);
	text-transform: none;
}

/* ── Wordmark ─────────────────────────────────────────────────────────────── */

/* The logo. Not type — an SVG that takes currentColor — but it is in the set
   so nobody sets a heading in its place. Sized by height, in em of its own
   box so it scales with the fluid scale. */
.wordmark {
	font-size: var(--step-1);
}

} /* @layer base */
