/* === 1) Register Garamontio (regular + italic) === */
@font-face {
  font-family: "Garamontio";
  src: url("https://iacobus.killock.org.uk/wp-content/uploads/2025/09/garamontio.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Garamontio";
  src: url("https://iacobus.killock.org.uk/wp-content/uploads/2025/09/garamontio_it.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* === 2) Global base type &amp; size (no :root) === */
html { font-size: 19px; }                  /* try 20px if you like */

body,
.wp-site-blocks,
.entry-content,
.wp-block-post-content {
  font-family: "Garamontio","EB Garamond","Garamond","Libertinus Serif","Linux Libertine","Cambria","Georgia",serif;
  font-size: 1rem;                          /* = html’s 19px */
  line-height: 1.45;                        /* tighter for Garamond-style faces */
}

/* === 3) Apply OpenType features to text elements === */
/* (Headings + common text containers) */
p,div,li,blockquote,figcaption,
dl,dt,dd,
table,th,td {
  font-kerning: normal;
  /* Prefer modern shorthands; keep font-feature-settings for wider support */
  font-variant-ligatures: common-ligatures discretionary-ligatures historical-ligatures;
  font-variant-numeric: oldstyle-nums;
  font-feature-settings:
    "liga" 1,  /* standard ligatures */
    "dlig" 1,  /* discretionary ligatures */
    "hlig" 1,  /* historical ligatures */
     "locl" 0, /* avoid u to v switch for Latin */
    "onum" 1;  /* old-style numerals */

}

/* Headings (retain Garamontio features, stop forced lowercase) */
h1,h2,h3,h4,h5,h6,
.wp-block-heading {
  line-height: 1.15;
  margin: 1.3em 0 0.5em;
  font-kerning: normal;
  font-variant-ligatures: common-ligatures discretionary-ligatures historical-ligatures;
  font-variant-numeric: oldstyle-nums;
  font-feature-settings:
    "liga" 1,  /* standard ligatures */
    "dlig" 1,  /* discretionary ligatures */
    "hlig" 1,  /* historical ligatures */
     "locl" 0, /* avoid u to v switch for Latin */
    "onum" 1;  /* old-style numerals */
  text-transform: none; /* disable forced lowercase, keep original case */
}
/* make sure the family name matches your @font-face exactly */
h1, h2, h3, h4, h5, h6,
.wp-block-post-title,
.wp-block-post-title a {
  font-family: 'Garamontio', serif !important;
  font-weight: 400;           /* adjust if you use other weights */
  font-style: normal;         /* or italic if needed */
  letter-spacing: normal;     /* optional: cancel theme tracking */
}

/* Forms/UI inherit the family (features may not apply on all UAs) */
button,input,select,textarea {
  font-family: "Garamontio","EB Garamond","Garamond","Libertinus Serif","Linux Libertine","Cambria","Georgia",serif;
  line-height: 1.35;
  font-size: 1rem;
}

/* Keep code blocks monospace &amp; disable Garamontio features there */
code,pre,kbd,samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-feature-settings: normal;
  font-variant-ligatures: none;
  font-variant-numeric: lining-nums;
}

/* === 4) Vertical rhythm tweaks === */
p,.wp-block-paragraph { margin: 0 0 0.6em; line-height: 1.45; }

ul,ol { margin: 0 0 0.6em 1.25em; }
li    { margin: 0.2em 0; line-height: 1.4; }

h1,h2,h3,h4,h5,h6,
.wp-block-heading {
  line-height: 1.15;
  margin: 1.3em 0 0.5em;
}

/* Optional responsive scaling for headings */
h1 { font-size: clamp(2rem, 1.4rem + 2vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.1rem); }
h3 { font-size: clamp(1.3rem, 1rem + 0.8vw, 1.6rem); }

blockquote,figcaption { line-height: 1.45; }

