/* V4 typography. The approved release CSS is kept unchanged in assets/fonts.
   Reading sizes are unitless --m-sefira-size values, never isolated font sizes.
   These role bindings follow layout CSS so historical type rules cannot win. */
:root { --font-site: "M Sefira", Arial, sans-serif; }
body.m-sefira {
  font-family: var(--font-site);
  font-weight: 400;
  font-synthesis: none;
  font-kerning: normal;
  font-feature-settings: "mark" 1, "mkmk" 1;
  word-spacing: .04em;
  line-height: 1.85;
}
button, input, select, textarea, option { font-family: inherit; font-synthesis: none; }

/* Match the supplied reading profile, with enough specificity for the existing
   component styles (including archive controls and every third project card). */
body.m-sefira .m-sefira-reading,
body.m-sefira .project-card-copy .m-sefira-reading,
#archive-toggle-categories.m-sefira-reading,
#archive-clear.m-sefira-reading,
#artwork-position.m-sefira-reading,
#artwork-image-status.m-sefira-reading,
#artwork-retry.m-sefira-reading,
#archive-page-links .m-sefira-reading {
  font-size: calc(var(--m-sefira-size) * 1px);
  letter-spacing: .024em;
  letter-spacing: clamp(.018em, calc((.06 - var(--m-sefira-size) * .002) * 1em), .032em);
  word-spacing: .04em;
  line-height: var(--m-sefira-leading, 1.85);
}
.m-sefira .m-sefira-reading { font-weight: 300; }
.m-sefira .m-sefira-regular { font-weight: 400; }
body.m-sefira .m-sefira-pointed { --m-sefira-leading: 2; line-height: 2; }

/* Retain the existing display sizes and line breaks; use real heading weights. */
.m-sefira .m-sefira-heading,
.m-sefira .m-sefira-display,
.m-sefira .project-neighbor strong,
.m-sefira .reel-link > span {
  font-weight: 700;
  letter-spacing: 0;
  word-spacing: 0;
}
.m-sefira .m-sefira-display { font-weight: 900; }
.m-sefira-heading em, .m-sefira-display strong { font-weight: inherit; }

/* Prose stays light and spacious; labels and controls are Regular for clarity. */
.hero-copy .m-sefira-reading, .reel-copy .m-sefira-reading,
.studio-copy .m-sefira-reading { --m-sefira-size: 18; }
.work-top p.m-sefira-reading, .archive-invitation p.m-sefira-reading,
.project-info-panel .m-sefira-reading, .project-heading-bottom p.m-sefira-reading {
  --m-sefira-size: 16;
}
.project-card-copy p.m-sefira-reading, .project-eyebrow.m-sefira-reading,
.project-materials-heading p.m-sefira-reading, .project-supplement p.m-sefira-reading,
.archive-status p.m-sefira-reading, .artwork-caption p.m-sefira-reading {
  --m-sefira-size: 14; font-weight: 400;
}
.archive-intro-copy p.m-sefira-reading { --m-sefira-size: 22; font-weight: 400; }
.archive-message p.m-sefira-reading, .archive-loading.m-sefira-reading { --m-sefira-size: 20; }
.project-media-error p.m-sefira-reading { --m-sefira-size: 16; }
.m-sefira .project-info { font-size: 14px; }
.m-sefira .reveal-word { font-feature-settings: inherit; }

@media (max-width: 1100px) {
  .hero-copy .m-sefira-reading { --m-sefira-size: 16; }
}
@media (max-width: 800px) {
  .reel-copy .m-sefira-reading, .studio-copy .m-sefira-reading { --m-sefira-size: 16; }
}
@media (max-width: 360px) {
  /* Keep the logo and 44px appearance controls on the first header row. */
  .site-head .wordmark { width: 148px; }
}

/* Readability over the live background (measured 2026-10-10: 3.8:1 at the worst light-theme frame).
   The subtitle stays secondary but darker than --muted in the light theme. */
body:not([data-theme=dark]) .work-top p{color:color-mix(in srgb,var(--muted) 45%,var(--ink))}

