/*
 Theme Name:   Knauss Homestead
 Theme URI:    https://knausshomestead.org
 Description:  Child theme of Divi 5 for The Knauss Homestead Preservation Society. Brand fonts, official colors and type rules. Built for the 250th year, 1777-2027.
 Author:       The Knauss Homestead Preservation Society
 Template:     Divi
 Version:      1.0.0
 Text Domain:  knauss-homestead
*/

/* ---------- Brand fonts (bundled; confirm web license) ---------- */
@font-face{font-family:'Military Scribe';src:url('fonts/MilitaryScribe.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Apothecary Serif';src:url('fonts/Apothecary.woff2') format('woff2');font-weight:400;font-style:normal;font-display:swap}

/* ---------- Official colors (Nov 2026) ---------- */
:root{
  --kh-barn-red:#8C2F21;   /* main accent, buttons, links */
  --kh-walnut:#2A231D;     /* hero, dark panels */
  --kh-iron-ink:#221E1A;   /* text, header bar, footer */
  --kh-limewash:#EEEAE2;   /* page background */
  --kh-linen:#F7F4EE;      /* cards, panels */
  --kh-fieldstone:#E3DDD2; /* highlight bands */
  --kh-mortar:#D3CCBF;     /* lines, borders */
  --kh-hearth-gold:#D9B27C;/* small accents on dark only */
  --kh-ash:#4F4840;        /* secondary text */
  --kh-font-h1:'Military Scribe','IM Fell English',Georgia,serif;
  --kh-font-heading:'Apothecary Serif','EB Garamond',Georgia,serif;
  --kh-font-body:'EB Garamond',Georgia,serif;
}

/* ---------- Type rules ----------
   H1: Military Scribe only (never smaller than H1).
   H2-H6: Apothecary Serif, ALL CAPS.
   Body: EB Garamond. */
body{font-family:var(--kh-font-body);color:var(--kh-iron-ink);background-color:var(--kh-limewash);font-size:19px;line-height:1.6}
h1,.et_pb_module h1{font-family:var(--kh-font-h1);font-weight:400;letter-spacing:0;text-transform:none}
h2,h3,h4,h5,h6,
.et_pb_module h2,.et_pb_module h3,.et_pb_module h4,.et_pb_module h5,.et_pb_module h6{font-family:var(--kh-font-heading);font-weight:400;text-transform:uppercase;letter-spacing:.06em;line-height:1.15}
a{color:var(--kh-barn-red)}
a:hover{color:#6B2318}
::selection{background:var(--kh-fieldstone)}

/* Buttons, menus, labels use Apothecary */
.et_pb_button,.et_pb_menu__menu a,#top-menu a,.kh-eyebrow,button,input[type=submit]{font-family:var(--kh-font-heading);letter-spacing:.08em}
.et_pb_button{color:var(--kh-linen);background-color:var(--kh-barn-red);border-color:var(--kh-barn-red);border-radius:4px}
.et_pb_button:hover{background-color:#6B2318;border-color:#6B2318}

/* Utility classes for Divi modules (add in Advanced > CSS Class) */
.kh-eyebrow{font-size:16px;text-transform:uppercase;letter-spacing:.14em;color:var(--kh-barn-red)}
.kh-on-dark,.kh-on-dark h1,.kh-on-dark h2,.kh-on-dark h3,.kh-on-dark p{color:var(--kh-limewash)}
.kh-on-dark a{color:var(--kh-hearth-gold)}
.kh-card{background:var(--kh-linen);border:1px solid var(--kh-mortar);border-radius:6px}
.kh-rule{border-top:1px solid var(--kh-mortar)}
.kh-quote{font-family:var(--kh-font-body);font-style:italic}
