/*
Theme Name: Allison McLeod Divi Child
Description: Site styles for Accounting Negligence.
Author: Smith Consulting
Template: Divi
Version: 1.0.0
Text Domain: allison-mcleod-divi-child
*/

:root {
  --am-navy: #285276;
  --am-dark: #263746;
  --am-teal: #278eac;
  --am-green: #8dc64f;
}

/* Base typography. Divi loads Lato and Libre Baskerville from its theme settings. */
body {
  color: var(--am-dark);
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--am-navy);
  font-family: 'Libre Baskerville', Georgia, serif;
  line-height: 1.25;
}

/* Divi module typography. Kept here so sizes can be adjusted in one place. */
body .et_pb_heading h1,
body .et_pb_text h1,
body h1.entry-title {
  font-size: clamp(32px, 3.6vw, 46px) !important;
  line-height: 1.2;
}

body .et_pb_heading h2,
body .et_pb_text h2 {
  font-size: clamp(27px, 2.7vw, 36px) !important;
}

body .et_pb_heading h3,
body .et_pb_text h3 {
  font-size: clamp(22px, 2vw, 28px) !important;
}

body .et_pb_text,
body .et_pb_text p {
  font-size: 16px !important;
  line-height: 1.7;
}

body .et_pb_button {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 17px;
}

a { color: var(--am-teal); }

/* The first section of the Home draft is the hero. Text stays readable there. */
body.page-id-21 .et_pb_section:first-of-type .et_pb_heading h1,
body.page-id-21 .et_pb_section:first-of-type .et_pb_text,
body.page-id-21 .et_pb_section:first-of-type .et_pb_text p {
  color: #fff;
}

body.page-id-21 .et_pb_section:first-of-type .et_pb_text,
body.page-id-21 .et_pb_section:first-of-type .et_pb_text p {
  font-size: 18px;
  line-height: 1.6;
}

@media (max-width: 767px) {
  body .et_pb_heading h1,
  body .et_pb_text h1,
  body h1.entry-title { font-size: 30px !important; }

  body .et_pb_heading h2,
  body .et_pb_text h2 { font-size: 25px !important; }

  body.page-id-21 .et_pb_section:first-of-type .et_pb_text,
  body.page-id-21 .et_pb_section:first-of-type .et_pb_text p {
    font-size: 16px;
  }
}
