/* Heritage Presbyterian color and type skin for Flair. */
:root {
  --font-system: Inter, system-ui, sans-serif;
  --font-headings: Perpetua, "Noto Serif", Georgia, serif;
  --font-body: Inter, system-ui, sans-serif;
  --color-brand: #b8965d;
  --color-brand-contrast: #f5f0e8;
  --color-accent: #b8965d;
  --color-typography: #3b4d5f;
  --color-typography-tone: #6f7b81;
  --color-typography-content: #465766;
  --color-typography-reverse: #f5f0e8;
  --color-background: #f5f0e8;
  --color-background-tone: #eee8dd;
  --color-background-opac: rgb(245 240 232 / 75%);
  --color-background-reverse: #3b4d5f;
  --color-border: rgb(141 154 160 / 35%);
  --color-border-reverse: rgb(245 240 232 / 25%);
}

[data-color-scheme="dark"]:root {
  --color-typography: #f5f0e8;
  --color-typography-tone: #c7cecd;
  --color-typography-content: #d8d4ca;
  --color-typography-reverse: #3b4d5f;
  --color-background: #2f3f50;
  --color-background-tone: #374a5b;
  --color-background-opac: rgb(47 63 80 / 75%);
  --color-background-reverse: #f5f0e8;
  --color-border: rgb(184 150 93 / 28%);
  --color-border-reverse: rgb(59 77 95 / 24%);
}

@media (prefers-color-scheme: dark) {
  [data-color-scheme="system"]:root {
    --color-typography: #f5f0e8;
    --color-typography-tone: #c7cecd;
    --color-typography-content: #d8d4ca;
    --color-typography-reverse: #3b4d5f;
    --color-background: #2f3f50;
    --color-background-tone: #374a5b;
    --color-background-opac: rgb(47 63 80 / 75%);
    --color-background-reverse: #f5f0e8;
    --color-border: rgb(184 150 93 / 28%);
    --color-border-reverse: rgb(59 77 95 / 24%);
  }
}

body {
  font-family: var(--font-body);
}

[data-header-brand] [data-brand] img {
  height: auto;
  max-height: none;
  width: min(58vw, 360px);
}

h1,
h2,
h3,
h4,
h5,
h6,
[data-hero-headline] {
  font-family: var(--font-headings);
}

[data-hero-headline] {
  font-weight: 400;
}

[data-alert-bar] {
  background: var(--color-background-reverse);
  color: var(--color-typography-reverse);
  font-size: .875rem;
  padding: .625rem 1rem;
}

[data-alert-bar] > div {
  align-items: center;
  display: flex;
  gap: .75rem;
  justify-content: center;
  margin: 0 auto;
  max-width: var(--container-width);
  text-align: center;
}

[data-alert-bar] p {
  margin: 0;
}

[data-alert-bar] a {
  color: var(--color-brand);
  font-weight: 700;
  white-space: nowrap;
}

[data-heritage-hero-logo] {
  margin-bottom: .75rem;
}

[data-heritage-hero-logo] img {
  width: min(62vw, 390px);
  max-height: 44vh;
  object-fit: contain;
}

[data-heritage-footer-main] {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(9rem, .7fr));
  padding: 4rem 0 3.5rem;
}

[data-heritage-footer-brand] {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 31rem;
}

[data-heritage-footer-logo] {
  align-items: center;
  display: inline-flex;
  gap: 1rem;
}

[data-heritage-footer-logo] img {
  height: auto;
  width: 118px;
}

[data-heritage-footer-logo] span {
  border-left: 1px solid rgb(184 150 93 / 55%);
  color: var(--color-typography);
  display: block;
  font-family: var(--font-headings);
  font-size: 1.12rem;
  font-weight: 400;
  letter-spacing: .09em;
  line-height: 1.15;
  max-width: 14rem;
  padding-left: 1rem;
  text-transform: uppercase;
  white-space: normal;
}

[data-heritage-footer-column] {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

[data-heritage-footer-column] h2 {
  color: var(--color-typography);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

[data-heritage-footer-tagline] {
  color: var(--color-typography-tone);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  max-width: 27rem;
}

[data-heritage-footer-copy] {
  border-top: 1px solid var(--color-border);
  color: var(--color-typography-tone);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  font-size: .875rem;
  justify-content: center;
  padding: 1.25rem 0 1.75rem;
  text-align: center;
}

@media (max-width: 900px) {
  [data-heritage-footer-main] {
    grid-template-columns: 1fr 1fr;
  }

  [data-heritage-footer-brand] {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  [data-header-brand] [data-brand] img {
    width: min(58vw, 260px);
  }

  [data-heritage-footer-main] {
    grid-template-columns: 1fr;
  }

  [data-heritage-footer-logo] img {
    width: 92px;
  }

  [data-heritage-footer-logo] span {
    font-size: .92rem;
    max-width: 8.75rem;
    padding-left: .8rem;
  }
}

.bg-brand,
.hover\:bg-brand:hover {
  background-color: var(--color-brand) !important;
}

.text-brand,
.hover\:text-brand:hover {
  color: var(--color-brand) !important;
}

.border-brand,
.hover\:border-brand:hover {
  border-color: var(--color-brand) !important;
}

.text-brand-contrast {
  color: var(--color-brand-contrast) !important;
}

[data-hero-headline] span,
.ghost-content a:not([class*="kg-"], [class*="btn"]):hover,
.toc-list-item a:hover,
.is-active-li > a {
  color: var(--color-brand);
}

[data-progress-bar]::-moz-progress-bar,
[data-progress-bar]::-webkit-progress-value,
.is-active-li > a:before {
  background: var(--color-brand);
}
