@charset "UTF-8";

/* Source Han SC subsets are served by this site; metadata and OFL are in assets/fonts/. */
@font-face {
  font-family: "Fieldnotes Han Sans";
  src: url("./assets/fonts/fieldnotes-han-sans-sc.woff2") format("woff2");
  font-style: normal;
  font-weight: 250 900;
  font-display: swap;
}
@font-face {
  font-family: "Fieldnotes Han Serif";
  src: url("./assets/fonts/fieldnotes-han-serif-sc.woff2") format("woff2");
  font-style: normal;
  font-weight: 250 900;
  font-display: swap;
}
:root {
  --font-body: "Fieldnotes Han Sans", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-heading: "Fieldnotes Han Serif", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "SimSun", serif;
  --reading-line-height: 1.95;
  font-family: var(--font-body);
}
body { line-height: 1.8; }

/* Editorial headings use Song; the components inside teaching demos retain their own hierarchy. */
h1, h2, .section-heading h2, .download-card h2,
.editorial-copy h3, .ca-group-heading h3, .ca-lesson-heading > h4,
.fx-lab-heading h3, .fx-conclusion h3, .pg-heading h3,
.pg-demo-dialog h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: .012em;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(44px, 4.6vw, 72px);
  font-weight: 650;
  letter-spacing: .025em;
  line-height: 1.38;
}
.hero-asterisk { right: -42px; top: 12px; }
.hero-description, .section-lead, .editorial-copy > p,
.route-panel > p, .brief-example > p, .rule-row p,
.ca-diagnosis p, .ca-depth p, .ca-exercise p,
.fx-teaching p, .fx-conclusion p, .pg-notes p,
.pg-intro p, .reference-reading p {
  letter-spacing: .012em;
  line-height: var(--reading-line-height);
}
.brand { font-family: var(--font-body); font-weight: 650; letter-spacing: .015em; }
.brand small, .eyebrow { font-family: var(--font-body); }
.button, .nav-item, .segmented button { letter-spacing: .015em; }
.fx-island-label, .fx-island-symbol { font-family: var(--font-body); }
.closing h2 { line-height: 1.55; letter-spacing: .025em; }

@media (min-width: 1001px) and (max-width: 1250px) {
  h1 { font-size: 50px; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .hero h1 { font-size: clamp(44px, 6.5vw, 62px); }
}
@media (max-width: 700px) {
  .hero h1 { font-size: clamp(42px, 10vw, 64px); line-height: 1.4; }
  .hero-asterisk { font-size: 35px; right: -32px; top: 13px; }
  .section-heading h2 { font-size: 25px; }
  .ca-lesson-heading > h4, .pg-heading h3, .fx-lab-heading h3 { font-size: 22px; }
  .ca-group-heading h3 { font-size: 23px; }
  .closing h2 { font-size: 31px; }
}
@media (max-width: 360px) {
  .hero h1 { font-size: 40px; }
  .hero-asterisk { font-size: 28px; right: -24px; }
}
