/* ===================================
   Typography: Headings & Text
   =================================== */

/* ---- Base Variables ---- */
:root {
  --lh-heading: 1.2;

  --fs-h1: 3rem;
  --fs-h2: 2.5rem;
  --fs-h3: 2rem;
  --fs-h4: 1.3rem;
  --fs-h5: 1.2rem;
  --fs-h6: 0.9rem;
  --fs-body: 1rem;
  --fs-micro: 0.8rem;

  --mb-lg: 2rem;
  --mb-md: 1.5rem;
  --mb-sm: 1rem;

  --mini: 0.8rem;
}

/* ---- Responsive Typography ---- */
@media (max-width: 767.98px) {
  :root {
    --fs-h1: 1.8rem;
    --fs-h2: 1.6rem;
    --fs-h3: 1.35rem;
    --fs-h4: 1.15rem;
    --fs-h5: 1rem;
    --fs-h6: 0.9rem;
    --fs-body: 0.95rem;

    --mb-lg: 1.1rem;
    --mb-md: 0.75rem;
    --mb-sm: 0.6rem;
  }
}

@media (max-width: 374.98px) {
  :root {
    --fs-h1: 1.6rem;
    --fs-h2: 1.4rem;
    --fs-h3: 1.2rem;
    --fs-h4: 1.05rem;
    --fs-h5: 0.95rem;
    --fs-h6: 0.8rem;
    --fs-body: 0.9rem;
  }
}

/* ---- Base Heading Style ---- */
h1, h2, h3, h4, h5, h6,
.has-x-large-font-size,
.has-large-font-size,
.has-medium-font-size,
.has-small-font-size {
  line-height: var(--lh-heading);
  font-family: var(--font-primary);
  margin-top: 0;
  margin-bottom: var(--mb-sm);
  max-width: 100%;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: manual;
}

/* ---- Semantic Headings ---- */
h1 {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-h1);
  font-weight: 800;
  margin-bottom: var(--mb-lg);
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-h2);
  margin-bottom: var(--mb-lg);
}

h2.icon {
  padding-top: 6rem;
  position: relative;
}

h2.icon::before {
  position: absolute;
  content: "";
  top: 0;
  width: 5rem;
  height: 5rem;
  left: 50%;
  transform: translateX(-50%);
  background: url(../../img/kaiser_icon.svg) no-repeat center center;
  background-size: contain;
}

h3 {
  font-family: 'Playfair Display', serif;
  font-size: var(--fs-h3);
  margin-bottom: var(--mb-md);
  padding-bottom: 0.5rem;
}
h3::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-primary-alt-16);
  margin-top: 1rem;
}

h4 {
  font-size: var(--fs-h4);
  margin-bottom: var(--mb-md);
}

h5 {
  font-size: var(--fs-h5);
}

h6 {
  font-size: var(--fs-h6);
  font-weight: 600;
  letter-spacing: 0.1em;
}

h6.wide-letters {
  font-size: 1rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-weight: 400;
}

.maxi-size {
  font-size: 3.5rem;
  font-family: 'Playfair Display', serif;
}

/* ---- Mobile Special Sizes ---- */
@media (max-width: 767.98px) {
  h2.icon {
    padding-top: 4rem;
  }

  h2.icon::before {
    width: 3.5rem;
    height: 3.5rem;
  }

  h2.mega-size,
  .maxi-size {
    font-size: 2rem;
  }

  h6.wide-letters {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
  }
}

/* ---- WordPress Utility Mapping ---- */
.has-x-large-font-size { font-size: var(--fs-h1) !important; }
.has-large-font-size   { font-size: var(--fs-h2) !important; }
.has-medium-font-size  { font-size: var(--fs-h3) !important; }
.has-small-font-size   { font-size: var(--fs-h5) !important; }

/* ---- Links ---- */
a {
  color: var(--color-secondary);
  position: relative;
  z-index: 10;
  text-decoration: none;
}

a:hover {
  color: var(--color-text);
}

/* ---- Text ---- */
p,
li {
  font-size: var(--fs-body);
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  color: var(--color-text-alt);
  max-width: 100%;
}

p,
ul li {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: manual;
}

b, strong {
  font-weight: 900;
}

i, em {
  font-style: italic;
}

hr {
  margin: 2rem 0;
}

/* ---- Lists ---- */
ul {
  margin-bottom: 2rem;
}

ul.no-points {
  list-style: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 0.3rem;
}

ul li::marker {
  color: var(--color-secondary);
  font-size: 1.2em;
}

/* ===================================
   Project Individuals
   =================================== */

.orange {
  color: var(--color-secondary);
}

.underline-link {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.underline-heading {
  display: block;
  width: 5rem;
  background: var(--color-primary);
  border-radius: 0.2rem;
  margin-bottom: 4rem;
  height: 0.2rem;
  margin-left: 3rem;
}

@media (max-width: 767.98px) {
  .underline-heading {
    margin-left: 0;
    margin-bottom: 2rem;
  }
}

/* ===================================
   TABLER ICONS BASE
   =================================== */

.ti {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  shape-rendering: geometricPrecision;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ti * {
  stroke-width: 0.1rem;
  vector-effect: non-scaling-stroke;
}