:root {
  --primary-color: #a80a2d;
  --text-color: #333;
  --secondary-color: #157c68;
  --hover-color: #17564a;

}

body {
  font-family: 'Source Sans Pro';
  color: #333;
  font-size: 1.2em;
  line-height: 1.2;

  gap: 3em;
  grid-auto-rows: auto;
  grid-template-columns: repeat(2, 1fr);
  margin: 2em 1.5em;
}

@media screen and (min-width: 45em) {
  body {
    display: grid;
  }

  .headlines {
    display: flex;
  }
}

h1,
h2,
h3 {
  font-feature-settings: "liga";
  font-family: Oranda, sans-serif;
  font-weight: 400;
}

h1 {
  font-size: max(5vw, 2em);
  padding-bottom: 1rem;
  text-align: center;
}

h2 {
  color: var(--primary-color);
  font-size: 2.125em;
}

h3 {
  font-size: 1.625em;
}

p {
  margin-top: 0;
  margin-bottom: 1em;
}

dl dt {
  font-weight: bold;
  margin-bottom: .25em;
}

dl dd {
  margin-inline-start: 0;
  margin-right: 0;
}

/** template styling **/
@font-face {
  font-family: 'Oranda';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(oranda.woff2) format('woff2');
}

img {
  max-width: 100%;
}

section {
  page-break-before: always;
}

a { 
  color: var(--secondary-color);
}

a:hover {
  color: var(--hover-color);
}

h1,
.headlines,
img.hero,
figure.full {
  grid-column: 1/3;
  margin: 0 auto;
  gap: 1em;
}

figcaption {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

figcaption > h2 {
  flex-grow: 1;
  width: 100%;
}

figcaption > * {
  flex-basis: 1;
  flex-grow: 1;
}

img.hero {
  max-height: 50vh;
}

.headlines {
  font-weight: bold;
  font-size: 1.25em;
  margin: 2em auto;
}

.headlines strong {
  color: var(--primary-color);
}

#casus p:not(.lead) {
  border-left: 4px solid var(--primary-color);
  padding-left: 1em;
  position: relative;
  padding: 1em;
  padding-bottom: 2em;
  margin-bottom: -1em;
}

p.lead {
  font-style: italic;
  font-size: 1.25em;
}

#casus p::before {
  content: " ";
  background: white;
  border: 4px solid var(--primary-color);
  width: 8px;
  height: 8px;
  position: absolute;
  top: 1em;
  left: -.5em;
  border-radius: 1em;
}

#team>div {
  display: flex;
  padding: .5em;
  border-radius: .5em;
  gap: 1em;
  margin-bottom: 1em;
  flex-direction: row;
  align-items: flex-start;
  transition: background .5s, color .5s;
}

#team>div.selected {
  background: var(--primary-color);
  color: white;
  transition: background .25s, color .25s;
}

#team h3 {
  margin-bottom: 0;
  margin-top: 0;
}

#team>div * {
  pointer-events: none;
}

#team>div .jargon, #team>div abbr, #team>div a {
  pointer-events: all;
}

#team>div:nth-of-type(2n+1) {
  flex-direction: row-reverse;
}

#casus p {
  transition: background .5s, color .5s;
}

#casus p:has(a.selected) {
  background-color: var(--secondary-color);
  color: white;
  transition: background .25s, color .25s;
}
#casus p:has(a.selected) a {
  color: white;
  transition: background .25s, color .25s;
}

abbr, .jargon {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--secondary-color);
  cursor: help;
}
