/* ── Self-hosted: KirimomiSwash ───────────────────────────── */
@font-face {
  font-family : "Clother";
  src         : url("fonts/kirimomi-swash/KirimomiSwash.woff2") format("woff2");
  font-weight : 400;
  font-style  : normal;
  font-display: swap;
}

:root {

  /* ── Fluid type scale (375px → 1728px) ───────────────────── */
  --text-lg      : clamp(2.438rem, 1.742rem + 2.967vw, 3.750rem);  /* 39px → 60px */
  --text-md      : clamp(1.875rem, 1.608rem + 1.138vw, 2.500rem);  /* 30px → 40px */
  --text-sm      : clamp(1.750rem, 1.679rem + 0.296vw, 2.000rem);  /* 28px → 32px */
  --text-body-md : clamp(1.188rem, 1.101rem + 0.370vw, 1.500rem);  /* 19px → 24px */
  --text-body-sm : clamp(1.063rem, 0.976rem + 0.370vw, 1.375rem);  /* 17px → 22px */
  --text-body-xs : clamp(0.938rem, 0.938rem + 0.000vw, 0.938rem);  /* 15px fixed  */

}


h1, h2, h3, h4, h5, h6 { padding-bottom: 0; color: inherit; font-weight: inherit}


/* ── Font weight ──────────────────────────────────────────── */
.font-thin       { font-weight: 100 !important; }
.font-extralight { font-weight: 200 !important; }
.font-light      { font-weight: 300 !important; }
.font-normal     { font-weight: 400 !important; }
.font-medium     { font-weight: 500 !important; }
.font-semibold   { font-weight: 600 !important; }
.font-bold       { font-weight: 700 !important; }
.font-extrabold  { font-weight: 800 !important; }
.font-black      { font-weight: 900 !important; }

/* ── Line height ──────────────────────────────────────────── */
.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.1; }
.leading-snug    { line-height: 1.25; }
.leading-normal  { line-height: normal; }
.leading-relaxed { line-height: 1.5; }
.leading-loose   { line-height: 1.75; }

/* ── Type scale ───────────────────────────────────────────── */
.heading-lg { font-size: var(--text-lg); font-family: var(--font-display); line-height: normal; }
.heading-lg h1, .heading-lg h2, .heading-lg h3,
.heading-lg h4, .heading-lg h5, .heading-lg h6,
.heading-lg p  { font-size: inherit; font-family: inherit; line-height: inherit; }

.heading-md { font-size: var(--text-md); font-family: var(--font-display); line-height: 1.225; }
.heading-md h1, .heading-md h2, .heading-md h3,
.heading-md h4, .heading-md h5, .heading-md h6,
.heading-md p  { font-size: inherit; font-family: inherit; line-height: inherit; }

.heading-sm { font-size: var(--text-sm); font-family: var(--font-display); line-height: 1.125; }
.heading-sm h1, .heading-sm h2, .heading-sm h3,
.heading-sm h4, .heading-sm h5, .heading-sm h6,
.heading-sm p  { font-size: inherit; font-family: inherit; line-height: inherit; }

.body-md { font-size: var(--text-body-md); font-family: var(--font-body); line-height: 1.084; }
.body-md p, .body-md li { font-size: inherit; font-family: inherit; line-height: inherit; }

.body-sm { font-size: var(--text-body-sm); font-family: var(--font-body); line-height: 1.182; }
.body-sm p, .body-sm li { font-size: inherit; font-family: inherit; line-height: inherit; }

.body-xs { font-size: var(--text-body-xs); font-family: var(--font-body); line-height: 1.06; }
.body-xs p, .body-xs li { font-size: inherit; font-family: inherit; line-height: inherit; }


/* ── Rich text ────────────────────────────────────────────── */
.rich-text h1 { font-size: var(--text-lg); font-family: var(--font-display); line-height: normal; }
.rich-text h2 { font-size: var(--text-md); font-family: var(--font-display); line-height: 1.225; }
.rich-text h3,
.rich-text h4,
.rich-text h5,
.rich-text h6 { font-size: var(--text-sm); font-family: var(--font-display); line-height: 1.125; }

.rich-text p,
.rich-text li {
  font-size   : var(--text-body-md);
  font-family : var(--font-body);
  line-height : 1.084;
}

.rich-text ol,
.rich-text ul  { padding-left: 1.5em; }

.rich-text a   { text-decoration: underline; color: inherit; }
