:root {
  --bg-img: url("topography.png");
  --bg-color: #ffffff;
  --fg-color: black;
  --accent: #8d0c0c;
  --border-color: #f4f4f4;
}

@media(prefers-color-scheme: dark) {
  :root {
    --bg-img: url("memphis-mini-dark.png");
    --bg-color: #161722;
    --fg-color: #e4e5f1;
    --border-color: #141414;
    --accent: #8CC2DD;
  }
}


html {
  background-color: var(--bg-color);
  background-image: var(--bg-img);
  background-attachment: fixed;
}

body {
  max-width: 1000px;
  margin: 5em auto;
  font-size: 1.2rem;
  font-family: serif;
  color: var(--fg-color);
}

section {
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--border-color);
  padding: 0 1em;
  margin-bottom: 1.2em;
}

ul.contact {
  list-style: none;
  text-align: right;
}

ul.contact > li {
  display: inline-block;
}

ul.contact::after {
  clear: both;
}

ul.contact > li:not(:last-of-type)::after {
  content: " | "
}

section > h1,
section > h2 {
  text-align: center;
  font-size: 1.5rem;
}

section h3 {
  margin-bottom: 0;
}

span.dates, span.website, span.location {
  float: right;
}

.header > h1 {
  text-transform: uppercase;
  font-size: 1.6rem;
}

.notice {
  text-align: right;
  margin-bottom: 0;
  margin-top: 0;
  font-size: 0.8em;
  display: block;
}

span.tech {
  color: var(--accent);
  border-bottom: 1px dashed var(--accent);
}

span.product {
  color: var(--accent);
  font-weight: bold;
}

p {
  text-align: justify;
  hyphens: auto;
}

.work-item {
  margin-bottom: 2.2em;
  position: relative;
}

.work-item::after {
  position: absolute;
  content: "* * *";
  font-size: 0.9em;
  width: 100%;
  text-align: center;
}

.work-item:last-of-type::after {
  content: "";
}

a {
  color: var(--accent);
  text-decoration: none;
}

strong {
    color: var(--accent);
    font-weight: bold;
}

.job-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: bold;
}

.role-group + .role-group {
  margin-top: 1.5em;
}

/** Print overrides come last */
@media print {
  :root {
    --bg-img: none;
  }

  body {
    font-size: 14px;
    margin: unset;
  }
  section {
    border: none;
  }

  .screen { display: none !important; }
  .print { display: block; }
}

@media screen {
  .screen { display: block; }
  .print { display: none !important; }
}
